:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --header-bg: #212529;
    --footer-bg: #212529;
    --accent-color: #007bff;
    --card-gap: 2.5rem;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
}

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

html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ─── Intro Video ─────────────────────────────────────────── */
.intro-video-wrapper {
    width: min(100%, 560px);
    background: #000000;
    line-height: 0;
    position: relative;
    order: 2;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(9, 43, 85, 0.2);
}

.intro-video {
    display: block;
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 16px;
}

.intro-replay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #0056b3;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.intro-replay-btn[hidden] {
    display: none;
}

.intro-replay-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 28px rgba(0, 86, 179, 0.25);
    background: #ffffff;
}

.intro-replay-btn:active {
    transform: translate(-50%, -50%) scale(0.96);
}

/* ─── Header ─────────────────────────────────────────────── */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-color);
    padding: calc(1rem + var(--safe-area-top)) 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2.4vw, 1.5rem);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 86, 179, 0.2));
    transition: transform 0.3s ease;
}

.logo h1:hover .logo-icon {
    transform: scale(1.08);
}

.header-right {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.header-contact {
    text-align: right;
}

.header-contact p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.85rem;
    color: #0f3f74;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.header-contact a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.header-contact a:hover,
.header-contact a:focus-visible {
    color: #003d82;
    text-decoration: underline;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.lang-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.lang-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

main {
    background: url('../img/background.jpg') center top / cover no-repeat;
    background-attachment: fixed;
}

/* iOS Safari does not render background-attachment: fixed reliably. */
@supports (-webkit-touch-callout: none) {
    main {
        background-attachment: scroll;
    }
}

.intro-embed {
    width: 50%;
    min-height: 29vh;
    margin: 0 auto;
    background: transparent;
}

.intro-embed iframe {
    display: block;
    width: 100%;
    height: 29vh;
    min-height: 210px;
    border: 0;
}

.point-embed {
    width: 100%;
    padding: clamp(2rem, 6vw, 4rem) 0;
}

.point-embed-shell {
    width: min(620px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 48px rgba(9, 43, 85, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: hidden;
}

.point-embed iframe {
    display: block;
    width: 100%;
    height: clamp(360px, 52vh, 560px);
    border: 0;
}

.hero {
    background: transparent;
    contain: layout paint style;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 86, 179, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 123, 255, 0.08) 0%, transparent 50%);
    top: -25%;
    left: -25%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-copy {
    display: flex;
    order: 1;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(9, 43, 85, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-content {
    color: var(--primary-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    animation: slideInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.hero-content p {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    max-width: 60ch;
    margin: 0;
    font-weight: 500;
    color: rgba(0, 56, 130, 0.9);
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inspired by Uiverse radial action button, scoped for hero services */
.hero-service-buttons {
    position: relative;
    display: grid;
    place-items: center;
    width: fit-content;
    height: fit-content;
    transition: 0.3s ease;
    border-radius: 50%;
    margin-top: 0.5rem;
    align-self: flex-end;
}

.service-main-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    pointer-events: none;
}

.service-side-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    pointer-events: none;
}

.hero-service-buttons .main-button,
.hero-service-buttons .button {
    position: absolute;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: #ffffff;
    color: #1d4f91;
    cursor: pointer;
    transition: translate 0.35s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, opacity 0.25s ease;
}

.hero-service-buttons .main-button {
    position: relative;
    box-shadow: 0 14px 30px rgba(13, 63, 122, 0.36), 7px 7px 14px #d9d9d9, -7px -7px 14px #ffffff;
    z-index: 5;
}

.hero-service-buttons .main-button:hover {
    box-shadow: 0 18px 36px rgba(10, 67, 136, 0.4), 8px 8px 16px #d2d2d2, -8px -8px 16px #ffffff;
}

.hero-service-buttons .button {
    opacity: 0;
    pointer-events: none;
    box-shadow: 5px 5px 12px rgba(202, 202, 202, 0), -5px -5px 12px rgba(255, 255, 255, 0);
}

.hero-service-buttons.is-open .button {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 12px 28px rgba(13, 63, 122, 0.28), 6px 6px 12px #d7d7d7, -6px -6px 12px #ffffff;
}

.hero-service-buttons.is-open .architecture-button {
    translate: -70px 52px;
}

.hero-service-buttons.is-open .industry-button {
    translate: 0 78px;
}

.hero-service-buttons.is-open .terrain-button {
    translate: 70px 52px;
}

.hero-service-buttons .architecture-button:hover {
    background: #2f8cff;
    color: #ffffff;
}

.hero-service-buttons .industry-button:hover {
    background: #1d66d1;
    color: #ffffff;
}

.hero-service-buttons .terrain-button:hover {
    background: #0f4d87;
    color: #ffffff;
}

.architecture-button {
    transition-delay: 0.02s;
}

.industry-button {
    transition-delay: 0.08s;
}

.terrain-button {
    transition-delay: 0.14s;
}

.services-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 15%, rgba(0, 86, 179, 0.08), transparent 40%),
        radial-gradient(circle at 90% 75%, rgba(0, 123, 255, 0.06), transparent 36%);
    pointer-events: none;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary-color);
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.2s forwards;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--card-gap);
    perspective: 1000px;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 
                0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFade 0.7s ease-out forwards;
}

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

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.service-media {
    height: 180px;
    border-radius: 14px;
    margin: -0.5rem -0.5rem 1.5rem;
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
}

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

.service-media-architecture {
    background-image: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)), url('../img/bim_model.jpg');
    background-position: center 28%;
}

.service-media-industry {
    background-image: linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)), url('../img/kieutruongphoto-computer-7775457.jpg');
    background-position: center;
}

.service-media-terrain {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../img/dgm.png');
    background-position: center;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15), 
                0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 86, 179, 0.2);
}

.service-card.service-highlight {
    border-color: rgba(0, 86, 179, 0.6);
    background: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.3),
                0 20px 48px rgba(0, 86, 179, 0.2);
    animation: serviceGlow 0.8s ease forwards;
}

@keyframes serviceGlow {
    0% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 0 0 0px rgba(0, 86, 179, 0.6), 0 8px 24px rgba(0, 0, 0, 0.08);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 0 0 10px rgba(0, 86, 179, 0.08), 0 20px 48px rgba(0, 86, 179, 0.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.3), 0 20px 48px rgba(0, 86, 179, 0.2);
    }
}

.service-card.service-highlight::after {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #0056b3, #007bff);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card ul {
    margin-left: 1.2rem;
}

.service-card li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.about {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    content-visibility: auto;
    contain-intrinsic-size: 760px;
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(1.2rem, 3vw, 2rem);
}

.about-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--card-gap);
    margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
    width: 100%;
}

.about-title-wrap {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    padding: clamp(1rem, 2.4vw, 1.6rem);
    background: transparent;
}

.about-title {
    text-align: center;
    margin: 0;
    font-size: clamp(1.45rem, 3.8vw, 2.25rem);
    opacity: 1;
    animation: none;
}

.no-wrap {
    white-space: nowrap;
}

.about-photo-card {
    grid-column: 3;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    box-shadow: none;
    overflow: hidden;
}

.about-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 28%;
}

.about-intro {
    margin: clamp(0.8rem, 2vw, 1.2rem) 0 clamp(1.2rem, 2.6vw, 1.8rem);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 86, 179, 0.08);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    animation: slideInUpFade 0.8s ease-out 0.3s forwards;
}

.about-content-heading {
    flex: 0 0 100%;
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    line-height: 1.35;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.about-content:hover {
    border-color: rgba(0, 86, 179, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.about-location-card {
    flex: 0 0 100%;
}

.about-location-trigger {
    width: min(100%, 760px);
    margin: 0 auto;
    display: block;
    border: 1px solid rgba(0, 86, 179, 0.16);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(12, 47, 96, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-location-trigger:hover,
.about-location-trigger:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(12, 47, 96, 0.24);
}

.about-location-image {
    display: block;
    width: 100%;
    height: auto;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 1rem;
}

.about-info {
    flex: 1;
    padding-left: 2rem;
    border-left: 2px solid rgba(0, 86, 179, 0.2);
}

.about-info h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-info p {
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 0.95rem;
}
.about-info a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.about-info a:hover,
.about-info a:focus-visible {
    color: #003d82;
    text-decoration: underline;
}

footer {
    background: linear-gradient(135deg, #1a1f2e 0%, #212529 100%);
    color: var(--white);
    content-visibility: auto;
    contain-intrinsic-size: 220px;
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
}

.legal-links {
    margin-top: 0.8rem;
    display: inline-flex;
    gap: 0.8rem;
    align-items: center;
    opacity: 1;
}

.legal-links a {
    color: #a9d7ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
    text-decoration: underline;
    color: #ffffff;
}

.cookie-settings-link {
    color: #a9d7ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
    text-decoration: underline;
    color: #ffffff;
}

.legal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: calc(1rem + var(--safe-area-top)) calc(1rem + var(--safe-area-right)) calc(1rem + var(--safe-area-bottom)) calc(1rem + var(--safe-area-left));
    background: rgba(8, 20, 39, 0.6);
    backdrop-filter: blur(6px);
}

.legal-overlay[hidden] {
    display: none;
}

.legal-dialog {
    width: min(980px, 100%);
    height: min(88vh, 820px);
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 54px rgba(8, 20, 39, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.legal-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

.legal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #174b8d;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(12, 47, 96, 0.25);
    z-index: 2;
}

.legal-close:hover {
    background: #174b8d;
    color: #ffffff;
}

.location-overlay {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: grid;
    place-items: center;
    padding: calc(1rem + var(--safe-area-top)) calc(1rem + var(--safe-area-right)) calc(1rem + var(--safe-area-bottom)) calc(1rem + var(--safe-area-left));
    background: rgba(0, 0, 0, 0.78);
}

.location-overlay[hidden] {
    display: none;
}

.location-dialog {
    width: min(1100px, 100%);
    max-height: 92vh;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0f1722;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55);
}

.location-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: auto;
    transform: none;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    background: rgba(10, 20, 33, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #eaf4ff;
    font-size: 0.7rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
}

.location-hint-item {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.location-hint-svg {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a9d7ff;
}

.location-hint-separator {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.62rem;
}

.location-overlay-image {
    display: block;
    width: 100%;
    max-height: 92vh;
    object-fit: contain;
    background: #0f1722;
    transform-origin: center center;
    transition: transform 0.18s ease-out;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    cursor: zoom-in;
}

.location-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #174b8d;
    font-size: 2rem;
    line-height: 0.9;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.location-close:hover,
.location-close:focus-visible {
    background: #174b8d;
    color: #ffffff;
}

body.lang-de .location-hint [data-lang="de"],
body.lang-it .location-hint [data-lang="it"] {
    display: inline;
}

.back-to-top {
    position: fixed;
    right: calc(clamp(0.9rem, 2.2vw, 1.5rem) + var(--safe-area-right));
    bottom: calc(clamp(0.9rem, 2.2vw, 1.5rem) + var(--safe-area-bottom));
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #0056b3, #1a76d2);
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2100;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    box-shadow: 0 10px 22px rgba(7, 60, 120, 0.35);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top:hover {
    box-shadow: 0 14px 26px rgba(7, 60, 120, 0.45);
}

.back-to-top img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner {
    position: fixed;
    left: calc(clamp(1rem, 2vw, 1.5rem) + var(--safe-area-left));
    right: calc(clamp(1rem, 2vw, 1.5rem) + var(--safe-area-right));
    bottom: calc(clamp(1rem, 2vw, 1.5rem) + var(--safe-area-bottom));
    z-index: 2050;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__content {
    width: min(960px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 86, 179, 0.14);
    box-shadow: 0 18px 42px rgba(11, 36, 71, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
}

.cookie-banner__text {
    margin: 0;
    color: #1f2f44;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.cookie-banner__text a {
    color: #0056b3;
    font-weight: 700;
    text-decoration: none;
}

.cookie-banner__text a:hover,
.cookie-banner__text a:focus-visible {
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner__button {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cookie-banner__button:hover,
.cookie-banner__button:focus-visible {
    transform: translateY(-1px);
}

.cookie-banner__button--secondary {
    background: #eef4fb;
    border-color: rgba(0, 86, 179, 0.12);
    color: #184679;
}

.cookie-banner__button--primary {
    background: linear-gradient(135deg, #0056b3, #1b74d0);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(7, 60, 120, 0.24);
}

.cookie-banner__button--primary:hover,
.cookie-banner__button--primary:focus-visible {
    box-shadow: 0 14px 28px rgba(7, 60, 120, 0.3);
}

[data-lang] {
    display: none;
}

body.lang-de .cookie-banner__button [data-lang="de"],
body.lang-it .cookie-banner__button [data-lang="it"] {
    display: inline;
}

/* Smooth scroll animations */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.lang-de [data-lang="de"] {
    display: block;
}

body.lang-it [data-lang="it"] {
    display: block;
}

/* Inline lang overrides for point section */
body.lang-de .point-control-item [data-lang="de"],
body.lang-de .point-reset-view [data-lang="de"],
body.lang-de .point-legend-title [data-lang="de"] {
    display: inline;
}

body.lang-it .point-control-item [data-lang="it"],
body.lang-it .point-reset-view [data-lang="it"],
body.lang-it .point-legend-title [data-lang="it"] {
    display: inline;
}
