/* villa-evia.com – quiet, light, Aegean blue from the logo. No external resources. */

@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"),
       url("/static/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbf9f5;
  --surface: #ffffff;
  --sand: #f2ede4;
  --ink: #15212c;
  --muted: #5d6873;
  --line: #e3dccf;
  --blue: #145cac;
  --blue-deep: #0e437f;
  --sea: #13808f;
  --sea-soft: #e3f3f3;
  --booked: #ece8e1;
  --radius: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgb(21 33 44 / 6%), 0 8px 24px rgb(21 33 44 / 7%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgb(251 249 245 / 92%);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgb(227 220 207 / 70%);
}
.topbar__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 60px; display: flex; align-items: center; gap: 24px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600;
}
.wordmark__mark { width: 20px; height: 18px; fill: var(--blue); }
.wordmark span { white-space: nowrap; }
@media (max-width: 420px) { .wordmark { letter-spacing: 0.2em; font-size: 0.98rem; gap: 8px; } .topbar__inner { gap: 14px; } }
.nav { display: none; gap: 26px; }
.nav a, .lang { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .lang:hover { color: var(--blue); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-size: 0.95rem; padding: 6px 2px;
  display: inline-flex; align-items: center; gap: 8px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before {
  content: ""; width: 18px; height: 12px;
  background: linear-gradient(var(--ink) 0 0) top / 100% 1.5px no-repeat,
              linear-gradient(var(--ink) 0 0) center / 100% 1.5px no-repeat,
              linear-gradient(var(--ink) 0 0) bottom / 100% 1.5px no-repeat;
}
.menu__list {
  position: absolute; right: -8px; top: calc(100% + 10px);
  display: flex; flex-direction: column; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px;
}
.menu__list a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.menu__list a:hover { background: var(--sand); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu { display: none; }
}

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: min(86vh, 860px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 24 40 / 0%) 35%, rgb(10 24 40 / 62%) 100%); }
.hero__content {
  position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 120px var(--gutter) clamp(36px, 7vw, 72px);
}
.eyebrow { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 12px; color: var(--sea); font-weight: 600; }
.eyebrow--light { color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / 45%); }
.hero__title { font-size: clamp(3.2rem, 11vw, 7.5rem); font-weight: 400; margin: 0 0 12px; letter-spacing: -0.02em; text-shadow: 0 2px 30px rgb(0 0 0 / 25%); }
.hero__tagline { max-width: 36rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.5; margin-bottom: 28px; color: rgb(255 255 255 / 94%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.button--light { background: #fff; color: var(--ink); border-color: #fff; }
.button--light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.button--ghost { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 70%); color: #fff; }
.button--ghost:hover { background: rgb(255 255 255 / 18%); border-color: #fff; }

/* ------------------------------------------------------------ facts */
.facts {
  list-style: none; margin: 0 auto; padding: 22px var(--gutter);
  max-width: var(--wrap); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px;
  border-bottom: 1px solid var(--line);
}
.facts li { display: inline-flex; align-items: center; gap: 10px; font-size: 0.98rem; }
.facts .icon { color: var(--blue); }

/* ------------------------------------------------------------ sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--gutter); }
.section__head { max-width: 42rem; margin-bottom: clamp(24px, 4vw, 44px); }
.section__head p { color: var(--muted); }
.band { max-width: none; background: var(--sand); }
.band > * { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.band > .section__head { margin-bottom: clamp(24px, 4vw, 44px); }
.center { text-align: center; margin-top: 36px; }
.prose p { max-width: 38rem; }
.lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.45; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.textlink:hover .icon { transform: translateX(3px); }
.textlink .icon { transition: transform 0.15s; }

.intro { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.intro__photo { margin: 0; }
.intro__photo .zoom img { aspect-ratio: 4 / 5; }
@media (min-width: 960px) { .intro { grid-template-columns: 1.1fr 0.9fr; } }

/* photos that open in the lightbox */
.zoom { display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.zoom:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .zoom img, .zoom:hover img { transition: none; transform: none; } }

/* location mosaic */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; grid-auto-flow: dense; }
.mosaic__wide { grid-column: span 2; grid-row: span 2; }
.mosaic__tall { grid-row: span 2; }
@media (min-width: 720px) {
  .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; gap: 14px; }
}

/* amenities */
.feature { display: grid; gap: 28px; align-items: center; padding: clamp(20px, 4vw, 40px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature h3 { display: flex; align-items: center; gap: 12px; }
.feature h3 .icon { color: var(--blue); width: 1.1em; height: 1.1em; }
.feature__text p { max-width: 36rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; }
.chips li { font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; background: var(--sea-soft); color: #0b5560; }
.feature__photos { position: relative; padding: 0 12% 12% 0; }
.feature__main img { aspect-ratio: 4 / 3; }
.feature__second {
  position: absolute; right: 0; bottom: 0; width: 42%;
  border: 6px solid var(--bg); border-radius: 14px; box-shadow: var(--shadow);
}
.feature__second img { aspect-ratio: 3 / 4; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
  .feature--flip .feature__text { order: 2; }
}

/* panorama */
.panorama { margin: 0; }
.panorama .zoom { border-radius: 0; }
.panorama .zoom img { max-height: 72vh; min-height: 220px; }

/* directions */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 36px; }
.step__img { margin-bottom: 18px; }
.step__img img { aspect-ratio: 4 / 3; }
.step h3 { font-size: 1.3rem; }
.step p { font-size: 1rem; color: #2c3843; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* rates */
.rates { margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(8px, 2vw, 16px) clamp(16px, 3vw, 32px) clamp(18px, 3vw, 28px); }
.rates table { width: 100%; border-collapse: collapse; }
.rates th, .rates td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates thead th { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rates tbody th { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; }
.rates .num { text-align: right; white-space: nowrap; padding-right: 0; }
.rates tbody .num { font-family: var(--serif); font-size: 1.35rem; color: var(--blue); }
.rates figcaption { padding-top: 16px; color: var(--muted); font-size: 0.95rem; }
.rates figcaption p:last-child { margin: 0; }
@media (max-width: 560px) {
  .rates thead { display: none; }
  .rates tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .rates th, .rates td { border: 0; padding: 0; }
  .rates tbody td:not(.num) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 0.95rem; padding-top: 4px; }
}

/* availability */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.legend__item { display: inline-flex; align-items: center; gap: 8px; }
.legend__updated { margin-left: auto; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot--free { background: var(--sea-soft); border: 1px solid var(--sea); }
.dot--booked { background: var(--booked); border: 1px solid #cfc8bc; }
.calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.month h3 { font-size: 1.05rem; margin: 2px 4px 10px; }
.month ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.week {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px; font-size: 0.95rem; text-decoration: none;
}
.week__state { font-size: 0.8rem; letter-spacing: 0.04em; }
.week--free { background: var(--sea-soft); color: #0b4f58; border: 1px solid rgb(19 128 143 / 35%); }
.week--free:hover { background: #cfeaea; color: #083f46; border-color: var(--sea); }
.week--booked { background: var(--booked); color: #8a8378; }
.week--booked .week__dates { text-decoration: line-through; text-decoration-color: rgb(138 131 120 / 60%); }
@media (max-width: 560px) {
  .calendar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .month { padding: 10px 8px; }
  .month h3 { font-size: 0.98rem; margin: 2px 4px 8px; }
  .week { padding: 8px; font-size: 0.84rem; }
  .week__state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .legend__updated { margin-left: 0; }
}
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; max-width: 42rem; }

/* contact */
.contact { position: relative; min-height: 440px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.contact__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__shade { position: absolute; inset: 0; background: rgb(12 26 42 / 38%); }
.contact__content { position: relative; padding: 72px var(--gutter); max-width: 40rem; }
.contact__content p { font-size: 1.12rem; color: rgb(255 255 255 / 92%); margin-bottom: 26px; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) 36px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.footer__logo { width: 72px; height: 72px; border-radius: 8px; }
.footer__place { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 6px 0 0; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 0.95rem; }
.footer__links a { color: var(--ink); }
.footer__copy { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* legal pages */
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) 64px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal__note { color: var(--muted); }
.legal__back { margin-top: 3em; }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(8 14 20 / 94%); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(8 14 20 / 94%); }
.lightbox__img { max-width: 94vw; max-height: 86dvh; width: auto; height: auto; border-radius: 6px; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 35%); background: rgb(255 255 255 / 10%); color: #fff;
  font: 400 28px/1 var(--sans); cursor: pointer; display: grid; place-items: center;
}
.lightbox__btn:hover { background: rgb(255 255 255 / 22%); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__btn[hidden] { display: none; }
