/* Schedule n' Go - site design system. Hand-rolled, no framework.
   Warm sand canvas, deep evergreen primary, a confident "go" energy. */

:root {
  --ink: #16211d;
  --ink-soft: #44544c;
  --muted: #6b7a72;
  --sand: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #fbfaf6;
  --line: #e7e3d8;
  --line-strong: #d8d3c4;

  --green: #0c6b52;
  --green-700: #0a5642;
  --green-300: #2fae8a;
  --accent: #f0743a;
  --accent-700: #d65d26;
  --gold: #e7b84b;

  --ok: #1f8f5f;
  --warn: #b4690e;
  --err: #c0392b;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(22, 33, 29, .06), 0 1px 3px rgba(22, 33, 29, .05);
  --shadow: 0 6px 24px rgba(22, 33, 29, .08);
  --shadow-lg: 0 18px 50px rgba(22, 33, 29, .14);
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-700); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
small { color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--green); margin-bottom: .6rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, .82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.16rem; color: var(--ink); letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(150deg, var(--green-300), var(--green));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a.navlink { padding: 8px 12px; border-radius: 9px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav a.navlink:hover { background: rgba(12,107,82,.07); color: var(--green-700); }
.nav .sep { width: 1px; height: 22px; background: var(--line-strong); margin: 0 6px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 650; font-size: .96rem; cursor: pointer;
  padding: 11px 18px; border-radius: 11px; border: 1px solid transparent;
  transition: transform .04s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-700); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--green-700); }
.btn-quiet:hover { background: rgba(12,107,82,.08); }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 78px 0 56px; position: relative; overflow: hidden; }
.hero h1 { max-width: 14ch; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 52ch; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art {
  position: absolute; right: -80px; top: -40px; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(47,174,138,.20), rgba(47,174,138,0));
  border-radius: 50%; pointer-events: none;
}

/* ---------- search bar ---------- */
.searchbar {
  display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 8px; box-shadow: var(--shadow); max-width: 640px;
}
.searchbar input {
  flex: 1; border: 0; outline: 0; background: transparent; font: inherit; padding: 10px 12px; color: var(--ink);
}
.searchbar input::placeholder { color: var(--muted); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.listing-card { display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .12s ease; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.listing-card .thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e9efe9, #dfeee7); position: relative; }
.listing-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green-300); font-size: 2rem; opacity: .6; }
.listing-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing-card .body h3 { font-size: 1.05rem; margin: 0; }
.listing-card .prov { font-size: .85rem; color: var(--muted); }
.listing-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-weight: 750; color: var(--ink); }
.price .unit { font-weight: 500; color: var(--muted); font-size: .85rem; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: rgba(12,107,82,.09); color: var(--green-700); }
.badge-soft { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.stars { color: var(--gold); font-size: .9rem; letter-spacing: 1px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-soft); }
.input, select.input, textarea.input {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 13px; outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { border-color: var(--green-300); box-shadow: 0 0 0 3px rgba(47,174,138,.18); }
textarea.input { resize: vertical; min-height: 96px; }

.auth-card { max-width: 420px; margin: 0 auto; padding: 30px; }
.oauth-row { display: grid; gap: 10px; margin: 14px 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 18px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }

/* ---------- booking widget ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { padding: 10px 8px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; font: inherit; font-size: .88rem; cursor: pointer; text-align: center; }
.slot:hover { border-color: var(--green-300); }
.slot.selected { background: var(--green); color: #fff; border-color: var(--green); }
.daypills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.daypill { flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: .85rem; text-align: center; min-width: 64px; }
.daypill.selected { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- feature blocks ---------- */
.feature { padding: 24px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(12,107,82,.10); color: var(--green-700); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 12px; }
.steps { counter-reset: step; }
.step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .num { counter-increment: step; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step .num::before { content: counter(step); }

.cta-band { background: linear-gradient(140deg, var(--green-700), var(--green)); color: #fff; border-radius: var(--radius-lg); padding: 44px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.86); }

/* ---------- toast / alerts ---------- */
.alert { padding: 12px 14px; border-radius: 11px; font-size: .92rem; margin-bottom: 14px; border: 1px solid; }
.alert-err { background: #fdecea; border-color: #f5c6c0; color: #8c2c20; }
.alert-ok { background: #e9f6ee; border-color: #bfe4cd; color: #1c6b41; }
.alert-info { background: #eef3fb; border-color: #cdddf2; color: #285189; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 11px; box-shadow: var(--shadow-lg); opacity: 0; transition: all .2s ease; z-index: 100; font-size: .92rem; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- footer ---------- */
.site-footer { background: #11201b; color: #cdd9d2; margin-top: 80px; padding: 56px 0 34px; }
.site-footer a { color: #cdd9d2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #9fb1a8; }

/* ---------- misc ---------- */
.skeleton { background: linear-gradient(90deg, #ececec, #f6f6f6, #ececec); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.stack > * + * { margin-top: 14px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; border-radius: var(--radius); overflow: hidden; }
.gallery .main { aspect-ratio: 16/11; background: #e9efe9; }
.gallery .main img, .gallery .side img { width: 100%; height: 100%; object-fit: cover; }
.gallery .side { display: grid; gap: 10px; }

@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .sep { display: none; }
  .menu-toggle { display: block; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .side { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* layout helpers for detail pages */
.two-col { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.sticky-side { position: sticky; top: 86px; }
