/* ---------- Theme: change these colours to restyle the whole site ---------- */
:root {
  --sea: #173f52;
  --sea-2: #2f7d8c;
  --sand: #f7f1e8;
  --sand-2: #efe5d6;
  --accent: #c8693b;
  --accent-dark: #a9532a;
  --text: #1f2a30;
  --muted: #61707a;
  --line: #e2d9cb;
  --white: #ffffff;
  --ok: #2e7d4f;
  --error: #b3261e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 63, 82, .10);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--sea-2); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--sea); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
svg { width: 1.1em; height: 1.1em; flex: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section { padding: 72px 0; }
.section.container { padding-left: 20px; padding-right: 20px; }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.band { background: var(--sand); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--accent); color: var(--white); border: 0; border-radius: 999px; padding: 14px 28px; font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-light { background: var(--white); color: var(--sea); }
.btn-light:hover { background: var(--sand); }
.btn-outline { background: transparent; color: var(--sea); border: 2px solid var(--sea); }
.btn-outline:hover { background: var(--sea); color: var(--white); }
.link-btn { background: none; border: 0; color: var(--sea-2); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--sea); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.lang-select { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .9rem; background: var(--white); color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--sea); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 78vh; display: flex; align-items: flex-end; color: var(--white);
  background:
    linear-gradient(180deg, rgba(23,63,82,.15) 0%, rgba(23,63,82,.75) 100%),
    url('../images/hero.jpg') center / cover,
    url('../images/placeholder.svg') center / cover;
}
.hero-inner { padding-bottom: 90px; padding-top: 120px; }
.hero h1 { color: var(--white); max-width: 760px; font-size: clamp(2.3rem, 6vw, 4rem); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 600px; margin: 0 0 28px; opacity: .95; }

/* ---------- Property cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(23,63,82,.16); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-2); }
.card-img { position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--white); font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.discounts { background: #eef6ef; border-radius: 10px; padding: 10px 14px; margin: 12px 0 0; font-size: .9rem; }
.discounts strong { color: var(--ok); }
.discounts ul { margin: 4px 0 0; padding-left: 18px; }
.quote .discount { color: var(--ok); font-weight: 500; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-loc { display: flex; align-items: center; gap: 6px; color: var(--sea-2); font-size: .9rem; font-weight: 500; margin: 0 0 6px; }
.card-tagline { color: var(--muted); margin: 0 0 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-head); font-size: 1.5rem; color: var(--sea); margin: 0; }
.price small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); }
.stats { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text); font-size: .93rem; }
.stats li { display: flex; align-items: center; gap: 6px; }
.stats svg { color: var(--sea-2); }

/* ---------- Features / explore ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 36px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 28px; }
.feature .num { font-family: var(--font-head); color: var(--accent); font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }
.explore { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.explore .section-title { text-align: left; }
.explore img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.explore p { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }

/* ---------- Property page ---------- */
.gallery { display: grid; gap: 10px; padding-top: 24px; }
.gallery-main { aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; background: var(--sand-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 110px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--sand-2); opacity: .7; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 48px; padding-top: 32px; padding-bottom: 72px; align-items: start; }
.property-info h2 { margin-top: 40px; }
.amenities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 20px; }
.amenities li { display: flex; align-items: center; gap: 8px; }
.amenities svg { color: var(--ok); }
.table-wrap { overflow-x: auto; }
.prices { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prices th, .prices td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prices th { color: var(--muted); font-weight: 500; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--sand-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

.booking-panel { position: sticky; top: 88px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.booking-panel h2 { font-size: 1.25rem; margin: 6px 0 14px; }
.notice { background: var(--sand); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.notice.warn { background: #fdf0e1; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; text-transform: capitalize; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--sea); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .wd { text-align: center; font-size: .75rem; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.day { aspect-ratio: 1; border: 0; border-radius: 8px; background: #eaf4f1; color: var(--text); font: 500 .9rem var(--font-body); cursor: pointer; padding: 0; }
.day:hover:not(:disabled) { outline: 2px solid var(--sea-2); }
.day.past { background: transparent; color: #c3c9cc; cursor: default; }
.day.booked { background: #f1e3df; color: #b9a39d; text-decoration: line-through; cursor: not-allowed; }
.day.booked.can-out { cursor: pointer; text-decoration: none; color: var(--text); }
.day.in-range { background: #cfe3e6; }
.day.start, .day.end { background: var(--sea); color: var(--white); text-decoration: none; }
.calendar, .legend { max-width: 420px; margin-left: auto; margin-right: auto; }
.mobile-book { display: none; }
.legend { list-style: none; display: flex; gap: 14px; padding: 0; margin: 10px 0 0; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-free { background: #eaf4f1; } .sw-booked { background: #f1e3df; } .sw-sel { background: var(--sea); }
.cal-hint { font-size: .9rem; color: var(--sea-2); font-weight: 500; min-height: 1.4em; margin: 10px 0 0; }
.cal-hint.error { color: var(--error); }

.dates-chosen { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; }
.dates-chosen div { padding: 10px 12px; }
.dates-chosen div + div { border-left: 1px solid var(--line); }
.dates-chosen small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
.dates-chosen strong { font-size: .9rem; font-weight: 600; }
.quote { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 8px; font-size: .93rem; }
.quote dt { color: var(--muted); } .quote dd { margin: 0; text-align: right; }
.quote .total { color: var(--text); font-weight: 600; border-top: 1px solid var(--line); padding-top: 8px; }
.quote .deposit { color: var(--accent-dark); font-weight: 600; }

/* ---------- Forms ---------- */
.booking-form { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 12px; }
.booking-form h3 { margin: 0; font-size: 1.05rem; }
label { display: grid; gap: 5px; font-size: .9rem; font-weight: 500; color: var(--text); }
input, select, textarea { width: 100%; font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sea-2); outline-offset: -1px; border-color: transparent; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
label.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-status { margin: 8px 0 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: var(--ok); } .form-status.error { color: var(--error); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-direct { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s; }
.contact-item:hover { border-color: var(--sea-2); }
.contact-item svg { width: 26px; height: 26px; color: var(--accent); }
.contact-item span { display: grid; font-size: .92rem; } .contact-item strong { color: var(--sea); }
.faq { margin-top: 64px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--sea); }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Misc pages ---------- */
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: var(--white); font-size: 2.2rem; display: grid; place-items: center; margin: 0 auto 20px; }
.prose h2 { font-size: 1.25rem; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sea); color: #d5e3e7; padding: 56px 0 24px; }
.site-footer a { color: #d5e3e7; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { color: var(--white); margin-bottom: 12px; display: block; }
.site-footer p { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: .85rem; opacity: .75; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .property-layout { grid-template-columns: 1fr; }
  .booking-panel { position: static; scroll-margin-top: 80px; }
  .mobile-book { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); padding: 12px 20px; box-shadow: 0 -6px 20px rgba(23,63,82,.08); }
  .mobile-book .price { font-size: 1.25rem; }
  body[data-page="property"] .site-footer { padding-bottom: 96px; }
  .explore, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lang-select { margin-top: 14px; }
  .section { padding: 52px 0; }
  .cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .hero { min-height: 70vh; }
}
