:root {
    --bg: #f8f3ec;
    --bg-alt: #f0e6d8;
    --card: #ffffff;
    --ink: #1e2620;
    --ink-soft: #57605a;
    --line: #e4d8c7;
    --primary: #d2693a;
    --primary-dark: #b4532a;
    --olive: #3f4c3a;
    --sun: #f2b544;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px -24px rgba(40, 30, 20, .35);
    --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 76px;
}

/* "locl" off: standard Cyrillic shapes instead of Bulgarian cursive forms */
*, *::before, *::after { box-sizing: border-box; font-feature-settings: "locl" 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.kicker-light { color: var(--sun); }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 .95rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
    transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(210, 105, 58, .7); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--olive); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.full { width: 100%; grid-column: 1 / -1; }

/* Header */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    display: flex; align-items: center;
    transition: background .3s, box-shadow .3s;
}
.site-header.scrolled, body:not(.home) .site-header {
    background: rgba(248, 243, 236, .92); backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.logo svg { width: 36px; height: 36px; }
.logo .sun { fill: var(--sun); }
.logo .house { fill: var(--primary); }
.logo small { display: block; font: 600 .62rem/1 var(--font-body); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-weight: 500; font-size: .95rem; }
.main-nav > a { position: relative; padding: 6px 0; }
.main-nav > a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--primary); transition: width .25s; }
.main-nav > a:hover::after { width: 100%; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.lang-switch a.active { background: var(--ink); color: #fff; }
.nav-toggle { display: none; }

.home .site-header:not(.scrolled) { color: #fff; }
.home .site-header:not(.scrolled) .logo small { color: rgba(255,255,255,.8); }
.home .site-header:not(.scrolled) .lang-switch { border-color: rgba(255,255,255,.4); }
.home .site-header:not(.scrolled) .lang-switch a.active { background: #fff; color: var(--ink); }

/* Hero */
.hero {
    position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
    color: #fff; overflow: hidden; padding-top: var(--header-h);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 8s ease;
}
.hero-media img.active { opacity: 1; transform: scale(1); }
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,24,20,.45) 0%, rgba(20,24,20,.15) 35%, rgba(20,24,20,.75) 100%);
}
.hero-content, .hero-facts { position: relative; z-index: 2; }
.hero-content { padding-bottom: 48px; max-width: 1200px; }
.hero-content h1 { max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-content p { max-width: 560px; font-size: 1.15rem; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-facts {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,.25); padding: 26px 0 34px;
}
.hero-facts div { display: flex; flex-direction: column; padding-right: 16px; }
.hero-facts strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.hero-facts span { font-size: .85rem; opacity: .8; }

/* Apartment cards */
.apt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.apt-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .35s, box-shadow .35s;
}
.apt-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(40,30,20,.45); }
.apt-media {
    position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr;
    gap: 4px; aspect-ratio: 16 / 10; overflow: hidden;
}
.apt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.apt-media .m0 { grid-row: 1 / 3; }
.apt-card:hover .apt-media img { transform: scale(1.04); }
.photo-count {
    position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); color: var(--ink);
    font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.apt-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.apt-body h3 { font-size: 2rem; margin-bottom: 6px; }
.apt-title { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 10px; }
.apt-address { display: flex; gap: 6px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.apt-address svg { width: 18px; height: 18px; fill: var(--primary); flex: none; margin-top: 2px; }
.chips { list-style: none; padding: 0; margin: 6px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--bg-alt); padding: 6px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--olive); }
.chips-lg li { font-size: .92rem; padding: 9px 16px; background: #fff; border: 1px solid var(--line); }
.apt-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }

/* About */
.about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.about-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-collage .c0 { grid-row: 1 / 3; }
.sun-badge {
    position: absolute; right: -14px; bottom: -22px; background: var(--ink); color: #fff;
    padding: 16px 20px; border-radius: var(--radius); font-weight: 600; font-size: .9rem;
    display: flex; align-items: center; gap: 10px; max-width: 240px; box-shadow: var(--shadow);
}
.sun-badge span { color: var(--sun); font-size: 1.8rem; line-height: 1; }
.about-text p { color: var(--ink-soft); font-size: 1.06rem; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.feature-list li::before {
    content: '✓'; flex: none; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .8rem;
}

/* Explore */
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.explore-item { background: var(--bg); padding: 30px 26px; transition: background .3s; }
.explore-item:hover { background: #fff; }
.explore-item .num { font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 1rem; }
.explore-item h3 { margin: 10px 0 8px; font-size: 1.18rem; }
.explore-item p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* Booking */
.booking { background: var(--bg-alt); }
.booking .section-head { margin-bottom: 36px; }
.booking-frame {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--line); padding: clamp(8px, 2vw, 24px); overflow: hidden;
}

/* Contact band */
.contact { background: var(--olive); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.contact-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: center; }
.contact .kicker { color: var(--sun); }
.contact h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 20px 32px; justify-content: end; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(255,255,255,.1); fill: var(--sun); flex: none; }
.contact-list small { display: block; font-size: .74rem; opacity: .7; text-transform: uppercase; letter-spacing: .1em; }
.contact-list a, .contact-list span { font-weight: 600; font-size: 1.02rem; white-space: nowrap; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr auto; gap: 32px; align-items: start; }
.logo-light { color: #fff; margin-bottom: 12px; }
.logo-light small { color: rgba(255,255,255,.6); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin: 0 0 4px; color: #fff; font: 700 .78rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.footer-col a { word-break: break-word; }
.footer-col a:hover { color: #fff; }
.footer-badge img { width: auto; max-width: 100%; }
.copyright {
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; font-size: .85rem;
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.powered { display: inline-flex; align-items: center; gap: 10px; opacity: .85; transition: opacity .2s; }
.powered:hover { opacity: 1; }
.powered img { height: 30px; width: auto; }
.mobile-book { display: none; }

/* Apartment page */
.apt-hero { padding-top: calc(var(--header-h) + 28px); }
.back-link { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 18px; }
.back-link:hover { color: var(--primary); }
.apt-hero-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.apt-hero-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 6px; }
.apt-hero-head .apt-title { font-size: 1.15rem; margin-bottom: 8px; }
.mosaic {
    position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
    gap: 8px; height: min(70vh, 560px); border-radius: var(--radius); overflow: hidden;
}
.mosaic .mo { overflow: hidden; }
.mosaic .mo0 { grid-row: 1 / 3; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; }
.mosaic .mo:hover img { transform: scale(1.04); filter: brightness(.92); }
.all-photos { position: absolute; right: 18px; bottom: 18px; box-shadow: var(--shadow); }

.apt-details { padding-top: 56px; }
.details-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.details-main h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 56px; }
.prose { font-size: 1.08rem; color: var(--ink-soft); margin-top: 24px; }
.prose p:first-child::first-letter { font-family: var(--font-head); font-weight: 800; font-size: 3.2em; float: left; line-height: .9; margin: 6px 10px 0 0; color: var(--primary); }
.amenity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.amenity { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.amenity h3 { font-size: 1.12rem; margin-bottom: 6px; }
.amenity p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
.distance-list { list-style: none; padding: 0; margin: 0; }
.distance-list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.distance-list strong { color: var(--olive); text-align: right; }
.details-side { position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; font-size: .94rem; }
.check-list li::before { content: '✓'; color: var(--primary); font-weight: 700; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.times div { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; }
.times small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.side-phone { display: block; text-align: center; margin-top: 14px; font-weight: 700; color: var(--olive); }

.gallery-section { background: var(--bg-alt); }
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.04); }

.map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; filter: saturate(.85); }
.map-btn { position: absolute; left: 18px; bottom: 18px; box-shadow: var(--shadow); }

.other-apt { padding-top: 0; }
.other-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 380px; }
.other-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.other-card:hover img { transform: scale(1.04); }
.other-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,20,.8), rgba(20,24,20,.1)); }
.other-card > div { position: relative; z-index: 2; padding: clamp(28px, 5vw, 60px); max-width: 560px; }
.other-card p { opacity: .85; font-size: 1.1rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,17,15,.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; line-height: 1; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; color: rgba(255,255,255,.7); font-size: .9rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* The `font` shorthand resets font-feature-settings, so re-apply it where the shorthand is used */
.btn, .logo small, .footer-col h4 { font-feature-settings: "locl" 0; }

/* Responsive */
@media (max-width: 1024px) {
    .contact-band { grid-template-columns: 1fr; }
    .contact-list { justify-content: start; }
    .explore-grid { grid-template-columns: repeat(2, 1fr); }
    .details-grid { grid-template-columns: 1fr; }
    .details-side { position: static; }
}
@media (max-width: 860px) {
    :root { --header-h: 66px; }
    .nav-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 6px;
        width: 44px; height: 44px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px;
    }
    .nav-toggle span { display: block; height: 2px; background: currentColor; transition: transform .3s; }
    .nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
    .nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: flex-start; gap: 4px;
        background: var(--bg); color: var(--ink); padding: 18px 16px 26px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
        transform: translateY(-120%); transition: transform .35s; z-index: -1;
    }
    .main-nav > a { font-size: 1.2rem; padding: 10px 0; }
    .nav-open .main-nav { transform: none; }
    .nav-open .site-header { background: var(--bg); color: var(--ink) !important; }
    .home .nav-open .site-header .lang-switch a.active, .nav-open .lang-switch a.active { background: var(--ink); color: #fff; }
    .lang-switch { margin-top: 12px; border-color: var(--line) !important; }
    .apt-grid, .about-grid, .contact-band { grid-template-columns: 1fr; }
    .contact-list { grid-template-columns: 1fr; }
    .contact-list a, .contact-list span { white-space: normal; overflow-wrap: anywhere; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .hero-facts { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
    .about-collage { grid-template-rows: 160px 160px; }
    .sun-badge { right: 8px; }
    .apt-hero-head { flex-direction: column; align-items: flex-start; }
    .apt-hero-head .btn { display: none; }
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 70vw; min-height: 300px; }
    .mosaic .mo0 { grid-row: auto; grid-column: 1 / 3; }
    .mosaic .mo3, .mosaic .mo4 { display: none; }
    .amenity-grid { grid-template-columns: 1fr; }
    .mobile-book {
        display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40;
        opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
    }
    .show-mobile-book .mobile-book { opacity: 1; transform: none; pointer-events: auto; }
    .site-footer { padding-bottom: 90px; }
}
@media (max-width: 560px) {
    .explore-grid { grid-template-columns: 1fr; }
    .apt-body { padding: 22px; }
    .hero-content p { font-size: 1.02rem; }
    .btn { padding: 13px 22px; }
    .distance-list li { flex-direction: column; gap: 2px; }
    .distance-list strong { text-align: left; }
    .lb-prev, .lb-next { top: auto !important; bottom: 14px; transform: none !important; }
}
