/* Rent Vacation Villa — responsive stylesheet (mobile-first).
   Brand: deep palm green #0C3B2E, sun gold #E9B44C, cream #FAF6EC. */

:root {
  --green: #0c3b2e;
  --green-deep: #082a21;
  --gold: #e9b44c;
  --gold-soft: #f5d78e;
  --cream: #faf6ec;
  --ink: #1d2a24;
  --muted: #5c6f66;
  --line: #e5dcc6;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(12, 59, 46, 0.12);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--green); line-height: 1.2; margin: 0 0 0.6rem; }
a { color: var(--green); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1rem; }

/* ---------- header ---------- */
.site-header {
  background: var(--green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gold); color: var(--green);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.brand-name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; border-radius: 8px; padding: 0.4rem 0.7rem; font-size: 1rem;
}
.nav { display: flex; gap: 0.25rem; align-items: center; }
.nav a {
  color: #fff; text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 8px; font-size: 0.95rem;
}
.nav a:hover { background: rgba(255,255,255,0.12); }
.nav a.cta { background: var(--gold); color: var(--green); font-weight: 700; }
.nav a.cta:hover { background: var(--gold-soft); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 70%);
  color: #fff;
  padding: 3rem 0 3.5rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0.5rem; }
.hero p.lead { color: var(--gold-soft); font-size: 1.1rem; max-width: 640px; }
.search-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem; margin-top: 1.5rem;
  display: grid; gap: 0.9rem;
  grid-template-columns: 1fr;
}
.field label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: var(--sans); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold); border-color: var(--gold);
}
.btn {
  display: inline-block; border: none; cursor: pointer;
  background: var(--gold); color: var(--green);
  font-weight: 800; font-size: 1rem; padding: 0.85rem 1.6rem;
  border-radius: 10px; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--gold-soft); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-block { width: 100%; }

/* ---------- sections ---------- */
.section { padding: 2.5rem 0; }
.section.alt { background: #fff; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.section-sub { color: var(--muted); max-width: 680px; }

/* ---------- villa cards ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #dfe7e1; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--gold); color: var(--green);
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.card-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.25rem; }
.card-loc { color: var(--muted); font-size: 0.9rem; }
.card-meta { display: flex; gap: 1rem; font-size: 0.9rem; color: var(--muted); flex-wrap: wrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.6rem; }
.price { font-family: var(--serif); font-size: 1.3rem; color: var(--green); font-weight: 700; }
.price small { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.rating { color: #b07d1e; font-weight: 700; }

/* ---------- trust strip ---------- */
.trust-strip { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.trust-item {
  background: var(--green); color: #fff; border-radius: var(--radius);
  padding: 1.25rem; display: flex; gap: 0.9rem; align-items: flex-start;
}
.trust-item .icon { font-size: 1.6rem; }
.trust-item h3 { color: var(--gold); margin: 0 0 0.25rem; font-size: 1.1rem; }
.trust-item p { margin: 0; font-size: 0.92rem; color: #e8efe9; }

/* ---------- fee calculator ---------- */
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem;
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
.calc-lines { display: grid; gap: 0.45rem; }
.calc-line { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); font-size: 0.98rem; }
.calc-line.total { border-bottom: none; font-weight: 800; font-size: 1.15rem; color: var(--green); padding-top: 0.6rem; }
.calc-note { font-size: 0.85rem; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--green); }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
table.compare th, table.compare td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.compare th { background: var(--green); color: #fff; font-family: var(--serif); }
table.compare tr.highlight td { background: #fdf6e3; font-weight: 700; }
table.compare td small { color: var(--muted); }

/* ---------- villa detail ---------- */
.gallery { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: #dfe7e1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.gallery-thumbs img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--gold); }
.detail-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { background: #eef3ef; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.88rem; }
.booking-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; position: sticky; top: 90px;
}
.dbpr { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; border-top: 1px dashed var(--line); padding-top: 0.75rem; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.steps { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.step-dot { flex: 1; text-align: center; font-size: 0.8rem; color: var(--muted); padding-top: 0.6rem; border-top: 4px solid var(--line); }
.step-dot.active { color: var(--green); font-weight: 800; border-top-color: var(--gold); }
.form-step { display: none; }
.form-step.active { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.notice { background: #fdf6e3; border: 1px solid var(--gold); border-radius: 10px; padding: 0.9rem 1.1rem; font-size: 0.92rem; }
.notice.demo { background: #eef4ff; border-color: #9db8e8; }
.success { text-align: center; padding: 2rem 1rem; }
.success .big { font-size: 3rem; }

/* ---------- guides ---------- */
.disclosure {
  background: var(--green); color: var(--gold-soft);
  border-radius: 10px; padding: 0.8rem 1.1rem; font-size: 0.88rem; margin-bottom: 1.5rem;
}
.article { max-width: 760px; }
.article h2 { margin-top: 1.8rem; }
.article p { margin: 0 0 1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-deep); color: #cfdad4; padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.site-footer h4 { color: var(--gold); margin: 0 0 0.6rem; font-family: var(--serif); }
.site-footer a { color: #cfdad4; text-decoration: none; display: block; padding: 0.2rem 0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold); }
.fine { font-size: 0.8rem; color: #9db0a6; grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.filters { display: grid; gap: 0.8rem; grid-template-columns: 1fr 1fr; margin: 1.25rem 0; }
.result-count { color: var(--muted); font-size: 0.92rem; }
.cta-band { background: var(--gold); border-radius: var(--radius); padding: 2rem; text-align: center; margin-top: 2rem; }
.cta-band h2 { color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .search-card { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .search-card { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; }
  .calc { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 2fr 1fr; align-items: start; }
  .gallery { grid-template-columns: 2fr 1fr; }
  .gallery-main { grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
  .gallery-thumbs { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .nav { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: var(--green); padding: 0.75rem 1rem 1rem; }
  .nav.open { display: flex; }
  .site-header .wrap { position: relative; }
}
