:root {
  --teal: #0F4C4A;
  --teal-2: #17605d;
  --teal-soft: #e3efee;
  --sun: #E8892B;
  --sun-soft: #fdebd6;
  --cream: #FFF6EA;
  --ink: #1d2b2a;
  --muted: #5b6b69;
  --line: #dfe6e5;
  --bg: #fbfaf7;
  --ok: #1f7a4d;
  --bad: #b3261e;
  --r: 14px;
  --shadow: 0 1px 2px rgba(15, 76, 74, .06), 0 6px 20px rgba(15, 76, 74, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Nunito, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
a { color: var(--teal); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.brand svg { width: 36px; height: 36px; }
.brand .j { color: var(--sun); } .brand .h { color: var(--teal); }
.top nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.top nav a { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.top nav a:hover { background: var(--teal-soft); }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; background: var(--teal); color: #fff; min-height: 46px; }
.btn:hover { background: var(--teal-2); }
.btn.sun { background: var(--sun); }
.btn.sun:hover { background: #d47718; }
.btn.ghost { background: #fff; color: var(--teal); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--teal); background: #fff; }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: .9rem; border-radius: 10px; }
.btn.danger { background: #fff; color: var(--bad); border: 1.5px solid #f1c9c6; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 46px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer; font: inherit; font-size: .92rem; color: var(--ink); }
.chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.err { color: var(--bad); font-weight: 700; }
.note { background: var(--sun-soft); border-radius: 12px; padding: 12px 14px; }
.okbox { background: #e3f4ea; border-radius: 12px; padding: 12px 14px; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lcard { text-decoration: none; color: inherit; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.lcard:hover { transform: translateY(-2px); }
.lcard .ph { aspect-ratio: 4 / 3; background: var(--teal-soft) center / cover no-repeat; position: relative; }
.lcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.lcard .name { font-weight: 800; font-size: 1.05rem; }
.lcard .price { margin-top: auto; padding-top: 8px; font-weight: 800; }
.lcard .price b { color: var(--teal); font-size: 1.1rem; }
.tag { display: inline-block; background: rgba(255, 255, 255, .95); color: var(--teal); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: .78rem; }
.ph .tag { position: absolute; left: 10px; top: 10px; }
.ph .full { position: absolute; inset: 0; background: rgba(29, 43, 42, .55); color: #fff; display: grid; place-items: center; font-weight: 800; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .78rem; background: var(--teal-soft); color: var(--teal); }
.pill.sun { background: var(--sun-soft); color: #9a520c; }
.pill.bad { background: #fbe4e2; color: var(--bad); }
.pill.ok { background: #e3f4ea; color: var(--ok); }
.pill.grey { background: #eee; color: #555; }

/* hero */
.hero { background: linear-gradient(180deg, #fde3c3 0%, #FFF6EA 55%, var(--bg) 100%); position: relative; overflow: hidden; }
.hero .wrap { padding-top: 46px; padding-bottom: 30px; position: relative; z-index: 1; }
.hero .sunball { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, #f4a65a 0%, #E8892B 55%, rgba(232, 137, 43, 0) 70%); right: -80px; top: -60px; opacity: .55; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.search { margin-top: 18px; padding: 16px; display: grid; gap: 12px; grid-template-columns: 1.4fr 1fr 1fr 1fr .8fr auto; align-items: end; }
.search .field { margin: 0; }
@media (max-width: 900px) { .search { grid-template-columns: 1fr 1fr; } .search .q, .search .go { grid-column: 1 / -1; } }
.types { margin: 18px 0 6px; }

/* listing page */
.gallery { display: grid; gap: 6px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 190px 190px; border-radius: var(--r); overflow: hidden; margin: 16px 0; }
.gallery a { background: var(--teal-soft) center / cover no-repeat; display: block; }
.gallery a:first-child { grid-row: span 2; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 240px; } .gallery a:not(:first-child) { display: none; } }
.lay { display: grid; grid-template-columns: 1fr 370px; gap: 28px; align-items: start; }
.o-dates { margin-bottom: 14px; }
@media (max-width: 900px) {
  .lay { grid-template-columns: 1fr; gap: 0; }
  .lay > div, .lay > aside { display: contents; }
  .o-dates { order: 1; } .o-units { order: 2; } .o-pay { order: 3; margin-bottom: 26px; } .o-info { order: 4; }
}
.sticky { position: sticky; top: 76px; }
.unit { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.unit:first-child { border-top: 0; }
.unit .info { flex: 1; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.facil { display: flex; flex-wrap: wrap; gap: 8px; }
.facil span { background: var(--teal-soft); border-radius: 10px; padding: 5px 10px; font-weight: 700; font-size: .9rem; }
.sum { width: 100%; border-collapse: collapse; }
.sum td { padding: 4px 0; }
.sum td:last-child { text-align: right; white-space: nowrap; }
.sum tr.total td { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 800; font-size: 1.1rem; }
.pre { white-space: pre-line; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 50; display: grid; place-items: center; }
.lightbox img { max-height: 90vh; max-width: 94vw; }

/* dashboard */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px; }
.tabs a { white-space: nowrap; text-decoration: none; font-weight: 800; padding: 9px 14px; border-radius: 10px; color: var(--muted); }
.tabs a.on { background: var(--teal); color: #fff; }
table.list { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.list th { text-align: left; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll { overflow-x: auto; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 18px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 1.45rem; color: var(--teal); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs .t { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--teal-soft) center / cover no-repeat; }
.thumbs .t button { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .92); font-weight: 800; cursor: pointer; padding: 3px 8px; }
.thumbs .t .first { position: absolute; left: 6px; bottom: 6px; }
.modal { position: fixed; inset: 0; background: rgba(29, 43, 42, .5); z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal .card { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 60; max-width: 92vw; }
.auth { max-width: 440px; margin: 40px auto; }
.step { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.step i { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

footer { margin-top: 56px; background: var(--teal); color: #d9e7e6; padding: 30px 0; }
footer a { color: #fff; }
footer .brand .h { color: #fff; }
