/* ============================================
   King Go Tours — filter pills + card grid
   Tweak the variables below to match your Figma exactly
   ============================================ */
:root {
    --kg-gold: #C59B4E;
    --kg-navy: #061326;
    --kg-text-dark: #061326;
    --kg-text-muted: #94A3B8;
    --kg-card-radius: 14px;
}

/* ---- Filter pills ---- */
.kg-tour-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.kg-filter-label {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    font-style: italic;
    color: var(--kg-text-muted);
    margin-right: 6px;
}

button.kg-filter-btn {
    font-family: 'Inter', serif;
    font-weight: 500;
    line-height: 1.5;
    font-size: 12px;
    background: rgb(17, 34, 59, 0.6);
    border: 1px solid rgba(197, 155, 78, 0.1);
    border-radius: 999px;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    color: #CBD5E1;
}
button.kg-filter-btn:hover {
    border-color: var(--kg-gold);
    background: transparent;
}

button.kg-filter-btn.active {
    background: rgba(197,155,78,0.1);
    border-color: var(--kg-gold);
    color: var(--kg-gold);
    font-weight: 600;
}

/* ---- Section Title ---- */

.sec-title{
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(197,155,78,0.1);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
}
.sec-title .column1{
    width: 50%;
    padding: 0 12px;
}
.sec-title .column2{
    width: 50%;
    padding: 0 12px;
}
.sec-title .description{
    font-family: 'Inter', serif;
    font-weight: 400;
    line-height: 1.8;
    font-size: 14px;
    color : #94A3B8;
}
.sec-title .title{
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.3;
    font-size: 36px;
    color : #fff;
    display : block;
}
.sec-title .sub-title{
    display : block;
    font-family: 'Inter', serif;
    font-weight: 600;
    line-height: 1.5;
    font-size: 12px;
    color : var(--kg-gold);
}

/* ---- Grid ---- */
.kg-tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ---- Card ---- */
.kg-tour-card {
    background-image: linear-gradient(180deg, #0D1E35 0%, #081324 100%);
    border-radius: var(--kg-card-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    border : solid 1px rgb(197,155,78,0.25);
}

.kg-tour-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.kg-tour-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.kg-tour-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgb(6,19,38,0.9);
    color: var(--kg-gold);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgb(197,155,78,0.25);
    font-family: 'Inter', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-transform: uppercase;
}

.kg-tour-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kg-tour-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #fff;
}

.kg-tour-excerpt {
    font-family: 'Inter', serif;
    font-size: 14px;
    color: var(--kg-text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.kg-tour-meta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 13px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgb(197,155,78,0.12);
    border-top: 1px solid rgb(197,155,78,0.12);
    color: #fff;
}

.kg-tour-meta .kg-tour-meta-data{
    padding: 8px 0;
    display: flex;
    align-items: center;
}
.kg-tour-meta .kg-tour-meta-data .icon{
    margin-right: 0.5rem;
}
.kg-tour-meta .kg-tour-meta-data .icon i, .kg-tour-meta .kg-tour-meta-data .icon svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
    fill: var(--kg-gold);
    color: var(--kg-gold);
}
.kg-tour-meta strong {
    display: block;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--kg-text-muted);
}

.kg-tour-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kg-tour-price strong {
    font-family: 'Inter', serif;
    display: block;
    text-transform: uppercase;
    font-size: 10px;
    line-height: 1.5;
    color: var(--kg-text-muted);
}

.kg-tour-price span {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 700;
    color: #fff;
}

.kg-tour-book {
    background: var(--kg-gold);
    color: var(--kg-navy);
    padding: 10px 16px;
    border-radius: 12px;
    font-family: 'Inter', serif;
    white-space: nowrap;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}

.kg-tour-book:hover {
    opacity: 0.85;
}

.kg-no-tours {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--kg-text-muted);
    padding: 40px 0;
}

/* Fade transition while AJAX is loading new cards */
.kg-tour-grid.kg-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}


/* ---- Tour pagination ---- */

.kg-tour-grid .kg-tour-pagination {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 0 8px;
}

.kg-tour-pagination .kg-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.kg-tour-pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(197, 155, 78, 0.3);
    border-radius: 8px;
    background: rgba(17, 34, 59, 0.6);
    color: #CBD5E1;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition:
            background 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease;
}

.kg-tour-pagination button:hover:not(:disabled),
.kg-tour-pagination button:focus,
.kg-tour-pagination .kg-page-number.active {
    background: rgba(197, 155, 78, 0.12);
    border-color: var(--kg-gold);
    color: var(--kg-gold);
}

.kg-tour-pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.kg-tour-pagination button:focus-visible {
    outline: 2px solid var(--kg-gold);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .kg-tour-grid .kg-tour-pagination {
        gap: 6px;
    }

    .kg-tour-pagination .kg-page-numbers {
        gap: 4px;
    }

    .kg-tour-pagination button {
        min-width: 32px;
        height: 34px;
        padding: 0 7px;
    }

    .sec-title .column1{
        width: 100%;
        margin-bottom: 1.5rem;
    }
    .sec-title .column2{
        width: 100%;
    }
}
