/* GERADO por scripts/build-css.ts — NÃO edite aqui.
   Edite os parciais em src/views/styles/ e rode `bun run build:css`. */

/* ===================== base ===================== */
:root {
  --sand: #fdf7ec;
  --sand-2: #fffdf8;
  --shell: #f3ead9;
  --paper: #ffffff;
  --line: #e8dcc6;
  --line-soft: #f0e7d6;
  --ink: #15191c;
  --ink-2: #2a2f33;
  --text: #1d2226;
  --muted: #6b7177;
  --faint: #9aa0a6;
  --sea: #0b96b0;
  --sea-deep: #07748a;
  --sun: #f4a72c;
  --coral: #ff5a4d;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --shadow-card: 0 1px 2px rgba(20, 30, 35, 0.04), 0 8px 22px -16px rgba(20, 30, 35, 0.25);
  --img-outline: inset 0 0 0 1px rgba(20, 30, 35, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--sand);
  background-image: linear-gradient(180deg, #e7f5f7 0%, #f4f3ea 22%, var(--sand) 46%);
  background-repeat: no-repeat;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection {
  background: var(--sea);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

p {
  text-wrap: pretty;
}

.muted {
  color: var(--muted);
}

/* ===================== buttons ===================== */
/* ---------- Buttons (solid black) ---------- */
.btn-pill,
.btn-ghost {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  border: 1px solid transparent;
  transition: transform 0.12s var(--ease), background 0.18s var(--ease),
    color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-pill {
  color: #fff;
  background: var(--ink);
}
.btn-pill:hover {
  background: var(--ink-2);
}
.btn-pill:active {
  transform: scale(0.96);
}
.btn-ghost {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--shell);
  border-color: var(--ink);
}
.btn-ghost:active {
  transform: scale(0.96);
}
.btn-lg {
  padding: 0.85rem 1.7rem;
  font-size: 1.02rem;
}
.btn-pill.is-loading,
.btn-ghost.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: progress;
  opacity: 0.92;
}
.btn-spin {
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: btnSpin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ===================== forms ===================== */
.field {
  margin-bottom: 1.2rem;
}
.field > label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comment-form textarea,
.field textarea,
.field input,
.url-row input {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.comment-form textarea::placeholder,
.field textarea::placeholder,
.field input::placeholder,
.url-row input::placeholder {
  color: var(--faint);
}
.comment-form textarea:focus,
.field textarea:focus,
.field input:focus,
.url-row input:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(11, 150, 176, 0.14);
}

/* ===================== Layout ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  padding-left: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-right));
  background: rgba(253, 247, 236, 0.92);
  -webkit-backdrop-filter: saturate(140%);
  backdrop-filter: saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand-text {
  white-space: nowrap;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  color: var(--sun);
  font-size: 1.05rem;
  transform: translateY(-1px);
}
.brand-year {
  color: var(--sea);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  font-size: 0.95rem;
  font-weight: 500;
}
/* :not(.btn-pill) pra não roubar a cor/padding do botão "Entrar" (que é um <a>
   filho direto da nav e tem especificidade menor que .nav-links > a) */
.nav-links > a:not(.btn-pill) {
  color: var(--muted);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links > a:not(.btn-pill):hover {
  color: var(--ink);
}
.nav-links > a.is-active:not(.btn-pill) {
  color: var(--ink);
}
.nav-links > a.is-active:not(.btn-pill)::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--sea);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-hi {
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem) 4rem;
}

.footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  color: var(--faint);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

/* ===================== HomePage ===================== */
.hero {
  text-align: center;
  padding: clamp(1rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sea);
  margin: 0 0 1.2rem;
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--sea);
}
.hero-sub {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

/* ---------- Countdown ---------- */
.countdown {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.5rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.4rem;
  padding: 0.5rem 0.4rem;
  border-radius: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--shell);
}
.cd-unit b {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* ---------- Board ---------- */
.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.board-head h2 {
  font-size: 1.7rem;
}
.board-count {
  color: var(--faint);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}

/* ---------- Card ---------- */
.card {
  background: var(--sand-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--sea);
  box-shadow: 0 1px 2px rgba(20, 30, 35, 0.05), 0 18px 36px -22px rgba(11, 150, 176, 0.4);
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--img-outline);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-media img {
  transform: scale(1.04);
}
.card-noimg {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--faint);
  background: var(--shell);
  font-size: 0.85rem;
}
.rank-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-family: "Fraunces", serif;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(21, 25, 28, 0.82);
}
.rank-badge.rank-top {
  color: #15191c;
  background: var(--sun);
}
.rank-stars {
  font-size: 0.72rem;
}
.card-price {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(21, 25, 28, 0.82);
}
.card-body {
  padding: 1rem 1.1rem 1.1rem;
}
.card-title {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.card:hover .card-title {
  color: var(--sea);
}
.card-loc {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
}
.card-tags li {
  font-size: 0.74rem;
  color: var(--sea-deep);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e7f4f6;
  border: 1px solid #d3e9ed;
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Like ---------- */
.like {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    transform 0.12s var(--ease);
}
.like:hover {
  color: var(--ink);
  background: var(--shell);
}
.like:active {
  transform: scale(0.96);
}
.like .heart {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: fill 0.2s var(--ease), stroke 0.2s var(--ease),
    transform 0.3s var(--ease);
}
.like.liked {
  color: var(--coral);
}
.like.liked .heart {
  fill: var(--coral);
  stroke: var(--coral);
}
.like.pop .heart {
  animation: heartPop 0.42s var(--ease);
}
@keyframes heartPop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.32);
  }
  60% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}
.like-count {
  font-variant-numeric: tabular-nums;
}
.card-comments {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.card-comments:hover {
  color: var(--ink);
  background: var(--shell);
}
.card-comments svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

/* ---------- Empty ---------- */
.empty {
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--sand-2);
}
.empty p {
  margin: 0 0 1.2rem;
}

.card-cap {
  margin: 0.25rem 0 0;
  color: var(--faint);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

/* ===================== DetailPage ===================== */
.detail {
  max-width: 1000px;
  margin: 0 auto;
}
.back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  transition: color 0.2s var(--ease);
}
.back:hover {
  color: var(--sea);
}
.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.detail-head h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.02;
}
.detail-loc {
  margin: 0.5rem 0 0;
  color: var(--muted);
}
.detail-price {
  flex-shrink: 0;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  color: var(--sea-deep);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: #e7f4f6;
  border: 1px solid #d3e9ed;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 120px;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.shot {
  border: none;
  padding: 0;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  background: var(--shell);
  box-shadow: var(--img-outline);
  transition: transform 0.25s var(--ease);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.shot:hover {
  transform: translateY(-2px);
}
.shot:hover img {
  transform: scale(1.05);
}
.shot-lead {
  grid-column: span 2;
  grid-row: span 2;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.block {
  margin-bottom: 2.4rem;
}
.block h2 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}
.prose {
  color: var(--muted);
  white-space: pre-wrap;
}

.amenities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}
.amenities li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--sand-2);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.amenities .dot {
  font-size: 0.95rem;
  line-height: 1;
}

/* side card */
.detail-side {
  position: sticky;
  top: 90px;
}
.side-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.3rem;
  border-radius: var(--radius);
  background: var(--sand-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.like-lg {
  justify-content: center;
  padding: 0.9rem;
  border-radius: 12px;
  background: var(--shell);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
}
.like-lg:hover {
  background: #ece0cb;
}
.like-lg .heart {
  width: 24px;
  height: 24px;
}
.like-lg.liked {
  color: var(--coral);
}
.added-by {
  text-align: center;
  font-size: 0.82rem;
  color: var(--faint);
  margin: 0.2rem 0 0;
}

/* comments */
.comment-form {
  margin-bottom: 1.6rem;
}

.comment-form button {
  margin-top: 0.7rem;
}
.login-nudge {
  padding: 1rem;
  border-radius: 12px;
  background: var(--sand-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.login-nudge a {
  color: var(--sea);
  font-weight: 600;
}
.comments {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.comment {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: var(--sand-2);
  border: 1px solid var(--line);
}
.comment-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}
.comment-author {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.comment-time {
  color: var(--faint);
  font-size: 0.8rem;
}
.comment p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(15, 22, 26, 0.88);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.lightbox.open {
  opacity: 1;
}
.lb-img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), transform 0.12s var(--ease);
}
.lb-close:hover,
.lb-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lb-close:active,
.lb-nav:active {
  transform: scale(0.94);
}
.lb-close {
  top: 1.2rem;
  right: 1.2rem;
}
.lb-prev {
  left: 1.2rem;
}
.lb-next {
  right: 1.2rem;
}

.detail-head-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.detail-stay {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.stay-dates {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.stay-nights {
  font-size: 0.78rem;
  color: #fff;
  background: var(--sea);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Facts bar (capacidade) ---------- */
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
}
.fact {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--sand-2);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Arranjo de quartos ---------- */
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}
.room {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f8f9, var(--sand-2));
  border: 1px solid var(--line);
}
.room-beds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  font-size: 1.6rem;
  line-height: 1;
}
.room-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.room-title {
  font-family: "Fraunces", serif;
  font-size: 1.02rem;
  color: var(--ink);
}
.room-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===================== AddPage ===================== */
.add {
  max-width: 640px;
  margin: 0 auto;
}
.add-head {
  margin-bottom: 2rem;
}
.add-head h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 0.6rem;
}

.url-row {
  display: flex;
  gap: 0.6rem;
}
.url-row input {
  flex: 1;
}
.url-row .btn-pill {
  white-space: nowrap;
}
.hint {
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
  min-height: 1.1em;
}
.hint-static {
  font-size: 0.82rem;
  margin: 0.5rem 0 0;
  color: var(--faint);
}
.hint-static strong {
  color: var(--muted);
  font-weight: 600;
}
.hint.ok {
  color: var(--sea-deep);
}
.hint.err {
  color: var(--coral);
}
.hint.load {
  color: var(--muted);
}
.add-preview {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.5s var(--ease) both;
}
.photo-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
}
.photo-pick button {
  position: relative;
  aspect-ratio: 1;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: var(--shell);
  box-shadow: var(--img-outline);
  transition: transform 0.12s var(--ease), opacity 0.18s var(--ease);
  opacity: 0.5;
}
.photo-pick button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-pick button.sel {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--sea), var(--img-outline);
}
.photo-pick button.cover::after {
  content: "capa";
  position: absolute;
  bottom: 0.3rem;
  left: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--sun);
  color: #15191c;
}
.photo-pick button:active {
  transform: scale(0.96);
}

/* ---------- Fullscreen loader (scrape) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(180deg, #bfe9f1 0%, #dff3ef 48%, var(--sand) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.loader.open {
  opacity: 1;
}
.loader[hidden] {
  display: none;
}
.loader-inner {
  width: 100%;
  max-width: 360px;
}
.loader-scene {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
}
.loader-sun {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffe08a, var(--sun) 70%);
  box-shadow: 0 0 0 0 rgba(244, 167, 44, 0.45);
  animation: sunPulse 1.8s var(--ease) infinite;
}
@keyframes sunPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 167, 44, 0.45);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 0 20px rgba(244, 167, 44, 0);
  }
}
.loader-waves {
  width: 100%;
  max-width: 300px;
  height: 24px;
  margin: 0 auto 1.5rem;
  opacity: 0.6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24'%3E%3Cpath d='M0 12 Q 30 1 60 12 T 120 12' fill='none' stroke='%230b96b0' stroke-width='3'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 24px;
  animation: waveMove 2.2s linear infinite;
}
@keyframes waveMove {
  to {
    background-position: 120px 0;
  }
}
.loader-msg {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: var(--ink);
}
.loader-sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.loader-bar {
  width: 100%;
  max-width: 280px;
  height: 6px;
  margin: 1.3rem auto 0;
  border-radius: 999px;
  background: rgba(11, 150, 176, 0.16);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sea), var(--sun));
  transition: width 0.4s var(--ease);
}

.detected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.4rem 0 1.2rem;
}
.detected-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sea-deep);
  background: #e7f4f6;
  border: 1px solid #d3e9ed;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ===================== AuthPage ===================== */
.auth-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.auth-wrap {
  display: grid;
  place-items: center;
  min-height: 60vh;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  background: var(--sand-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.auth-mark {
  display: inline-block;
  color: var(--sun);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}
.auth-form {
  margin-top: 1.6rem;
  text-align: left;
}
.auth-form .field:last-of-type {
  margin-bottom: 1.5rem;
}
.auth-alt {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.auth-alt a {
  color: var(--sea);
  font-weight: 600;
}
.form-error {
  margin: 1.2rem 0 0;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(255, 90, 77, 0.1);
  border: 1px solid rgba(255, 90, 77, 0.35);
  color: #c13b30;
  font-size: 0.9rem;
}

/* ===================== maps ===================== */
.map-board {
  margin-bottom: 1rem;
}
.home-map {
  position: relative;
  z-index: 0;
  height: clamp(300px, 50vh, 460px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.detail-map {
  position: relative;
  z-index: 0;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-note {
  font-size: 0.8rem;
  margin: 0.6rem 0 0;
}
.leaflet-container {
  font: inherit;
  background: #e7f4f6;
}
/* marcador (bolinha) */
.map-dot {
  background: var(--sea);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(11, 150, 176, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}
/* etiqueta de preço sempre visível */
.leaflet-tooltip.price-tip {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
.leaflet-tooltip.price-tip::before {
  display: none;
}
/* popup */
.leaflet-popup-content-wrapper {
  border-radius: 14px;
}
.leaflet-popup-content {
  margin: 0.7rem 0.8rem;
}
.leaflet-popup-content .pop {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 180px;
}
.leaflet-popup-content .pop img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 9px;
}
.leaflet-popup-content .pop strong {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  line-height: 1.2;
}
.leaflet-popup-content .pop-price {
  color: var(--sea-deep);
  font-weight: 700;
  font-size: 0.9rem;
}
.leaflet-popup-content .pop a {
  color: var(--sea);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ===================== motion ===================== */
.stagger {
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== responsive ===================== */
@media (max-width: 820px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-side {
    position: static;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
}
@media (max-width: 560px) {
  .nav-hi {
    display: none;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .detail-head {
    flex-direction: column;
  }
  .detail-price {
    align-self: flex-start;
  }
  .detail-head-aside {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .url-row {
    flex-direction: column;
  }
  .countdown {
    flex-wrap: wrap;
    justify-content: center;
  }
  .detail-grid {
    gap: 1.6rem;
  }
  .amenities {
    grid-template-columns: 1fr;
  }
  /* inputs >=16px evitam o zoom automático do iOS ao focar */
  .comment-form textarea,
  .field textarea,
  .field input,
  .url-row input {
    font-size: 16px;
  }
  .footer {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 1.18rem;
  }
  .nav-links {
    gap: 0.7rem;
    font-size: 0.9rem;
  }
  .lb-close,
  .lb-nav {
    width: 42px;
    height: 42px;
  }
  .lb-close {
    top: calc(0.8rem + env(safe-area-inset-top));
  }
}

@media (max-width: 360px) {
  .nav-links {
    gap: 0.55rem;
  }
  .nav-links > a:not(.btn-pill) {
    padding: 0.4rem 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .stagger {
    opacity: 1;
  }
}
