/* Holiday Villas 4U — main stylesheet */
:root {
  --sea: #0f5e7a;
  --sea-dark: #0a4257;
  --sea-light: #e8f3f6;
  --sun: #f28c28;
  --sun-dark: #d9741a;
  --sand: #fbf7f0;
  --ink: #1f2a30;
  --muted: #5b6b73;
  --line: #e2e6e8;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 46, 60, .10);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
a:hover { color: var(--sea-dark); }
h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  color: var(--sea-dark);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--sand); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--sea-dark);
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.35rem;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 6px; font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sea-light); color: var(--sea-dark); }
.nav a.btn { color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px; font-size: 1rem; cursor: pointer; color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-block; background: var(--sun); color: var(--white);
  padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn:hover { background: var(--sun-dark); color: var(--white); }
.btn.outline { background: transparent; border: 2px solid var(--white); }
.btn.outline:hover { background: rgba(255,255,255,.15); }
.btn.sea { background: var(--sea); }
.btn.sea:hover { background: var(--sea-dark); }

/* Hero */
.hero {
  position: relative; min-height: 72vh; display: flex; align-items: flex-end;
  color: var(--white); background: #234 center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6) 100%);
}
.hero .wrap { position: relative; padding-bottom: 56px; padding-top: 120px; }
.hero h1 { color: var(--white); max-width: 820px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { font-size: 1.2rem; max-width: 640px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero.short { min-height: 56vh; }

/* Property cards (home) */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 32px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card .facts { color: var(--muted); font-weight: 600; margin-bottom: .6em; }
.card .body .btn { align-self: flex-start; margin-top: auto; }

/* Feature ticks */
.ticks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.tick {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.tick strong { display: block; color: var(--sea-dark); font-size: 1.1rem; margin-bottom: 4px; }
.tick span { color: var(--muted); }

/* Key facts bar */
.facts-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 26px; padding: 20px 0;
  font-weight: 600; color: var(--sea-dark);
}
.facts-bar span::before { content: "✓ "; color: var(--sun); }

/* Two column */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Lists */
.list-cols { columns: 2; column-gap: 40px; padding-left: 1.1em; margin: 0; }
.list-cols li { break-inside: avoid; margin-bottom: .45em; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.room { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.room strong { display: block; color: var(--sea-dark); }

/* Gallery */
.gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.gallery-tabs button {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 16px;
  font: inherit; font-size: .95rem; cursor: pointer; color: var(--ink);
}
.gallery-tabs button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { margin: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: opacity .2s; }
.gallery figure:hover img { opacity: .88; }
.gallery figcaption {
  padding: 8px 12px; font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--sea-dark);
  height: calc(2.7em + 16px); overflow: hidden; display: flex; align-items: center; text-wrap: balance;
}
.gallery figure[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(8,18,24,.94); z-index: 100;
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 6px; }
.lightbox p { color: var(--white); margin-top: 12px; text-align: center; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.price {
  background: var(--white); border-radius: var(--radius); padding: 22px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.price .season { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); font-weight: 700; }
.price .amount { font-family: "Playfair Display", Georgia, serif; font-size: 2.2rem; color: var(--sea-dark); }
.price .per { color: var(--muted); }
.price .dates { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink); line-height: 1.4; }
.note { background: var(--sea-light); border-radius: var(--radius); padding: 18px 22px; }
.note ul { margin: 0; padding-left: 1.2em; }

/* CTA band */
.cta {
  background: var(--sea); color: var(--white); text-align: center; padding: 56px 0;
}
.cta h2 { color: var(--white); }
.cta p { max-width: 640px; margin: 0 auto 20px; opacity: .92; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: .95rem; }
form input, form select, form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c9d2d6; border-radius: 8px;
  font: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--sea); border-color: var(--sea); }
form textarea { min-height: 120px; resize: vertical; }
form .btn { margin-top: 18px; }
.small { font-size: .9rem; color: var(--muted); }
.contact-card { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.contact-card p { margin-bottom: .7em; }

/* Footer */
.site-footer { background: var(--sea-dark); color: #cfe2e9; padding: 40px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: var(--white); font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 26px; padding-top: 16px; font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
  .cards, .split, .contact-grid { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .section { padding: 44px 0; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .ticks { grid-template-columns: 1fr; }
  .facts-bar { grid-template-columns: 1fr 1fr; font-size: .95rem; }
  .list-cols { columns: 1; }
  form .row { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero { min-height: 64vh; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery figcaption { font-size: .8rem; padding: 6px 8px; height: calc(2.7em + 12px); }
  .cards4 { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}

/* Even text: no stray words on their own line */
p, li, .tick span, .room, .card4 .body, .price .dates { text-wrap: pretty; }
h1, h2, h3, .facts-bar span { text-wrap: balance; }

/* On your doorstep */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.card4 { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card4 img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card4 .body { padding: 16px 18px 20px; }
.card4 strong { display: block; color: var(--sea-dark); margin-bottom: 4px; }
@media (max-width: 900px) and (min-width: 721px) { .cards4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .cards4 { grid-template-columns: 1fr 1fr; gap: 10px; } .card4 .body { padding: 12px 12px 14px; font-size: .92rem; } }
@media (max-width: 480px) { .cards4 { grid-template-columns: 1fr; } }
.rooms3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .rooms3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .rooms3 { grid-template-columns: 1fr; } }
.prices4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .prices4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .prices4 { grid-template-columns: 1fr; } }
