/*
Theme Name: Finikounda Stays
Theme URI: https://1mdigital.gr
Author: 1M Digital
Author URI: https://1mdigital.gr
Description: Custom theme for the Finikounda accommodations site — Anastasia's House and Katerina Maria's Studio. Built on native WordPress meta boxes and custom post types; no page builder and no ACF required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finikounda-stays
Tags: custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Finikounda Stays — Phase 1 static mockup
   Katerina Maria's Studio & Anastasia's House, Finikounda, Messinia
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base / reset
   3.  Typography
   4.  Layout helpers
   5.  Buttons & links
   6.  Header / navigation
   7.  Hero
   8.  Sections & split blocks
   9.  Property cards
   10. Amenities
   11. Gallery & lightbox
   12. Feature lists (beaches / excursions)
   13. Forms
   14. CTA band
   15. Contact page
   16. Footer
   17. WhatsApp floating button
   18. Scroll reveal animation
   19. Responsive breakpoints
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

:root {
  /* Sun-bleached coastal palette */
  --sand-50:  #fbf8f3;
  --sand-100: #f5efe5;
  --sand-200: #ece3d5;
  --sand-300: #ddd0bd;
  --sand-400: #c5b49c;

  --ink-900: #23201c;
  --ink-700: #46403a;
  --ink-500: #6e6659;
  --ink-300: #9a9184;

  --sea-900: #143a47;
  --sea-700: #1d5567;
  --sea-500: #2f7d92;
  --sea-100: #dceaee;

  --terracotta-600: #b45f42;
  --terracotta-500: #c87458;
  --terracotta-100: #f4e2da;

  --white: #ffffff;

  /* Semantic */
  --bg:            var(--sand-50);
  --bg-alt:        var(--sand-100);
  --bg-deep:       var(--sea-900);
  --text:          var(--ink-900);
  --text-muted:    var(--ink-500);
  --accent:        var(--sea-700);
  --accent-warm:   var(--terracotta-600);
  --border:        var(--sand-200);
  --border-strong: var(--sand-300);

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --gutter: 1.5rem;
  --container: 1240px;
  --container-narrow: 780px;
  --section-y: 5.5rem;

  /* Effects */
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 3px rgba(35, 32, 28, .06),
               0 8px 24px -12px rgba(35, 32, 28, .12);
  --shadow-md: 0 2px 6px rgba(35, 32, 28, .07),
               0 20px 48px -20px rgba(35, 32, 28, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --header-h: 76px;
}


/* 2. Base / reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
picture,
iframe { max-width: 100%; }

img {
  display: block;
  height: auto;
  border: 0;
}

iframe { border: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--bg-deep);
  color: var(--white);
  padding: .75rem 1.25rem;
  font-size: .875rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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


/* 3. Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .25s var(--ease);
}

a:hover { color: var(--accent-warm); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 0 0 1rem;
}

.eyebrow--light { color: var(--sand-300); }

.lede {
  font-size: clamp(1.075rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-700);
}

.text-muted { color: var(--text-muted); }

.rule {
  width: 56px;
  height: 1px;
  background: var(--border-strong);
  margin: 0 0 1.75rem;
  border: 0;
}

.rule--center { margin-left: auto; margin-right: auto; }


/* 4. Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 3.5rem; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: var(--sand-100); }

.section--deep h2,
.section--deep h3 { color: var(--white); }

.section--deep p { color: var(--sand-200); }

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}


/* 5. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 2rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--sea-900);
  border-color: var(--sea-900);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--terracotta-600);
  border-color: var(--terracotta-600);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--sea-900);
  border-color: var(--sea-900);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--sea-900);
}

.btn--light:hover {
  background: var(--terracotta-600);
  border-color: var(--terracotta-600);
  color: var(--white);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: var(--white);
}

.btn--ghost-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--sea-900);
}

.btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #0b2e18;
}

.btn--whatsapp:hover {
  background: #1eb355;
  border-color: #1eb355;
  color: var(--white);
}

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

.btn-row--center { justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sea-900);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: .35rem;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.text-link:hover {
  color: var(--accent-warm);
  border-color: var(--accent-warm);
}

.text-link svg { transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }


/* 6. Header / navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  color: var(--white);
  transition: color .35s var(--ease);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: .01em;
}

.brand__tag {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .78;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: block;
  padding: .4rem 0;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }

.nav__link[aria-current="page"] { color: var(--white); }

/* Scrolled / solid header (also used on pages without a hero) */
.site-header.is-solid {
  background: rgba(251, 248, 243, .94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px -8px rgba(35, 32, 28, .18);
}

.site-header.is-solid .brand { color: var(--sea-900); }
.site-header.is-solid .nav__link { color: var(--ink-700); }
.site-header.is-solid .nav__link:hover { color: var(--accent-warm); }
.site-header.is-solid .nav__link[aria-current="page"] { color: var(--sea-900); }
.site-header.is-solid .nav-toggle__bar { background: var(--sea-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .25s var(--ease),
              background-color .35s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* 7. Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  min-height: 92svh;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero--compact {
  min-height: 62vh;
  min-height: 62svh;
  padding-bottom: 4rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(20, 34, 41, .55) 0%,
      rgba(20, 34, 41, .18) 32%,
      rgba(20, 34, 41, .40) 62%,
      rgba(20, 34, 41, .78) 100%);
}

.hero__content {
  max-width: 720px;
  color: var(--white);
}

.hero__content h1 { color: var(--white); }

.hero__title {
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(12, 24, 30, .35);
}

.hero__sub {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
  max-width: 34em;
  margin-bottom: 2.25rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}

.hero__meta span { display: inline-flex; align-items: center; gap: .6rem; }

.hero__meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terracotta-500);
}

/* Property logo — used on the Anastasia's House page only */
.property-logo {
  width: 96px;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6);
}

.hero__scroll {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .8), transparent);
  animation: heroLine 2.4s var(--ease) infinite;
}

@keyframes heroLine {
  0%, 100% { transform: scaleY(1); opacity: .85; }
  50%      { transform: scaleY(.55); opacity: .4; }
}

/* Page header for pages without a photographic hero */
.page-head {
  padding-top: calc(var(--header-h) + 4.5rem);
  padding-bottom: 3.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}


/* 8. Sections & split blocks
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split__media { position: relative; }

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.split__media--tall img { aspect-ratio: 3 / 4; }

.split__body { max-width: 34rem; }

.split + .split { margin-top: 5rem; }

.split__caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: rgba(251, 248, 243, .94);
  color: var(--sea-900);
  padding: .5rem 1rem;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.stack > * + * { margin-top: 2.5rem; }

/* Editorial full-bleed image band */
.image-band {
  position: relative;
  height: clamp(320px, 52vh, 560px);
  overflow: hidden;
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Small stat / fact row */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--sea-900);
  margin-bottom: .4rem;
}

.facts__label {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* 9. Property cards
   ========================================================================== */

.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.property-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.property-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.property-card:hover .property-card__media img { transform: scale(1.05); }

.property-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(251, 248, 243, .94);
  color: var(--sea-900);
  padding: .4rem .9rem;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.property-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2rem 1.875rem 2.125rem;
}

.property-card__title {
  font-size: 1.75rem;
  margin-bottom: .625rem;
}

.property-card__teaser {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.property-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.property-card__meta li {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-700);
  background: var(--sand-100);
  border: 1px solid var(--border);
  padding: .35rem .75rem;
  border-radius: 100px;
}

.property-card__actions { margin-top: auto; }


/* 10. Amenities
   ========================================================================== */

.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.amenities li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .875rem;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
}

.amenities svg {
  width: 30px;
  height: 30px;
  stroke: var(--sea-700);
  stroke-width: 1.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.amenities span {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-700);
  line-height: 1.45;
}


/* 11. Gallery & lightbox
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: .75rem;
}

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  grid-row: span 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), opacity .4s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.04);
  opacity: .92;
}

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__more {
  margin-top: 1.5rem;
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
  background: rgba(16, 26, 31, .95);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.lightbox.is-open { display: flex; }
.lightbox.is-visible { opacity: 1; }

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__caption {
  color: rgba(255, 255, 255, .75);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background-color .25s var(--ease);
}

.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__btn svg { width: 20px; height: 20px; stroke: currentColor;
  stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev  { left: 1.25rem;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }


/* 12. Feature lists (beaches / excursions)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
}

.feature__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.feature:hover .feature__media img { transform: scale(1.05); }

.feature__body { padding: 1.75rem 1.625rem 2rem; }

.feature__title {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.feature__distance {
  display: inline-block;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: .75rem;
}

.feature__body p {
  color: var(--text-muted);
  margin: 0;
}


/* 13. Forms
   ========================================================================== */

.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.form-panel__head { margin-bottom: 2rem; }
.form-panel__head h2 { margin-bottom: .5rem; }

.form-panel__note {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: .5rem;
}

.field .req { color: var(--accent-warm); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .875rem 1rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--sand-50);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), background-color .25s var(--ease),
              box-shadow .25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6659' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.75rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  background: var(--white);
  border-color: var(--sea-700);
  box-shadow: 0 0 0 3px var(--sea-100);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--terracotta-600);
  background: var(--terracotta-100);
}

.field__error {
  display: none;
  margin-top: .4rem;
  font-size: .78rem;
  color: var(--terracotta-600);
}

.field__error.is-shown { display: block; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.form-actions .form-hint {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--sea-100);
  border: 1px solid var(--sea-500);
  border-radius: var(--radius-lg);
  color: var(--sea-900);
}

.form-success.is-shown { display: flex; }

.form-success svg {
  width: 26px;
  height: 26px;
  flex: none;
  stroke: var(--sea-700);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: .2rem;
}

.form-success h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.form-success p { margin: 0; font-size: .95rem; }


/* 14. CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--sea-900);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-band--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--cta-image);
  background-size: cover;
  background-position: center;
  opacity: .34;
}

.cta-band h2 { color: var(--white); margin-bottom: 1rem; }

.cta-band p {
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, .86);
  font-size: 1.075rem;
}

/* Inline contact strip used above/below booking forms */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--sand-100);
  border: 1px solid var(--border);
  border-left: 3px solid var(--terracotta-500);
  border-radius: var(--radius-lg);
}

.contact-strip__text { max-width: 42ch; }
.contact-strip__text strong { display: block; font-size: 1.05rem; }
.contact-strip__text span { font-size: .92rem; color: var(--text-muted); }


/* 15. Contact page
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 1.125rem;
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:first-child { padding-top: 0; }

.contact-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: .3rem;
  stroke: var(--sea-700);
  stroke-width: 1.35;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list dt,
.contact-list__label {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

.contact-list a {
  display: block;
  font-size: 1.05rem;
  color: var(--sea-900);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.contact-list a:hover {
  color: var(--accent-warm);
  border-bottom-color: currentColor;
}

.contact-list address {
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.6;
}

.map-embed {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--sand-200);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* 16. Footer
   ========================================================================== */

.site-footer {
  background: #0e2b35;
  color: var(--sand-200);
  padding-top: 4.5rem;
}

.site-footer a { color: var(--sand-100); text-decoration: none; }
.site-footer a:hover { color: var(--terracotta-500); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  padding-bottom: 3.5rem;
}

.footer-brand p.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 .35rem;
}

.footer-brand p.footer-brand__tag {
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin: 0 0 1.25rem;
}

.footer-brand p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .68);
  max-width: 34ch;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin: 0 0 1.25rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
}

.footer-list li + li { margin-top: .625rem; }

.footer-list address {
  font-style: normal;
  color: rgba(255, 255, 255, .68);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: .625rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .45);
  transform: translateY(-2px);
}

.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
}

.footer-bottom { padding-bottom: 2.25rem; }
.footer-bottom p { margin: 0; }

.footer-bottom a {
  color: rgba(255, 255, 255, .72);
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.footer-bottom a:hover {
  color: var(--terracotta-500);
  border-bottom-color: currentColor;
}


/* 17. WhatsApp floating button
   ========================================================================== */

.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 6px 22px -6px rgba(37, 211, 102, .8),
              0 2px 8px rgba(20, 30, 25, .2);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 211, 102, .55);
  animation: fabPulse 2.6s var(--ease) infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .9);
}

.whatsapp-fab svg { width: 28px; height: 28px; fill: currentColor; }

@keyframes fabPulse {
  0%   { transform: scale(1);    opacity: .75; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}


/* 18. Scroll reveal animation
   ========================================================================== */

/* Scoped to .js so the page is fully readable if JavaScript never runs. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}


/* 19. Responsive breakpoints
   ========================================================================== */

/* Mobile navigation drawer — up to 1023px */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    z-index: 110;
    padding: calc(var(--header-h) + 1.5rem) 2rem 2.5rem;
    background: var(--sand-50);
    transform: translateX(100%);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
    box-shadow: -12px 0 40px -20px rgba(35, 32, 28, .5);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list li + li { border-top: 1px solid var(--border); }

  .nav__link,
  .site-header.is-solid .nav__link {
    padding: 1.125rem 0;
    font-size: .8rem;
    color: var(--ink-900);
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"],
  .site-header.is-solid .nav__link[aria-current="page"] {
    color: var(--accent-warm);
  }

  /* Below the header (z-index 100), because the drawer lives inside the
     header's stacking context and must stay above this. */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(20, 34, 41, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
  }

  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* Small tablets and up */
@media (min-width: 600px) {
  :root { --gutter: 2rem; }

  .form-grid { grid-template-columns: repeat(2, 1fr); }

  .amenities { grid-template-columns: repeat(3, 1fr); }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }

  .facts { grid-template-columns: repeat(4, 1fr); }

  .form-panel { padding: 2.75rem 2.5rem; }
}

/* Tablets */
@media (min-width: 768px) {
  :root { --section-y: 6.5rem; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .property-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery { grid-auto-rows: 230px; }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --gutter: 2.5rem; --header-h: 88px; }

  .nav-toggle { display: none; }

  .hero { padding-bottom: 8rem; }
  .hero--compact { padding-bottom: 5rem; }

  .property-logo { width: 112px; }

  .split {
    grid-template-columns: repeat(2, 1fr);
    gap: 4.5rem;
  }

  .split--reverse .split__media { order: 2; }

  .split__media img { aspect-ratio: 5 / 4; }
  .split__media--tall img { aspect-ratio: 3 / 4; }

  .split--wide { grid-template-columns: 1.15fr .85fr; }

  .contact-layout {
    grid-template-columns: .85fr 1.15fr;
    gap: 4.5rem;
  }

  .amenities { grid-template-columns: repeat(5, 1fr); }

  .amenities li { padding: 2.25rem 1rem; }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
  }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3.5rem; }

  .whatsapp-fab {
    right: 2rem;
    bottom: 2rem;
    width: 60px;
    height: 60px;
  }

  .form-panel { padding: 3rem; }
}

/* Scroll cue only where there is vertical room for it */
@media (min-width: 1024px) and (min-height: 760px) {
  .hero:not(.hero--compact) .hero__scroll { display: flex; }
}

/* Large desktop */
@media (min-width: 1280px) {
  :root { --section-y: 7.5rem; }

  .gallery { grid-auto-rows: 240px; }
}
