/* Ondinha — blue and white, taken from the logo: navy lettering and wave blues. */
:root {
  --navy: #1a3d7c;
  --navy-deep: #122b59;
  --wave: #2f8fe0;
  --wave-light: #8cc8f5;
  --wave-mist: #e3f1fc;
  --sky: #f1f7fd;
  --paper: #ffffff;
  --fur: #d9772b;
  --coral: #f47a52; /* the orange dog in the logo */
  --ink: #1f2a3d;
  --muted: #64708a;
  --line: #d7e6f5;
  --success: #2e9e5b;
  --warning: #e8a317;
  --danger: #c8443a;

  --radius: 18px;
  --shadow: 0 6px 20px rgb(26 61 124 / 0.08);
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

h1 { font-size: 1.75rem; }

a { color: var(--wave); }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* Layout */

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--paper);
  border-top: 4px solid var(--navy);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.topbar__logo {
  width: 44px;
  height: 44px;
}

/* Paw prints scattered over the whole bar, like the logo's background. */
.topbar {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='64' viewBox='0 0 132 64'%3E%3Cg fill='%23d3e8fa'%3E%3Cg transform='translate%286 4%29 rotate%28-20 8 8%29 scale%280.6667%29'%3E%3Ccircle cx='5' cy='10' r='2.3'/%3E%3Ccircle cx='9.3' cy='5.6' r='2.4'/%3E%3Ccircle cx='14.7' cy='5.6' r='2.4'/%3E%3Ccircle cx='19' cy='10' r='2.3'/%3E%3Cpath d='M12 11.2c-3.4 0-6.6 3.6-6.6 6.3 0 1.9 1.6 2.9 3.5 2.9 1.3 0 2-.6 3.1-.6s1.8.6 3.1.6c1.9 0 3.5-1 3.5-2.9 0-2.7-3.2-6.3-6.6-6.3Z'/%3E%3C/g%3E%3Cg transform='translate%2852 22%29 rotate%2825 8 8%29 scale%280.6667%29'%3E%3Ccircle cx='5' cy='10' r='2.3'/%3E%3Ccircle cx='9.3' cy='5.6' r='2.4'/%3E%3Ccircle cx='14.7' cy='5.6' r='2.4'/%3E%3Ccircle cx='19' cy='10' r='2.3'/%3E%3Cpath d='M12 11.2c-3.4 0-6.6 3.6-6.6 6.3 0 1.9 1.6 2.9 3.5 2.9 1.3 0 2-.6 3.1-.6s1.8.6 3.1.6c1.9 0 3.5-1 3.5-2.9 0-2.7-3.2-6.3-6.6-6.3Z'/%3E%3C/g%3E%3Cg transform='translate%2896 2%29 rotate%28-35 8 8%29 scale%280.6667%29'%3E%3Ccircle cx='5' cy='10' r='2.3'/%3E%3Ccircle cx='9.3' cy='5.6' r='2.4'/%3E%3Ccircle cx='14.7' cy='5.6' r='2.4'/%3E%3Ccircle cx='19' cy='10' r='2.3'/%3E%3Cpath d='M12 11.2c-3.4 0-6.6 3.6-6.6 6.3 0 1.9 1.6 2.9 3.5 2.9 1.3 0 2-.6 3.1-.6s1.8.6 3.1.6c1.9 0 3.5-1 3.5-2.9 0-2.7-3.2-6.3-6.6-6.3Z'/%3E%3C/g%3E%3Cg transform='translate%2824 44%29 rotate%2810 8 8%29 scale%280.6667%29'%3E%3Ccircle cx='5' cy='10' r='2.3'/%3E%3Ccircle cx='9.3' cy='5.6' r='2.4'/%3E%3Ccircle cx='14.7' cy='5.6' r='2.4'/%3E%3Ccircle cx='19' cy='10' r='2.3'/%3E%3Cpath d='M12 11.2c-3.4 0-6.6 3.6-6.6 6.3 0 1.9 1.6 2.9 3.5 2.9 1.3 0 2-.6 3.1-.6s1.8.6 3.1.6c1.9 0 3.5-1 3.5-2.9 0-2.7-3.2-6.3-6.6-6.3Z'/%3E%3C/g%3E%3Cg transform='translate%28104 42%29 rotate%2835 8 8%29 scale%280.6667%29'%3E%3Ccircle cx='5' cy='10' r='2.3'/%3E%3Ccircle cx='9.3' cy='5.6' r='2.4'/%3E%3Ccircle cx='14.7' cy='5.6' r='2.4'/%3E%3Ccircle cx='19' cy='10' r='2.3'/%3E%3Cpath d='M12 11.2c-3.4 0-6.6 3.6-6.6 6.3 0 1.9 1.6 2.9 3.5 2.9 1.3 0 2-.6 3.1-.6s1.8.6 3.1.6c1.9 0 3.5-1 3.5-2.9 0-2.7-3.2-6.3-6.6-6.3Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 132px 64px;
  background-repeat: repeat;
}

.topbar__brand { flex-shrink: 0; }

.topbar__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.topbar__nav .link-button { white-space: nowrap; }

.topbar__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--navy);
}

.topbar__tagline {
  margin-top: 2px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--wave);
}

.topbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wave-mist);
  color: var(--navy);
}
.topbar__icon:hover { background: var(--wave-light); }
.topbar__icon--whatsapp { color: #1aa851; }

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

/* Home */

.hero {
  text-align: center;
  padding: 1rem 0;
}

.hero__logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.hero__title { margin-top: 1rem; }

.hero__note {
  display: inline-block;
  margin: 0;
  padding: 0.375rem 0.875rem;
  background: var(--wave-mist);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Cards and forms */

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field label {
  font-weight: 700;
  color: var(--navy);
}

.input {
  width: 100%;
  padding: 0.875rem 1rem;
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming on focus */
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 12px;
}

.input:focus {
  outline: none;
  border-color: var(--wave);
}

.input--code {
  font-size: 1.75rem;
  letter-spacing: 0.5em;
  text-align: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--navy);
  color: var(--paper);
}

.btn--primary:hover { background: var(--navy-deep); }

.link-button {
  background: none;
  border: 0;
  padding: 0.5rem;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
}

/* Flash */

.flash {
  max-width: 560px;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  width: calc(100% - 2rem);
}

.flash--notice {
  background: var(--wave-mist);
  color: var(--navy);
}

.flash--alert {
  background: #fbe7e5;
  color: var(--danger);
}

.center { text-align: center; }
.hint { color: var(--muted); font-size: 0.8125rem; }
.label, fieldset legend {
  font-weight: 700;
  color: var(--navy);
}
fieldset { border: 0; margin: 0; padding: 0; }
.section-title { margin-top: 2rem; font-size: 1.375rem; }
.big-emoji { font-size: 3rem; margin: 0; }

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.topbar__nav form { display: inline; }

.row {
  display: flex;
  gap: 0.75rem;
}
.row > .field { flex: 1; min-width: 0; }
.row--tight { align-items: center; flex-wrap: wrap; }
.field--narrow { flex: 0 0 5rem !important; }
.input--short { max-width: 8rem; }
.input--tiny { max-width: 5rem; }
.input--file { padding: 0.625rem; }
textarea.input { resize: vertical; }

.btn--secondary {
  background: var(--wave-mist);
  color: var(--navy);
}
.btn--danger {
  background: #fbe7e5;
  color: var(--danger);
}
.btn--whatsapp {
  background: #25d366;
  color: #ffffff;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Compact inline buttons, e.g. "Já se hospedou antes" next to a dog. */
.btn--small {
  width: auto;
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}
.btn--link {
  background: none;
  color: var(--muted);
  text-decoration: underline;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.link-button--danger { color: var(--danger); }

.form-errors {
  background: #fbe7e5;
  color: var(--danger);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
.form-errors p, .form-errors ul { margin: 0; }
.form-errors ul { padding-left: 1.25rem; }

/* Chips (radio/checkbox styled as pills) */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 0.625rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  color: var(--ink);
}
.chip input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}
.chip input:focus-visible + span { outline: 3px solid var(--wave-light); }

/* Hero + calendar */

.hero {
  padding: 1.75rem 1rem 4.5rem;
  text-align: center;
  color: var(--paper);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f1f7fd' d='M0 48c120-26 240-26 360 0s240 26 360 0 240-26 360 0 240 26 360 0v32H0z'/%3E%3C/svg%3E") bottom / 100% 40px no-repeat,
    linear-gradient(160deg, var(--wave) 0%, var(--navy) 85%);
}
.hero__title { color: var(--paper); margin: 0 auto 0.5rem; max-width: 520px; text-wrap: balance; }
/* The brand keeps to its own line, so phones never strand "Hotel" alone. */
.hero__brand { display: block; white-space: nowrap; }
.page--overlap { margin-top: -3.5rem; padding-top: 0; }

.holidays {
  margin-top: 0.875rem;
  padding: 0.75rem 0.875rem;
  border-radius: 12px;
  background: var(--wave-mist);
  font-size: 0.875rem;
}
.holidays p { margin: 0; }
.holidays__title { font-weight: 700; color: var(--navy); }
.holidays ul { list-style: none; margin: 0.375rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.holidays__price { color: var(--muted); white-space: nowrap; }
.holidays__price::before { content: "· "; }
.holidays__hint { color: var(--muted); font-size: 0.8125rem; }

.holiday-nights { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; display: flex; flex-direction: column; gap: 0.25rem; }

.booking {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 0.75rem 1.25rem;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.calendar__title { margin: 0; font-size: 1.25rem; }
.calendar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wave-mist);
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.calendar__nav--disabled { opacity: 0.3; }

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 0.25rem;
}

.day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
}
.day--outside { visibility: hidden; }
.day--available { background: #dcf3e4; }
.day--last_spot { background: #fdf0cf; }
.day--full { background: #e4e9f0; color: var(--muted); }
.day--closed { background: repeating-linear-gradient(45deg, #f2f5f9, #f2f5f9 4px, #e3e9f0 4px, #e3e9f0 8px); color: #a9b4c2; text-decoration: line-through; cursor: default; }
.day--unavailable, .day--unavailable_past { color: #bcc6d3; cursor: default; }
.day__holiday {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.625rem;
}
.day.is-start, .day.is-end {
  background: var(--navy);
  color: var(--paper);
}
.day.is-between {
  background: var(--wave-light);
  color: var(--navy);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.875rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.legend li { display: flex; align-items: center; gap: 0.375rem; }
.legend__dot { width: 12px; height: 12px; border-radius: 4px; }
.legend__dot--available { background: #bfe8cd; }
.legend__dot--last_spot { background: #f8e0a0; }
.legend__dot--full { background: #d3dbe6; }
.legend__dot--closed { background: repeating-linear-gradient(45deg, #f2f5f9, #f2f5f9 2px, #ccd6e2 2px, #ccd6e2 4px); }

.quote {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--wave-mist);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quote p { margin: 0; }
.quote__hint { text-align: center; font-weight: 700; color: var(--navy); }
.quote__dates { font-weight: 700; color: var(--navy); }
.quote__price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.quote__price span { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.quote__note { font-size: 0.875rem; }
.quote__warning {
  margin: 0;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  background: #fdf0cf;
  color: #7a5a06;
  font-size: 0.875rem;
  font-weight: 600;
}

.hours-note {
  margin: 0.875rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Booking form */

.summary p { margin: 0; }
.summary__dates { font-weight: 700; color: var(--navy); font-size: 1.125rem; }

.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--wave-mist);
  flex-shrink: 0;
}

.dog-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.dog-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  width: 84px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}
.dog-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dog-chip .avatar { border: 3px solid transparent; transition: border-color 0.15s; }
.dog-chip input:checked ~ .avatar { border-color: var(--navy); }
.dog-chip input:checked ~ .dog-chip__name { color: var(--navy); }
.dog-chip input:not(:checked) ~ .avatar { opacity: 0.55; }
.dog-chip__name { font-weight: 700; font-size: 0.875rem; text-align: center; }
.dog-chip__plus {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px dashed var(--wave);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--wave);
}

.choices { display: flex; flex-direction: column; gap: 0.5rem; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
}
.choice small { color: var(--muted); }
.choice input:checked + span { border-color: var(--navy); background: var(--wave-mist); }

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.total strong { font-family: var(--font-display); font-size: 1.75rem; color: var(--navy); }

/* Reservation pages */

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.card__header h1, .card__header h2 { margin: 0; }
.stack--tight { gap: 0.5rem; }

.status {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.status--under_review { background: #fdf0cf; color: #7a5a06; }
.status--confirmed { background: #dcf3e4; color: #1d6b3d; }
.status--checked_in { background: var(--wave-mist); color: var(--navy); }
.status--completed { background: #e4e9f0; color: var(--muted); }
.status--cancelled, .status--rejected { background: #fbe7e5; color: var(--danger); }

.callout { margin: 0; padding: 0.75rem 1rem; border-radius: 12px; font-weight: 600; }
.callout--review { background: #fdf0cf; color: #7a5a06; }
.callout--ok { background: #dcf3e4; color: #1d6b3d; }

/* Adaptation test fields in the booking form, shown for first-time dogs. */
.adaptation {
  padding: 1rem;
  border: 2px dashed var(--wave-mist);
  border-radius: 16px;
  background: #f5f9ff;
}
.adaptation__title { margin: 0; font-size: 1.125rem; }
.adaptation p { margin: 0; }

.details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; }
.details dt { font-weight: 700; color: var(--muted); font-size: 0.875rem; }
.details dd { margin: 0; }

.avatars { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.avatars--center { justify-content: center; }
.avatars__item { display: inline-flex; align-items: center; gap: 0.5rem; }

.list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
.list__item--static { flex-wrap: wrap; }
.list__main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.list__main .status { align-self: flex-start; }

.dog-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.dog-header h1 { margin: 0; }

/* Reviews */

.reviews { margin-top: 2rem; }
.reviews__average { color: var(--warning); font-weight: 700; margin: 0 0 0.75rem; }
.reviews__more { display: inline-block; margin-top: 0.75rem; font-weight: 700; }

.polaroids {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  align-items: flex-start;
  padding: 0.5rem 0.25rem 1rem;
}
.polaroids--all { flex-direction: column; overflow: visible; align-items: center; }
.polaroid {
  flex: 0 0 240px;
  margin: 0;
  padding: 0.75rem 0.75rem 1rem;
  background: var(--paper);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.1);
  scroll-snap-align: start;
  rotate: -1.5deg;
}
.polaroid:nth-child(even) { rotate: 1.5deg; }
.polaroids--all .polaroid { width: 100%; max-width: 360px; }
.polaroid__photo { position: relative; display: block; aspect-ratio: 1; background: var(--sky); overflow: hidden; }
.polaroid__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.polaroid__count {
  position: absolute; right: 0.5rem; bottom: 0.5rem;
  background: rgb(0 0 0 / 0.6); color: #ffffff;
  padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 700;
}
.polaroid figcaption p { margin: 0.375rem 0 0; }
.polaroid__stars { color: var(--warning); letter-spacing: 2px; }
.polaroid__stars-off { color: var(--line); }
.polaroid__body { font-style: italic; }
.polaroid__body--excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.polaroid__more { display: inline-block; margin-top: 0.25rem; font-size: 0.875rem; font-weight: 700; }
.polaroid__author { font-size: 0.8125rem; color: var(--muted); }

/* One review's page: the story first, photos in a small carousel beside it. */
.review-story {
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.review-story__stars { margin: 0; color: var(--warning); font-size: 1.25rem; letter-spacing: 2px; }
.review-story__quote { margin: 0.5rem 0 0.75rem; }
.review-story__quote p { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--ink); }
.review-story__quote p::before { content: "“"; }
.review-story__quote p::after { content: "”"; }
.review-story__author { margin: 0; display: flex; flex-direction: column; font-size: 0.9375rem; }
.review-story__author strong { color: var(--navy); }
.review-story__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; font-weight: 700; }
.review-story__footer .btn { width: auto; padding-left: 1.5rem; padding-right: 1.5rem; }

.carousel { position: relative; width: 100%; max-width: 340px; margin: 0 auto; }
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 14px;
  aspect-ratio: 1;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__photo { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  color: var(--navy);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.carousel__nav--prev { left: 0.5rem; }
.carousel__nav--next { right: 0.5rem; }
.carousel__dots { display: flex; justify-content: center; gap: 0.375rem; margin-top: 0.625rem; }
.carousel__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.carousel__dot[aria-current="true"] { background: var(--navy); }

.gallery { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.gallery__photo { width: 100%; border-radius: var(--radius); }

.stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.25rem;
}
.stars legend { width: 100%; text-align: center; margin-bottom: 0.25rem; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 2.5rem; color: var(--line); cursor: pointer; line-height: 1; }
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { color: var(--warning); }

/* Admin */

.page--wide { max-width: 960px; }
.admin-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.admin-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.admin-nav a:hover { background: var(--wave-mist); }

.admin .card { margin-bottom: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.actions .btn, .actions form { width: auto; flex: 1 1 200px; }
.actions form .btn { width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.inline-form .btn { width: auto; }
.inline { display: inline; }

.history { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.25rem; }
.history form { display: inline; }

.night-chip {
  display: inline-block;
  margin: 0 0.25rem 0.25rem 0;
  padding: 0.125rem 0.5rem;
  border-radius: 8px;
  background: var(--wave-mist);
  font-size: 0.8125rem;
}

.calendar--admin .calendar__grid { gap: 2px; }
.occupancy-day {
  min-height: 84px;
  padding: 0.25rem;
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.6875rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.occupancy-day--full { background: #fdf0cf; }
.occupancy-day--closed { background: #e4e9f0; }
.occupancy-day__head { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.75rem; }
.occupancy-day__dog {
  display: block;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--wave-mist);
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.occupancy-day__dog--checked_in { background: var(--navy); color: var(--paper); }
.occupancy-day__dog--under_review { background: #fdf0cf; color: #7a5a06; }

.thumbs { display: flex; gap: 0.5rem; }
.thumbs__item { position: relative; }
.thumbs__item img { border-radius: 8px; object-fit: cover; }
.thumbs__remove {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: var(--danger); color: #ffffff; font-weight: 700; cursor: pointer;
}
.chip--inline span { padding: 0.375rem 0.75rem; }

.footer-links { display: flex; justify-content: space-between; align-items: center; }
.footer-links form { display: inline; }

/* Dog outline icons: blue for males, pink for females, neutral until chosen. */
span.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dog-icon {
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / 78% no-repeat;
  mask: var(--icon) center / 78% no-repeat;
}
.avatar--male { background: #e3f1fc; color: var(--wave); }
.avatar--female { background: #fde7ef; color: #e0609a; }
.avatar--unknown { background: #eef2f6; color: #9aa7b8; }

.dog-preview {
  position: relative;
  align-self: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}
.dog-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dog-preview img[hidden] { display: none; }

/* Como funciona */

.hero__link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgb(10 20 40 / 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero__link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgb(10 20 40 / 0.3); }

.explainer-hero {
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  padding: 1.5rem 1rem 4rem;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgb(26 61 124 / 0) 40%, rgb(26 61 124 / 0.9) 100%),
    var(--photo) center 90% / cover no-repeat;
}
.explainer-hero__text { max-width: 560px; margin: 0 auto; width: 100%; }
.explainer-hero h1 { color: var(--paper); font-size: 2rem; margin-bottom: 0.25rem; }
.explainer-hero p { margin: 0; font-size: 1.0625rem; }

.facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.875rem;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  color: var(--muted);
}
.fact__icon { font-size: 1.375rem; }
.fact strong { color: var(--navy); font-size: 0.9375rem; }

.explainer {
  margin-bottom: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.explainer h2 { font-size: 1.25rem; }
.explainer p { margin: 0 0 0.75rem; }
.explainer p:last-child { margin-bottom: 0; }
.explainer ul { margin: 0 0 0.75rem; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.explainer__note { color: var(--muted); font-size: 0.9375rem; }
.explainer__photo { display: block; width: 100%; height: 320px; object-fit: cover; border-radius: 14px; margin-top: 0.75rem; }
.explainer__photo--portrait { height: 380px; }
.explainer--highlight { background: var(--wave-mist); }
.explainer--warning { background: #fff7e6; }
.explainer--warning h2 { color: #7a5a06; }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.photo-pair img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li::before { content: "✓ "; color: var(--success); font-weight: 800; }

.price-list { margin: 0; display: flex; flex-direction: column; }
.price-list dt { font-weight: 800; color: var(--navy); margin-top: 0.625rem; }
.price-list dt:first-child { margin-top: 0; font-size: 1.125rem; }
.price-list dd { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.gallery-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -1.25rem;
  padding: 0 1.25rem 0.25rem;
}
.gallery-strip img {
  flex: 0 0 70%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
  scroll-snap-align: center;
}

.explainer-cta {
  margin-top: 1.5rem;
  text-align: center;
}
.explainer-cta__buttons { display: flex; flex-direction: column; gap: 0.625rem; }

/* Shortcut links to each section; sticks to the top while scrolling. */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  margin: 0 -1rem 1rem;
  padding: 0.625rem 1rem;
  background: rgb(241 247 253 / 0.92);
  backdrop-filter: blur(6px);
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  flex-shrink: 0;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}
.section-nav a:hover { background: var(--wave-mist); }
.explainer { scroll-margin-top: 4rem; }
html { scroll-behavior: smooth; }

/* Wide screens: use the full width */
@media (min-width: 900px) {
  .page--explainer { max-width: 1120px; padding-left: 2rem; padding-right: 2rem; }

  .explainer-hero {
    min-height: 600px;
    padding-bottom: 5rem;
    background-image: linear-gradient(180deg, rgb(26 61 124 / 0) 40%, rgb(26 61 124 / 0.9) 100%), var(--photo-large);
    background-position: center, center 40%;
  }
  .explainer-hero__text { max-width: 1120px; padding: 0 2rem; }
  .explainer-hero h1 { font-size: 2.75rem; }
  .explainer-hero p { font-size: 1.25rem; }

  .facts { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .fact { padding: 1.125rem 1.25rem; font-size: 0.9375rem; }
  .fact strong { font-size: 1.0625rem; }

  .section-nav { margin: 0 0 1.25rem; padding: 0.75rem 0; justify-content: center; flex-wrap: wrap; }

  .explainer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
  }
  .explainer-grid .explainer { margin-bottom: 0; padding: 1.75rem; }
  .explainer h2 { font-size: 1.5rem; }
  .explainer p, .explainer li { font-size: 1.0625rem; }

  .explainer--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
  }
  .explainer--reverse .explainer__text { order: 2; }
  .explainer--wide .explainer__photo { margin-top: 0; height: 380px; }
  /* Vertical photos keep their own shape, uncropped, beside the text */
  .explainer--wide .explainer__photo--portrait { height: 480px; width: auto; aspect-ratio: 3 / 4; justify-self: center; }
  .explainer--wide .photo-pair img { height: 300px; }
  .explainer--full { grid-column: 1 / -1; }

  .gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
  }
  .gallery-strip img { height: 320px; width: 100%; }

  .explainer-cta { margin-top: 2.5rem; }
  .explainer-cta__buttons { flex-direction: row; justify-content: center; }
  .explainer-cta__buttons .btn { width: auto; min-width: 260px; }
}

/* Photo viewer */

.explainer img[data-lightbox-target="photo"] { cursor: zoom-in; }

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgb(10 20 40 / 0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img {
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  object-fit: contain;
  border-radius: 10px;
  cursor: zoom-out;
}
.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / 0.32); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* Admin analytics */
.chip-link {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--wave-mist);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}
.chip-link--active { background: var(--navy); color: var(--paper); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 16px;
  background: var(--paper);
}
.stat span { color: var(--muted); font-size: 0.875rem; }
.stat strong { font-size: 1.75rem; color: var(--navy); }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
}
.bars__bar {
  flex: 1;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--navy);
}

.ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ranking li { display: flex; align-items: center; gap: 0.5rem; }
.ranking__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ranking__bar { height: 8px; max-width: 40%; border-radius: 4px; background: var(--wave-light); }
.ranking__error { flex-direction: column; align-items: flex-start !important; gap: 0.125rem !important; }

/* Wide screens: two columns for the home calendar, the booking form and the reservations list. */
@media (min-width: 900px) {
  .page--home { max-width: 1040px; padding-left: 2rem; padding-right: 2rem; }
  .hero { padding-top: 2.5rem; padding-bottom: 5.5rem; }
  .hero__title { max-width: none; font-size: 2.5rem; }

  .booking {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding: 1.75rem;
  }
  .day { font-size: 1.0625rem; }
  .calendar__title { font-size: 1.5rem; }
  .booking__aside {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .booking__aside .legend { order: 2; margin: 0; flex-direction: column; font-size: 0.875rem; }
  .booking__aside .hours-note { order: 3; margin: 0; text-align: left; }
  .booking__aside .quote { margin-top: 0; padding: 1.25rem; }
  .booking__aside .quote__hint { padding: 2rem 0; font-size: 1.0625rem; }

  .reviews { margin-top: 3rem; }
  .polaroids { overflow: visible; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }

  .page--medium { max-width: 760px; }
  .review-story { grid-template-columns: 320px 1fr; gap: 2rem; align-items: center; padding: 1.75rem; }
  .review-story__quote p { font-size: 1.1875rem; }
  .page--medium .card { padding: 2rem; }

  .page--split { max-width: 1040px; padding-left: 2rem; padding-right: 2rem; }
  .split {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .split aside .section-title { margin-top: 0.375rem; }

  .page--split .card { padding: 2rem; }
  .booking-form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .booking-form__checkout {
    position: sticky;
    top: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--sky);
  }
}
