/* ============================================================
   Kabakum Sky — Sea-view apartment, Varna
   Modern minimalist coastal theme
   ============================================================ */

:root {
  --ink: #16242c;
  --ink-soft: #51626b;
  --sand: #f6f2ea;
  --cream: #fffdf9;
  --line: #e7e0d4;
  --sea: #0e7c8a;
  --sea-deep: #0a5a66;
  --gold: #b8924f;
  --airbnb: #ff385c;
  --booking: #003b95;
  --white: #ffffff;

  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 10px 30px rgba(22, 36, 44, .08);
  --shadow-lg: 0 24px 60px rgba(22, 36, 44, .16);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--sea-deep); text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-family: var(--sans); font-weight: 700; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 .9rem;
}

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); box-shadow: 0 10px 24px rgba(14,124,138,.32); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-airbnb { background: var(--airbnb); color: #fff; }
.btn-airbnb:hover { box-shadow: 0 10px 24px rgba(255,56,92,.34); }
.btn-booking { background: var(--booking); color: #fff; }
.btn-booking:hover { box-shadow: 0 10px 24px rgba(0,59,149,.34); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff; transition: color .3s ease; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; opacity: .85; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,.92); font-size: .96rem; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: #fff; }

.nav-side { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.9); }
.lang-switch a { color: rgba(255,255,255,.6); padding: 2px 4px; }
.lang-switch a.active, .lang-switch a:hover { color: #fff; }
.lang-switch .sep { opacity: .4; }

/* scrolled state */
.site-header.scrolled { background: rgba(255,253,249,.94); backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(22,36,44,.07); border-bottom-color: var(--line); }
.site-header.scrolled .brand,
.site-header.scrolled .nav-links a,
.site-header.scrolled .lang-switch { color: var(--ink); }
.site-header.scrolled .nav-links a { color: var(--ink-soft); }
.site-header.scrolled .nav-links a:hover { color: var(--ink); }
.site-header.scrolled .lang-switch a { color: var(--ink-soft); }
.site-header.scrolled .lang-switch a.active { color: var(--ink); }
.site-header.scrolled .btn-light { background: var(--sea); color:#fff; border-color: var(--sea); }
.site-header.scrolled .btn-light:hover { background: var(--sea-deep); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; }
.nav-toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: #fff; transition: all .3s ease; }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; padding: var(--nav-h) 0 60px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,30,38,.55) 0%, rgba(10,30,38,.25) 38%, rgba(10,30,38,.72) 100%);
}
.hero-inner { max-width: 720px; }
.hero .tagline { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; opacity: .92; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 560px; opacity: .96; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.25); }
.hero-facts li { list-style: none; font-size: .98rem; font-weight: 500; display: flex; align-items: center; gap: 9px; }
.hero-facts li svg { width: 20px; height: 20px; opacity: .9; }
.hero-facts ul { display: contents; }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .dot { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 12px; position: relative; }
.scroll-hint .dot::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 2px; background: #fff; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* ---------- Highlights strip ---------- */
.highlights { background: var(--sand); }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.highlight {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease;
}
.highlight:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.highlight .ic { width: 42px; height: 42px; color: var(--sea); margin-bottom: 14px; }
.highlight h3 { margin-bottom: 6px; font-size: 1.06rem; }
.highlight p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* ---------- Intro / about ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-text p { color: var(--ink-soft); font-size: 1.06rem; }
.about-media { position: relative; }
.about-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; height: 540px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -26px; left: -26px; background: var(--white);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 20px 26px; text-align: center;
}
.about-badge strong { display: block; font-family: var(--serif); font-size: 2.1rem; color: var(--sea); line-height: 1; }
.about-badge span { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

.room-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.room-list li { display: flex; gap: 15px; }
.room-list .ic { flex: none; width: 26px; height: 26px; color: var(--sea); margin-top: 3px; }
.room-list h3 { font-size: 1.02rem; margin: 0 0 2px; }
.room-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--sand); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); cursor: pointer; aspect-ratio: 4 / 3; background: var(--line); }
.gallery-grid figure.tall { grid-row: span 2; aspect-ratio: 4 / 6; }
.gallery-grid figure.wide { grid-column: span 2; aspect-ratio: 8 / 6; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,30,38,.4));
  opacity: 0; transition: opacity .3s ease;
}
.gallery-grid figure:hover::after { opacity: 1; }
.gallery-grid figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff;
  font-size: .85rem; font-weight: 500; opacity: 0; transform: translateY(6px); transition: all .3s ease; text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Amenities ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 40px; }
.amenity { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.amenity .ic { flex: none; width: 24px; height: 24px; color: var(--sea); }

/* ---------- Location ---------- */
.location { background: var(--sand); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.location-text p { color: var(--ink-soft); font-size: 1.05rem; }
.nearby { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.nearby li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.nearby li span:first-child { font-weight: 500; display: flex; align-items: center; gap: 10px; }
.nearby li span:first-child .ic { width: 19px; height: 19px; color: var(--sea); }
.nearby li span:last-child { color: var(--ink-soft); white-space: nowrap; }
.map-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-facade {
  width: 100%; height: 100%; min-height: 420px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 28px; color: #fff;
  background: linear-gradient(140deg, #0e7c8a, #0a5a66);
  position: relative; overflow: hidden;
}
.map-facade::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.5px); background-size: 22px 22px; opacity: .5; }
.map-facade > * { position: relative; }
.map-facade .pin { width: 50px; height: 50px; }
.map-facade strong { font-family: var(--serif); font-size: 1.3rem; }
.map-facade small { opacity: .85; display: block; margin-top: 2px; }
.map-facade .btn { pointer-events: none; }
.map-facade:focus-visible { outline: 3px solid #ffd36b; outline-offset: -3px; }

/* ---------- Booking CTA ---------- */
.booking { position: relative; color: #fff; text-align: center; overflow: hidden; }
.booking-bg { position: absolute; inset: 0; z-index: -2; }
.booking-bg img { width: 100%; height: 100%; object-fit: cover; }
.booking::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(10,40,48,.78), rgba(10,40,48,.82)); }
.booking h2 { color: #fff; }
.booking p { color: rgba(255,255,255,.9); max-width: 580px; margin: 0 auto 32px; font-size: 1.1rem; }
.booking-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.booking-note { margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,.72); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.contact-info .contact-item { display: flex; gap: 15px; margin-bottom: 24px; align-items: flex-start; }
.contact-info .ic { flex: none; width: 26px; height: 26px; color: var(--sea); margin-top: 4px; }
.contact-info h3 { margin: 0 0 2px; font-size: 1rem; }
.contact-info a, .contact-info p { color: var(--ink-soft); margin: 0; }
.contact-info a:hover { color: var(--sea); }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 6px; color: var(--ink); }
form .field { margin-bottom: 18px; }
form input, form textarea {
  width: 100%; padding: 13px 15px; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); transition: border-color .2s ease, box-shadow .2s ease;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(14,124,138,.12); }
form textarea { resize: vertical; min-height: 130px; }
.form-status { margin-top: 14px; font-size: .95rem; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: var(--sea-deep); }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 60px 0 30px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.footer-brand small { display:block; font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.footer-col h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,18,22,.94); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .95rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 1.4rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media img { height: 420px; }
  .location-grid { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  section { padding: 70px 0; }
  .nav-links, .nav-side .btn { display: none; }
  .nav-toggle { display: block; }
  .nav { gap: 14px; }
  .site-header .nav-side { gap: 12px; }
  .brand { font-size: 1.18rem; white-space: nowrap; }
  .brand small { display: none; }
  .brand .mark { width: 30px; height: 30px; }

  /* mobile menu */
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 24px 20px; box-shadow: var(--shadow); border-bottom: 1px solid var(--line);
  }
  .nav-links.show { display: flex; }
  .nav-links a { color: var(--ink) !important; width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure.wide { grid-column: span 2; }
  .gallery-grid figure.tall { grid-row: span 1; aspect-ratio: 4/3; }
  .amenity-grid { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
  .about-badge { left: 50%; transform: translateX(-50%); bottom: -22px; }
  .hero-facts { gap: 12px 22px; }
}

@media (max-width: 460px) {
  .highlight-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
