/* 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: 122px;
  --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;
}
.hero-visual {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: min(70vh, 620px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-color: #222;
  background-image: var(--hero-img);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.45) 48%,
    rgba(0, 0, 0, 0.78) 100%
  );
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 16px 40px;
}
.hero-visual .kicker {
  color: rgba(255, 255, 255, 0.92);
}
.hero-visual h1 {
  color: #fff;
}
.hero-visual .lede {
  color: rgba(255, 255, 255, 0.92);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-visual .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.hero-visual .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 640px) {
  .hero-visual {
    min-height: min(78vh, 720px);
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}
.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: 960px;
  margin: 16px auto 8px;
  padding: 0 16px;
}

.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));
  }
  .filters-rooms-2 {
    grid-template-columns: minmax(0, 1fr) 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;
}
.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
}
.detail-head h1 {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.share-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 0;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition:
    color 0.15s ease,
    background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.share-link:hover,
.share-link:focus-visible {
  color: var(--clay-deep);
  background: #ebe4db;
  outline: none;
}
.share-link:active {
  background: #e4dbd0;
}
.share-link.is-done {
  color: var(--clay-deep);
}
.share-link-ico {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
.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: clamp(300px, 55vw, 420px);
  border-radius: 22px;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--sand);
}

.detail-shore img {
  object-fit: cover;
  cursor: zoom-in;
}

/* Fullscreen property photo viewer */
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 64px 36px;
  background: rgba(20, 16, 14, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.photo-viewer-image {
  width: min(92vw, 1400px);
  height: min(84dvh, 900px);
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.photo-viewer-count {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  z-index: 2;
}

.photo-viewer-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.photo-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.photo-viewer-prev {
  left: 16px;
}

.photo-viewer-next {
  right: 16px;
}

@media (max-width: 640px) {
  .photo-viewer {
    padding: 50px 8px 22px;
  }

  .photo-viewer-image {
    width: 100%;
    height: calc(100dvh - 78px);
    border-radius: 8px;
  }

  .photo-viewer-nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .photo-viewer-prev {
    left: 8px;
  }

  .photo-viewer-next {
    right: 8px;
  }

  .photo-viewer-close {
    top: 8px;
    right: 8px;
  }

  .photo-viewer-count {
    top: 16px;
  }
}

.house-videos {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
}
.house-videos .house-video {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}
.house-videos.is-pair .house-video {
  border-radius: 14px;
}
.house-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #140e0c;
  margin: 0 0 16px;
}
.house-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.house-video-start {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #140e0c;
}
.house-video-start img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.house-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.house-video-play::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.house-videos.is-pair .house-video-play {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
}
.house-videos.is-pair .house-video-play::after {
  left: 18px;
  top: 15px;
  border-width: 9px 0 9px 15px;
}
.youtube-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}
.youtube-fields .stack {
  min-width: 0;
}
.youtube-fields input {
  width: 100%;
}
.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;
}
.calm {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--sand);
  border-radius: 20px;
}
.calm h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.calm p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.calm ul {
  margin: 0 0 10px;
  padding: 0 0 0 1.15em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}
.calm li + li {
  margin-top: 6px;
}
.calm .fine {
  margin: 0;
}
.calm button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--clay-deep);
  font-size: 13px;
  font-weight: 600;
}

/* 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:disabled {
  cursor: wait;
  background: var(--clay);
}
.btn:disabled:hover {
  background: var(--clay);
}
.btn-spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  flex: 0 0 auto;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
.form-wait {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--clay-deep);
  text-align: center;
  min-height: 1.35em;
}
.form.is-sending {
  pointer-events: none;
}
.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;
}
.other-sites {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 12px 0 0;
  line-height: 1.4;
}
.other-sites a {
  color: var(--clay-deep);
}
.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.is-off {
  opacity: 0.45;
}
.form .stack.is-off input {
  background: var(--sand);
}
.price-preview {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: var(--sand);
  border-radius: 16px;
}
.price-preview-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.price-preview-value {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--clay-deep);
}
#price-rule {
  margin: 10px 0 12px;
}
.form-errors {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #c8451c;
  border-radius: 14px;
  background: #fff2ed;
  color: #a33418;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.form-errors[hidden] {
  display: none;
}
.form .stack.is-invalid .lbl,
.form .form-set.is-invalid legend,
.form .photos.is-invalid .lbl,
.form .check-line.is-invalid {
  color: #a33418;
}
.form .stack.is-invalid input,
.form .stack.is-invalid select,
.form .stack.is-invalid textarea,
.form .form-set.is-invalid .choice span,
.form .photos.is-invalid .photo-add,
.form .check-line.is-invalid {
  border-color: #c8451c;
  box-shadow: inset 0 0 0 1px #c8451c;
}
/* .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 > span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
}

.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 */
/* Ad strip at the bottom */

.banner {
  --ad-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 0h118C148 8 158 20 138 34c-18 12 28 14 16 30-12 14 28 16 12 28-8 6-22 8-36 8H0z'/%3E%3C/svg%3E");

  position: fixed;
  left: 50%;
  right: auto;
  bottom: 10px;
  z-index: 25;

  transform: translateX(-50%);

  width: min(calc(100% - 32px), 960px);
  height: var(--banner-h);

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: auto 1fr;
  align-items: stretch;

  padding: 0 0 0 30%;

  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 5px 22px rgba(34, 34, 34, 0.08);

  text-decoration: none;
  color: var(--ink);
}

/* PUBLICIDAD arriba del texto */
.banner em {
  grid-column: 1;
  grid-row: 1;

  align-self: end;
  justify-self: start;
  position: relative;
  z-index: 1;

  margin: 0;
  padding: 10px 12px 0 4px;

  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
}

/* Imagen izquierda (layout del cliente, borde ondulado) */
.banner .ad-thumb,
.banner .ad-thumb-default {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;

  width: 36%;
  height: 100%;
  margin: 0;
  pointer-events: none;

  object-fit: cover;
  object-position: center;

  background: var(--sand);
  -webkit-mask-image: var(--ad-wave);
  mask-image: var(--ad-wave);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Cuando un anuncio no tiene imagen */
.banner .ad-thumb-default {
  display: grid;
  place-items: center;
  color: var(--clay);
  font-size: 22px;
  font-weight: 700;
}

/* Nombre + descripción */
.banner .ad-copy {
  grid-column: 1;
  grid-row: 2;

  align-self: start;
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;

  min-width: 0;

  padding: 2px 12px 10px 4px;

  line-height: 1.2;
}

/* Nombre */
.banner .ad-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;

  color: var(--ink);
}

/* Descripción */
.banner .ad-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  margin-top: 4px;

  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;

  color: var(--ink);
}

.banner .ad-social {
  grid-column: 2;
  grid-row: 1 / span 2;

  display: flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  margin: 0 6px 0 0;
}

.ad-fb-link,
.ad-wa-link {
  display: inline-flex;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  cursor: pointer;
}

.ad-fb-link img,
.ad-wa-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.22);
}

/* CTA derecho */
.banner .ad-cta {
  grid-column: 3;
  grid-row: 1 / span 2;

  align-self: center;
  position: relative;
  z-index: 1;

  margin: 0 22px 0 8px;
  padding: 8px 22px;

  border: 1.5px solid var(--clay);
  border-radius: 10px;

  background: #fff6f2;
  color: var(--clay);

  font-size: 13px;
  font-weight: 700;

  white-space: pre-line;
  text-align: center;
  line-height: 1.2;
}

/* Transición entre anuncios */
.banner.ad-fade {
  animation: ad-fade 220ms ease-out;
}

@keyframes ad-fade {
  from {
    opacity: 0.72;
  }

  to {
    opacity: 1;
  }
}

/* Selector de imagen del formulario de publicidad */
.ad-photo-pick {
  display: block;
  width: 112px;
  height: 82px;
  overflow: hidden;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
}

.ad-photo-empty {
  display: grid;
  height: 100%;
  margin: 0;
  place-content: center;
  gap: 3px;
  text-align: center;
  color: var(--ink-soft);
}

.ad-photo-empty strong {
  color: var(--clay);
  font-size: 24px;
  line-height: 1;
}

.ad-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Móvil */
@media (max-width: 600px) {
  :root {
    --banner-h: 112px;
  }

  .banner {
    width: calc(100% - 16px);
    bottom: 8px;
    padding-left: 32%;
    grid-template-columns: minmax(0, 1fr) auto auto;
    border-radius: 14px;
  }

  .banner em {
    padding: 8px 8px 0 2px;
    font-size: 8px;
  }

  .banner .ad-thumb,
  .banner .ad-thumb-default {
    width: 38%;
  }

  .banner .ad-copy {
    padding: 2px 8px 8px 8px;
  }

  .banner .ad-copy strong {
    font-size: 13px;
    line-height: 1.15;
  }

  .banner .ad-copy small {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
  }

  .banner .ad-social {
    gap: 6px;
    margin: 0 4px 0 0;
  }

  .ad-fb-link,
  .ad-wa-link {
    width: 30px;
    height: 30px;
  }

  .banner .ad-cta {
    margin: 0 10px 0 4px;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 8px;
  }
}

.ad-photo-pick {
  display: block;
  width: 112px;
  height: 82px;
  overflow: hidden;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
}
.ad-photo-empty {
  display: grid;
  height: 100%;
  margin: 0;
  place-content: center;
  gap: 3px;
  text-align: center;
  color: var(--ink-soft);
}
.ad-photo-empty strong {
  color: var(--clay);
  font-size: 24px;
  line-height: 1;
}
.ad-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 480px) {
  .banner {
    padding-left: 32%;
  }

  .banner em {
    font-size: 7px;
  }

  .banner .ad-copy {
    padding-right: 6px;
  }

  .banner .ad-copy strong {
    font-size: 12px;
  }

  .banner .ad-copy small {
    font-size: 10px;
  }

  .ad-fb-link,
  .ad-wa-link {
    width: 28px;
    height: 28px;
  }

  .banner .ad-cta {
    margin-right: 8px;
    padding: 5px 10px;
    font-size: 10px;
  }
}

.sw-update {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--banner-h) + 10px);
  z-index: 26;
  max-width: 400px;
  margin: 0 auto;
  background: var(--foam);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(28, 25, 23, 0.16);
  padding: 14px 40px 12px 16px;
}
.sw-update-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.sw-update-text {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.sw-update-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.sw-update-later {
  background: none;
  border: 0;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
}
.sw-update-go {
  padding: 8px 14px;
  font-size: 14px;
}
.sw-update-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.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;
}
.wa-logo {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  object-fit: contain;
}

.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;
}

s {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.banner .ad-cta s {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: inherit;
  font-weight: inherit;
}
