@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; }
}

/* ============================================================
   Villa Alexis — "blue pebble terrace"
   ------------------------------------------------------------
   The terraces of the villa are paved with blue-and-white pebble
   tiles above the sea: deep Aegean blue for the frame (the logo is
   white), a white page, a pebble-dot band as the one ornament, and
   geranium red for the call to action.
   Gilda Display (display) + Hanken Grotesk (text).
   ============================================================ */

:root {
  --blue: #123a63;
  --blue-2: #0c2b4b;
  --tile: #2f6fb0;
  --sky: #e8f0f8;
  --white: #ffffff;
  --paper: #f8f7f4;
  --ink: #16202a;
  --muted: #56606b;
  --line: #e1e4e8;
  --red: #b8322d;
  --r: 12px;
  --ease: cubic-bezier(.2,.75,.25,1);
  --wrap: 1160px;
  --display: "Gilda Display", "Didot", Georgia, serif;
  --text: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html { background: var(--white); scroll-padding-top: 90px; }
body { background: var(--white); color: var(--ink); font: 400 clamp(1rem, .97rem + .15vw, 1.08rem)/1.7 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; color: var(--blue); }
h1 { font-size: clamp(2.6rem, 1.7rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); margin-bottom: .8rem; }
h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.65rem); margin-bottom: .35rem; }
a { color: var(--tile); text-underline-offset: .2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--tile); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--paper { background: var(--paper); }
.skip-link { position: absolute; left: 1rem; top: -80px; z-index: 300; background: var(--red); color: #fff; padding: .7rem 1.1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; color: #fff; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.18em; }
.kicker { margin-bottom: .7rem; font: 600 .78rem/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--tile); }
.lede { font-size: clamp(1.1rem, 1.04rem + .3vw, 1.25rem); color: var(--muted); }
.section-head { max-width: 42rem; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }

/* the pebble-tile band, the site's one ornament */
.pebbles { height: 18px; background: radial-gradient(circle at 9px 9px, var(--tile) 0 5px, transparent 5.5px) 0 0 / 22px 18px, var(--sky); }

/* ---------- Buttons ------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: 4px; border: 1.5px solid transparent; font: 600 .98rem/1 var(--text); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #962621; color: #fff; }
.btn--white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--white:hover { background: #fff; color: var(--blue); }
.btn--blue { border-color: var(--blue); color: var(--blue); }
.btn--blue:hover { background: var(--blue); color: #fff; }

/* ---------- Header ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--blue); }
.site-header.is-stuck { box-shadow: 0 8px 24px -16px rgba(0,0,0,.6); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.brand { margin-right: auto; }
.brand img { width: auto; height: 58px; }
.nav { display: flex; align-items: center; gap: .1rem; }
.nav a { position: relative; padding: .5rem .8rem; color: #dce7f2; font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; background: #fff; }
.header-book { margin-left: .6rem; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .header-inner { min-height: 66px; }
  .brand img { height: 48px; }
  .header-book { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.4); background: transparent; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: #fff; 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: 66px 0 auto; flex-direction: column; align-items: stretch; padding: .4rem 1.25rem 1.2rem; background: var(--blue); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .site-header.is-open .nav { opacity: 1; visibility: visible; }
  .nav a { padding: .95rem .2rem; border-bottom: 1px solid rgba(255,255,255,.14); font: 400 1.5rem/1.2 var(--display); }
  .nav a[aria-current="page"]::after { display: none; }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero { position: relative; min-height: min(80svh, 720px); display: grid; align-items: center; color: #fff; background: var(--blue-2); overflow: hidden; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; z-index: -2; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,43,75,.75), rgba(12,43,75,.2) 60%, transparent), linear-gradient(0deg, rgba(12,43,75,.45), transparent 40%); }
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: 1rem; }
.hero .kicker { color: #cfe0f1; }
.hero p { max-width: 32rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: #e8f0f8; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-dots { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; gap: .45rem; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.hero-dots button[aria-current="true"] { background: #fff; }

/* ---------- Grids ---------------------------------------------------------- */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.two p { color: var(--muted); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card .tile { height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.row4 .tile { height: auto; aspect-ratio: 1; }
@media (max-width: 760px) { .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.pair .tile { height: auto; aspect-ratio: 4 / 5; }

/* ---------- Tiles --------------------------------------------------------------- */
.tile { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; border-radius: var(--r); background: var(--sky); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile.is-entering { animation: rise .4s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Amenities & lists ------------------------------------------------------ */
.amenities { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .1rem 2rem; border-top: 1px solid var(--line); }
.amenities li { display: flex; align-items: center; gap: .7rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.amenities li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tile); box-shadow: 0 0 0 4px var(--sky); }
@media (max-width: 860px) { .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .amenities { grid-template-columns: 1fr; } }
.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.facts3 div { padding: 1.4rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.facts3 p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .facts3 { grid-template-columns: 1fr; } }

/* ---------- Page head ---------------------------------------------------------------- */
.page-head { background: var(--blue); color: #dce7f2; padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.page-head h1 { color: #fff; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); margin-bottom: .6rem; }
.page-head p { max-width: 40rem; margin: 0; color: #dce7f2; font-size: 1.1rem; }
.page-head .kicker { color: #9fc3e6; }

/* ---------- Gallery ---------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.filter { padding: .55rem 1rem; border-radius: 4px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 600 .92rem/1 var(--text); cursor: pointer; }
.filter small { color: var(--muted); font-weight: 400; }
.filter:hover { border-color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter[aria-pressed="true"] small { color: #cfe0f1; }
.grid { columns: 3 260px; column-gap: .8rem; }
.grid .tile { height: auto; margin-bottom: .8rem; break-inside: avoid; }
.grid .tile img { height: auto; }
.gallery-more { display: flex; justify-content: center; margin-top: 1.8rem; }

/* ---------- Map & documents --------------------------------------------------------------- */
.map-frame { position: relative; min-height: 380px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 11px 11px, rgba(47,111,176,.35) 0 4px, transparent 4.5px) 0 0 / 26px 22px, var(--sky); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; padding: 1.5rem; text-align: center; }
.map-consent p { max-width: 24rem; margin: 0; background: rgba(255,255,255,.9); padding: .3rem .6rem; border-radius: 6px; }
.docs { list-style: none; border-top: 1px solid var(--line); max-width: 40rem; }
.docs a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.docs a:hover { color: var(--tile); }
.docs small { color: var(--muted); font-weight: 400; }

/* ---------- Call to action ------------------------------------------------------------------- */
.cta { background: var(--blue); color: #dce7f2; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta h2 { color: #fff; }
.cta p { max-width: 36rem; margin: 0 auto 1.5rem; }

/* ---------- Footer ------------------------------------------------------------------------------ */
.site-footer { background: var(--blue-2); color: #c9d8e7; padding: 2.8rem 0 1.4rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-row img { height: 70px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; color: #a8bfd6; }
.colophon a { color: #c9d8e7; }

/* ---------- Lightbox ------------------------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; padding: clamp(1rem, 4vw, 3rem); background: rgba(8,26,45,.96); opacity: 0; transition: opacity .25s; }
.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: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: opacity .2s; }
.lb-img.is-loading { opacity: .35; }
.lb-caption { max-width: 60ch; text-align: center; color: #e8f0f8; }
.lb-counter { margin: .5rem 0 0; text-align: center; color: #9fc3e6; font-size: .9rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; color: var(--blue); cursor: pointer; }
.lb-btn:disabled { opacity: .35; cursor: default; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; margin-top: -25px; }
.lb-next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; margin-top: -25px; }
.lb-close { right: clamp(.5rem, 2vw, 1.5rem); top: clamp(.5rem, 2vw, 1.5rem); }

/* ---------- Skiathos page rows ------------------------------------------------ */
.skiathos-rows { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.skiathos-rows .two:nth-child(even) > div:first-child { order: 2; }
.two .tile { height: auto; aspect-ratio: 4 / 3; }
.tile-wide .tile { height: auto; aspect-ratio: 16 / 7; }
@media (max-width: 860px) { .skiathos-rows .two:nth-child(even) > div:first-child { order: 0; } }

/* ---------- Views band --------------------------------------------------------- */
.views { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .8rem; height: clamp(360px, 44vw, 560px); }
.views .tile:first-child { grid-row: span 2; }
@media (max-width: 760px) { .views { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 56vw 48vw; height: auto; } .views .tile:first-child { grid-column: span 2; grid-row: auto; } }
@media (max-width: 760px) { .hero::after { background: linear-gradient(0deg, rgba(12,43,75,.82), rgba(12,43,75,.45) 55%, rgba(12,43,75,.25)); } }
