/* ===========================
   TRAVEL & STAY PAGE STYLES
   =========================== */

/* ── Page Hero ───────────────────────────────────────── */
.travel-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 9rem 2rem 1rem;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(107, 66, 38, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(230, 220, 207, 0.6) 0%, transparent 50%);
}

.travel-hero-content {
    max-width: 1200px;
    animation: fadeInUp 1s ease-out;
}

.travel-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(107, 66, 38, 0.1);
    color: var(--brand-brown);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.travel-hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--brand-brown);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.travel-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.85;
    max-width: 1200px;
    margin: 0 auto;
}

/* Scroll indicator */
.hero-scroll-indicator {
    margin-top: 2rem;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(107, 66, 38, 0.35);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.hero-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--brand-brown);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* ── Filter Bar ──────────────────────────────────────── */
.filter-bar-section {
    padding: 0;
    position: sticky;
    top: 86px;
    /* Match navbar height (measured: 86px) */
    z-index: 100;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transform: translateZ(0);
    /* Force GPU compositing layer */
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    justify-content: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass-bg);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    border-color: var(--brand-brown);
    color: var(--brand-brown);
    background: rgba(107, 66, 38, 0.06);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--brand-brown);
    color: white;
    border-color: var(--brand-brown);
    box-shadow: 0 6px 18px rgba(107, 66, 38, 0.3);
}

/* ── Travel Grid ─────────────────────────────────────── */
.travel-grid-section {
    padding: 2rem 0 4rem;
}

.travel-grid-section .container {
    max-width: 1600px;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    padding-top: 20px;
    /* Provide headroom for upward hover zoom */
    content-visibility: auto;
    /* Skip rendering of off-screen cards */
    contain-intrinsic-size: 1000px;
    /* Placeholder size for better scrollbar stability */
}

.travel-grid.centered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    /* Optimized for 3-column fit in 1200px container */
    justify-content: center;
    gap: 2.5rem;
}

.travel-grid.centered-grid .travel-card {
    width: 100%;
    max-width: none;
    /* Let the grid handle the size for perfect matching */
}

/* ── Travel Card ─────────────────────────────────────── */
.travel-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    /* Add translateZ for GPU layer */
    will-change: transform, opacity;
    /* Hint to browser for acceleration */
    cursor: default;
}

.travel-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.travel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(107, 66, 38, 0.15);
    background: white;
}

/* Image Wrapper */
.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-image-wrapper img {
    position: relative;
    z-index: 2;
    /* Sit on top of placeholder */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.travel-card:hover .card-image-wrapper img {
    transform: scale(1.07);
}

/* Placeholder (until real images are added) */
.card-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-accent) 0%, #d4c4b0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(107, 66, 38, 0.4);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background 0.4s ease;
    z-index: 1;
    /* Below the image if it loads */
}

.example-notice {
    font-size: 0.72rem;
    opacity: 0.5;
    font-style: italic;
    margin-top: -0.2rem;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.card-image-placeholder i {
    font-size: 2.5rem;
    opacity: 0.4;
}

.travel-card:hover .card-image-placeholder {
    background: linear-gradient(135deg, #d4c4b0 0%, #c8b49c 100%);
}

/* Country Badge */
.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(8px);
    color: var(--brand-brown);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    z-index: 10;
}

/* Experience Badge */
.card-experience-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--brand-brown);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 12px rgba(107, 66, 38, 0.3);
    z-index: 10;
}

.card-experience-badge.experience-gem {
    background: linear-gradient(135deg, #8B5E3C, #5C3A1E);
}

.card-experience-badge.experience-love {
    background: linear-gradient(135deg, #C25B7A, #8B3A55);
}

/* Card Body */
.card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-brown);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.card-title {
    font-size: 1.45rem;
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    flex: 1;
}

/* Meta Row */
.card-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.85rem;
    margin-top: 0.2rem;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--brand-brown);
    opacity: 0.75;
    font-weight: 500;
}

.card-meta-item i {
    font-size: 0.75rem;
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(107, 66, 38, 0.07);
    color: var(--brand-brown);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    transition: background 0.25s ease;
}

.travel-card:hover .tag {
    background: rgba(107, 66, 38, 0.12);
}

/* ── Coming Soon Notice ──────────────────────────────── */
.coming-soon-notice {
    text-align: center;
    padding: 3.5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 3rem;
    color: var(--brand-brown);
    opacity: 0.4;
    margin-bottom: 1.25rem;
}

.coming-soon-notice h3 {
    font-size: 1.6rem;
    color: var(--brand-brown);
    margin-bottom: 0.75rem;
}

.coming-soon-notice p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.coming-soon-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1.5px solid var(--brand-brown);
    border-radius: 50px;
    color: var(--brand-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
    background: var(--brand-brown);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(107, 66, 38, 0.2);
}

.btn-outline:hover i {
    color: white !important;
    -webkit-text-fill-color: white !important;
    background: none !important;
}

/* Specific Brand Hover Backgrounds for Travel Page */
.btn-outline:hover:has(.fa-youtube) {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
}

.btn-outline:hover:has(.fa-facebook) {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
}

.btn-outline:hover:has(.fa-instagram) {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: transparent !important;
}

.btn-outline:hover:has(.fa-tiktok) {
    background: #010101 !important;
    border-color: #010101 !important;
}

[data-theme="dark"] .btn-outline:hover:has(.fa-tiktok) {
    background: #333333 !important;
    border-color: #333333 !important;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .travel-hero h1 {
        font-size: 2.5rem;
    }

    .travel-hero p {
        font-size: 1rem;
    }

    .filter-bar-section {
        top: 65px;
    }

    .travel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-meta {
        gap: 0.85rem;
    }
}

@media (max-width: 480px) {
    .travel-hero {
        padding: 7rem 1.5rem 4rem;
    }

    .travel-hero h1 {
        font-size: 2rem;
    }

    .filter-bar-section {
        top: 65px;
        padding: 0.85rem 1rem;
    }

    .filter-bar {
        gap: 0.75rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar for cleaner look */
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1.25rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .coming-soon-links {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
    }

    .btn-outline {
        justify-content: center;
        width: 100%;
    }
}

/* ── Dark Mode Overrides ──────────────────────────────── */
[data-theme="dark"] .travel-hero {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 196, 176, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(18, 18, 18, 0.9) 0%, transparent 50%);
}

[data-theme="dark"] .travel-hero-tag {
    background: rgba(212, 196, 176, 0.1);
}

[data-theme="dark"] .filter-bar-section {
    background: rgba(18, 18, 18, 0.85);
}

[data-theme="dark"] .filter-btn {
    background: rgba(45, 45, 45, 0.6);
}

[data-theme="dark"] .filter-btn:hover {
    background: rgba(212, 196, 176, 0.1);
}

[data-theme="dark"] .card-badge {
    background: rgba(45, 45, 45, 0.95);
}

[data-theme="dark"] .travel-card:hover {
    background: var(--bg-accent);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .card-image-placeholder {
    background: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
    color: rgba(212, 196, 176, 0.3);
}

[data-theme="dark"] .coming-soon-notice {
    background: rgba(45, 45, 45, 0.4);
}