/* Casa Golf y Sol — "Pine & Saffron" */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --pine: #10302A;
  --pine-2: #17403A;
  --pine-3: #2E5A52;
  --pine-deep: #0B231F;
  --sun: #E3A33A;
  --sun-soft: #F6DFB3;
  --sun-text: #9A6414;
  --ground: #FBFAF6;
  --sand: #F2EDE3;
  --sand-2: #E6E1D6;
  --line: #D7D1C4;
  --ink: #10302A;
  --muted: #4A5852;
  --muted-2: #5E6B66;
  --light: #C9D6D1;
  --white: #FFFFFF;
  --danger: #8A2E1E;
  --radius: 18px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ground); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #B5761B; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 820px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-tight { padding-bottom: 96px; }
@media (max-width: 700px) { .section { padding-top: 64px; padding-bottom: 64px; } .section-tight { padding-bottom: 64px; } }

.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--sun-text); }
.kicker-light { color: #F4D29A; }
.kicker-sun { color: var(--sun); }
.display { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7vw, 96px); line-height: 0.98; max-width: 900px; }
.display em { color: #F4D29A; }
.h2 { margin: 0 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.05; }
.h3 { margin: 0 0 24px; font-family: var(--serif); font-weight: 400; font-size: 32px; }
.measure { max-width: 720px; }
.lead { font-size: 17px; line-height: 1.75; color: #3F4F49; margin: 0 0 18px; }
.small { font-size: 13px; line-height: 1.5; }
.muted-light { color: var(--light); }
.signature { font-family: var(--serif); font-style: italic; font-size: 22px; margin: 24px 0 0; }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--sun); color: var(--pine); }
.btn-sun:hover { background: #EDB453; color: var(--pine); }
.btn-pine { background: var(--pine); color: var(--white); }
.btn-pine:hover { background: var(--pine-2); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.round-btn { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--pine); display: grid; place-items: center; cursor: pointer; }
.round-btn[disabled] { opacity: .35; cursor: default; }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--pine); color: var(--white); }
.has-hero .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 28px; }
.brand:hover { color: var(--white); }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.site-nav > a:not(.btn) { color: var(--white); text-decoration: none; }
.site-nav > a:not(.btn):hover { color: #F4D29A; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); }
.lang-switch a { color: var(--white); text-decoration: none; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; min-width: 38px; text-align: center; }
.lang-switch a[aria-current] { background: var(--white); color: var(--pine); }
.menu-toggle { display: none; background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; padding: 10px 18px; font-weight: 600; cursor: pointer; min-height: 44px; }
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px; background: var(--pine); padding: 16px; border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 12px 8px; }
  .lang-switch { align-self: flex-start; margin: 8px 0; }
}

/* Hero */
.hero { position: relative; min-height: max(640px, 92vh); display: flex; color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,24,20,.62) 0%, rgba(8,24,20,.1) 34%, rgba(8,24,20,.8) 100%); }
.hero-body { position: relative; margin-top: auto; width: 100%; padding-top: 140px; padding-bottom: 56px; }
.hero-sub { margin: 22px 0 0; font-size: 19px; line-height: 1.55; max-width: 620px; color: #EEF2EF; }
.facts { margin: 36px 0 0; display: flex; flex-wrap: wrap; max-width: 880px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; }
.facts > div { flex: 1 1 140px; padding: 16px 22px; border-right: 1px solid rgba(255,255,255,.2); }
.facts dt { font-size: 13px; color: #D9E2DE; }
.facts dd { margin: 0; font-size: 20px; font-weight: 600; }
.facts .fact-price { background: var(--sun); color: var(--pine); border-right: 0; flex-basis: 170px; }
.facts .fact-price dt { color: var(--pine); }
.facts .fact-price dd { font-weight: 700; }

/* Split intro */
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-media { position: relative; }
.split-media img { width: 100%; height: 520px; object-fit: cover; border-radius: 24px; }
.badge-card { position: absolute; left: -20px; bottom: -26px; background: var(--pine); color: var(--white); padding: 20px 24px; border-radius: var(--radius); max-width: 270px; display: flex; flex-direction: column; gap: 4px; }
.badge-card strong { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.badge-card span { font-size: 14px; color: var(--light); }
@media (max-width: 700px) { .split { gap: 40px; } .split-media img { height: 340px; } .badge-card { left: 12px; } }

/* Cards */
.cards { display: grid; gap: 22px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 32px; }
.card { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.card h3 { margin: 6px 0 0; font-size: 19px; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.card-link:hover h3 { text-decoration: underline; }
.card-extra { flex-direction: row; gap: 18px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 16px; }
.card-extra img { width: 120px; aspect-ratio: 1; flex: none; border-radius: 12px; }
.card-extra h3 { margin-top: 2px; }

/* Bands */
.band-sand { background: var(--sand); }
.band-pine { background: var(--pine); color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 36px; }
.section-head .h2 { margin: 0; }
.section-head p { margin: 0; max-width: 440px; color: var(--muted); line-height: 1.6; }

.amenities, .locations { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.amenities li, .locations li { background: var(--white); border-radius: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; font-weight: 600; }
.amenities .icon, .locations .icon { flex: none; color: var(--pine); }
.loc-title { margin-top: 56px; }
.locations li { flex-wrap: wrap; }
.locations li span { flex: 1; font-weight: 500; color: var(--muted); }
.locations li strong { font-weight: 700; }

/* Gallery */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 12px; }
.bento-item { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--sand-2); }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bento-item:hover img { transform: scale(1.04); }
.bento-item.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .bento-item.big { grid-column: span 2; grid-row: span 2; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,18,15,.94); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: var(--light); font-size: 14px; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox { padding: 64px 8px; } .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

/* Availability */
.avail { display: flex; flex-wrap: wrap; gap: 40px; }
.avail-main { flex: 999 1 620px; min-width: 0; }
.avail-main > p { margin: 0 0 28px; }
.calendar { background: var(--ground); color: var(--ink); border-radius: 22px; padding: 24px; }
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-free { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.sw-booked { background: var(--sand-2); }
.sw-sel { background: var(--pine); }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 32px; min-height: 320px; }
.cal-status { grid-column: 1 / -1; text-align: center; color: var(--muted); align-self: center; }
.cal-title { font-family: var(--serif); font-size: 26px; text-align: center; margin: 0 0 12px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { font-size: 12px; font-weight: 700; color: var(--muted-2); text-align: center; padding-bottom: 4px; }
.day { height: 44px; border: 0; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--white); box-shadow: inset 0 0 0 1px #E2DDD2; color: var(--ink); cursor: pointer; }
.day:hover:not([disabled]) { box-shadow: inset 0 0 0 2px var(--pine); }
.day.booked { background: var(--sand-2); box-shadow: none; color: #5E584D; text-decoration: line-through; cursor: not-allowed; }
.day.past { background: transparent; box-shadow: none; color: #9AA39F; cursor: default; }
.day.in-range { background: var(--sun-soft); box-shadow: none; }
.day.edge { background: var(--pine); color: var(--white); box-shadow: none; }
/* A departure day may be the first day of another booking: show it half-booked. */
.day.turnover { background: linear-gradient(135deg, var(--white) 50%, var(--sand-2) 50%); }

.stay-card { flex: 1 1 300px; min-width: 0; align-self: flex-end; background: var(--pine-2); border-radius: 22px; padding: 28px; }
.stay-label { font-size: 13px; color: var(--light); }
.stay-summary { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin: 4px 0 18px; }
.stay-lines { margin: 0 0 22px; border-top: 1px solid var(--pine-3); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.stay-lines div { display: flex; justify-content: space-between; gap: 12px; }
.stay-lines dt { color: var(--light); }
.stay-lines dd { margin: 0; }
.stay-total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--pine-3); padding-top: 12px; margin-top: 4px; }
.stay-total dt { color: var(--white); }
.stay-total small { font-weight: 400; font-size: 12px; color: var(--light); }
.stay-card .small { margin: 14px 0 0; }
.stay-card .warn { color: #F4D29A; }

/* Hosts */
.hosts { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hosts img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; flex: none; }
.hosts > div { flex: 1 1 360px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 320px; min-width: 0; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.form { flex: 999 1 560px; min-width: 0; background: var(--white); border-radius: 22px; padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 400; background: var(--white); width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px rgba(16,48,42,.12); }
.form .full { grid-column: 1 / -1; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.form .check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--pine); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-msg { margin: 0; font-size: 15px; flex: 1 1 240px; }
.form-msg.ok { color: #1E6B4E; font-weight: 600; }
.form-msg.err { color: var(--danger); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .form { padding: 22px; } }

/* Footer */
.site-footer { background: var(--pine-deep); color: var(--light); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 24px; }
.footer-row p { margin: 6px 0 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.footer-nav a, .site-footer a { color: var(--light); }
.footer-nav a:hover { color: var(--white); }
.footer-copy { padding-bottom: 32px; color: #8FA39C; font-size: 13px; }

/* Content pages */
.page { padding-top: 64px; padding-bottom: 96px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1.05; margin: 0 0 28px; }
.prose { font-size: 16px; line-height: 1.75; color: #33433D; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--ink); margin: 40px 0 10px; }
.prose h3 { font-size: 18px; margin: 28px 0 6px; color: var(--ink); }
.prose ul { padding-left: 22px; }

.area-hero { position: relative; color: var(--white); min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; }
.area-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.area-hero .hero-scrim { background: linear-gradient(180deg, rgba(8,24,20,.25), rgba(8,24,20,.75)); }
.area-hero .wrap { position: relative; width: 100%; padding-top: 80px; padding-bottom: 40px; }
.area-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 68px); margin: 0 0 10px; line-height: 1.02; }
.area-hero p { max-width: 660px; font-size: 18px; margin: 0; color: #EEF2EF; }
.spots { display: flex; flex-direction: column; gap: 40px; }
.spot { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.spot img { flex: 1 1 340px; min-width: 0; width: 100%; max-width: 480px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.spot > div { flex: 1 1 360px; min-width: 0; }
.spot h3 { margin: 0 0 8px; font-size: 22px; }
.spot p { margin: 0; color: var(--muted); line-height: 1.7; }
.area-section { scroll-margin-top: 24px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
