@import url("fonts.css");

/* ============================================================
   Plumbing only. Nothing here is a design decision — no colour,
   no typeface, no layout. Each site writes its own visual system
   on top; this file only carries the things that must be right
   on every site and are invisible when they are.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* A sideways-scrollable page drags position:fixed elements out of view on
     phones. Clip rather than scroll. (clip, not hidden: hidden would make html
     a scroll container and break scroll-padding and sticky.) */
  overflow-x: clip;
}

body { margin: 0; }
/* Lock scrolling on the ROOT, not on body. html already has overflow-x:clip,
   so overflow:hidden on body turns body into its own scroll container — a
   position:sticky header then sticks to body and is thrown off-screen (with
   its close button) when the menu opens after scrolling. site.js puts
   .is-locked on <html> directly; a :has() selector was tried first and its
   style invalidation visibly lagged behind the menu opening. */
html.is-locked { overflow: hidden; }
/* [hidden] must win. A rule like `.gallery-more { display:flex }` outranks the
   browser's own `[hidden] { display:none }`, which left an empty "Show 0 more"
   button on screen whenever a gallery had nothing further to reveal. */
[hidden] { display: none !important; }

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
/* A <button> inherits the user agent's grey `buttonface` unless something says
   otherwise. An outline/ghost button that sets only border-color and color then
   renders as light-grey with (often white) text on it — invisible. Reset here;
   any variant that wants a fill sets one and wins on specificity. */
button { background: transparent; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* Reveal-on-scroll. The JS failsafe shows everything if the observer
   never runs, so content can never be stranded invisible. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease, ease), transform .7s var(--ease, ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .site-header, .lightbox, .skip-link, .gallery-more, .filters, .map-consent, .callbar { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}

/* ============================================================
   Melina Skiathos — "honey on the hillside"
   ------------------------------------------------------------
   The logo is olive-gold with a bee dotting the i — Melina, from
   μέλι, honey. So the signature is the honeycomb: hexagon-masked
   photographs over a drone view of the Kolios hillside, distances
   in hexagon cells, hex icons for the amenities, honey cards for
   what guests wrote.

   Measured rules: the logo is gold type, so the header is white.
   The logo's gold is 3.2:1 on white — fine for a logo, not for
   text — so small gold text uses a darkened honey (6.3:1). The
   brighter honey is a fill carrying ink (7.7:1), or text on the
   dark olive ground (7.7:1).
   DM Serif Display for headings, Urbanist for reading.
   ============================================================ */

:root {
  --white:  #ffffff;
  --cream:  #f8f5ec;
  --comb:   #f1e9cf;
  --olive:  #1e2621;
  --olive-2:#2f3326;

  --ink:    #1e2621;
  --muted:  #5a615b;
  --honey:  #c9b928;   /* fills / text on olive only */
  --honey-dk:#6e600b;  /* text on light */
  --sea:    #1f5d7a;
  --line:   #e4dcc6;

  --wrap: 1220px;
  --r: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 22px 46px -30px rgba(30,38,33,.5);
  --hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  --hex-tall: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

body { background: var(--cream); color: var(--ink); font: 400 clamp(1.02rem, .98rem + .2vw, 1.13rem)/1.7 Urbanist, "Segoe UI", Helvetica, Arial, sans-serif; }
h1, h2, .display { font-family: "DM Serif Display", Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.08; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5rem); }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
h3 { font-family: Urbanist, sans-serif; font-weight: 700; font-size: clamp(1.12rem, 1rem + .45vw, 1.32rem); line-height: 1.25; }
a { color: var(--sea); text-underline-offset: .2em; }
a:hover { color: var(--honey-dk); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -70px; z-index: 300; background: var(--olive); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--honey-dk); margin-bottom: .8rem; }
.kicker::before { content: ""; width: 14px; height: 16px; background: var(--honey); clip-path: var(--hex-tall); }
.kicker--light { color: var(--honey); }

/* ---------- Header ------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header.is-stuck { box-shadow: 0 10px 24px -20px rgba(30,38,33,.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 82px; }
.brand img { width: clamp(140px, 14vw, 180px); height: auto; }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .55rem .9rem; border-radius: 999px; }
.nav a:hover { background: var(--comb); color: var(--ink); }
.nav a[aria-current] { background: var(--honey); color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .2s; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .site-header.is-open .nav-toggle span { background: transparent; }
  .site-header.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .site-header.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { position: fixed; inset: 82px 0 0; flex-direction: column; justify-content: flex-start; gap: .4rem; padding: 2rem 1.25rem; background: var(--cream); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s; overflow-y: auto; }
  .site-header.is-open .nav { opacity: 1; visibility: visible; }
  .nav a { font-size: 1.2rem; width: min(100%, 22rem); text-align: center; padding: .85rem 1rem; }
}

/* ---------- Hero: drone view + honeycomb -------------------------------- */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; align-items: center; overflow: hidden; background: var(--olive); color: #fff; }
.hero > img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
/* Above the photo: ::before precedes the <img>, so it needs explicit order. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(30,38,33,.88) 0%, rgba(30,38,33,.7) 40%, rgba(30,38,33,.15) 75%, rgba(30,38,33,0) 100%); }
@media (max-width: 820px) { .hero::before { background: linear-gradient(180deg, rgba(30,38,33,.45), rgba(30,38,33,.88)); } }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--honey); }
.hero p { color: #eef0e8; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); max-width: 44ch; margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.comb { position: relative; height: clamp(320px, 38vw, 470px); }
.comb figure { position: absolute; margin: 0; width: 56%; aspect-ratio: 1 / 1.1; clip-path: var(--hex-tall); background: var(--honey); padding: 7px; }
.comb figure img { width: 100%; height: 100%; object-fit: cover; clip-path: var(--hex-tall); }
.comb .c1 { right: 0; top: 0; }
.comb .c2 { left: 4%; top: 30%; width: 46%; }
.comb .c3 { right: 14%; bottom: 0; width: 40%; }
@media (max-width: 980px) { .comb { display: none; } }

/* ---------- Buttons ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; font: 700 1rem/1 Urbanist, sans-serif; padding: 1rem 1.45rem; border-radius: 999px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--honey { background: var(--honey); color: var(--ink); }
.btn--honey:hover { background: #fff; color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--olive { background: var(--olive); color: #fff; }
.btn--olive:hover { background: var(--sea); color: #fff; }
.btn--line { border-color: var(--olive); color: var(--olive); background: transparent; }
.btn--line:hover { background: var(--olive); color: #fff; }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------------------------------------------------- */
.section { padding: clamp(3.8rem, 8vw, 6.5rem) 0; }
.section--white { background: var(--white); }
.section--comb { background: var(--comb); }
.section--olive { background: var(--olive); color: #e8eadf; }
.section--olive h2, .section--olive h3 { color: #fff; }
.section--olive p { color: #d9dccf; }
.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); }
.section--olive .section-head p { color: #d9dccf; }
.lede { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.42rem); line-height: 1.6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.photo { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.pair .photo:nth-child(2) { transform: translateY(2rem); }
@media (max-width: 880px) { .pair .photo:nth-child(2) { transform: none; } }

/* Apartment facts */
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: 1.4rem; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.facts li { display: flex; gap: .7rem; align-items: center; background: var(--white); border-radius: 12px; padding: .8rem .95rem; font-weight: 600; }
.facts svg { flex: none; width: 34px; height: 38px; padding: 8px 7px; background: var(--honey); clip-path: var(--hex-tall); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Honeycomb distances */
.cells { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .9rem; }
.cells li { width: clamp(150px, 16vw, 190px); aspect-ratio: 1 / 1.12; clip-path: var(--hex-tall); background: var(--olive-2); color: #fff; display: grid; place-content: center; text-align: center; padding: 1rem; }
.cells li:nth-child(odd) { background: var(--honey); color: var(--ink); transform: translateY(1.6rem); }
.cells b { display: block; font-family: "DM Serif Display", serif; font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1; }
.cells span { font-size: .92rem; font-weight: 600; line-height: 1.25; margin-top: .35rem; display: block; }
@media (max-width: 620px) { .cells li:nth-child(odd) { transform: none; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
@media (max-width: 820px) { .reviews { grid-template-columns: 1fr; } }
.review { margin: 0; background: var(--white); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); position: relative; border-top: 5px solid var(--honey); }
.review::before { content: "\201C"; position: absolute; right: 1.2rem; top: .2rem; font-family: "DM Serif Display", serif; font-size: 4.5rem; line-height: 1; color: var(--comb); }
.review blockquote { margin: 0; color: #333b35; }
.review figcaption { margin-top: 1rem; font-weight: 800; color: var(--honey-dk); }

/* Amenities */
.am-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
@media (max-width: 1000px) { .am-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .am-groups { grid-template-columns: 1fr; } }
.am-group { background: var(--white); border-radius: var(--r); padding: 1.4rem 1.3rem; box-shadow: var(--shadow); }
.am-group h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.am-group h3 svg { width: 40px; height: 44px; padding: 10px 9px; background: var(--honey); clip-path: var(--hex-tall); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-group ul { list-style: none; display: grid; gap: .45rem; }
.am-group li { display: flex; gap: .55rem; align-items: baseline; }
.am-group li::before { content: ""; flex: none; width: 9px; height: 10px; background: var(--honey-dk); clip-path: var(--hex-tall); transform: translateY(1px); }

/* ---------- Gallery ----------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.filter { font: 700 .98rem/1 Urbanist, sans-serif; padding: .7rem 1.1rem; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.filter:hover { border-color: var(--olive); }
.filter[aria-pressed="true"] { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: .8rem; grid-auto-flow: dense; }
.tile { position: relative; display: block; padding: 0; border: 0; cursor: pointer; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.tile.is-tall { aspect-ratio: auto; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile.is-entering { animation: rise .45s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.gallery-more { display: flex; justify-content: center; margin-top: 1.6rem; }

/* ---------- Page head --------------------------------------------------- */
.page-head { position: relative; overflow: hidden; background: var(--olive); color: #fff; padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.page-head > img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(30,38,33,.9), rgba(30,38,33,.62) 60%, rgba(30,38,33,.35)); }
.page-head .wrap { position: relative; z-index: 2; }
.page-head p { color: #eef0e8; max-width: 54ch; margin-top: .6rem; }
.crumbs { font-size: .92rem; color: #eef0e8; margin-bottom: .6rem; }
.crumbs a { color: #fff; }

/* ---------- Contact ----------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.lines { list-style: none; display: grid; gap: .75rem; margin-top: 1rem; }
.lines li > a, .lines li > span { display: flex; align-items: center; gap: 1rem; background: var(--white); border-radius: var(--r); padding: 1rem 1.15rem; text-decoration: none; color: var(--ink); box-shadow: 0 12px 30px -26px rgba(30,38,33,.7); }
.lines li > a:hover { color: var(--sea); }
.lines svg { flex: none; width: 44px; height: 48px; padding: 12px 11px; background: var(--honey); clip-path: var(--hex-tall); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lines b { display: block; font-size: 1.1rem; }
.lines small { display: block; color: var(--muted); font-size: .9rem; }
.lines li.mail { position: relative; }
.lines li.mail > svg { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.lines li.mail > a, .lines li.mail > span { padding-left: 4.4rem; min-height: 4.7rem; font-weight: 700; font-size: 1.08rem; }
.map-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 300px; border-radius: var(--r); overflow: hidden; background: var(--comb); box-shadow: var(--shadow); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; gap: .9rem; text-align: center; padding: 1.5rem; }
.map-consent p { color: var(--ink); max-width: 36ch; margin: 0 auto; font-weight: 600; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: var(--olive); color: #d9dccf; padding: clamp(2.8rem, 6vw, 3.8rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: inline-block; background: var(--white); padding: .6rem .9rem; border-radius: 10px; }
.footer-brand img { width: 150px; }
.site-footer h3 { color: var(--honey); font-size: .88rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .7rem; }
.site-footer ul { list-style: none; display: grid; gap: .3rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--honey); }
.colophon { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--olive-2); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

/* ---------- Lightbox ---------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; background: rgba(20,26,22,.96); opacity: 0; transition: opacity .26s; padding: clamp(1rem, 4vw, 3rem); }
.lightbox.is-open { display: grid; grid-template-rows: 1fr auto; }
.lightbox.is-visible { opacity: 1; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-figure { margin: 0; display: grid; place-items: center; gap: .8rem; max-height: 100%; }
.lb-img { max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; transition: opacity .2s; }
.lb-img.is-loading { opacity: .3; }
.lb-caption { color: #e8eadf; text-align: center; max-width: 60ch; }
.lb-counter { margin: .6rem 0 0; text-align: center; color: var(--honey); font-weight: 700; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover:not(:disabled) { background: var(--honey); color: var(--ink); }
.lb-btn:disabled { opacity: .3; cursor: default; }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lb-close { right: clamp(.5rem, 2vw, 1.5rem); top: clamp(.5rem, 2vw, 1.5rem); }
