/* KnapTours – Listing Styles */

.kt-tours-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

.kt-tours-wrapper *,
.kt-tours-wrapper *::before,
.kt-tours-wrapper *::after {
    box-sizing: border-box;
}

/* ── Archive Hero ── */

.kt-archive-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.kt-archive-hero {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 48px 20px;
    text-align: center;
    margin-bottom: 0;
}

.kt-archive-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.kt-archive-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.2;
}

.kt-archive-hero p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 640px) {
    .kt-archive-hero { padding: 32px 16px; }
    .kt-archive-hero h1 { font-size: 24px; }
    .kt-archive-hero p { font-size: 14px; }
}

/* ── Toolbar ── */

.kt-tours-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.kt-tours-search-wrap {
    position: relative;
    flex: 1;
}

.kt-tours-search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.kt-tours-search {
    display: block;
    width: 100%;
    padding: 10px 12px 10px 48px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    line-height: 1.25;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.kt-tours-search::placeholder {
    color: #6b7280;
}

.kt-tours-search:focus {
    outline: none;
    border-color: #d1d5db;
    box-shadow: 0 0 0 1px #d1d5db;
}

.kt-tours-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.kt-tours-filter-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.kt-tours-filter-btn.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.kt-tours-filter-btn.active:hover {
    background: #374151;
}

.kt-tours-filter-btn svg {
    width: 18px;
    height: 18px;
}

.kt-tours-filter-btn.active svg {
    color: #fff;
}

.kt-tours-filter-btn span {
    display: none;
}

@media (min-width: 640px) {
    .kt-tours-filter-btn span { display: inline; }
}

/* ── Filters Panel ── */

.kt-filters-panel {
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    animation: kt-slide-down 0.25s ease;
}

.kt-filters-panel.open {
    display: block;
}

@keyframes kt-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kt-filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .kt-filters-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.kt-filter-group h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0 0 10px;
}

.kt-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kt-pill {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    line-height: 1.3;
}

.kt-pill:hover {
    border-color: #111827;
    color: #111827;
}

.kt-pill.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.kt-filters-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.kt-results-count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.kt-clear-filters {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.kt-clear-filters:hover {
    background: #fef2f2;
}

/* ── Grid ── */

.kt-tours-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .kt-tours-wrapper { padding: 24px; }
    .kt-tours-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .kt-tours-wrapper { padding: 32px; }
    .kt-tours-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Card ── */

.kt-tour-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.kt-tour-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.kt-tour-card-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.kt-tour-card-link:hover,
.kt-tour-card-link:focus {
    text-decoration: none;
    color: inherit;
}

.kt-tour-card-image {
    position: relative;
    width: 100%;
    padding-top: 66%;
    background: #f3f4f6;
    overflow: hidden;
}

.kt-tour-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.kt-tour-card:hover .kt-tour-card-image img {
    transform: scale(1.05);
}

.kt-tour-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kt-tour-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 4px;
}

.kt-tour-card-author {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
}

.kt-tour-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 4px;
}

.kt-tour-card-location svg {
    flex-shrink: 0;
}

.kt-tour-card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

.kt-tour-card-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
}

.kt-tour-card-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
}

.kt-tour-card-duration svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.kt-tour-card-duration span {
    font-size: 13px;
    font-weight: 500;
}

.kt-tour-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.kt-tour-card-price-from {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kt-tour-card-price-value {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

/* ── No Results ── */

.kt-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.kt-no-results svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #d1d5db;
}

.kt-no-results h3 {
    font-size: 18px;
    font-weight: 700;
    color: #6b7280;
    margin: 0 0 6px;
}

.kt-no-results p {
    font-size: 14px;
    margin: 0;
}

/* ── View All Button ── */

.kt-view-all-wrap {
    text-align: center;
    margin-top: 32px;
}

.kt-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #111827;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.kt-view-all:hover {
    background: #374151;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.kt-view-all:active {
    transform: translateY(0);
}

.kt-view-all svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.kt-view-all:hover svg {
    transform: translateX(3px);
}

/* ── Hidden state for search ── */

.kt-tour-card.kt-hidden {
    display: none;
}
