:root {
    --page-bg: #efedea;
    --text-light: #f7f7f5;
    --panel-border: rgba(255, 255, 255, 0.55);
    --nav-bg-top: rgba(180, 196, 200, 0.36);
    --nav-bg-bottom: rgba(92, 122, 132, 0.42);
    --dropdown-top: rgba(168, 204, 184, 0.97);
    --dropdown-bottom: rgba(141, 188, 164, 0.95);
    --muted-light: rgba(255, 255, 255, 0.82);
    --hero-overlay: rgba(11, 20, 28, 0.26);
    --glass-bg: rgba(196, 186, 169, 0.26);
    --glass-border: rgba(255, 255, 255, 0.38);
    --shadow-soft: 0 8px 22px rgba(32, 29, 24, 0.24);
    --shadow-card: 0 10px 30px rgba(19, 20, 23, 0.3);
    --title-dark: #141414;
    --accent-blue: #56a8de;
    --accent-green: #adca35;
}

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

body {
    font-family: "Poppins", sans-serif;
    background: var(--page-bg);
    color: #222;
    overflow-x: hidden;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(121, 150, 161, 0.95) rgba(224, 229, 231, 0.65);
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(233, 237, 239, 0.9) 0%, rgba(216, 224, 227, 0.88) 100%);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(147, 177, 189, 0.97) 0%, rgba(102, 133, 145, 0.97) 100%);
    border-radius: 999px;
    border: 2px solid rgba(233, 237, 239, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 8px rgba(19, 34, 42, 0.25);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(130, 163, 176, 1) 0%, rgba(87, 121, 134, 1) 100%);
}

::-webkit-scrollbar-corner {
    background: rgba(224, 229, 231, 0.8);
}

.navbar {
    position: fixed;
    top: 16px;
    left: 0;
    width: 100%;
    z-index: 30;
    padding: 0 22px;
}

.nav-content {
    max-width: 1120px;
    margin: 0 auto;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, var(--nav-bg-top) 0%, var(--nav-bg-bottom) 100%);
    box-shadow: 0 14px 26px rgba(10, 20, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 56px;
    padding: 12px 24px;
}

.nav-content::-webkit-scrollbar {
    display: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 11px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.48);
    transition: background-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link-active {
    color: #f5fffb;
    background: linear-gradient(180deg, rgba(178, 215, 193, 0.94) 0%, rgba(129, 183, 157, 0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 5px 14px rgba(14, 31, 27, 0.36);
    transform: translateY(-1px);
}

.nav-arrow {
    font-size: 0.67em;
}

.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-dropdown-toggle {
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 14px;
}

.nav-dropdown-toggle:hover {
    color: #f5fffb;
    background: linear-gradient(180deg, rgba(178, 215, 193, 0.94) 0%, rgba(129, 183, 157, 0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 5px 14px rgba(14, 31, 27, 0.36);
    transform: translateY(-1px);
}

.nav-item-dropdown.open .nav-dropdown-toggle {
    background: linear-gradient(180deg, rgba(182, 216, 195, 0.88) 0%, rgba(133, 184, 158, 0.82) 100%);
    color: #f9fffc;
}

.nav-item-dropdown.open .nav-dropdown-toggle .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-toggle .nav-arrow {
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    opacity: 0;
    pointer-events: none;
    display: grid;
    gap: 6px;
    min-width: 214px;
    z-index: 30;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item-dropdown.open .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    text-decoration: none;
    text-align: center;
    color: #eaf8f2;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.2;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(222, 244, 233, 0.88);
    background: linear-gradient(180deg, var(--dropdown-top) 0%, var(--dropdown-bottom) 100%);
    text-shadow: 0 1px 2px rgba(23, 36, 33, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 7px 14px rgba(10, 24, 20, 0.25);
}

.dropdown-item:hover {
    filter: brightness(1.04);
}

.hero {
    position: relative;
    min-height: 740px;
    height: auto;
    background: linear-gradient(180deg, rgba(22, 32, 40, 0.28) 0%, rgba(22, 32, 40, 0.18) 36%, rgba(22, 32, 40, 0.08) 100%),
        url("../img/background/latarbelakang2.jpg") center / cover no-repeat;
    padding: 96px 0 34px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 38px;
}

.greeting {
    width: fit-content;
    margin-top: 24px;
    margin-left: 0;
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.05;
    letter-spacing: 0.1px;
    color: #fff;
    font-weight: 500;
    padding: 16px 26px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: linear-gradient(180deg, rgba(138, 139, 132, 0.78) 0%, rgba(108, 108, 101, 0.76) 100%);
    box-shadow: 0 10px 22px rgba(12, 14, 15, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.glass-card {
    margin-top: 18px;
    border-radius: 28px;
    padding: 30px;
    background: linear-gradient(136deg, rgba(189, 179, 162, 0.35) 0%, rgba(112, 101, 87, 0.26) 100%);
    border: 1px solid rgba(255, 255, 255, 0.46);
    box-shadow:
        0 16px 38px rgba(12, 13, 15, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 0 1px rgba(206, 148, 92, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.slide {
    position: relative;
    min-height: clamp(500px, 45vw, 640px);
    border-radius: 18px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 54px 32px 96px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 14, 20, 0.12) 0%, rgba(8, 14, 20, 0.62) 88%);
}

.slide.active {
    display: flex;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 1040px;
}

.welcome-text {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 4.4vw, 66px);
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.52);
}

.main-title {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: clamp(88px, 9.4vw, 140px);
    letter-spacing: 1.1px;
    line-height: 0.94;
    text-transform: uppercase;
    margin: 8px 0 18px;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 12px 20px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.32);
}

.subtitle {
    text-transform: uppercase;
    font-size: clamp(18px, 1.9vw, 28px);
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.56);
}

.explore-btn {
    margin-top: 68px;
    min-width: clamp(260px, 32vw, 400px);
    border: 2px solid rgba(200, 164, 99, 0.78);
    border-radius: 32px;
    padding: 16px 44px;
    background: linear-gradient(180deg, rgba(99, 105, 114, 0.58) 0%, rgba(48, 52, 58, 0.74) 100%);
    color: #fff;
    font-size: clamp(18px, 1.9vw, 28px);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 9px 17px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.explore-btn:hover {
    filter: brightness(1.08);
}

.slide-indicators {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
    z-index: 4;
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(26, 28, 31, 0.55) inset;
    transform: scale(1.16);
}

.map-section {
    max-width: 1220px;
    margin: 68px auto 0;
    padding: 0 26px;
}

.section-title {
    font-family: "Cinzel", serif;
    color: var(--title-dark);
    font-size: clamp(44px, 5.1vw, 78px);
    line-height: 1;
    margin-bottom: 42px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-content {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 30px;
    align-items: start;
}

.map-embed iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.map-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: clamp(15px, 1.2vw, 22px);
    line-height: 1.74;
    color: #1e1e1f;
    text-align: left;
    padding-top: 10px;
}

.map-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    color: #0f1f1c;
    background: rgba(111, 179, 160, 0.18);
    border: 1px solid rgba(111, 179, 160, 0.42);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.map-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(111, 179, 160, 0.24);
}

.map-cta:active {
    transform: translateY(0);
}

.color-stripes {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 54px;
}

.stripe {
    width: 100%;
}

.stripe-blue {
    height: 30px;
    background: var(--accent-blue);
}

.stripe-white {
    height: 20px;
    background: #fff;
}

.stripe-green {
    height: 26px;
    background: var(--accent-green);
}

.stripe-black {
    height: 3px;
    background: #1a1a1a;
}

.cities-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 86px 0 120px;
    color: #fdfdfd;
    text-align: center;
    overflow: hidden;
}

.cities-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/background/latarbelakang.jpg") center / cover no-repeat;
    transform: scale(1.08);
    filter: blur(10px) brightness(0.62) saturate(1.08);
    will-change: transform, filter;
    z-index: -2;
}

.cities-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.18) 0%, rgba(14, 14, 14, 0.26) 60%, rgba(14, 14, 14, 0.2) 100%);
    z-index: -1;
}

@media (hover: none) and (pointer: coarse) {
    .cities-section::before {
        transform: none;
        filter: brightness(0.62) saturate(1.08);
        will-change: auto;
    }
}

.cities-title {
    margin-bottom: 36px;
    color: #fdfdfd;
    letter-spacing: 0.6px;
}

.cities-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

.wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 20px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.main-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    align-items: start;
}

.left-panel {
    position: relative;
    z-index: 1;
}

.featured-image img,
.featured-image video {
    width: 100%;
    border-radius: 18px;
    display: block;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 26px;
    justify-content: center;
}

.city-card {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(243, 248, 247, 0.72) 100%);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    border: 1px solid rgba(111, 179, 160, 0.28);
}

.city-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 30% 20%, rgba(111, 179, 160, 0.16), transparent 42%),
                radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.2), transparent 35%);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.card-button {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 14px 14px 16px;
    display: grid;
    gap: 10px;
}

.card-title {
    text-align: left;
    font-size: 17px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: #1a1f1d;
    letter-spacing: 0.1px;
}

.card-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 12px;
    background: rgba(111, 179, 160, 0.14);
    color: #0f1f1c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
                0 10px 22px rgba(0, 0, 0, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.city-card:hover,
.city-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(111, 179, 160, 0.45);
}

.city-card:hover::after,
.city-card:focus-within::after {
    opacity: 1;
}

.card-button:hover .card-detail,
.card-button:focus-visible .card-detail {
    background: rgba(111, 179, 160, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.card-button:focus-visible {
    outline: 3px solid rgba(111, 179, 160, 0.36);
    outline-offset: -3px;
}

.right-panel {
    position: relative;
    z-index: 3;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: rgba(255, 255, 255, 0.1);
    min-height: 100%;
    padding: 32px 26px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.panel-placeholder {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: opacity 180ms ease;
}

.right-panel.has-popup .panel-placeholder {
    opacity: 0;
    pointer-events: none;
}

.placeholder-image {
    width: 140px;
    aspect-ratio: 1/1;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(34, 34, 34, 0.12);
    display: grid;
    place-items: center;
}

.question-mark {
    font-size: 74px;
    color: #8c8c8c;
    line-height: 1;
}

.placeholder-lines {
    width: 86%;
    display: grid;
    gap: 10px;
}

.placeholder-lines span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

.section-overlay {
    position: absolute;
    inset: 0;
    border: none;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 2;
    cursor: pointer;
}

.cities-section.panel-active .section-overlay {
    opacity: 1;
    pointer-events: auto;
}

.panel-popup {
    position: absolute;
    inset: 14px;
    width: auto;
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    transform: translateY(34px);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
    z-index: 5;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.right-panel.has-popup .panel-popup {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cities-section.panel-active .right-panel.has-popup {
    background: transparent;
    border-color: rgba(255, 255, 255, 0);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.panel-popup-image img {
    width: 100%;
    border-radius: 14px;
    display: block;
    margin-bottom: 14px;
    height: clamp(180px, 27vw, 340px);
    object-fit: cover;
}

.panel-popup-title {
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 21px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.panel-popup-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #2c2c2c;
    text-align: justify;
}

.panel-popup-close {
    position: absolute;
    top: 9px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #444;
    z-index: 1;
}

.ebook-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 78px 0 84px;
    background: #eeece9;
}

.ebook-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 26px;
}

.ebook-title {
    text-align: center;
    margin-bottom: 28px;
}

.flipbook-wrap {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    gap: 16px;
    align-items: center;
    grid-template-areas: "prev stage next";
}

.flipbook-stage {
    position: relative;
    width: min(100%, clamp(620px, 75vh, 1000px));
    margin: 0 auto;
    aspect-ratio: 1 / 1.414;
    perspective: 1400px;
    grid-area: stage;
}

.flipbook-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(17, 19, 22, 0.2);
    backface-visibility: hidden;
}

.flip-front {
    z-index: 2;
}

.flip-back {
    z-index: 1;
    opacity: 0;
}

.flipbook-stage.is-flipping .flip-back {
    opacity: 1;
}

.flipbook-stage.is-next.is-flipping .flip-front {
    animation: flipOutNext 600ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: left center;
}

.flipbook-stage.is-next.is-flipping .flip-back {
    animation: flipInNext 600ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: right center;
}

.flipbook-stage.is-prev.is-flipping .flip-front {
    animation: flipOutPrev 600ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: right center;
}

.flipbook-stage.is-prev.is-flipping .flip-back {
    animation: flipInPrev 600ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: left center;
}

.flipbook-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(111, 179, 160, 0.9) 0%, rgba(111, 179, 160, 0.72) 100%);
    color: #0f1f1c;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(18, 29, 35, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

#flipPrev {
    grid-area: prev;
    justify-self: start;
}

#flipNext {
    grid-area: next;
    justify-self: end;
}

.flipbook-nav-label {
    display: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.flipbook-nav:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.flipbook-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.flipbook-meta {
    margin-top: 16px;
    text-align: center;
    font-size: 18px;
    color: #1f2a2f;
}

.flipbook-link {
    margin: 10px auto 0;
    display: block;
    width: fit-content;
    text-decoration: none;
    color: #1a4e78;
    font-weight: 600;
}

.flipbook-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pdf-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.pdf-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.pdf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.pdf-modal-card {
    position: relative;
    width: min(1100px, calc(100% - 32px));
    height: min(80vh, 760px);
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

.pdf-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #111;
}

.pdf-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 760px) {
    .pdf-modal-card {
        width: calc(100% - 16px);
        height: 88vh;
    }
}

@keyframes flipOutNext {
    0% { transform: rotateY(0deg); opacity: 1; }
    100% { transform: rotateY(-90deg); opacity: 0; }
}

@keyframes flipInNext {
    0% { transform: rotateY(90deg); opacity: 0; }
    100% { transform: rotateY(0deg); opacity: 1; }
}

@keyframes flipOutPrev {
    0% { transform: rotateY(0deg); opacity: 1; }
    100% { transform: rotateY(90deg); opacity: 0; }
}

@keyframes flipInPrev {
    0% { transform: rotateY(-90deg); opacity: 0; }
    100% { transform: rotateY(0deg); opacity: 1; }
}

.site-footer {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -1px;
    padding: 72px 0 26px;
    color: #f5f5f5;
    overflow: hidden;
    background: url("../img/background/footer.png") center / cover no-repeat;
}

.site-footer::before {
    content: none;
}

.site-footer::after {
    content: none;
}

.footer-shell {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.15fr;
    background: rgba(20, 20, 20, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.footer-col {
    padding: 32px 30px 28px;
}

.footer-col + .footer-col {
    border-left: 1px solid rgba(255, 255, 255, 0.26);
}

.footer-heading {
    font-family: "Cormorant Infant", serif;
    font-size: clamp(28px, 2.6vw, 42px);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 12px;
    color: #fff;
}

.footer-list {
    list-style: none;
    display: grid;
    gap: 5px;
}

.footer-list a {
    color: rgba(245, 245, 245, 0.93);
    text-decoration: none;
    font-size: clamp(15px, 1.1vw, 22px);
    line-height: 1.42;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-list a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.72);
    text-underline-offset: 4px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-bottom: 16px;
}

.footer-logo-block {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.footer-logo {
    display: block;
    width: 100%;
    height: auto;
}

.footer-logo-metland {
    max-width: 158px;
}

.footer-contact p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(245, 245, 245, 0.93);
    font-size: clamp(14px, 1vw, 19px);
    line-height: 1.42;
    margin-bottom: 8px;
}

.footer-contact p i {
    width: 18px;
    margin-top: 3px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}

.footer-socials a {
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    opacity: 0.94;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.footer-col-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo-right {
    margin-top: 0;
    justify-content: center;
}

.footer-logo-uzbek {
    max-width: 500px    ;
}

.footer-description {
    color: rgba(245, 245, 245, 0.92);
    font-size: clamp(15px, 1.04vw, 20px);
    line-height: 1.48;
    text-align: left;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    color: rgba(248, 248, 248, 0.95);
}

.footer-bottom p:first-child {
    font-family: "Cormorant Infant", serif;
    font-size: clamp(27px, 2vw, 34px);
    line-height: 1.1;
}

.footer-bottom p:last-child {
    margin-top: 4px;
    font-size: clamp(14px, 1vw, 17px);
}


@media (max-width: 1100px) {
    .hero {
        min-height: 620px;
        height: auto;
        padding-bottom: 26px;
    }

    .slide {
        min-height: 460px;
    }

    .map-section {
        margin-top: 54px;
    }

    .map-content {
        grid-template-columns: 1fr;
    }

    .map-description {
        text-align: left;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .city-grid {
        justify-items: stretch;
    }

    .city-card {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .navbar {
        top: 10px;
        padding: 0 10px;
    }

    .nav-content {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        min-height: 58px;
        padding: 9px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-content::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 780px) {
    .navbar {
        position: fixed;
        top: 10px;
        padding: 0 10px;
    }

    .nav-content {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        min-height: 58px;
        padding: 9px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-content::-webkit-scrollbar {
        display: none;
    }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%) translateY(-6px);
        opacity: 0;
        pointer-events: none;
        display: grid;
        gap: 6px;
        min-width: 214px;
        z-index: 30;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-item-dropdown.open .dropdown-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .hero {
        height: auto;
        min-height: 0;
        padding: 72px 0 18px;
    }

    .hero-overlay,
    .map-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .greeting {
        margin-left: 0;
        margin-top: 12px;
        font-size: clamp(20px, 6.4vw, 28px);
        line-height: 1.1;
        padding: 10px 14px;
    }

    .glass-card {
        margin-top: 12px;
        border-radius: 18px;
        padding: 10px;
    }

    .slide {
        min-height: 350px;
        padding: 20px 10px 66px;
    }

    .welcome-text {
        font-size: clamp(20px, 5.8vw, 32px);
        letter-spacing: 0.7px;
    }

    .main-title {
        font-size: clamp(42px, 11.5vw, 62px);
        letter-spacing: 0.7px;
        margin: 10px 0 10px;
        line-height: 0.95;
    }

    .subtitle {
        font-size: clamp(12px, 3.6vw, 16px);
        letter-spacing: 0.5px;
    }

    .explore-btn {
        margin-top: 20px;
        min-width: 0;
        padding: 10px 22px;
        font-size: 15px;
        border-radius: 999px;
    }

    .slide-indicators {
        bottom: 20px;
        gap: 10px;
    }

    .indicator {
        width: 12px;
        height: 12px;
    }

    .map-section {
        margin-top: 30px;
    }

    .section-title {
        font-size: clamp(34px, 9.4vw, 50px);
        margin-bottom: 18px;
    }

    .map-description {
        font-size: 14px;
        line-height: 1.58;
    }

    .color-stripes {
        margin-top: 20px;
    }

    .stripe-blue {
        height: 18px;
    }

    .stripe-white {
        height: 10px;
    }

    .stripe-green {
        height: 14px;
    }

    .city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cities-section {
        padding: 44px 0 72px;
    }

    .cities-inner {
        padding: 0 16px;
    }

    .wrapper {
        padding: 12px;
    }

    .right-panel {
        min-height: 360px;
        padding: 16px 12px;
    }

    .panel-popup {
        inset: 10px;
        padding: 12px 12px 14px;
    }

    .panel-popup-image img {
        height: 180px;
    }

    .panel-popup-title {
        font-size: 20px;
    }

    .panel-popup-desc {
        font-size: 15px;
    }

    .ebook-section {
        padding: 50px 0 60px;
    }

    .ebook-shell {
        padding: 0 14px;
    }

    .flipbook-wrap {
        grid-template-columns: 50px minmax(0, 1fr) 50px;
        gap: 10px;
    }

    .flipbook-stage {
        width: min(100%, clamp(285px, 44vh, 450px));
    }

    .flipbook-nav {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .flipbook-meta {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .navbar {
        top: 6px;
        padding: 0 6px;
    }

    .nav-content {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        min-height: 54px;
        padding: 7px 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-content::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;
        font-size: 12px;
        gap: 4px;
        padding: 5px 9px;
    }

    .nav-dropdown-toggle {
        padding: 6px 10px;
    }

    .dropdown-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(-6px);
        min-width: 170px;
        gap: 5px;
        z-index: 40;
    }

    .nav-item-dropdown.open .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }

    .dropdown-item {
        font-size: 12px;
        padding: 7px 10px;
    }

    .map-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .map-embed iframe {
        height: 320px;
    }

    .map-description {
        text-align: justify;
    }

    .city-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 18px;
    }

    .flipbook-stage {
        width: min(100%, 90vw);
    }
}

@media (max-width: 560px) {
    .navbar {
        top: 6px;
        padding: 0 6px;
    }

    .nav-content {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        min-height: 54px;
        padding: 7px 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-content::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;
        font-size: 12px;
        gap: 4px;
        padding: 5px 9px;
    }

    .nav-dropdown-toggle {
        padding: 6px 10px;
    }

    .dropdown-menu {
        top: 65px;
        min-width: 160px;
        gap: 4px;
    }

    .nav-item-dropdown.open .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }

    .dropdown-item {
        font-size: 12px;
        padding: 7px 10px;
    }

    .hero {
        padding-top: 62px;
    }

    .hero-overlay,
    .map-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .greeting {
        font-size: clamp(17px, 5.5vw, 22px);
        padding: 8px 12px;
    }

    .glass-card {
        border-radius: 14px;
        padding: 8px;
    }

    .slide {
        min-height: 300px;
        border-radius: 12px;
        padding: 16px 8px 54px;
    }

    .welcome-text {
        font-size: clamp(16px, 5vw, 22px);
    }

    .main-title {
        font-size: clamp(32px, 12vw, 46px);
        margin: 8px 0 8px;
    }

    .subtitle {
        font-size: 11px;
    }

    .explore-btn {
        margin-top: 14px;
        padding: 8px 16px;
        font-size: 13px;
    }

    .slide-indicators {
        bottom: 14px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .section-title {
        font-size: clamp(28px, 9vw, 38px);
    }

    .map-description {
        font-size: 13px;
        line-height: 1.52;
    }

    .cities-section {
        padding: 34px 0 58px;
    }

    .cities-inner {
        padding: 0 10px;
    }

    .wrapper {
        border-radius: 16px;
        padding: 10px;
    }

    .main-grid {
        gap: 14px;
    }

    .featured-image img,
    .featured-image video {
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .city-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card-image {
        height: 132px;
    }

    .card-title {
        padding: 10px 8px 12px;
        font-size: 15px;
    }

    .card-detail {
        margin-bottom: 12px;
        padding: 7px 16px;
        font-size: 11px;
    }

    .right-panel {
        min-height: 320px;
        border-radius: 14px;
    }

    .placeholder-image {
        width: 104px;
    }

    .question-mark {
        font-size: 58px;
    }

    .panel-popup {
        inset: 8px;
        border-radius: 12px;
        padding: 10px;
    }

    .panel-popup-image img {
        height: 150px;
        border-radius: 10px;
    }

    .panel-popup-title {
        font-size: 18px;
    }

    .panel-popup-desc {
        font-size: 14px;
        line-height: 1.5;
    }

    .ebook-section {
        padding: 38px 0 44px;
    }

    .flipbook-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "stage stage"
            "prev next";
        align-items: start;
        gap: 12px;
    }

    .flipbook-stage {
        grid-area: stage;
        width: min(100%, clamp(250px, 88vw, 520px));
    }

    .flipbook-nav {
        width: 100%;
        min-height: 46px;
        height: auto;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 15px;
        justify-self: stretch;
    }

    .flipbook-nav-label {
        display: inline;
    }

    #flipPrev {
        grid-area: prev;
        order: initial;
    }

    #flipNext {
        grid-area: next;
        order: initial;
    }

    .flipbook-meta {
        margin-top: 12px;
        font-size: 14px;
    }
}

@media (max-width: 980px) {
    .site-footer {
        padding-top: 50px;
    }

    .footer-shell {
        padding: 0 16px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-col-right {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.24);
    }

    .footer-logo-right {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .site-footer {
        padding-top: 42px;
        padding-bottom: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        border-radius: 16px;
        background: rgba(0, 0, 0, 0.6);
    }

    .footer-col {
        padding: 20px 16px;
        text-align: center;
    }

    .footer-col + .footer-col {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.24);
    }

    .footer-col-right {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.24);
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }

    .footer-col-right .footer-contact {
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        width: 100%;
    }

    .footer-col:first-child .footer-list {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .footer-heading {
        font-size: clamp(24px, 6.5vw, 32px);
        margin-bottom: 10px;
        text-align: center;
    }

    .footer-list a {
        font-size: 14px;
        line-height: 1.45;
    }

    .footer-contact p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .footer-logo-metland {
        max-width: 132px;
    }

    .footer-logo-uzbek {
        max-width: 150px;
    }

    .footer-bottom {
        margin-top: 14px;
    }

    .footer-bottom p:first-child {
        font-size: clamp(23px, 6.4vw, 28px);
    }
}

@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .footer-col {
        padding: 18px 14px;
        text-align: center;
    }

    .footer-col + .footer-col {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-logo-block,
    .footer-logo-right {
        justify-content: center;
    }
}

:root {
    scroll-behavior: auto;
}

@media (max-width: 560px) {
    .flipbook-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "stage stage"
            "prev next";
        gap: 10px;
        align-items: start;
    }

    .flipbook-stage {
        width: min(100%, 92vw);
    }

    .flipbook-nav {
        width: 100%;
        height: auto;
        min-height: 46px;
        border-radius: 12px;
    }
}
