/* Alveera tour cards – modern responsive grid */
:root {
    --tc-gold: #c59341;
    --tc-gold-light: #d4a853;
    --tc-navy: #1b3e5f;
    --tc-navy-light: #2a5580;
    --tc-muted: #6b7c8f;
    --tc-border: #e8edf2;
    --tc-shadow: 0 12px 40px rgba(27, 62, 95, 0.1);
    --tc-shadow-hover: 0 20px 48px rgba(27, 62, 95, 0.16);
}

.xk9_best-trips-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: #ffffff;
    overflow-x: hidden;
}

/* Tours page – category filter tabs */
.xk9_tours-filter-wrap {
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.xk9_tours-filter-label {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tc-muted);
}

.xk9_tours-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.xk9_tours-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.62rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--tc-border);
    background: #fff;
    color: var(--tc-navy);
    font-size: clamp(0.82rem, 2vw, 0.92rem);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(27, 62, 95, 0.04);
}

.xk9_tours-filter-tab:hover {
    color: var(--tc-navy);
    border-color: rgba(197, 147, 65, 0.35);
    transform: translateY(-1px);
}

.xk9_tours-filter-tab.is-active {
    background: linear-gradient(135deg, var(--tc-navy), var(--tc-navy-light));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(27, 62, 95, 0.22);
}

.xk9_tours-filter-tab--budget.is-active {
    background: linear-gradient(135deg, #2e7d5a, #3d9970);
}

.xk9_tours-filter-tab--luxury.is-active {
    background: linear-gradient(135deg, #1a1a2e, #3d3d5c);
}

.xk9_tours-filter-tab--premium.is-active {
    background: linear-gradient(135deg, var(--tc-gold), var(--tc-gold-light));
    color: var(--tc-navy);
}

@media (max-width: 575.98px) {
    .xk9_tours-filter-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .xk9_tours-filter-tab {
        justify-content: center;
        padding: 0.7rem 0.65rem;
    }
}

.xk9_best-trips-section .container {
    padding-top: 20px;
    max-width: 1320px;
}

.xk9_section-title {
    color: var(--tc-navy);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.xk9_section-subtitle {
    color: var(--tc-muted);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 2rem;
}

.xk9-tours-grid,
.tours-responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    justify-content: start;
    gap: 0.65rem;
    width: 100%;
}

.xk9-tours-grid > .xk9_trip-card,
.tours-responsive-grid > .xk9_trip-card,
.tours-responsive-grid > .tour-card {
    width: 100%;
    max-width: none;
}

/* Card shell */
.xk9_trip-card,
.tour-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--tc-border);
    box-shadow: var(--tc-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.xk9_trip-card:hover,
.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tc-shadow-hover);
}

/* Image area */
.xk9_trip-card-img-wrapper,
.tour-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 200px;
    overflow: hidden;
    background: #e9eef3;
    flex-shrink: 0;
}

.xk9_trip-card-img,
.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.xk9_trip-card:hover .xk9_trip-card-img,
.tour-card:hover .tour-card-image img {
    transform: scale(1.06);
}

.xk9_discount-badge,
.tour-card-discount {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #fff;
    color: var(--tc-gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.02em;
}

.xk9_duration-float {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: var(--tc-navy);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(27, 62, 95, 0.18);
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xk9_duration-float i {
    color: var(--tc-gold);
    font-size: 0.85rem;
}

/* Body */
.xk9_trip-card-body,
.tour-card-content {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.xk9_trip-title,
.tour-card-title {
    color: var(--tc-navy);
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.3;
    margin: 0 0 0.45rem;
    word-wrap: break-word;
}

/* Includes row */
.xk9_includes-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
}

.xk9_includes-label {
    font-size: 0.8rem;
    color: var(--tc-muted);
    font-weight: 500;
}

.xk9_includes-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.xk9_includes-icons span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f4f6f9;
    color: var(--tc-navy-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.xk9_trip-card:hover .xk9_includes-icons span {
    background: rgba(197, 147, 65, 0.12);
    color: var(--tc-gold);
}

/* Legacy feature grid – hide if old markup remains somewhere */
.xk9_features-grid { display: none; }
.xk9_destination-days { display: none; }

/* Price */
.xk9_price-block,
.tour-card-pricing {
    border-top: 1px solid var(--tc-border);
    padding-top: 0.55rem;
    margin-top: auto;
    margin-bottom: 0.6rem;
}

.xk9_price-label,
.tour-price-from {
    display: block;
    font-size: 0.68rem;
    color: var(--tc-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
}

.xk9_price-line,
.tour-price-section {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.xk9_price-old,
.tour-original-price {
    font-size: 0.9rem;
    color: #9aa8b6;
    text-decoration: line-through;
}

.xk9_price-amount,
.tour-current-price {
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 800;
    color: var(--tc-navy);
    line-height: 1.1;
}

.xk9_price-per,
.tour-price-note {
    font-size: 0.85rem;
    color: var(--tc-muted);
    font-weight: 500;
}

.xk9_price-custom {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--tc-navy-light) !important;
}

/* Actions – detail icon + enquire + contact icons */
.xk9_card-actions,
.tour-card-actions {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 40px 1fr 40px 40px;
    gap: 0.45rem;
    margin-bottom: 0;
}

.xk9_card-actions > *,
.tour-card-actions > * {
    position: relative;
    z-index: 2;
}

.xk9_btn-details,
.tour-action-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f4f6f9;
    color: var(--tc-gold);
    border: 1px solid rgba(197, 147, 65, 0.25);
    flex-shrink: 0;
}

.xk9_btn-details:hover,
.tour-action-details:hover {
    background: rgba(197, 147, 65, 0.1);
    color: var(--tc-navy);
    text-decoration: none;
}

.xk9_btn-primary,
.tour-action-enquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.4rem;
    border-radius: 12px;
    font-size: clamp(0.72rem, 2vw, 0.82rem);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, var(--tc-navy), var(--tc-navy-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(27, 62, 95, 0.2);
}

.xk9_btn-primary:hover,
.tour-action-enquire:hover {
    background: linear-gradient(135deg, var(--tc-navy-light), var(--tc-navy));
    transform: translateY(-1px);
    color: #fff;
}

.xk9_contact-actions {
    display: none;
}

.xk9_btn-whatsapp,
.xk9_btn-call,
.tour-action-whatsapp,
.tour-action-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.xk9_btn-whatsapp,
.tour-action-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #128c7e;
    border-color: rgba(37, 211, 102, 0.3);
}

.xk9_btn-whatsapp:hover,
.tour-action-whatsapp:hover {
    background: #25d366;
    color: #fff;
    text-decoration: none;
}

.xk9_btn-call,
.tour-action-call {
    background: rgba(27, 62, 95, 0.08);
    color: var(--tc-navy);
    border-color: rgba(27, 62, 95, 0.15);
}

.xk9_btn-call:hover,
.tour-action-call:hover {
    background: var(--tc-navy);
    color: #fff;
    text-decoration: none;
}

/* Legacy icon buttons – map to new style if old HTML exists */
.xk9_icon-btn,
.tour-action-icon {
    display: none;
}

.xk9_btn-enquire { display: none; }
.xk9_price-section { display: none; }

@media (max-width: 380px) {
    .xk9_card-actions,
    .tour-card-actions {
        grid-template-columns: 40px 1fr 40px 40px;
    }
}
