:root {
    --navy: #183f64;
    --blue: #2d6da3;
    --pale: #eaf3f9;
    --line: #d8e5ef;
    --ink: #244765
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--ink);
    font: 14px 'DM Sans', Arial, sans-serif;
    background: #fff
}

h1,
h2,
h3,
.serif {
    font-family: 'Playfair Display', Georgia, serif
}

a {
    color: var(--blue)
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e2ebf2
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--navy)
}

.brand-mark {
    width: 52px;
    height: 42px
}

.brand-name {
    font: 17px 'Playfair Display', serif;
    letter-spacing: 3px;
    line-height: 1.05
}

.brand-name small {
    display: block;
    font: 9px 'DM Sans', sans-serif;
    letter-spacing: 4px;
    margin-top: 4px
}

.navbar-nav .nav-link {
    font-size: 12px;
    color: #294f73;
    padding: .8rem .85rem !important
}

.navbar-nav .nav-link.active {
    color: var(--blue);
    border-bottom: 2px solid var(--blue)
}

.hero {
    min-height: 350px;
    position: relative;
    overflow: hidden;
    background: #e9f1f5
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(250, 249, 244, .98), rgba(250, 249, 244, .9) 31%, rgba(250, 249, 244, .48) 48%, transparent 72%)
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 38px;
    padding-bottom: 22px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 700
}

.hero h1 {
    font-size: clamp(2.7rem, 4.5vw, 3.7rem);
    line-height: 1.04;
    color: #1c4266;
    margin: 14px 0
}

.hero-copy {
    max-width: 390px;
    font-size: 13px;
    line-height: 1.65
}

.hero-features {
    display: flex;
    max-width: 470px;
    margin-top: 20px
}

.hero-feature {
    flex: 1;
    text-align: center;
    padding: 0 8px;
    border-right: 1px solid #b5c8d8;
    font-size: 10px;
    line-height: 1.4
}

.hero-feature:first-child {
    padding-left: 0
}

.hero-feature:last-child {
    border: 0
}

.hero-feature svg {
    display: block;
    width: 33px;
    height: 33px;
    margin: 0 auto 7px;
    fill: none;
    stroke: var(--navy);
    stroke-width: 1.7
}

.search-strip {
    padding: 19px 0;
    border-bottom: 1px solid #e6eef4
}

.search-box {
    border: 1px solid #c7d9e8;
    border-radius: 5px;
    min-height: 42px
}

.search-box svg {
    width: 19px;
    height: 19px;
    stroke: #386b96;
    fill: none;
    stroke-width: 1.8
}

.search-box input {
    border: 0;
    box-shadow: none !important;
    font-size: 12px
}

.search-button {
    min-width: 115px;
    font-size: 12px;
    border-radius: 0 4px 4px 0;
    background: var(--blue);
    border-color: var(--blue)
}

.catalog {
    padding: 30px 0;
    background: linear-gradient(#fbfdfe, #f5f9fc)
}

.section-title {
    font-size: 25px;
    color: #1c466f;
    margin: 0 0 4px
}

.section-subtitle {
    font-size: 12px;
    color: #426381;
    margin: 0
}

.view-toggle {
    border: 1px solid var(--line);
    background: white;
    color: var(--blue);
    border-radius: 4px;
    padding: 5px 8px
}

.view-toggle.active {
    background: var(--blue);
    color: white
}

.country-card,
.featured-card {
    height: 100%;
    background: #fff;
    border: 1px solid #d7e4ee;
    border-radius: 5px;
    overflow: hidden;
    transition: .18s
}

.country-card:hover,
.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px #1a436610
}

.map-thumb {
    height: 112px;
    display: block;
    width: 100%;
    overflow: hidden;
    background: #f4f7f5
}

.map-thumb svg {
    width: 100%;
    height: 100%;
    display: block
}

.country-card-body {
    padding: 9px 10px 10px
}

.country-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #183f65;
    text-decoration: none;
    font: 600 14px 'Playfair Display', serif
}

.country-count {
    font-size: 10px;
    color: #607b95;
    margin: 5px 0 8px
}

.small-link {
    font-size: 10px;
    color: #2d6da5;
    text-decoration: underline
}

.sidebar-box {
    background: #eaf3f9;
    border: 1px solid #e2edf5;
    border-radius: 5px;
    padding: 17px
}

.sidebar-title {
    font-size: 16px;
    line-height: 1.2;
    margin: 0
}

.compass {
    width: 42px;
    height: 42px;
    color: var(--blue);
    flex-shrink: 0
}

.sidebar-copy {
    font-size: 11px;
    line-height: 1.6;
    color: #3b5e7e;
    margin: 13px 0
}

.btn-outline-primary {
    font-size: 11px;
    color: var(--navy);
    border-color: #5b8db6
}

.popular-title {
    font: 14px 'Playfair Display', serif;
    margin: 18px 0 8px 8px
}

.region-list {
    border-radius: 5px;
    overflow: hidden;
    background: #eef5fa
}

.region-list a {
    display: flex;
    gap: 8px;
    padding: 10px 11px;
    border-bottom: 1px solid #dce8f1;
    text-decoration: none;
    font-size: 10px;
    color: #365d7f
}

.region-list a:last-child {
    border: 0
}

.region-count {
    margin-left: auto
}

.photo-card {
    margin-top: 17px;
    padding: 6px;
    border: 1px solid #dce8f1;
    background: white;
    border-radius: 5px
}

.photo {
    height: 140px;
    width: 100%;
    object-fit: cover
}

.photo-content {
    padding: 10px 9px 7px
}

.photo-content h3 {
    font-size: 16px;
    margin: 0 0 3px
}

.photo-content p {
    color: #627e97;
    font-size: 10px;
    margin-bottom: 7px
}

.featured {
    padding: 29px 0;
    background: #eaf3f9
}

.featured .eyebrow {
    font-size: 9px;
    letter-spacing: 2px
}

.featured-card .map-thumb {
    height: 92px
}

.featured-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 10px
}

.footer {
    background: linear-gradient(110deg, #173b5e, #244f74);
    color: #eaf2f8;
    padding: 18px 0 15px
}

.footer .brand {
    color: white
}

.footer .brand-mark {
    width: 43px;
    height: 34px
}

.footer .brand-name {
    font-size: 14px
}

.footer .brand-name small {
    font-size: 8px
}

.footer-tagline {
    font-size: 11px;
    color: #d4e2ee;
    text-align: center
}

.socials {
    display: flex;
    justify-content: flex-end;
    gap: 9px
}

.socials a {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #397fae;
    color: white;
    text-decoration: none;
    font-weight: 700
}

.footer-bottom {
    border-top: 1px solid #ffffff40;
    margin-top: 15px;
    padding-top: 11px;
    font-size: 10px;
    color: #d5e3ef
}

.footer-bottom a {
    color: #e5eef6;
    text-decoration: none;
    margin-right: 10px
}

.copyright {
    text-align: right
}

@media(max-width:991px) {
    .hero {
        min-height: 390px
    }

    .hero:after {
        background: linear-gradient(90deg, rgba(250, 249, 244, .98), rgba(250, 249, 244, .86) 50%, #faf9f440)
    }

    .sidebar {
        margin-top: 22px
    }
}

@media(max-width:575px) {
    .hero {
        min-height: 480px
    }

    .hero-photo {
        object-position: 62% center
    }

    .hero:after {
        background: linear-gradient(90deg, #faf9f4f5, #faf9f4d9 72%, #faf9f455)
    }

    .hero h1 {
        font-size: 2.65rem
    }

    .hero-feature {
        padding: 0 4px;
        font-size: 9px
    }

    .hero-feature svg {
        width: 29px;
        height: 29px
    }

    .catalog {
        padding-top: 24px
    }

    .country-title {
        font-size: 13px
    }

    .footer-tagline {
        text-align: left;
        margin-top: 12px
    }

    .socials {
        justify-content: flex-start;
        margin-top: 10px
    }

    .copyright {
        text-align: left;
        margin-top: 8px
    }
}



 .gallery-page {
            padding-top: 12px;
            padding-bottom: 50px;
        }

        /* TITLE */

        .photo-title {
            font-size: 30px;
            font-weight: 600;
            margin-bottom: 5px;
            color: #203b5d;
        }


        /* PHOTO */

        .photo-container {
            position: relative;
            margin-top: 22px;
            background: #f1f4f8;
            border-radius: 8px;
            overflow: hidden;
        }

        .main-photo {
            display: block;
            width: 100%;
            height: auto;
            object-fit: contain;
            cursor: zoom-in;
        }

        /* COUNTER */

        .photo-counter {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(15, 39, 65, .85);
            color: #fff;
            padding: 7px 17px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 600;
        }

        /* NAVIGATION */

        .photo-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 60px;
            border: none;
            border-radius: 30px;
            background: rgba(20, 35, 50, .65);
            color: #fff;
            font-size: 27px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background .2s;
        }

        .photo-nav:hover {
            background: var(--primary);
        }

        .photo-prev {
            left: 15px;
        }

        .photo-next {
            right: 15px;
        }

        /* LOCATION BAR */

        .photo-info {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #edf4fc;
            padding: 13px 20px;
            margin-top: 15px;
            border-radius: 7px;
            color: #23466f;
            font-size: 15px;
        }

        .photo-info i {
            color: var(--primary);
            font-size: 19px;
        }

        /* BACK BUTTON */

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-top: 30px;
            padding: 12px 22px;
            background: var(--primary);
            color: #fff;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: background .2s;
        }

        .back-button:hover {
            background: var(--primary-dark);
            color: #fff;
        }

        /* FULLSCREEN */

        .fullscreen-view {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 2000;
            background: rgba(0, 0, 0, .94);
            align-items: center;
            justify-content: center;
            padding: 30px;
        }

        .fullscreen-view.active {
            display: flex;
        }

        .fullscreen-image {
            max-width: 95%;
            max-height: 90vh;
            object-fit: contain;
        }

        .fullscreen-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #fff;
            background: none;
            border: none;
            font-size: 38px;
        }

        .fullscreen-view .photo-nav {
            position: fixed;
        }

        /* MOBILE */

        @media (max-width: 768px) {

            .photo-title {
                font-size: 23px;
            }

            .photo-container {
                margin-left: -12px;
                margin-right: -12px;
                border-radius: 0;
            }

            .main-photo {
                max-height: 65vh;
            }

            .photo-nav {
                width: 38px;
                height: 48px;
                font-size: 22px;
            }

            .photo-prev {
                left: 8px;
            }

            .photo-next {
                right: 8px;
            }

            .fullscreen-view {
                padding: 10px;
            }

            .fullscreen-image {
                max-width: 100%;
            }

        }