:root {
    /* Darkened from the #00a3e4 brand blue so text/backgrounds using it meet
       WCAG 2.2 AA contrast (>=4.5:1 on white / with white text). */
    --color-primary: #0c72a8;
    --color-heading: #1267aa;
    /* Pure brand blue: decorative use only (icons, badges) — fails AA as text color. */
    --color-accent: #00a3e4;
    --color-dark: #033566;
    --color-darker: #023669;
    --color-bg-light: #f8f8f8;
    --color-text: #333;
    --font-heading: "Montserrat", Arial, sans-serif;
    --font-body: "Open Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* The UA stylesheet's display:none for [hidden] doesn't reliably win
   against author rules on inline <svg> in every browser — force it rather
   than rely on JS-toggled hidden icons (pause/play, hamburger/close)
   silently double-rendering. */
[hidden] { display: none !important; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 2000;
    background: var(--color-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 4px 4px;
    font-weight: 700;
    transition: top .15s ease;
}
.skip-link:focus {
    top: 0;
    text-decoration: none;
}

/* Visible, high-contrast keyboard focus indicator (SC 2.4.7 / 2.4.11).
   Mouse users never see it; :focus-visible limits it to keyboard/AT use. */
:focus-visible {
    outline: 3px solid #1267aa;
    outline-offset: 2px;
}
.hero-slider :focus-visible,
.hero-banner :focus-visible,
.stats-section :focus-visible,
.testimonials-section :focus-visible,
.lightbox-overlay :focus-visible,
.site-footer :focus-visible {
    outline-color: #fff;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
}

/* Flatter heading hierarchy on the homepage: H2/H3 sit just 2px under H1
   instead of the usual large size drop. */
.home-page h1 { font-size: 36px; }
.home-page h2 { font-size: 34px; }
.home-page h3 { font-size: 34px; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header { border-bottom: 1px solid #eee; }

.site-header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.header-fixed .main-nav {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.header-top {
    width: 100%;
    background: var(--color-bg-light);
    overflow: hidden;
    transition: max-height .3s ease, opacity .25s ease;
}

.header-fixed .header-top.hide-topbar {
    max-height: 0 !important;
    opacity: 0;
}

:root {
    --color-muted: #6b6b6b;
}

.header-top-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 8px 20px;
    font-size: 12px;
    color: var(--color-muted);
}

.header-top-left, .header-top-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.header-top-item { display: flex; align-items: center; gap: 10px; color: var(--color-muted); padding: 6px 0; }
.header-top-item svg.icon-outline { width: 28px; height: 28px; fill: none; stroke: var(--color-accent); stroke-width: 1.2px; flex-shrink: 0; }
.header-top-item .contact-content {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}
.header-top-item .contact-content span {
    display: block;
    letter-spacing: .5px;
}
.header-top-item .contact-title {
    font-size: 12px;
    color: var(--color-muted);
}
.header-top-item .contact-value {
    font-weight: 600;
    color: var(--color-muted);
}
.header-top-item .contact-value a { color: var(--color-muted); }
.header-top-left .header-top-item span { color: var(--color-muted); }

.logo { display: flex; align-items: center; margin: 10px 0; }
.logo img { height: 72px; }

.main-nav { background: #fff; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; flex: 1; justify-content: flex-end; }
.nav-links > li { display: flex; align-items: center; position: relative; }
.nav-links > li > a {
    display: flex; align-items: center;
    padding: 0 15px;
    color: var(--color-dark); font-weight: 600; text-transform: uppercase; font-size: 14px;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    transition: border-color .2s ease;
}
.nav-links > li > a:hover,
.nav-links > li > a[aria-current="page"] { border-bottom-color: var(--color-primary); text-decoration: none; }

.submenu {
    display: none;
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--color-darker);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 5px 12px rgba(0,0,0,.2);
    list-style: none; margin: 0; padding: 10px 0; z-index: 30;
}
.submenu li a {
    display: block; padding: 8px 20px;
    color: #fff; font-weight: 600; font-size: 13px; text-transform: none;
    border-bottom: none !important;
}
.submenu li a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu { display: block; }

.lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 15px;
    padding-left: 20px;
}
.lang-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background: #ddd;
}
.lang-dropdown-toggle {
    display: flex; align-items: center; gap: 4px; background: none; border: none;
    cursor: pointer; font-size: 13px; font-weight: 700; color: var(--color-dark);
    padding: 6px 0;
}
.lang-caret { font-size: 10px; }
.lang-dropdown-menu {
    display: none;
    position: absolute; top: 100%; right: 0; margin: 0;
    background: var(--color-darker);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 5px 12px rgba(0,0,0,.2);
    list-style: none; padding: 10px 0; min-width: 90px; z-index: 20;
}
.lang-dropdown-menu li a {
    display: block; padding: 8px 20px; font-size: 13px; font-weight: 600; color: #fff;
}
.lang-dropdown-menu li a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.lang-dropdown.lang-open .lang-dropdown-menu { display: block; }

.nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
    color: var(--color-dark);
    padding: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
    /* The address/hours/phone/email bar is desktop-only real estate —
       hidden outright on mobile regardless of orientation (not just the
       existing scroll-triggered hide, which only applies once scrolled). */
    .header-top { display: none; }

    .nav-inner { flex-wrap: wrap; }
    .nav-toggle { display: flex; }

    /* Collapsed by default; revealed as a stacked panel below the logo
       row when .nav-open is toggled on by main.js. */
    .nav-links, .lang-dropdown { display: none; width: 100%; }
    .nav-inner.nav-open .nav-links,
    .nav-inner.nav-open .lang-dropdown { display: flex; }
    .main-nav:has(.nav-inner.nav-open) { background: #fff; }

    .nav-links {
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }
    .nav-links > li { flex-direction: column; align-items: stretch; }
    .nav-links > li > a {
        padding: 12px 5px;
        border: none;
    }
    .nav-links > li > a:hover,
    .nav-links > li > a[aria-current="page"] { background: var(--color-bg-light); }
    .submenu { position: static; margin: 0 0 4px; box-shadow: none; }

    .lang-dropdown {
        order: 4;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 15px 0;
        border-top: 1px solid #eee;
    }
    .lang-dropdown::before { display: none; }
    .lang-dropdown-menu {
        position: static;
        box-shadow: none;
        text-align: center;
        margin-top: 10px;
        min-width: 120px;
    }
}

/* Hero slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background: #000;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35); color: #fff; border: none; width: 44px; height: 44px;
    border-radius: 4px; cursor: pointer; padding: 0; z-index: 2;
}
.hero-slider-arrow svg { width: 18px; height: 18px; display: block; }
.hero-slider-arrow:hover { background: rgba(0,0,0,.6); }
.hero-slider-prev { left: 20px; }
.hero-slider-next { right: 20px; }
.hero-slider-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; z-index: 2;
}
/* 24x24 hit area (SC 2.5.8 Target Size Minimum) around a small visual dot. */
.hero-slider-dot {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; cursor: pointer; padding: 0;
}
.hero-slider-dot::before {
    content: '';
    width: 10px; height: 10px; border-radius: 2px; border: 2px solid #fff;
    background: transparent;
}
.hero-slider-dot.active::before { background: #fff; }

.hero-slider-pause {
    position: absolute; bottom: 16px; right: 20px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35); color: #fff; border: none; width: 34px; height: 34px;
    border-radius: 4px; cursor: pointer; padding: 0; z-index: 2;
}
.hero-slider-pause svg { width: 16px; height: 16px; display: block; }
.hero-slider-pause:hover { background: rgba(0,0,0,.6); }

@media (max-width: 900px) {
    .hero-slider { height: 300px; }
}

/* Hero banner */
.hero-banner { background: var(--color-primary); color: #fff; padding: 25px 0; }
.hero-banner-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.hero-banner h2 { color: #fff; margin: 0; font-size: 22px; }

.hero-banner-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
.hero-banner-item { display: flex; align-items: center; gap: 10px; }
.hero-banner-item svg { width: 28px; height: 28px; stroke: #fff; flex-shrink: 0; }
.hero-banner-item .contact-content { margin: 0; font-size: 13px; line-height: 1.3; }
.hero-banner-item .contact-content span { display: block; letter-spacing: .5px; }
.hero-banner-item .contact-title { font-size: 12px; color: rgba(255,255,255,.85); }
.hero-banner-item .contact-value { font-weight: 700; color: #fff; }
.hero-banner-item .contact-value a { color: #fff; }

/* Buttons */
.btn { display: inline-block; padding: 10px 22px; border-radius: 3px; font-weight: 600; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-dark); text-decoration: none; }
.btn-light { background: #fff; color: var(--color-primary); }
.btn-link { font-weight: 600; }

/* Sections */
.section { padding: 50px 0; }
.section:nth-of-type(even) { background-color: var(--color-bg-light); }

.intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.intro-image { width: 100%; border-radius: 4px; }

.cards-grid { display: grid; gap: 25px; }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
.card img { width: 100%; display: block; }
.album-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; }

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 40px 30px;
}
.feature-item { display: flex; align-items: flex-start; gap: 18px; }
.feature-icon-badge {
    flex-shrink: 0;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
}
.feature-icon-badge svg { width: 25px; height: 25px; color: #fff; }
.feature-body h3 { font-size: 18px; margin: 0 0 6px; }
.feature-body p { margin: 0; color: var(--color-text); }

@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; grid-auto-flow: row; }
}

.stats-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #fff;
    padding: 90px 0;
}
.stats-overlay { position: absolute; inset: 0; background: rgba(12, 114, 168, .85); }
.stats-container { position: relative; z-index: 1; }
.stats-section h2 { color: #fff; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stat-number { font-size: 42px; font-weight: 700; color: #fff; }
.stat-label { color: #fff; }

.practical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s ease;
}
.faq-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.faq-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-dark);
    padding: 14px 18px;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; }
.faq-question { flex: 1; }
.faq-chevron { width: 18px; height: 18px; color: #999; flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid #eee; }
.faq-answer {
    padding: 0 18px 0 52px;
    color: var(--color-text);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.faq-item[open] .faq-answer { padding: 14px 18px 18px 52px; }

.testimonials-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #fff;
    padding: 90px 0;
}
.testimonials-overlay { position: absolute; inset: 0; background: rgba(12, 114, 168, .85); }
.testimonials-container { position: relative; z-index: 1; }
.testimonials-section h2 { color: #fff; text-align: center; }
.testimonial { text-align: center; max-width: 600px; margin: 0 auto; }
.testimonial-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.testimonial-message { font-style: italic; color: #fff; }
.testimonial-name { font-weight: 700; color: #fff; }

.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; }
.partners-grid img { max-height: 50px; filter: grayscale(1); opacity: .7; }
.partners-grid img:hover { filter: none; opacity: 1; }

/* Apartment detail */
.apartment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.photo-stack { display: grid; gap: 15px; margin-top: 15px; }
.photo-stack img { width: 100%; border-radius: 4px; }
.amenities-list { padding-left: 20px; }
.reserve-box { margin-top: 30px; padding: 20px; background: var(--color-bg-light); border-radius: 4px; }
.price-note { font-size: 13px; color: #777; }

/* Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-grid-item { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }

/* Footer */
.site-footer { background: #0d141b; color: #cfd8dc; }
.site-footer a { color: #cfd8dc; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; }

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
.location-info h3 { font-size: 18px; }
.location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.location-info-item svg { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.location-map {
    width: 100%;
    min-height: 350px;
    border-radius: 6px;
    overflow: hidden;
    z-index: 0;
}
.contact-map {
    min-height: 400px;
    border-radius: 6px;
    overflow: hidden;
    z-index: 0;
}
.map-logo-marker { filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }

/* Lightbox */
.lightbox-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85);
    align-items: center; justify-content: center; z-index: 1000;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90%; max-height: 85%; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: 20px; right: 30px; background: none; border: none;
    color: #fff; font-size: 36px; cursor: pointer; line-height: 1;
}
.lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.15); color: #fff; border: none; width: 50px; height: 50px;
    border-radius: 50%; cursor: pointer; padding: 0;
}
.lightbox-arrow svg { width: 20px; height: 20px; display: block; }
.lightbox-arrow:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Responsive */
@media (max-width: 900px) {
    .cards-grid-3, .stats-grid, .intro-grid, .apartment-grid, .practical-grid, .contact-grid, .location-grid {
        grid-template-columns: 1fr;
    }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
