﻿/* ==========================================================================
   COUNTRY PAGE
   Voyage Connect Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */

:root {
    /* Brand Colors */

    --color-primary: #0077b6;
    --color-primary-dark: #005f91;
    --color-primary-light: #2a93cc;
    --color-accent: #f1921b;
    --color-accent-light: #f8b14b;
    --color-white: #ffffff;
    --color-bg: #f5f8fb;
    --color-surface: #ffffff;
    --color-text: #20303c;
    --color-text-light: #687887;
    --color-border: #dde6ee;
    /* Typography */

    --font-heading: 'Fraunces',serif;
    --font-body: 'Inter',sans-serif;
    /* Layout */

    --container: 1240px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    /* Shadows */

    --shadow-sm: 0 5px 15px rgba(0,119,182,.08);
    --shadow-md: 0 12px 30px rgba(0,119,182,.12);
    --shadow-lg: 0 20px 45px rgba(0,119,182,.18);
    --transition: .30s ease;
}

/* ==========================================================================
   RESET
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==========================================================================
   PAGE
   ========================================================================== */

.country-page {
    background: radial-gradient(circle at top right, rgba(241,146,27,.05), transparent 30%), radial-gradient(circle at bottom left, rgba(0,119,182,.05), transparent 35%), var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    min-height: 100vh;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.container {
    width: min(var(--container),100% - 40px);
    margin-inline: auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.country-hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    padding: 50px 0;
    color: #ffffff;
    background: linear-gradient( 120deg, #003b5c 0%, #005f91 45%, #0077b6 100% );
}


    /* Orange premium light effect */

    .country-hero::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        right: -180px;
        top: -220px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(241,146,27,0.55) 0%, rgba(241,146,27,0.25) 35%, transparent 70% );
        z-index: 0;
    }


    /* Bottom orange luxury line */

    .country-hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 6px;
        background: linear-gradient( 90deg, #f1921b, #ffb84d, #f1921b );
        z-index: 2;
    }


    /* Decorative orange glow */

    .country-hero::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        right: -120px;
        top: -180px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(241,146,27,0.35), transparent 65% );
        z-index: 0;
    }



.country-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: auto;
    text-align: center;
}



/* Small label */

.country-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 18px;
    border-radius: 50px;
    background: rgba(241,146,27,0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(241,146,27,0.45);
    color: #ffd08a;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
}



/* Main title */

.country-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem,4vw,3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #ffffff;
}



/* Description */

.country-hero__lede {
    max-width: 680px;
    margin: auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,.92);
}


/* ==========================================================================
   SECTIONS
   ========================================================================== */

.states-section {
    padding: 40px 0;
}

.country-hotels {
    padding: 70px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

    .section-heading h2 {
        position: relative;
        font-family: var(--font-heading);
        font-size: 2.2rem;
        color: var(--color-primary);
        padding-bottom: 14px;
    }

        .section-heading h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 75px;
            height: 4px;
            border-radius: 999px;
            background: linear-gradient( 90deg, var(--color-accent), var(--color-primary) );
        }

.section-heading__hint {
    font-size: .95rem;
    color: var(--color-text-light);
}


/* ==========================================================================
   STATES GRID
   ========================================================================== */

.states-list {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(310px,1fr));
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.state-card {
    margin: 0;
}

/* ==========================================================================
   STATE CARD
   ========================================================================== */

.state-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

    /* Top brand strip */

    .state-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient( 90deg, var(--color-accent), var(--color-primary) );
        z-index: 2;
    }

    .state-item:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(0,119,182,.25);
    }

/* ==========================================================================
   IMAGE
   ========================================================================== */

.state-item__image {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #eef5f8;
}

    .state-item__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease, filter .35s ease;
    }

    /* Blue overlay */

    .state-item__image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to top, rgba(0,119,182,.30), rgba(0,119,182,.08), transparent );
    }

.state-item:hover .state-item__image img {
    transform: scale(1.08);
    filter: saturate(1.05);
}

/* ==========================================================================
   CARD CONTENT
   ========================================================================== */

.state-item__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    flex: 1;
}

/* Left side */

.state-item__content {
    flex: 1;
    min-width: 0;
}

.state-item__name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.state-item__meta {
    display: block;
    margin-top: 8px;
    color: var(--color-text-light);
    font-size: .92rem;
    line-height: 1.5;
}

/* ==========================================================================
   RIGHT ARROW
   ========================================================================== */

.state-item__arrow {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8ef;
    color: var(--color-accent);
    border: 1px solid rgba(241,146,27,.18);
    transition: all .30s ease;
}

    /* Arrow icon */

    .state-item__arrow svg {
        width: 18px;
        height: 18px;
    }

/* Hover */

.state-item:hover .state-item__arrow {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateX(6px);
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.state-item:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

/* =========================================================
   SEO CONTENT SECTION
========================================================= */

.country-seo {
    max-width: 1200px;
    margin: 70px auto 40px;
    padding: 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

    .country-seo h2 {
        font-size: 32px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 20px;
    }

    .country-seo p {
        font-size: 17px;
        line-height: 1.8;
        color: #4b5563;
    }


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    text-align: center;
    padding: 40px;
}

.empty-state__content {
    max-width: 450px;
}

.empty-state h3 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: #6b7280;
}


/* =========================================================
   LOADING ANIMATION
========================================================= */

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.loading-spinner {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 5px solid #e5e7eb;
    border-top-color: #2563eb;
    animation: spin 0.8s linear infinite;
}


@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   CARD ANIMATION
========================================================= */

.country-card,
.state-card,
.city-card {
    animation: fadeUp 0.5s ease forwards;
}


@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   CUSTOM SCROLLBAR
========================================================= */

.country-page::-webkit-scrollbar {
    width: 10px;
}

.country-page::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.country-page::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

    .country-page::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }


/* =========================================================
   RESPONSIVE DESIGN
========================================================= */


@media (max-width: 1024px) {

    .country-hero {
        padding: 70px 30px;
    }


        .country-hero h1 {
            font-size: 42px;
        }


    .country-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }


    .country-seo {
        margin: 50px 25px;
        padding: 30px;
    }
}



@media (max-width: 768px) {

    .country-hero {
        min-height: 300px;
        padding: 40px 20px;
    }


        .country-hero h1 {
            font-size: 34px;
        }


        .country-hero p {
            font-size: 16px;
        }


    .country-hero__inner {
        align-items: center;
    }


    .country-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }


    .country-card {
        border-radius: 18px;
    }


        .country-card img {
            height: 220px;
        }


    .country-seo {
        padding: 25px 20px;
        margin: 35px 15px;
    }


        .country-seo h2 {
            font-size: 26px;
        }
}



@media (max-width: 480px) {


    .country-hero h1 {
        font-size: 28px;
    }


    .country-hero__eyebrow {
        font-size: 12px;
        padding: 6px 14px;
    }


    .country-card img {
        height: 190px;
    }


    .country-card__content h3 {
        font-size: 20px;
    }


    .country-card__content p {
        font-size: 14px;
    }


    .country-seo p {
        font-size: 15px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   HERO OVERLAY ENHANCEMENTS
========================================================= */

.country-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(15, 23, 42, 0.75), rgba(30, 64, 175, 0.45) );
    z-index: 0;
}


.country-hero__inner {
    position: relative;
    z-index: 1;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.country-hero__actions {
    display: flex;
    gap: 18px;
    margin-top: 30px;
}


.country-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.country-btn--primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}


    .country-btn--primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(37, 99, 235, 0.45);
    }



.country-btn--outline {
    border: 2px solid rgba(255,255,255,0.7);
    color: #ffffff;
    background: transparent;
}


    .country-btn--outline:hover {
        background: #ffffff;
        color: #111827;
    }


/* =========================================================
   IMAGE HANDLING
========================================================= */

.country-card__image {
    overflow: hidden;
    position: relative;
}


    .country-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }


.country-card:hover img {
    transform: scale(1.08);
}



.country-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,0.35), transparent );
    opacity: 0;
    transition: opacity 0.3s ease;
}


.country-card:hover
.country-card__image::after {
    opacity: 1;
}



/* =========================================================
   CARD CONTENT DETAILS
========================================================= */


.country-card__content {
    padding: 24px;
}


    .country-card__content h3 {
        margin: 0 0 10px;
        font-size: 24px;
        font-weight: 700;
        color: #111827;
    }


    .country-card__content p {
        margin: 0;
        color: #64748b;
        line-height: 1.6;
    }



.country-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}


.country-card__count {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}



/* =========================================================
   GLOBAL CONTAINER
========================================================= */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}



/* =========================================================
   TEXT UTILITIES
========================================================= */


.text-center {
    text-align: center;
}


.text-muted {
    color: #64748b;
}


.fw-bold {
    font-weight: 700;
}



/* =========================================================
   MOBILE HERO BUTTON FIX
========================================================= */


@media(max-width:768px) {

    .country-hero__actions {
        flex-direction: column;
        width: 100%;
    }


    .country-btn {
        width: 100%;
    }
}



/* =========================================================
   FINAL POLISH
========================================================= */


.country-page {
    overflow-x: hidden;
}


img {
    max-width: 100%;
    display: block;
}


a {
    transition: color 0.3s ease;
}