/* ==========================================================================
   GetYourGuide-Style Tours & Activities Cards — NoviTrip (Compact Edition)
   ========================================================================== */

/* Section Header Container */
.tours-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.tours-header-text h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 4px 0;
}

.tours-header-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.tours-explore-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0071c2;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f0f7ff;
    border: 1px solid rgba(0, 113, 194, 0.15);
    transition: all 0.2s ease;
}

.tours-explore-all-link:hover {
    background: #0071c2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 113, 194, 0.25);
    transform: translateX(2px);
}

/* Category Filter Pills */
.tours-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tour-pill {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tour-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.tour-pill.is-active,
.tour-pill[aria-selected="true"] {
    background: #0071c2;
    border-color: #0071c2;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 113, 194, 0.25);
    transform: translateY(-1px);
}

.tour-pill .pill-count {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.70rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
    color: inherit;
    font-weight: 700;
}

.tour-pill.is-active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   GetYourGuide Card Grid
   ========================================================================== */
.card-grid[data-section="tours"] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    justify-content: stretch;
    width: 100%;
}

@media (max-width: 1200px) and (min-width: 993px) {
    .card-grid[data-section="tours"] {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 992px) {
    .card-grid[data-section="tours"] {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        padding: 4px 16px 16px !important;
        margin: 0 -16px !important;
        scrollbar-width: none !important;
    }
    .card-grid[data-section="tours"]::-webkit-scrollbar {
        display: none !important;
    }
}

/* ==========================================================================
   GetYourGuide Card (.card-gyg) — Compact
   ========================================================================== */
.card-gyg {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.24s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    width: 100%;
}

@media (max-width: 992px) {
    .card-gyg {
        flex: 0 0 auto !important;
        width: min(80vw, 290px) !important;
        max-width: 290px !important;
        min-width: 260px !important;
        scroll-snap-align: center !important;
    }
}

.card-gyg:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.10), 0 3px 8px -2px rgba(15, 23, 42, 0.03);
    border-color: #cbd5e1;
    text-decoration: none;
    color: inherit;
}

.card-gyg:focus-visible {
    outline: 2px solid #0071c2;
    outline-offset: 2px;
}

/* Card Media / Image — Compact ~150px */
.gyg-card-media {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f1f5f9;
}

.gyg-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-gyg:hover .gyg-card-media img {
    transform: scale(1.05);
}

/* GYG Badges (Top Left) — Compact */
.gyg-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.gyg-badge--bestseller {
    background: #ff5533;
    color: #ffffff;
}

.gyg-badge--toprated {
    background: #0f172a;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.gyg-badge--likely {
    background: #e11d48;
    color: #ffffff;
}

.gyg-badge--certified {
    background: #047857;
    color: #ffffff;
}

/* Floating Wishlist Button (Top Right) — Compact */
.gyg-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    padding: 0;
}

.gyg-wishlist-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    color: #ef4444;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.gyg-wishlist-btn.is-active,
.gyg-wishlist-btn.is-active i {
    color: #ef4444 !important;
    background: #ffffff !important;
}

.gyg-wishlist-btn.is-active {
    animation: gygHeartPop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes gygHeartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.28); }
    100% { transform: scale(1); }
}

/* Card Body — Tight & Compact */
.gyg-card-body {
    padding: 9px 12px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
}

/* Meta: Category & Location — Compact */
.gyg-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.1;
}

.gyg-category-label {
    color: #0071c2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gyg-location-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.gyg-location-label i {
    color: #ef4444;
    font-size: 0.68rem;
}

/* Title — Clamped tightly */
.gyg-title {
    font-size: 0.90rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.22;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.25em;
    max-height: 2.45em;
    transition: color 0.18s ease;
}

.card-gyg:hover .gyg-title {
    color: #0071c2;
}

/* Features — Compact list */
.gyg-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 7px;
    margin-bottom: 5px;
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.15;
}

.gyg-feat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.gyg-feat-item i {
    color: #94a3b8;
    font-size: 0.72rem;
}

.gyg-feat-item.gyg-free-cancel {
    color: #059669;
    font-weight: 600;
}

.gyg-feat-item.gyg-free-cancel i {
    color: #059669;
}

/* Spacer — Hidden to avoid excess whitespace */
.gyg-spacer {
    display: none;
}

/* Rating Row — Compact */
.gyg-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    margin-bottom: 6px;
    line-height: 1.1;
}

.gyg-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
    font-size: 0.74rem;
}

.gyg-rating-score {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.82rem;
}

.gyg-reviews-count {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
}

/* Pricing Footer — Compact */
.gyg-pricing-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 5px;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
}

.gyg-price-block {
    display: flex;
    flex-direction: column;
}

.gyg-price-from {
    font-size: 0.64rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.25px;
    line-height: 1;
    margin-bottom: 1px;
}

.gyg-price-numbers {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.gyg-current-price {
    font-size: 1.10rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.gyg-original-price {
    font-size: 0.74rem;
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 500;
}

.gyg-price-unit {
    font-size: 0.64rem;
    color: #64748b;
    margin-top: 1px;
    line-height: 1;
}

/* Action Pill — Compact */
.gyg-action-pill {
    padding: 3px 9px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.gyg-action-pill i {
    font-size: 0.65rem;
    transition: transform 0.18s ease;
}

.card-gyg:hover .gyg-action-pill {
    background: #0071c2;
    border-color: #0071c2;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 113, 194, 0.25);
}

.card-gyg:hover .gyg-action-pill i {
    transform: translateX(2px);
}

/* Filter animation */
.card-gyg.gyg-fade-in {
    animation: gygCardFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gygCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
