/* Colors — change these if you want a new look. */
:root {
  --ink: #222222;
  --ink-soft: #3f3f3f;
  --paper: #fafafa;
  --foam: #ffffff;
  --line: #e8e4df;
  --mute: #6a6a6a;
  --clay: #c8451c;
  --clay-deep: #a33418;
  --sand: #f3eee8;
  --banner-h: 58px;
  --header-h: 62px;
  --font: "Outfit", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  min-height: 100dvh;
  padding-bottom: calc(var(--banner-h) + 18px);
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--clay-deep); }
button { cursor: pointer; }

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 8px 16px;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  background: transparent;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.brand-text span {
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--foam);
}
.lang button {
  background: transparent;
  color: var(--mute);
  border: 0;
  padding: 5px 9px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lang button.is-on { background: var(--clay); color: #fff; }
.nav-link {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 14px;
  padding: 6px 8px;
  text-decoration: none;
}
.nav-link.primary {
  background: var(--clay);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 15px;
}

/* Home */
.hero {
  padding: 32px 16px 8px;
  max-width: 960px;
  margin: 0 auto;
}
.kicker {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--clay-deep);
  font-weight: 600;
  margin: 0 0 8px;
}
h1 {
  font-weight: 600;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 18px;
}
.catalog-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mute);
  max-width: 36em;
  margin: -8px 0 18px;
}

.season-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.chip {
  border: 0;
  background: var(--sand);
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 100%;
}
.chip.is-on {
  background: var(--clay);
  color: #fff;
}
.seasons-fields {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.seasons-fields legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.filters {
  max-width: 960px;
  margin: 0 auto 16px;
  padding: 0 16px;
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.filters-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 12px;
  min-width: 0;
}
.filters-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.filters-rooms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.filters-price { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 380px) {
  .filters-main { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 560px) {
  .filters-rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.filter-hint { margin: 0; }
.filters-more {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 14px;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.filters-more.is-hide { display: none; }
.filter-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.filter-block-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}
.more-filters {
  justify-self: start;
  background: none;
  border: 0;
  padding: 6px 0 2px;
  color: var(--clay-deep);
  font-weight: 700;
  font-size: 14px;
}
.more-filters:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field span {
  font-size: 12px;
  color: var(--mute);
}
.field select, .field input, .field textarea {
  border: 1px solid var(--line);
  background: var(--foam);
  padding: 11px 12px;
  border-radius: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.town-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
}
.town-scroller button {
  flex: 0 0 auto;
  border: 0;
  background: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
}
.town-scroller button.is-on {
  background: var(--clay);
  color: #fff;
}

.grid {
  display: grid;
  gap: 16px;
  padding: 0 16px 40px;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

/* House cards */
.card {
  background: var(--foam);
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  padding: 0;
  color: inherit;
}
.tags-detail { margin: 12px 0 16px; }
.shore {
  height: 210px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 14px;
  color: #fff;
}
.shore img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.shore::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 16, 14, 0.55) 100%);
  pointer-events: none;
}
.shore small {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.card-body { padding: 14px 16px 16px; }
.card-body h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 6px;
  font-weight: 600;
}
.meta {
  color: var(--mute);
  font-size: 13px;
  margin: 0 0 8px;
}
.price {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  color: var(--clay-deep);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  font-size: 12px;
  border: 0;
  background: var(--sand);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
}

/* Inner pages */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 16px 48px;
}
.page-form {
  max-width: 680px;
}
.form-need {
  font-size: 14px;
  color: var(--mute);
  margin: -8px 0 20px;
}
.back {
  background: none;
  border: 0;
  padding: 0;
  color: var(--clay-deep);
  font-weight: 700;
  margin-bottom: 14px;
}
.page h1 { font-size: 34px; }
.prose p, .prose li { line-height: 1.55; color: var(--ink-soft); }
.prose h2 {
  font-size: 22px;
  margin: 22px 0 8px;
}
.detail-shore { height: 280px; border-radius: 22px; margin-bottom: 16px; overflow: hidden; }
.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -6px 0 16px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.thumbs .thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sand);
}
.thumbs .thumb.is-on { outline: 2px solid var(--clay); outline-offset: 2px; }
.thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#title-count { display: block; margin-top: 6px; }
.unlock {
  margin-top: 18px;
  padding: 18px;
  border: 0;
  background: var(--foam);
  border-radius: 20px;
}
.unlock h3 { margin: 0 0 8px; font-size: 22px; }

/* Buttons, forms, modal */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--clay);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  width: 100%;
}
.btn:hover { background: var(--clay-deep); }
.btn:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 3px;
}
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 0;
}
.btn + .btn { margin-top: 8px; }
.fine { font-size: 13px; color: var(--mute); margin: 0; line-height: 1.45; }
.opt { font-weight: 500; color: var(--mute); font-size: 12px; }
#blurb-count { display: block; margin-top: 6px; }

.form {
  display: grid;
  gap: 14px;
}
.form-card {
  background: var(--foam);
  border-radius: 22px;
  padding: 20px 16px;
  display: grid;
  gap: 14px;
}
.form-card > h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.form-row {
  display: grid;
  gap: 14px;
}
.renew-card { margin-bottom: 14px; gap: 10px; }
.renew-when {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.renew-when.is-soon { color: #8a6100; }
.renew-when.is-over { color: var(--clay-deep); }
.renew-buttons { display: grid; gap: 8px; }
@media (min-width: 560px) {
  .renew-buttons { grid-template-columns: 1fr 1fr; }
}
.renew-buttons .btn + .btn { margin-top: 0; }
.renew-buttons .btn.ghost { background: var(--sand); }
@media (min-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
  .form-row-3 .lbl { min-height: 36px; }
  .wa-row { grid-template-columns: minmax(168px, 0.95fr) 1.15fr; }
}
.form .lbl {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 6px;
  min-height: 17px;
}
.form .stack { display: block; margin: 0; font-weight: 400; }
/* .sr-only is excluded here: this selector outranks it and would give the
   hidden inputs a full-width box that sticks out of the viewport. */
.form-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not(.sr-only),
.form-card select,
.form-card textarea,
.form .stack input,
.form .stack select,
.form .stack textarea {
  width: 100%;
  display: block;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23222222' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form select:disabled {
  color: var(--mute);
  opacity: 1;
}
.form textarea {
  min-height: 168px;
  resize: vertical;
  line-height: 1.5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.photos { display: grid; gap: 8px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photo-slot,
.photo-add {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
}
.photo-slot { background: var(--sand); }
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-mark {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: var(--clay);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.photo-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 16, 14, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.photo-add {
  border: 1.5px dashed #d4cfc8;
  background: var(--paper);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px;
  width: 100%;
}
.photo-add:hover { border-color: var(--clay); color: var(--clay-deep); }
.photo-add:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.photo-plus {
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
}
.photo-add small {
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible,
.form input[type="file"]:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-color: var(--clay);
}
.form-set {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.form-set legend {
  padding: 0;
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.choice-row {
  display: grid;
  gap: 8px;
}
.choice-2 { grid-template-columns: 1fr 1fr; }
.choice-3 { grid-template-columns: 1fr 1fr 1fr; }
.choice {
  position: relative;
  display: block;
  margin: 0;
}
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink);
}
.choice input:checked + span {
  border-color: var(--clay);
  color: var(--clay-deep);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--clay);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.check-line input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  accent-color: var(--clay);
}
.check-line span { line-height: 1.35; }
.check-line:has(input:focus-visible) {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.tipo-sub {
  padding: 12px;
  background: var(--paper);
  border-radius: 14px;
}
.form-end { gap: 16px; }
.form-end .btn { margin-top: 2px; }
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
}
.check input { margin-top: 3px; }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.38);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  background: var(--foam);
  width: min(480px, 100%);
  border-radius: 24px 24px 0 0;
  padding: 20px 16px 28px;
  max-height: 92dvh;
  overflow: auto;
}
.sheet h2 { margin: 0 0 8px; }
@media (min-width: 640px) {
  .modal-back { align-items: center; }
  .sheet { border-radius: 24px; }
}

/* Ad strip at the bottom */
.banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  height: var(--banner-h);
  background: var(--sand);
  border-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  text-decoration: none;
  color: var(--ink);
}
.banner em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
}
.banner strong { font-size: 14px; }
.banner span { font-size: 12px; color: var(--ink-soft); margin-left: auto; }

.empty {
  padding: 28px 16px;
  color: var(--mute);
  text-align: center;
}

.wa {
  display: block;
  background: #25d366;
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 13px;
  border-radius: 999px;
  font-weight: 700;
}

.footer-mini {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 20px;
  font-size: 13px;
  color: var(--mute);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.is-hide { display: none; }

.cal-box { margin: 16px 0 8px; }
.cal-months { display: grid; gap: 18px; margin-top: 10px; }
.cal-month h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
  text-transform: capitalize;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  min-height: 34px;
  border: 0;
  background: var(--foam);
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  padding: 0;
}
button.cal-day { cursor: pointer; }
.cal-day.is-busy {
  background: var(--sand);
  color: var(--ink-soft);
  text-decoration: line-through;
}
.cal-day.is-past { color: var(--mute); }
.cal-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--sand);
  vertical-align: middle;
}

.footer-mini button, .footer-mini a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--clay-deep);
  font-size: 13px;
}
