/* Urban Place — deep green + brass. Change the palette here. */
:root {
  --green-900: #15291f;
  --green-800: #1f3b2d;
  --green-700: #2c4f3d;
  --green-100: #e4ebe5;
  --brass: #b08d57;
  --brass-dark: #8c6d3f;
  --brass-light: #efe4cf;
  --paper: #f7f4ee;
  --white: #fffdf9;
  --ink: #1d2420;
  --muted: #5f6b64;
  --line: #ddd6c8;
  --danger: #a23b2a;
  --ok: #2f6b45;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 41, 31, 0.09);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--green-900); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-dark); font-weight: 600; margin-bottom: 0.6em; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Header / footer ---- */
.site-header { background: var(--green-900); color: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.02em; }
.brand .mark { color: var(--brass); font-size: 1.1rem; }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { color: #d9e2dc; text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--white); }
.nav .btn { color: var(--green-900); }
.nav-toggle { display: none; background: none; border: 1px solid #ffffff44; color: var(--white); border-radius: 8px; padding: 0.4rem 0.7rem; font-size: 0.9rem; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--green-900); flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem 1.4rem; gap: 0.9rem; }
  .nav.open { display: flex; }
}
.site-footer { background: var(--green-900); color: #c9d4cd; margin-top: 5rem; padding: 3rem 0 2rem; font-size: 0.92rem; }
.site-footer a { color: var(--brass-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: var(--white); font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin: 0 0 0.6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.35rem; }
.footer-base { border-top: 1px solid #ffffff1f; margin-top: 2rem; padding-top: 1.2rem; font-size: 0.82rem; color: #9fb0a5; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Buttons & forms ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border: 0; border-radius: 999px; padding: 0.8rem 1.5rem; font: 600 0.98rem var(--sans); text-decoration: none; cursor: pointer; background: var(--brass); color: var(--green-900); transition: background 0.15s, transform 0.15s; }
.btn:hover { background: #c29d65; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.dark { background: var(--green-800); color: var(--white); }
.btn.dark:hover { background: var(--green-700); }
.btn.ghost { background: transparent; color: var(--green-800); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--white); }
.btn.block { width: 100%; }
.btn.sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--green-900); margin-bottom: 0.3rem; }
input, select, textarea { width: 100%; font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.field { margin-bottom: 0.95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.88rem; color: var(--ink); }
.check input { width: auto; margin-top: 0.25rem; }
.hp { position: absolute; left: -5000px; }
.alert { border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.92rem; margin: 0.8rem 0; }
.alert.error { background: #f7e3df; color: var(--danger); }
.alert.info { background: var(--brass-light); color: var(--green-900); }
.alert.ok { background: #dfeee4; color: var(--ok); }

/* ---- Hero ---- */
.hero { position: relative; min-height: 72vh; display: grid; align-items: end; color: var(--white); background: var(--green-800); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg.pattern { background:
  radial-gradient(circle at 20% 20%, #2c4f3d 0, transparent 45%),
  radial-gradient(circle at 85% 70%, #3b5d48 0, transparent 40%),
  repeating-linear-gradient(135deg, #1f3b2d 0 22px, #22412f 22px 44px); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,41,31,0.15) 0%, rgba(21,41,31,0.8) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 6rem 0 4rem; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero p { font-size: 1.15rem; max-width: 46ch; color: #e4ebe5; }
.hero .eyebrow { color: var(--brass-light); }

/* ---- Sections ---- */
.section { padding: 4.5rem 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-head p { max-width: 52ch; margin: 0; color: var(--muted); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.6rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(21,41,31,0.14); }
.card .media { aspect-ratio: 4 / 3; background: var(--green-100); position: relative; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .tag { position: absolute; top: 0.8rem; left: 0.8rem; background: var(--white); color: var(--green-900); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; }
.card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card h3 { margin: 0; }
.card .meta { color: var(--muted); font-size: 0.9rem; }
.card .price { margin-top: auto; padding-top: 0.6rem; font-weight: 600; color: var(--green-800); }
.card .price span { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.card.unavailable { opacity: 0.75; }

.placeholder { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: var(--green-700); font-family: var(--serif); font-size: 1.05rem;
  background: repeating-linear-gradient(135deg, var(--green-100) 0 16px, #dbe4dd 16px 32px); }
.placeholder small { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.feature { border-top: 2px solid var(--brass); padding-top: 1rem; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---- Property / unit pages ---- */
.page-head { padding: 3rem 0 1.5rem; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.8rem; }
.crumbs a { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.pills li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.88rem; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.6rem; height: clamp(280px, 52vw, 520px); border-radius: var(--radius); overflow: hidden; }
.gallery button { padding: 0; border: 0; background: var(--green-100); cursor: zoom-in; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:first-child { grid-row: span 2; }
.gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.count-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.gallery.count-2 button:first-child, .gallery.count-1 button:first-child { grid-row: auto; }
.gallery.count-3 { grid-template-columns: 2fr 1fr; }
.gallery .more { position: absolute; right: 0.8rem; bottom: 0.8rem; background: var(--white); color: var(--green-900); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.85rem; font-weight: 600; }
.gallery.empty { display: block; height: auto; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
}

.lightbox { position: fixed; inset: 0; background: rgba(12,20,16,0.94); z-index: 50; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox img { max-height: 86vh; margin: auto; border-radius: 6px; }
.lightbox button { background: none; border: 0; color: var(--white); font-size: 2.2rem; cursor: pointer; height: 100%; }
.lightbox .close { position: absolute; top: 0.6rem; right: 1rem; height: auto; font-size: 2rem; }
.lightbox .count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #c9d4cd; font-size: 0.9rem; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 3rem; align-items: start; margin-top: 2.5rem; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.2rem 0; border-block: 1px solid var(--line); margin-bottom: 1.8rem; }
.facts div { text-align: center; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--green-800); }
.facts span { font-size: 0.82rem; color: var(--muted); }
.amenities { columns: 2; padding-left: 1.1rem; }
.amenities li { margin-bottom: 0.3rem; }
.amenities li::marker { color: var(--brass); }

/* ---- Booking panel ---- */
.booking-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; position: sticky; top: 88px; }
.booking-panel .from { font-family: var(--serif); font-size: 1.6rem; color: var(--green-900); }
.booking-panel .from span { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.date-summary { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; margin: 1rem 0 0.8rem; overflow: hidden; }
.date-summary div { padding: 0.55rem 0.8rem; }
.date-summary div + div { border-left: 1px solid var(--line); }
.date-summary small { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.quote { margin: 1rem 0; font-size: 0.95rem; }
.quote .row { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.quote .total { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.6rem; font-weight: 700; color: var(--green-900); }

/* ---- Calendar ---- */
.cal { user-select: none; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.cal-head button { background: none; border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; color: var(--green-800); font-size: 1rem; }
.cal-head button[disabled] { opacity: 0.3; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.cal-month h4 { text-align: center; margin: 0 0 0.4rem; font-family: var(--serif); font-weight: 600; color: var(--green-900); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid .dow { font-size: 0.7rem; text-align: center; color: var(--muted); font-weight: 700; padding: 0.2rem 0; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: 8px; font: 500 0.88rem var(--sans); color: var(--ink); cursor: pointer; position: relative; }
.cal-day:hover:not([disabled]) { background: var(--green-100); }
.cal-day[disabled] { color: #b9bfba; cursor: default; }
.cal-day.booked { text-decoration: line-through; color: #b9bfba; }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--brass); }
.cal-day.in-range { background: var(--brass-light); border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--green-800); color: var(--white); }
.cal-day.start { border-radius: 8px 0 0 8px; }
.cal-day.end { border-radius: 0 8px 8px 0; }
.cal-day.start.end { border-radius: 8px; }
.cal-day.checkout-only { color: var(--muted); }
.cal-legend { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; flex-wrap: wrap; }
.cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.35rem; vertical-align: -1px; }
.cal-legend .l-sel::before { background: var(--green-800); }
.cal-legend .l-booked::before { background: #d9dcd9; }

/* ---- Admin ---- */
.admin-wrap { width: min(1300px, 100% - 2rem); margin: 2rem auto; }
.admin-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.admin-bar select, .admin-bar input { width: auto; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--green-100); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-900); position: sticky; top: 0; }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge.paid { background: #dfeee4; color: var(--ok); }
.badge.pending { background: var(--brass-light); color: var(--brass-dark); }
.badge.blocked { background: #e3e6ea; color: #3d4a57; }
.badge.cancelled, .badge.expired { background: #f0eeea; color: #8a8a85; }
.attn { color: var(--danger); font-weight: 600; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; }

/* ---- Prose pages ---- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.notice { background: var(--brass-light); border-left: 4px solid var(--brass); padding: 0.9rem 1.1rem; border-radius: 8px; margin: 1.2rem 0; }
