/* ==========================================================================
   Demonstração — Casa da Serra (alojamento local)
   ========================================================================== */

body.demo--casa {
  --d-bg: #f1e7d8;
  --d-ink: #2a241c;
  --d-muted: #6f6252;
  --d-accent: #a64b2a;
  --d-accent-ink: #fff8ee;
  --d-focus: #1e35e8;
  --d-card: #f8f2e7;
  --d-card-ink: #2a241c;
  --d-input-bg: #fffaf1;
  --d-input-ink: #2a241c;
  --d-line: rgba(42, 36, 28, .22);
  --d-radius: 5px;
  --d-footer-bg: #2a241c;
  --d-footer-ink: #f8f2e7;
  background: var(--d-bg);
}

.demo--casa .site-header { background: color-mix(in srgb, #f1e7d8 91%, transparent); }

.casa-brand { align-items: center; }
.casa-brand__text { display: block; }
.casa-brand__mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--d-line);
  border-radius: 50%;
  color: var(--d-accent);
  font-size: .9rem;
}
.casa-brand small { display: block; margin-top: .12rem; }

/* Hero ------------------------------------------------------------------- */
.casa-hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.4rem, 5.5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
}

.casa-hero::before {
  content: "";
  position: absolute;
  top: 4%;
  right: -8%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, .22), transparent 68%);
  pointer-events: none;
}

.casa-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.casa-hero h1 {
  max-width: 12ch;
  margin: 0 0 .35em;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: .92;
  letter-spacing: -.045em;
}

.casa-hero h1 em {
  color: var(--d-accent);
  font-style: italic;
}

.casa-hero .demo-lead { max-width: 38ch; }

.casa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.6rem;
}

.casa-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin: 1.9rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--d-line);
  list-style: none;
}

.casa-facts span {
  display: block;
  font-family: var(--d-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--d-muted);
}

.casa-facts strong {
  font-family: var(--d-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.02em;
}

.casa-hero .demo-note { margin-top: 1.2rem; }

.casa-hero__media {
  position: relative;
  margin: 0;
  padding-bottom: 1.8rem;
}

.casa-hero__frame {
  overflow: hidden;
  border: 1px solid var(--d-line);
  border-radius: 260px 260px 8px 8px;
  aspect-ratio: 4 / 5.15;
  background: #e7d8c4;
  box-shadow: 13px 13px 0 rgba(166, 75, 42, .16);
}

.casa-hero__frame svg { width: 100%; height: 100%; }
.casa-hero__foto { object-position: 34% center; }

.casa-hero__media figcaption {
  margin-top: .8rem;
  font-family: var(--d-mono);
  font-size: .6rem;
  letter-spacing: .03em;
  color: var(--d-muted);
  text-align: right;
}

.casa-stamp {
  position: absolute;
  right: -1.2rem;
  bottom: 3.4rem;
  display: grid;
  place-items: center;
  width: 8.3rem;
  height: 8.3rem;
  padding: 1rem;
  border: 1px solid var(--d-ink);
  border-radius: 50%;
  background: var(--d-card);
  box-shadow: 4px 4px 0 var(--d-accent);
  transform: rotate(-7deg);
  text-align: center;
  font-family: var(--d-mono);
  font-size: .55rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.casa-stamp strong {
  display: block;
  font-family: var(--d-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -.03em;
  text-transform: none;
}

/* Secções ---------------------------------------------------------------- */
.casa-section { padding-block: clamp(3rem, 7vw, 6rem); }
.casa-section--tint { background: #e8dcc9; }
.casa-section--map { background: #ece1d1; }

.casa-h2 {
  max-width: 17ch;
  margin: 0 0 .5em;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  line-height: .95;
  letter-spacing: -.04em;
}

.casa-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--d-line);
}

.casa-head .demo-note { max-width: 27ch; margin: 0; }

.casa-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.casa-split__copy .demo-lead { max-width: 42ch; }
.casa-split__copy .demo-note { margin: 1rem 0 1.3rem; }
.casa-split__media { display: grid; gap: 1rem; }
.casa-split__media svg { width: 100%; height: auto; border: 1px solid var(--d-line); background: #e9d9c5; }
.casa-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--d-line); }
.casa-split__media img:first-child { border-radius: 8px 8px 90px 8px; }
.casa-split__media img:last-child { border-radius: 90px 8px 8px 8px; }
.casa-room { border-radius: 8px 8px 90px 8px; }
.casa-terrace { border-radius: 90px 8px 8px 8px; }

/* Comodidades ------------------------------------------------------------ */
.casa-amenities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--d-line);
}

.casa-amenities li {
  padding: 1.4rem 1.4rem 1.5rem 0;
  border-bottom: 1px solid var(--d-line);
  border-right: 1px solid var(--d-line);
}

.casa-amenities li:nth-child(4n) { border-right: 0; padding-right: 0; }
.casa-amenities li:not(:nth-child(4n + 1)) { padding-left: 1.3rem; }

.casa-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1rem;
  border: 1px solid var(--d-line);
  border-radius: 50%;
  color: var(--d-accent);
  font-size: 1rem;
}

.casa-amenities h3 {
  margin: 0 0 .35rem;
  font-family: var(--d-sans);
  font-size: .98rem;
  font-weight: 650;
  letter-spacing: 0;
}

.casa-amenities p { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--d-muted); }

/* Galeria ---------------------------------------------------------------- */
.casa-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}

.casa-gallery figure { margin: 0; }
.casa-gallery figure:nth-child(2) { margin-top: 2.6rem; }
.casa-gallery svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--d-line);
  border-radius: 6px;
  background: #e9d9c5;
}
.casa-gallery img {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  border: 1px solid var(--d-line);
  border-radius: 6px;
  background: #e9d9c5;
}
.casa-gallery figure:nth-child(1) img { border-radius: 120px 6px 6px 6px; }
.casa-gallery figure:nth-child(3) img { border-radius: 6px 6px 120px 6px; }

.casa-gallery figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: .6rem;
  padding-top: .5rem;
  border-top: 1px solid var(--d-line);
  font-family: var(--d-mono);
  font-size: .6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--d-muted);
}

/* Mapa ------------------------------------------------------------------- */
.casa-map-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.casa-map { margin: 0; aspect-ratio: 3 / 2; }
.casa-map svg { width: 100%; height: 100%; }

/* Reserva ---------------------------------------------------------------- */
.casa-reserva {
  background: #2a241c;
  color: #f8f2e7;
}

.casa-reserva .demo-kicker { color: #d9a441; }
.casa-reserva .demo-kicker__dot { background: #d9a441; }
.casa-reserva .casa-h2 { color: #f8f2e7; }
.casa-reserva .demo-lead { color: rgba(248, 242, 231, .75); }
.casa-reserva .demo-note { color: rgba(248, 242, 231, .55); }
.casa-reserva .demo-link { color: #d9a441; }

.casa-reserva__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.casa-reserva__list {
  display: grid;
  gap: .55rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.casa-reserva__list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: .9rem;
  color: rgba(248, 242, 231, .8);
}

.casa-reserva__list li::before {
  content: "";
  position: absolute;
  top: .6em;
  left: 0;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #d9a441;
}

.casa-reserva .demo-contactos a { border-color: rgba(248, 242, 231, .35); color: #f8f2e7; }
.casa-reserva .demo-contactos a:hover { border-color: #d9a441; color: #d9a441; }
.casa-reserva .demo-empty { color: rgba(248, 242, 231, .55); border-color: rgba(248, 242, 231, .25); }

.casa-form {
  background: #f8f2e7;
  color: #2a241c;
  border-color: transparent;
  box-shadow: 10px 10px 0 rgba(166, 75, 42, .55);
}

.casa-form h3 { margin: 0 0 .25rem; font-size: 1.7rem; }
.casa-form .demo-note { margin: 0 0 1.1rem; }
.casa-form .demo-form__note { color: #6f6252; }

.casa-reserva .form-result { background: #fffaf1; color: #2a241c; border-color: rgba(42, 36, 28, .22); }
.casa-reserva .form-result pre { background: #fff; color: #2a241c; }

/* Rodapé ----------------------------------------------------------------- */
.demo--casa .demo-footer { color: #f8f2e7; }
.demo--casa .demo-footer__grid { border-color: rgba(248, 242, 231, .22); }
.demo--casa .demo-footer h3 { color: #d9a441; }
.demo--casa .demo-footer a { color: #f8f2e7; }
.demo--casa .demo-footer a:hover { color: #d9a441; }
.demo--casa .demo-footer__brand p,
.demo--casa .demo-footer__bottom,
.demo--casa .demo-footer .demo-note { color: rgba(248, 242, 231, .55); }
.demo--casa .demo-footer .demo-empty { color: rgba(248, 242, 231, .5); border-color: rgba(248, 242, 231, .25); }
.demo--casa .demo-footer .demo-contactos a { color: #f8f2e7; border-color: rgba(248, 242, 231, .25); }
.demo--casa .demo-footer .demo-contactos a:hover { color: #d9a441; border-color: #d9a441; }

/* Responsivo ------------------------------------------------------------- */
@media (max-width: 980px) {
  .casa-hero__grid,
  .casa-split,
  .casa-map-grid,
  .casa-reserva__grid { grid-template-columns: 1fr; }
  .casa-hero__media { width: min(100%, 520px); margin-inline: auto; }
  .casa-split__copy { order: 2; }
  .casa-split__media { order: 1; }
  .casa-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .casa-amenities li:nth-child(4n) { border-right: 1px solid var(--d-line); padding-right: 1.4rem; }
  .casa-amenities li:nth-child(2n) { border-right: 0; padding-right: 0; }
  .casa-amenities li:nth-child(2n + 1) { padding-left: 0; }
  .casa-amenities li:nth-child(2n) { padding-left: 1.3rem; }
}

@media (max-width: 700px) {
  .casa-hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .casa-stamp { right: -.2rem; bottom: 2.2rem; width: 6.8rem; height: 6.8rem; font-size: .47rem; }
  .casa-stamp strong { font-size: 1.15rem; }
  .casa-gallery { grid-template-columns: 1fr; }
  .casa-gallery figure:nth-child(2) { margin-top: 0; }
  .casa-gallery svg { max-height: 440px; }
  .casa-head { align-items: start; }
  .casa-amenities { grid-template-columns: 1fr; }
  .casa-amenities li,
  .casa-amenities li:nth-child(2n),
  .casa-amenities li:nth-child(4n) {
    padding: 1.2rem 0;
    border-right: 0;
  }
  .casa-facts { gap: 1.2rem; }
  .casa-form { box-shadow: 6px 6px 0 rgba(166, 75, 42, .55); }
}
