/* ═══════════════════════════════════════════════════════════════
   PORTO PEACE HAVEN — Guest Guide Stylesheet
   Mobile-first · Accessible · Static
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   1. DESIGN TOKENS — CSS Custom Properties
─────────────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --white:        #FAFAF8;
  --off-white:    #F5F2EE;
  --sand:         #EDE6DC;
  --beige:        #E0D6C8;
  --border:       #D8D0C4;
  --text:         #1E1E1E;
  --text-mid:     #5C5850;
  --text-light:   #9A9490;

  /* Room accent colours */
  --ribeira:      #1B2A4A;
  --ribeira-light:#2E4070;
  --douro:        #B87E28;
  --douro-light:  #D4993A;
  --atlantico:    #4E8FA8;
  --atlantico-light: #6AA8BF;

  /* Functional */
  --gold:         #C8922A;
  --danger:       #C0392B;
  --green:        #2D7A5F;

  /* Shadows */
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.12);

  /* Border radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Spacing */
  --gap:     1.25rem;
  --section: 5rem;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Header height */
  --header-h: 60px;
  --bottom-nav-h: 64px;
}

/* ───────────────────────────────────────────────────────────────
   2. RESET & BASE
─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  padding-bottom: var(--bottom-nav-h);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ───────────────────────────────────────────────────────────────
   3. TYPOGRAPHY SCALE
─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 4vw, 1.7rem); }
h4 { font-size: clamp(1rem, 3vw, 1.25rem); }
h5 { font-size: 0.95rem; font-weight: 600; font-family: var(--font-body); }

p { color: var(--text-mid); }
strong { color: var(--text); font-weight: 600; }

/* ───────────────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: var(--section) 0;
}

.section-sand {
  background: var(--sand);
}

.section-title {
  margin-bottom: 1rem;
  color: var(--text);
}

.section-title.centered {
  text-align: center;
}

.section-sub {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

@media (min-width: 560px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.ph { /* placeholder text style */
  color: var(--atlantico);
  font-style: italic;
  font-size: 0.9rem;
  background: rgba(78, 143, 168, 0.08);
  border: 1px dashed rgba(78, 143, 168, 0.3);
  border-radius: var(--r-sm);
  padding: 0.3rem 0.6rem;
  display: inline-block;
}

.host-note {
  font-size: 0.8rem;
  color: var(--douro);
  background: rgba(200, 146, 42, 0.08);
  border: 1px dashed rgba(200, 146, 42, 0.3);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.7rem;
  margin-top: 0.8rem;
}

/* ───────────────────────────────────────────────────────────────
   5. BUTTONS
─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--ribeira);
  color: #fff;
}
.btn-primary:hover { background: var(--ribeira-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--ribeira); color: var(--ribeira); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--douro-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-emergency {
  background: var(--danger);
  color: #fff;
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  letter-spacing: 0.03em;
}
.btn-emergency:hover { background: #a93226; transform: translateY(-1px); }

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  margin-top: 0.8rem;
}

/* ───────────────────────────────────────────────────────────────
   6. HEADER
─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-anchor {
  font-size: 1.3rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-light);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Header controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ───────────────────────────────────────────────────────────────
   7. LANGUAGE SWITCHER
─────────────────────────────────────────────────────────────── */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--ribeira);
  color: var(--ribeira);
}

.chevron {
  transition: transform 0.2s;
}

.lang-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 160px;
  display: none;
  z-index: 1000;
}

.lang-dropdown.open {
  display: block;
  animation: fadeDown 0.15s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.1s;
  cursor: pointer;
  background: none;
  border: none;
}

.lang-option:hover { background: var(--sand); }
.lang-option.active { background: var(--sand); font-weight: 600; }

/* ───────────────────────────────────────────────────────────────
   8. HAMBURGER
─────────────────────────────────────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s;
}

.hamburger:hover { border-color: var(--ribeira); }

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────────────────────────────────────────────
   9. NAV DRAWER
─────────────────────────────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 920;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Nav Drawer — frosted glass panel ── */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 940;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-lg);
  overflow: hidden; /* contain the blur layer */
}

.nav-drawer.open {
  transform: translateX(0);
}

/* Frosted glass background layer */
.nav-drawer-bg {
  position: absolute;
  inset: -10%;        /* extend past edges so blur doesn't show gaps */
  z-index: 0;
  background-image: url('assets/fotos/area-comum-1.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(1.05) saturate(0.9);
}
/* Light mode glass overlay */
.nav-drawer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(252, 250, 247, 0.82);
}

/* Scrollable content sits above blur */
.nav-drawer-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-drawer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.nav-close {
  font-size: 1.1rem;
  color: var(--text-mid);
  padding: 0.3rem;
  cursor: pointer;
  transition: color 0.15s;
}

.nav-close:hover { color: var(--text); }

.nav-list {
  padding: 0.6rem 0 2rem;
  list-style: none;
}

.nav-list > li + li {
  border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-link {
  display: block;
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-mid);
  transition: all 0.15s;
}

.nav-link--home {
  font-weight: 600;
  color: var(--text);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
  padding-left: 1.8rem;
}

/* Collapsible nav groups */
.nav-group { }

.nav-group-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  text-align: left;
  transition: color 0.15s, background 0.15s;
}

.nav-group-toggle:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}

.nav-group-toggle[aria-expanded="true"] {
  color: var(--text);
}

.nav-toggle-arrow {
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 0.22s ease;
  display: inline-block;
  line-height: 1;
}

.nav-group-toggle[aria-expanded="true"] .nav-toggle-arrow {
  transform: rotate(90deg);
}

.nav-sub-list {
  list-style: none;
  padding: 0;
  background: rgba(0,0,0,0.025);
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-sub-list li + li {
  border-top: 1px solid rgba(0,0,0,0.04);
}

.nav-sub {
  padding-left: 2.2rem !important;
  font-size: 0.93rem;
}

.nav-room {
  font-weight: 600;
}

.nav-emergency {
  color: var(--danger) !important;
  font-weight: 600;
}

/* ───────────────────────────────────────────────────────────────
   10. BOTTOM NAV (mobile persistent)
─────────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: var(--bottom-nav-h);
  background: rgba(250, 250, 248, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--text-light);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.bnav-item:hover,
.bnav-item.active {
  color: var(--ribeira);
}

.bnav-item svg {
  flex-shrink: 0;
}

.bnav-emergency {
  color: var(--danger);
}

.bnav-emergency:hover,
.bnav-emergency.active {
  color: var(--danger);
}

.bnav-checkout {
  color: var(--text-light);
}

.bnav-checkout:hover,
.bnav-checkout.active {
  color: var(--gold, #b8862a);
}

/* Suggestion CTA on emergency screen */
.em-suggest-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.em-suggest-cta p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

/* ───────────────────────────────────────────────────────────────
   11. HERO SECTION
─────────────────────────────────────────────────────────────── */
.hero-section {
  padding: 0;
  position: relative;
  min-height: min(60svh, 480px);
  display: flex;
  flex-direction: column;
}

/* Hero background — replace the gradient with a real photo */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(160deg, #1B2A4A 0%, #2E4070 55%, #4E6090 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      160deg,
      #1B2A4A 0%,
      #2E4070 35%,
      #4E6090 65%,
      #7BA7BC 100%
    );
}

/* Decorative azulejo-inspired tile pattern */
/* .hero-tiles removed — crosshatch pattern replaced by frosted glass effect */

/* When you add a real background photo, add this:
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
And add overlay with .hero-gradient at opacity ~0.65 */

.hero-content {
  position: relative;
  z-index: 5;   /* above all hero-bg layers */
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  color: #fff;
  margin-bottom: 0.7rem;
}

.hero-welcome {
  display: block;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.2rem;
}

.hero-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 8vw, 3.8rem);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 560px;
}

.qa-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-md);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.qa-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

.qa-icon {
  font-size: 1.1rem;
}

.qa-emergency {
  border-color: rgba(200, 50, 50, 0.5);
  background: rgba(200, 50, 50, 0.2);
}

.qa-emergency:hover {
  background: rgba(200, 50, 50, 0.35);
}

.qa-maps {
  background: rgba(255,255,255,0.18);
}

/* ───────────────────────────────────────────────────────────────
   12. ROOM PREVIEW CARDS
─────────────────────────────────────────────────────────────── */
.rooms-preview {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 3rem 0;
}

.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 480px) {
  .rooms-grid { grid-template-columns: repeat(3, 1fr); }
}

.room-card {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-decoration: none;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.room-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.ribeira-gradient { background: linear-gradient(135deg, #1B2A4A 0%, #2E4070 100%); }
.douro-gradient   { background: linear-gradient(135deg, #7A4E10 0%, #C8922A 100%); }
.atlantico-gradient { background: linear-gradient(135deg, #2E6B8A 0%, #7BC0D8 100%); }

.img-ph {
  font-size: 2.5rem;
  opacity: 0.7;
}

.room-card-body {
  padding: 1rem 1.1rem;
}

.ribeira-body { background: #1B2A4A; }
.douro-body   { background: #7A4E10; }
.atlantico-body { background: #2E6B8A; }

.room-card-body h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}

.room-card-body p {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.room-link {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Single-room mode: tagline + see-others button */
.room-card-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.74rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  margin-top: -0.25rem;
}

.see-other-rooms-btn {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.see-other-rooms-btn:hover { opacity: 1; }

/* When only one room card is visible, make it fill the grid width more elegantly */
.rooms-grid:has(.room-card[style*="display: none"]:nth-child(2)) .room-card:not([style*="display: none"]),
.rooms-grid .room-card.room-card--solo {
  max-width: 380px;
  margin: 0 auto;
}
.rooms-grid--solo {
  grid-template-columns: 1fr !important;
}

/* ───────────────────────────────────────────────────────────────
   13. INFO CARDS (shared card style)
─────────────────────────────────────────────────────────────── */
.info-card {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
}

.info-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-body {
  flex: 1;
  min-width: 0;
}

.info-body h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.info-body address,
.info-body p {
  color: var(--text-mid);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.info-list {
  color: var(--text-mid);
  font-size: 0.92rem;
}

.info-list li {
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}

.info-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* ───────────────────────────────────────────────────────────────
   14. WI-FI SECTION
─────────────────────────────────────────────────────────────── */
.wifi-grid {
  margin-bottom: 1rem;
}

.wifi-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.wifi-row:last-child {
  border-bottom: none;
}

.wifi-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  flex-shrink: 0;
  min-width: 70px;
}

.wifi-value,
.copy-btn {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ribeira);
  background: rgba(27, 42, 74, 0.06);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(27, 42, 74, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s;
  word-break: break-all;
  text-align: left;
  flex-wrap: wrap;
}

.copy-btn:hover {
  background: rgba(27, 42, 74, 0.1);
}

.copy-hint {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-light);
  text-transform: lowercase;
}

/* QR code box */
.qr-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0.45rem 1rem;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
}
.qr-toggle-btn:hover { border-color: var(--ribeira); color: var(--ribeira); }

.qr-block {
  margin-top: 1.2rem;
  padding: 1rem;
  background: var(--sand);
  border-radius: var(--r-md);
  text-align: center;
}

.qr-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 0.8rem;
}

.qr-box {
  display: inline-block;
  background: #fff;
  padding: 10px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

.qr-box img,
.qr-box canvas {
  display: block;
}

/* ───────────────────────────────────────────────────────────────
   15. CONTACT BUTTONS
─────────────────────────────────────────────────────────────── */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
  text-decoration: none;
}

.contact-btn.whatsapp {
  background: #25D366;
  color: #fff;
}
.contact-btn.whatsapp:hover { background: #1eb857; transform: translateY(-1px); }

.contact-btn.phone {
  background: var(--ribeira);
  color: #fff;
}
.contact-btn.phone:hover { background: var(--ribeira-light); transform: translateY(-1px); }

.contact-btn.email {
  background: var(--sand);
  color: var(--text);
  border: 1px solid var(--border);
}
.contact-btn.email:hover { border-color: var(--ribeira); }

/* ───────────────────────────────────────────────────────────────
   15b. USEFUL PLACES / ADDRESS CARD
─────────────────────────────────────────────────────────────── */
.addr-card {
  padding: 1.2rem 1.4rem;
}
.addr-card .info-body h3 {
  margin-bottom: 0.6rem;
}
.addr-nearby {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.addr-nearby-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.addr-nearby-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.addr-nearby-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.addr-nearby-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
}
.addr-nearby-name {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-nearby-walk {
  font-size: 0.76rem;
  color: var(--text-light);
}

/* ───────────────────────────────────────────────────────────────
   16. RULES GRID
─────────────────────────────────────────────────────────────── */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
}

.rule-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.rule-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.6rem;
}

.rule-card h4 {
  color: var(--text);
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.rule-list {
  color: var(--text-mid);
  font-size: 0.88rem;
}

.rule-list li {
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.rule-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-light);
  font-size: 0.7rem;
  top: 0.35rem;
}

.rules-footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--sand);
  border-radius: var(--r-lg);
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* ───────────────────────────────────────────────────────────────
   17. GUIDE GRID
─────────────────────────────────────────────────────────────── */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.g-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.6rem;
}

.guide-card h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.guide-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.guide-card a {
  color: var(--ribeira);
  font-weight: 600;
  font-size: 0.88rem;
}

.guide-card--report {
  background: var(--sand);
  border-color: transparent;
}

/* Checklist */
.checklist {
  color: var(--text-mid);
  font-size: 0.88rem;
}

.checklist li {
  padding: 0.2rem 0;
}

/* Review box */
.review-box {
  background: linear-gradient(135deg, var(--ribeira) 0%, #2E4070 100%);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  margin-top: 2rem;
}

.review-stars {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
}

.review-box h3 {
  color: #fff;
  margin-bottom: 0.7rem;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
}

.review-box p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* ───────────────────────────────────────────────────────────────
   18. KITCHEN GRID
─────────────────────────────────────────────────────────────── */
.kitchen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .kitchen-grid { grid-template-columns: repeat(2, 1fr); }
}

.kitchen-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.k-icon {
  font-size: 1.7rem;
  display: block;
  margin-bottom: 0.6rem;
}

.kitchen-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  color: var(--text-mid);
  font-size: 0.88rem;
}

.steps li {
  counter-increment: step;
  padding: 0.25rem 0 0.25rem 1.8rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--ribeira);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.kitchen-etiquette {
  background: var(--sand);
  border-left: 4px solid var(--douro);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 1.5rem 1.3rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.kitchen-etiquette h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--douro);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ───────────────────────────────────────────────────────────────
   19. ROOM DETAIL ARTICLES
─────────────────────────────────────────────────────────────── */
.room-detail {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.room-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.2rem;
  border-bottom: 3px solid var(--room-color, var(--ribeira));
}

.ribeira-header { background: linear-gradient(90deg, rgba(27,42,74,0.05) 0%, transparent 100%); border-color: var(--ribeira); }
.douro-header   { background: linear-gradient(90deg, rgba(184,126,40,0.05) 0%, transparent 100%); border-color: var(--douro); }
.atlantico-header { background: linear-gradient(90deg, rgba(78,143,168,0.05) 0%, transparent 100%); border-color: var(--atlantico); }

.room-emoji {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.room-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--room-color, var(--ribeira));
  margin-bottom: 0.1rem;
}

.room-tagline {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Room photo placeholder */
.room-photo-ph {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.ribeira-ph   { background: linear-gradient(135deg, #1B2A4A, #2E4070); font-size: 3rem; }
.douro-ph     { background: linear-gradient(135deg, #7A4E10, #C8922A); font-size: 3rem; }
.atlantico-ph { background: linear-gradient(135deg, #2E6B8A, #7BC0D8); font-size: 3rem; }

.room-photo-ph p {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
}

.room-photo-ph em {
  font-style: normal;
  opacity: 0.7;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.5rem;
}

@media (min-width: 480px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feat-card {
  background: var(--off-white);
  border-radius: var(--r-md);
  padding: 1rem;
  transition: background 0.15s;
}

.feat-card:hover { background: var(--sand); }

.feat-card > span {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.4rem;
}

.feat-card h5 {
  margin-bottom: 0.3rem;
  color: var(--text);
}

.feat-card p {
  font-size: 0.84rem;
  line-height: 1.5;
}

.feat-card--highlight {
  background: rgba(200, 146, 42, 0.08);
  border: 1px solid rgba(200, 146, 42, 0.25);
}

/* Room reminder */
.room-reminder {
  margin: 0 1.5rem 1.5rem;
  background: var(--sand);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-mid);
}

/* ───────────────────────────────────────────────────────────────
   20. TRANSPORT & APP PILLS
─────────────────────────────────────────────────────────────── */
.app-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s;
}

.app-pill:hover {
  border-color: var(--ribeira);
  color: var(--ribeira);
  background: var(--off-white);
}

/* ───────────────────────────────────────────────────────────────
   21. NEARBY PLACES GRID
─────────────────────────────────────────────────────────────── */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 560px) {
  .nearby-grid { grid-template-columns: repeat(3, 1fr); }
}

.nearby-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.nearby-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.nearby-img {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-img {
  background: var(--sand);
  font-size: 2rem;
}

.nearby-body {
  padding: 0.8rem;
}

.nearby-body h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.nearby-body p {
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.nearby-body .btn-sm {
  margin-top: 0;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
}

/* ───────────────────────────────────────────────────────────────
   22. PORTO GUIDE GRID
─────────────────────────────────────────────────────────────── */
.porto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 560px) {
  .porto-grid { grid-template-columns: repeat(2, 1fr); }
}

.porto-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.porto-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.porto-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-img-lg {
  height: 130px;
  background: linear-gradient(135deg, var(--beige), var(--sand));
  font-size: 3rem;
}

.porto-body {
  padding: 1.1rem 1.2rem;
}

.ptag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.porto-body h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.porto-body p {
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.porto-body .btn-sm {
  margin-top: 0;
}

/* ───────────────────────────────────────────────────────────────
   23. EMERGENCY SECTION
─────────────────────────────────────────────────────────────── */
.emergency-section {
  background: var(--off-white);
}

.emergency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .emergency-grid { grid-template-columns: repeat(2, 1fr); }
}

.em-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.em-card--red {
  background: rgba(192, 57, 43, 0.05);
  border-color: rgba(192, 57, 43, 0.25);
}

.em-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.em-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.em-card p {
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

.em-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* ───────────────────────────────────────────────────────────────
   24. FOOTER
─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-address {
  font-size: 0.85rem;
  font-style: normal;
}

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ───────────────────────────────────────────────────────────────
   25. TOAST NOTIFICATION
─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .toast {
    bottom: 1.5rem;
  }
}

/* ───────────────────────────────────────────────────────────────
   26. SCROLL ANIMATIONS (minimal, respectful)
─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .info-card,
  .rule-card,
  .guide-card,
  .kitchen-card,
  .room-detail,
  .nearby-card,
  .porto-card,
  .em-card {
    animation: fadeUp 0.4s ease both;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ───────────────────────────────────────────────────────────────
   27. PRINT STYLES
─────────────────────────────────────────────────────────────── */
@media print {
  .site-header,
  .bottom-nav,
  .nav-drawer,
  .nav-overlay {
    display: none !important;
  }

  body {
    padding: 0;
    font-size: 12pt;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem;
  }

  .hero-bg { display: none; }
  .hero-content { color: #000; }
  .hero-title { color: #000; }
  .hero-name { color: #000; }

  .section {
    padding: 1.5rem 0;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* ───────────────────────────────────────────────────────────────
   28. RESPONSIVE — Desktop enhancements
─────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  :root {
    --section: 6rem;
  }

  .logo-main {
    font-size: 1.15rem;
  }

  .quick-actions {
    grid-template-columns: repeat(4, 1fr);
    max-width: 680px;
  }

  .room-detail .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rules-grid,
  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .emergency-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .porto-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nearby-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-header .header-inner {
    padding: 0 2rem;
  }

  .container {
    max-width: 840px;
  }
}

/* ───────────────────────────────────────────────────────────────
   29. FOCUS STYLES (accessibility)
─────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--atlantico);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   30. DARK MODE
   ═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --white:      #141418;
  --off-white:  #1A1A20;
  --sand:       #1E1E26;
  --beige:      #242430;
  --border:     #2E2E3A;
  --text:       #F0EDE8;
  --text-mid:   #A8A4A0;
  --text-light: #686460;

  --ribeira:      #4E7AB8;
  --ribeira-light:#6090CC;
  --douro:        #D4993A;
  --douro-light:  #E8B050;
  --atlantico:    #6AAEC4;
  --atlantico-light: #80C4DA;
  --gold:         #D4993A;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.5);
}

[data-theme="dark"] .site-header {
  background: rgba(20, 20, 24, 0.96);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .casa-sticky-header {
  background: rgba(20, 20, 24, 0.92);
}

[data-theme="dark"] .bottom-nav {
  background: rgba(20, 20, 24, 0.97);
  border-top-color: var(--border);
}

[data-theme="dark"] .nav-drawer-bg::after {
  background: rgba(12, 12, 18, 0.86);
}
[data-theme="dark"] .nav-drawer-header {
  border-bottom-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .nav-group-toggle:hover,
[data-theme="dark"] .nav-link:hover {
  background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .nav-sub-list {
  background: rgba(0,0,0,0.2);
}
[data-theme="dark"] .nav-list > li + li,
[data-theme="dark"] .nav-sub-list li + li {
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .lang-dropdown {
  background: var(--off-white);
  border-color: var(--border);
}

[data-theme="dark"] .lang-btn {
  background: var(--off-white);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .hamburger {
  background: var(--off-white);
  border-color: var(--border);
}

[data-theme="dark"] .hamburger span {
  background: var(--text);
}

[data-theme="dark"] .info-card,
[data-theme="dark"] .rule-card,
[data-theme="dark"] .guide-card,
[data-theme="dark"] .kitchen-card,
[data-theme="dark"] .room-detail,
[data-theme="dark"] .nearby-card,
[data-theme="dark"] .porto-card,
[data-theme="dark"] .em-card {
  background: var(--off-white);
  border-color: var(--border);
}

[data-theme="dark"] .feat-card {
  background: var(--sand);
}

[data-theme="dark"] .feat-card:hover {
  background: var(--beige);
}

[data-theme="dark"] .review-box {
  background: linear-gradient(135deg, #1B3A6A 0%, #2040A0 100%);
}

[data-theme="dark"] .ribeira-body { background: #1a3060; }
[data-theme="dark"] .douro-body   { background: #5a3800; }
[data-theme="dark"] .atlantico-body { background: #1a4060; }

[data-theme="dark"] .hero-glass {
  background: rgba(8, 12, 28, 0.45);
}
[data-theme="dark"] .hero-bg-blur {
  filter: blur(24px) brightness(0.55) saturate(1.1);
}

[data-theme="dark"] .hero-gradient {
  background: linear-gradient(
    160deg,
    rgba(10, 20, 40, 0.72) 0%,
    rgba(20, 32, 64, 0.6) 40%,
    rgba(42, 90, 112, 0.4) 100%
  );
}

[data-theme="dark"] .wifi-value,
[data-theme="dark"] .copy-btn {
  background: rgba(78, 122, 184, 0.15);
  border-color: rgba(78, 122, 184, 0.3);
}

[data-theme="dark"] .rooms-preview {
  background: var(--white);
}

[data-theme="dark"] .kitchen-etiquette,
[data-theme="dark"] .rules-footer,
[data-theme="dark"] .room-reminder,
[data-theme="dark"] .qr-block {
  background: var(--sand);
}

[data-theme="dark"] .guide-card--report {
  background: var(--sand);
}

[data-theme="dark"] .btn-outline {
  border-color: var(--border);
  color: var(--text-mid);
}

[data-theme="dark"] .app-pill {
  background: var(--sand);
  border-color: var(--border);
  color: var(--text-mid);
}

[data-theme="dark"] .nearby-emoji-bg {
  filter: brightness(0.7);
}

[data-theme="dark"] .section-sand {
  background: var(--sand);
}

[data-theme="dark"] .emergency-section {
  background: var(--off-white);
}

[data-theme="dark"] .em-card--red {
  background: rgba(192, 57, 43, 0.12);
  border-color: rgba(192, 57, 43, 0.3);
}

[data-theme="dark"] .site-footer {
  background: #0A0A10;
}

/* Dark mode toggle button */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.dark-toggle:hover {
  border-color: var(--ribeira);
  color: var(--ribeira);
}

.icon-moon { display: none; }
.icon-sun  { display: block; }

[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

[data-theme="dark"] .dark-toggle {
  background: var(--off-white);
  border-color: var(--border);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   31. AZULEJO DECORATIVE PATTERNS
   ═══════════════════════════════════════════════════════════════ */

/* Azulejo border — used as a decorative divider */
.azulejo-divider {
  height: 12px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ribeira) 0px, var(--ribeira) 12px,
    var(--atlantico) 12px, var(--atlantico) 24px,
    var(--douro) 24px, var(--douro) 36px,
    var(--sand) 36px, var(--sand) 48px
  );
  opacity: 0.25;
  width: 100%;
}

/* Azulejo accent under section headings */
.section-title {
  position: relative;
  padding-bottom: 0.6rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ribeira) 0%, var(--atlantico) 50%, var(--douro) 100%);
}

.section-title.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Azulejo pattern strip above footer */
.site-footer::before {
  content: '';
  display: block;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #1B2A4A 0, #1B2A4A 25%,
    #4E8FA8 25%, #4E8FA8 50%,
    #C8922A 50%, #C8922A 75%,
    #EDE6DC 75%, #EDE6DC 100%
  );
  background-size: 80px 8px;
  opacity: 0.6;
}

/* Azulejo tile inside room cards (header area) */
.room-header::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.12) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.12) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.12) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.12) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  border-radius: 4px;
  opacity: 0.5;
}

.room-header {
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   32. ROOM + PORTO GUIDE PHOTO STYLES
   ═══════════════════════════════════════════════════════════════ */
.room-photo-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.room-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 600px) {
  .room-photo-wrapper { height: 300px; }
}

.porto-img-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.porto-img {
  overflow: hidden;
  border-radius: 0;
}

/* ═══════════════════════════════════════════════════════════════
   33. NEARBY CARDS — updated style
   ═══════════════════════════════════════════════════════════════ */
.nearby-emoji-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.nearby-body p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-mid);
}

.nearby-body strong {
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   34. HERO BG IMAGE — frosted glass layers
   ═══════════════════════════════════════════════════════════════ */

/* Layer 0 — blurred fill (same photo, softer blur fills the edges) */
.hero-bg-blur {
  position: absolute;
  inset: -6%;
  z-index: 0;
  background-image: url('assets/fotos/hero-porto.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.80) saturate(1.1);
}

/* Layer 1 — frosted glass overlay (light tint, keeps painting visible) */
.hero-glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(18, 28, 52, 0.18);
}

/* Layer 2 — clear painting, fully visible, no crop */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Layer 3 — gradient (already in HTML as .hero-gradient, z-index 3) */
.hero-gradient { z-index: 3; }

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(27, 42, 74, 0.52) 0%,
    rgba(46, 64, 112, 0.38) 40%,
    rgba(78, 144, 168, 0.18) 100%
  );
}


/* ═══════════════════════════════════════════════════════════════
   35. PORTO MAP CARD
   ═══════════════════════════════════════════════════════════════ */
.map-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-preview-wrap {
  width: 100%;
  overflow: hidden;
}

.map-preview-link {
  display: block;
  text-decoration: none;
}

.map-preview-inner {
  position: relative;
  width: 100%;
  height: 280px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 600px) {
  .map-preview-inner { height: 380px; }
}

.map-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.map-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.map-preview-placeholder p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  opacity: 0.5;
}

.map-overlay-icon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(27, 42, 74, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}

.map-overlay-icon span {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-preview-link:hover .map-overlay-icon,
.map-preview-link:focus .map-overlay-icon {
  opacity: 1;
}

.map-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   36. ROOM CARD PHOTO STYLE
   ═══════════════════════════════════════════════════════════════ */
.room-card-img-wrap {
  position: relative;
}

.room-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.img-ph-fallback {
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════
   37. DARK MODE — MAP
   ═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .map-card {
  background: var(--off-white);
  border-color: var(--border);
}

[data-theme="dark"] .map-preview-inner {
  background: var(--sand);
}

/* ═══════════════════════════════════════════════════════════════
   38. AVALIAR A ESTADIA — review & feedback funnel
   ═══════════════════════════════════════════════════════════════ */
.avaliar-wrap { max-width: 600px; margin: 0 auto; }
.av-step { display: none; }
.av-step.active { display: block; animation: avFade 0.35s ease; }
@keyframes avFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.av-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 0.4rem;
}
.av-step-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.15;
  color: var(--ribeira); margin-bottom: 0.5rem;
}
.av-lead { color: var(--text-mid); margin-bottom: 1.5rem; }

.av-feelings {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 1rem;
}
.av-feel {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 1.1rem 0.6rem; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  color: var(--text); cursor: pointer; transition: all 0.18s ease;
}
.av-feel:hover { border-color: var(--ribeira); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.av-feel[data-path="positive"]:hover { border-color: var(--green); }
.av-feel[data-path="improve"]:hover { border-color: var(--douro); }
.av-feel .av-emo { font-size: 1.7rem; }
.av-hint { font-size: 0.86rem; color: var(--text-light); text-align: center; }

.av-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.av-q { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.6rem; color: var(--ribeira); }
.av-btn-row { display: flex; flex-direction: column; gap: 0.6rem; }
.av-btn-row .btn { width: 100%; }

.av-result { display: none; }
.av-result.show { display: block; }
.av-mini-link {
  display: inline-block; color: rgba(255,255,255,0.8); font-size: 0.85rem;
  text-decoration: underline; cursor: pointer; margin-top: 0.3rem;
}
.av-back {
  background: none; border: none; color: var(--text-light); font-size: 0.88rem;
  cursor: pointer; padding: 0.4rem 0; margin-top: 0.6rem;
  text-decoration: underline; font-family: var(--font-body);
}

.av-field { margin-bottom: 1.15rem; }
.av-req { color: var(--danger); }
.av-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.av-pill { position: relative; cursor: pointer; }
.av-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.av-pill span {
  display: block; padding: 0.5rem 0.95rem; border: 1.5px solid var(--border);
  border-radius: 999px; font-size: 0.88rem; font-weight: 500; transition: all 0.15s ease;
}
.av-pill input:checked + span { background: var(--ribeira); border-color: var(--ribeira); color: #fff; }
.av-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.av-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.av-chk {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.88rem; cursor: pointer; transition: all 0.15s ease;
}
.av-chk input { accent-color: var(--ribeira); width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.av-chk:has(input:checked) { background: var(--sand); border-color: var(--ribeira-light); }

.avaliar-section select,
.avaliar-section textarea,
.avaliar-section input[type="text"] {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.7rem 0.8rem; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); background: var(--white); color: var(--text);
}
.avaliar-section textarea { min-height: 96px; resize: vertical; }
.avaliar-section select:focus,
.avaliar-section textarea:focus,
.avaliar-section input:focus { outline: none; border-color: var(--ribeira); }

.av-stack { display: flex; flex-direction: column; gap: 0.5rem; }
.av-radio-line {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.9rem; cursor: pointer;
}
.av-radio-line input { accent-color: var(--ribeira); }
.av-radio-line:has(input:checked) { background: var(--sand); border-color: var(--ribeira-light); }

.av-urgent {
  display: none; background: rgba(192,57,43,0.07);
  border: 1.5px solid rgba(192,57,43,0.35); border-radius: var(--r-md);
  padding: 1rem; margin-top: 0.5rem;
}
.av-urgent.show { display: block; }
.av-urgent p { font-size: 0.86rem; color: var(--danger); margin-bottom: 0.7rem; }
.av-btn-wa { background: #25D366; color: #fff; }
.av-btn-wa:hover { background: #1da851; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Per-room Airbnb picker (inside #av-res-airbnb, on dark gold gradient) */
.av-room-picker { margin-bottom: 0.9rem; }
.av-room-picker .av-rp-q {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.av-rp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.av-rp-btn {
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r-md);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.av-rp-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   45. PHASE BANNER + WELCOME MODAL
   ═══════════════════════════════════════════════════════════════ */
/* Generic centered modal (phase modal + welcome modal share this) */
.pph-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2500;
  animation: wmFade 0.25s ease;
}
@keyframes wmFade { from { opacity: 0; } to { opacity: 1; } }
.pph-modal[hidden] { display: none; }
.pph-modal-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2rem 1.5rem 1.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: wmPop 0.3s ease;
}
.pph-modal-card--narrow { max-width: 360px; }

/* Phase modal (the "where are you in your stay?" question) */
.pm-q {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ribeira);
  text-align: center;
  margin-bottom: 1.2rem;
}
.pm-btns {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pm-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.95rem 1.2rem;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.pm-btn:hover {
  border-color: var(--ribeira);
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.pm-ico { font-size: 1.4rem; line-height: 1; }

/* Welcome modal — quick tour after "just arrived" */
.wm-quick {
  background: var(--off-white);
  border-radius: var(--r-md);
  padding: 0.85rem 1.1rem 0.6rem;
  margin-bottom: 0.9rem;
}
.wm-quick-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ribeira);
  margin-bottom: 0.4rem;
}
.wm-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.95rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  margin-bottom: 0.7rem;
  transition: all 0.15s ease;
}
.wm-link:hover {
  border-color: var(--ribeira);
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.wm-link-ico { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.wm-link-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wm-link-body strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ribeira);
}
.wm-link-body span {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.4;
}
.wm-arrow {
  color: var(--text-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   46. FLOATING ACTION BUTTON (Review · Suggestion · Urgent help)
   ═══════════════════════════════════════════════════════════════ */
.fab-wrap {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  right: 16px;
  z-index: 1500;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  border: none;
  font-size: 1.65rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.fab:hover {
  transform: translateY(-2px) scale(1.04);
  background: #b3811f;
}
.fab .fab-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  line-height: 1;
}
.fab.open .fab-icon {
  transform: rotate(45deg);
}

.fab-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.75rem;
  width: 290px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fabSlide 0.2s ease;
}
[data-theme="dark"] .fab-panel { background: var(--off-white); }
@keyframes fabSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.fab-panel[hidden] { display: none; }

.fab-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 0.9rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
[data-theme="dark"] .fab-opt { background: var(--white); }
.fab-opt:hover {
  border-color: var(--ribeira);
  transform: translateX(2px);
}
.fab-opt--review {
  background: linear-gradient(135deg, var(--gold) 0%, #b3811f 100%);
  color: #fff;
  border-color: transparent;
}
.fab-opt--review:hover {
  border-color: transparent;
  filter: brightness(1.05);
}
.fab-opt--urgent { color: var(--danger); border-color: rgba(192,57,43,0.3); }
.fab-opt--urgent:hover { border-color: var(--danger); }
.fab-opt > span:first-child {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.fab-form {
  padding: 0.75rem;
  background: var(--off-white);
  border-radius: var(--r-md);
  margin-top: 0.3rem;
}
[data-theme="dark"] .fab-form { background: var(--white); }
.fab-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  resize: vertical;
  min-height: 70px;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}
.fab-form .btn { width: 100%; }

.fab-thanks {
  padding: 0.9rem 0.6rem;
  background: var(--off-white);
  border-radius: var(--r-md);
  margin-top: 0.3rem;
  text-align: center;
}
.fab-thanks > span {
  font-size: 1.7rem;
  display: block;
  margin-bottom: 0.3rem;
  line-height: 1;
}
.fab-thanks > p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-mid);
}

/* Social-proof line near review CTAs */
.review-proof {
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
  margin: 0.7rem 0 0;
  color: var(--text-mid);
}
.review-proof:empty { display: none; }
.review-proof--light { color: rgba(255, 255, 255, 0.92); }

/* ═══════════════════════════════════════════════════════════════
   47. PLACE DETAIL PAGE + CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.place-carousel { margin-bottom: 1.1rem; }
.place-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.place-track::-webkit-scrollbar { display: none; }
.place-track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: var(--r-lg);
  background: var(--sand);
  display: block;
}
.place-track .place-ph {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--ribeira), var(--atlantico));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}
.place-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.place-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease;
}
.place-dot.active { background: var(--ribeira); }

.place-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.place-rating {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}
.place-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  color: var(--ribeira);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}
.place-intro {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.place-desc {
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.place-tips { margin-bottom: 1.4rem; }
.place-tips h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.place-info {
  background: var(--off-white);
  border-radius: var(--r-md);
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.3rem;
}
.place-info-row {
  display: flex;
  gap: 10px;
  padding: 0.7rem 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.place-info-row:first-child { border-top: none; }
.place-info-ico { flex-shrink: 0; }
.place-info-row a { color: var(--ribeira); font-weight: 500; word-break: break-word; }
.place-transport {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.place-transport span { white-space: nowrap; }
.place-review { margin-top: 1.6rem; }
.porto-card { cursor: pointer; }
@keyframes wmPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}
.wm-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.4rem;
  cursor: pointer;
}
.wm-close:hover { color: var(--text); }
.wm-mark {
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 0.4rem;
  line-height: 1;
}
.pph-modal-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ribeira);
  text-align: center;
  margin-bottom: 0.5rem;
}
.pph-modal-card > p {
  text-align: center;
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.wm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.wm-row:last-of-type {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.wm-label {
  font-size: 0.85rem;
  color: var(--text-light);
  flex-shrink: 0;
}
.wm-val {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 600;
  text-align: right;
  color: var(--text);
  font-size: 0.95rem;
  word-break: break-word;
}
.wm-val--text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.pph-modal-card .btn { width: 100%; }

.av-optional { font-weight: 400; color: var(--text-light); font-size: 0.82rem; }
.av-note { font-size: 0.82rem; color: var(--text-light); margin-top: 0.6rem; text-align: center; }
.av-thanks-mark { font-size: 2.8rem; text-align: center; margin-bottom: 0.3rem; }
.av-step--center { text-align: center; }
.av-step--center .av-step-title { color: var(--ribeira); }

.bnav-item.bnav-avaliar {
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, #E8A010 100%);
  border-radius: 12px;
  padding: 5px 6px 3px;
  margin: 2px 2px;
}
.bnav-item.bnav-avaliar.active {
  color: #fff;
  background: linear-gradient(135deg, var(--douro-light) 0%, var(--gold) 100%);
}
.nav-link.nav-avaliar { color: var(--gold); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   39. ROOM "FICHA DE CUIDADO"
   ═══════════════════════════════════════════════════════════════ */
.ficha { margin-top: 1.6rem; padding: 0 1.5rem; }
.ficha-intro {
  font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45;
  font-style: italic; color: var(--room-color, var(--ribeira));
  border-left: 3px solid var(--room-color, var(--ribeira));
  padding-left: 1.4rem; margin-bottom: 1.8rem;
}
.ficha-group { margin-bottom: 1.4rem; }
.ficha-group h5 {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 1.05rem; color: var(--text); margin-bottom: 0.6rem;
}
.ficha-ico { font-size: 1.15rem; line-height: 1; }
.ficha-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.ficha-list li {
  position: relative; padding-left: 1.3rem;
  color: var(--text-mid); font-size: 0.93rem; line-height: 1.6;
}
.ficha-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--room-color, var(--ribeira));
}
.ficha-curio {
  background: var(--off-white);
  border: 1px dashed var(--room-color, var(--ribeira));
  border-radius: var(--r-md); padding: 1rem 1.1rem;
  margin: 0.2rem 0 1.4rem; font-size: 0.92rem;
  line-height: 1.6; color: var(--text-mid);
}
.ficha-curio strong { color: var(--room-color, var(--ribeira)); }
.ficha-cta {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.4rem 1.3rem;
  margin-top: 1.6rem; text-align: center;
}
.ficha-cta p {
  font-family: var(--font-display); font-size: 1.18rem;
  line-height: 1.5; color: var(--text); margin-bottom: 1.1rem;
}
.ficha-cta-btns {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   40. ROOM PHOTO GALLERY + LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.room-gallery-section { margin: 1.3rem 0 0.4rem; padding: 0 1.5rem; }
.room-gallery-title {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 1.05rem; color: var(--text); margin-bottom: 0.7rem;
}
.room-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}
.room-gallery-item {
  display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md);
  overflow: hidden; cursor: zoom-in; background: var(--sand);
}
.room-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.room-gallery-item:hover img { transform: scale(1.06); }
.lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem; z-index: 2000; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--r-sm); box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute; top: 0.8rem; right: 1.1rem;
  background: none; border: none; color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   41. CONHEÇA O PORTO
   ═══════════════════════════════════════════════════════════════ */
.porto-intro {
  font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5;
  color: var(--text-mid); max-width: 640px; margin: 0 0 2rem;
}
.porto-group-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.55rem; color: var(--ribeira);
  margin: 2.6rem 0 1.3rem; padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--beige);
}
.porto-cta { margin-top: 2.4rem; }

.ppx {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-weight: 700; color: var(--green);
  font-size: 0.82rem; letter-spacing: 0.08em;
  margin-left: 0.4rem; user-select: none;
}
.ppx-dim { opacity: 0.22; }
.ppx-free {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--green);
  background: rgba(45, 122, 95, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

/* Header logo mark (SVG replacement for the ⚓ emoji) */
.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* Wi-Fi QR image (from file, not auto-generated) */
.qr-img {
  display: block;
  width: 180px;
  height: 180px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--r-sm);
}

/* Home map preview card */
.home-map {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all 0.18s ease;
}
.home-map:hover {
  border-color: var(--ribeira);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.home-map-img {
  position: relative;
  background: var(--sand);
}
.home-map-img img {
  width: 100%;
  height: auto;
  display: block;
}
.home-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 42, 74, 0.25);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.home-map:hover .home-map-overlay { opacity: 1; }
.home-map-body {
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-map-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
  flex: 1;
}
.home-map-body .entry-arrow {
  color: var(--text-light);
  font-size: 1.3rem;
}

/* ═══════════════════════════════════════════════════════════════
   43. APP-LIKE SCREENS · HOME HUB
   ═══════════════════════════════════════════════════════════════ */
.screen { display: none; }
.screen.active { display: block; }

/* Compact home so the button hub is above the fold */
#home.hero-section {
  min-height: auto;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}
#home .hero-content { padding-bottom: 0.5rem; }

.home-hub-wrap {
  padding: 1.2rem 1rem 1.6rem;
  max-width: 600px;
  margin: 0 auto;
}
.home-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.home-hub-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  padding: 1.2rem 0.8rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  text-align: center;
  transition: all 0.18s ease;
  min-height: 94px;
}
.home-hub-btn:hover {
  border-color: var(--ribeira);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.home-hub-btn .icon { font-size: 1.8rem; line-height: 1; }
.home-hub-btn.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--gold) 0%, #b3811f 100%);
  color: #fff;
  border: none;
  min-height: 72px;
  font-weight: 600;
}
.home-hub-btn.featured:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.home-hub-btn.help {
  color: var(--danger);
  border-color: rgba(192,57,43,0.3);
}
.home-hub-btn.help:hover { border-color: var(--danger); }

/* Back-to-home affordance at the top of non-home screens */
.screen-back {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.88rem;
  font-family: var(--font-body);
  text-decoration: none;
  position: sticky;
  top: var(--header-h);
  z-index: 10;
}
.screen-back:hover { color: var(--ribeira); }
.screen:not(#home).active .screen-back { display: flex; }

/* ── Collapsible "See more" pattern (Conheça o Porto, Cozinha) ── */
.collapsible:not(.expanded) > .item-hidden { display: none; }
.see-more-btn {
  display: block;
  margin: 1.2rem auto 0;
  padding: 0.7rem 1.4rem;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.18s ease;
}
.see-more-btn:hover {
  border-color: var(--ribeira);
  color: var(--ribeira);
}
.see-more-btn .count {
  color: var(--text-light);
  margin-left: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   44. HOME FEED — condensed app-style home
   ═══════════════════════════════════════════════════════════════ */
.home-feed {
  position: relative;
  z-index: 1;
  background: var(--off-white);
  padding: 1.5rem 1rem 2rem;
  max-width: 100%;
  margin: 0 auto;
}
.home-feed > .info-card,
.home-feed > .entry-card,
.home-feed > .home-review-cta,
.home-feed > .home-porto-preview,
.home-feed > .home-help,
.home-feed > .rooms-preview {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.home-feed > * { margin-bottom: 1.1rem; }
.home-feed > *:last-child { margin-bottom: 0; }

/* Featured review CTA — gold gradient, top + middle of feed */
.home-review-cta {
  display: block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--douro) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 1.6rem 1.4rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.18s ease;
  margin-top: 1.4rem;
}
.home-review-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.home-review-cta .hrc-stars {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.home-review-cta h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.home-review-cta p {
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.home-review-cta .hrc-btn {
  display: inline-block;
  background: #fff;
  border: none;
  color: var(--gold);
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.home-review-cta--soft {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  box-shadow: none;
  text-align: left;
}
.home-review-cta--soft:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}
.home-review-cta--soft .hrc-stars,
.home-review-cta--soft p,
.home-review-cta--soft [data-review-proof] {
  display: none;
}
.home-review-cta--soft h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 0;
}
.home-review-cta--soft .hrc-btn {
  background: transparent;
  color: var(--gold);
  box-shadow: none;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Entry card — guide-entry row (Kitchen, Bathroom, Rules, Check-in, Bye) */
.entry-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.entry-card:hover {
  border-color: var(--ribeira);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.entry-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.entry-body { flex: 1; min-width: 0; }
.entry-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}
.entry-body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.45;
  margin: 0;
}
.entry-arrow {
  font-size: 1.4rem;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
.entry-card:hover .entry-arrow {
  color: var(--ribeira);
  transform: translateX(3px);
}

/* Porto preview block — 3 cards + "Ver mais" */
.home-porto-preview {
  background: var(--off-white);
  padding: 1.5rem 1rem;
  border-radius: var(--r-lg);
}
.home-porto-preview .section-title {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.home-porto-sub {
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1.2rem;
}
.home-porto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
@media (min-width: 540px) {
  .home-porto-grid { grid-template-columns: 1fr 1fr; }
}

/* "Ver mais" navigation button (preview → full screen) */
.ver-mais-btn {
  display: block;
  text-align: center;
  padding: 0.85rem 1.4rem;
  background: var(--ribeira);
  color: #fff;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.18s ease;
}
.ver-mais-btn:hover {
  background: var(--ribeira-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Help block at home bottom */
.home-help {
  background: linear-gradient(135deg, #fbeae8, #fdf3f1);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.2rem;
  text-align: center;
}
[data-theme="dark"] .home-help {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.4);
}
.home-help .hh-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.home-help .hh-icon { font-size: 1.5rem; }
.home-help h3 {
  font-family: var(--font-display);
  color: var(--danger);
  font-size: 1.35rem;
  margin: 0;
}
.home-help p {
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.home-help-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .home-help-btns {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════════════════════════
   42. ANTES DE PARTIR — checkout step flow
   ═══════════════════════════════════════════════════════════════ */
.bye-review { margin-top: 0; }
.bye-private { margin: 1rem 0 0; }
.bye-private a {
  color: rgba(255, 255, 255, 0.82); font-size: 0.9rem;
  text-decoration: underline; font-style: italic;
}
.bye-private a:hover { color: #fff; }

/* Step indicator bar */
.co-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0.5rem auto 1.8rem;
  max-width: 200px;
}
.co-step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-muted);
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}
.co-step-dot.active {
  background: var(--gold);
  color: #fff;
}
.co-step-dot.done {
  background: #4caf50;
  color: #fff;
}
.co-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

/* Panel visibility */
.co-panel { margin-bottom: 1.2rem; }
.co-panel--hidden { display: none; }

/* "Next" button spacing */
.co-next-btn {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  text-align: center;
}
.co-skip-review-btn {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  opacity: 0.75;
}
.co-skip-review-btn:hover { opacity: 1; }

/* WA confirmation card */
.checkout-wa-card .info-body p {
  margin-bottom: 1rem;
}

/* Done panel */
.co-done-panel {
  text-align: center;
  padding: 2rem 1rem;
}
.co-done-ico {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.co-done-h {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.co-done-p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.em-alt-note {
  font-size: 0.85rem; margin-top: 0.7rem;
  color: var(--text-mid); font-style: italic;
}
.em-alt-note a { color: var(--ribeira); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   48. PORTO CARD META — rating · transport · category chips
   ═══════════════════════════════════════════════════════════════ */
.pcard-meta-wrap { margin: 0 0 0.85rem; }

.pcard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.pcard-rating {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.pcard-star { color: var(--gold); margin-right: 0.12rem; }
.pcard-rating-count {
  font-weight: 400;
  color: var(--text-light);
  margin-left: 0.2rem;
}

.pcard-trans {
  color: var(--text-mid);
  white-space: nowrap;
}

.pcard-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pcard-cat {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   49. CHECK-OUT CTA — quick entry into the check-out funnel
   ═══════════════════════════════════════════════════════════════ */
.checkout-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  margin: 0.4rem 0 0.9rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--ribeira), var(--ribeira-light));
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.checkout-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.checkout-cta-screen {
  margin: 1.4rem 0 0;
}
.checkout-cta-ico {
  font-size: 1.55rem;
  flex-shrink: 0;
}
.checkout-cta-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.35;
}
.checkout-cta-text strong {
  font-size: 1rem;
  font-weight: 700;
}
.checkout-cta-text span {
  font-size: 0.82rem;
  opacity: 0.85;
}
.checkout-cta-arrow {
  font-size: 1.25rem;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Checkout CTA with extra highlight — draws the eye on mobile */
.checkout-cta--highlight {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.6), var(--shadow-md);
  animation: checkout-pulse 2.5s ease-in-out 1s 2;
}
@keyframes checkout-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.6), var(--shadow-md); }
  50%       { box-shadow: 0 0 0 6px rgba(255,255,255,0.3), var(--shadow-lg); }
}
.checkout-cta--highlight .checkout-cta-text strong {
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

/* Checkout CTA on home feed — full-width, no extra top margin */
.checkout-cta--home {
  margin: 0;
}

/* Inline Leaflet map in the Porto section — above the places list */
.porto-inline-map-wrap {
  margin-bottom: 1.6rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
#porto-inline-map {
  width: 100%;
  height: 300px;
}
@media (min-width: 560px) {
  #porto-inline-map { height: 380px; }
}

/* ═══════════════════════════════════════════════════════════════
   50. INTERACTIVE MAP — Leaflet + OpenStreetMap
   ═══════════════════════════════════════════════════════════════ */
.map-interactive {
  margin: 0 0 1.6rem;
}
#porto-map {
  height: 380px;
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--sand);
  z-index: 1;
}
.map-pins-note {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0.55rem 0.2rem 0;
}
.map-pdf-h {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.7rem;
}

/* Custom emoji pins (no external marker images needed) */
.map-pin { background: transparent; border: none; }
.map-pin span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.map-pin-home span {
  width: 40px;
  height: 40px;
  border-color: var(--ribeira);
  border-width: 3px;
  font-size: 1.2rem;
}
.leaflet-popup-content {
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.leaflet-popup-content a {
  color: var(--ribeira);
  font-weight: 600;
}
.map-popup-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.45rem;
  font-size: 0.82rem;
}
.map-popup-links a { text-decoration: none; }
.map-popup-go {
  display: inline-block;
  background: var(--gold);
  color: #fff !important;
  padding: 0.34rem 0.6rem;
  border-radius: var(--r-sm);
  text-align: center;
}
.map-popup-go:hover { filter: brightness(1.07); }

/* ═══════════════════════════════════════════════════════════════
   51. INTERACTIVE CHECKOUT CHECKLIST — tap to tick, state persists
   ═══════════════════════════════════════════════════════════════ */
.checklist-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0 0 0.7rem;
}
.checklist-interactive {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.checklist-interactive li {
  list-style: none;
  position: relative;
  padding: 0.55rem 0.2rem 0.55rem 2.15rem;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.15s ease, background 0.12s ease;
}
.checklist-interactive li:last-child { border-bottom: none; }
.checklist-interactive li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: transparent;
}
.checklist-interactive li.checked::before {
  content: '✓';
  background: var(--gold);
  color: #fff;
}
.checklist-interactive li.checked {
  opacity: 0.5;
  text-decoration: line-through;
}
.checklist-interactive li:active { background: var(--sand); }

/* ═══════════════════════════════════════════════════════════════
   52. PAGE PHOTO — header image on the kitchen / bathroom screens
   ═══════════════════════════════════════════════════════════════ */
.page-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow-sm);
  display: block;
}
[data-theme="dark"] #porto-map { filter: brightness(0.85) contrast(1.05); }

/* ═══════════════════════════════════════════════════════════════
   53. BATHROOM FLUSH CALLOUT
   ═══════════════════════════════════════════════════════════════ */
.bath-flush-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff8e8;
  border-left: 4px solid #C8922A;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.bath-flush-callout p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.bath-flush-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
[data-theme="dark"] .bath-flush-callout {
  background: rgba(200, 146, 42, 0.12);
}


/* ═══════════════════════════════════════════════════════════════
   53. BATH FLUSH CALLOUT
   ═══════════════════════════════════════════════════════════════ */
.bath-flush-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff8e8;
  border-left: 4px solid #C8922A;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.bath-flush-callout p { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--text); line-height: 1.5; }
.bath-flush-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.05rem; }
[data-theme="dark"] .bath-flush-callout { background: rgba(200, 146, 42, 0.12); }

/* ═══════════════════════════════════════════════════════════════
   54. CASA SCREEN — combined kitchen / bathroom / rules
   ═══════════════════════════════════════════════════════════════ */
/* sticky wrapper for back-button + casa tabs — keeps them stacked as one unit */
.casa-sticky-header {
  position: sticky;
  top: var(--header-h);
  z-index: 42;
  /* frosted glass — same language as the site header */
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
/* inside the wrapper, neither child is independently sticky */
.casa-sticky-header .screen-back {
  position: relative;
  top: auto;
  z-index: auto;
  background: transparent;      /* let the frosted parent show through */
  border-bottom: none;
  box-shadow: none;
}
.casa-tabs {
  display: flex;
  gap: 0;
  background: transparent;      /* frosted glass comes from parent */
  border-bottom: none;
  position: relative;
  /* NO overflow-x: auto — all 3 tabs fit, no scrolling */
}
.casa-tab {
  flex: 1;
  padding: 0.75rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.casa-tab:hover { color: var(--navy); border-bottom-color: var(--douro); }
.casa-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  /* scroll-margin accounts for: sticky main header + sticky casa-sticky-header (back + tabs ≈ 90px) */
  scroll-margin-top: calc(var(--header-h) + 90px);
}
.casa-section:last-child { border-bottom: none; }
.casa-section .section-title { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════════
   55. ENTRY CARD VARIANTS
   ═══════════════════════════════════════════════════════════════ */
.entry-card--casa .entry-icon { background: linear-gradient(135deg, var(--navy) 0%, #2e4070 100%); color: #fff; }
.entry-card--departure .entry-icon { background: linear-gradient(135deg, #7c5c2e 0%, var(--douro) 100%); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   56. CONTACT CARD EXTRAS
   ═══════════════════════════════════════════════════════════════ */
.contact-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.1rem 0 0.75rem;
}
.contact-emergency-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   57. NAV DRAWER SUB-ITEMS
   ═══════════════════════════════════════════════════════════════ */
.nav-sub {
  font-size: 0.82rem;
  padding-left: 2rem;
  color: var(--text-muted) !important;
}

/* ═══════════════════════════════════════════════════════════════
   58. ROOM SELECTION POPUP
   ═══════════════════════════════════════════════════════════════ */
.room-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 18, 40, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: roomPopupIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.room-popup[hidden] { display: none !important; }
.room-popup-hide { animation: roomPopupOut 0.35s ease forwards; }
@keyframes roomPopupIn  { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes roomPopupOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.97); } }

.room-popup-inner {
  text-align: center;
  width: 100%;
  max-width: 520px;
}
.room-popup-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: #fff;
  margin: 0 0 0.3rem;
}
.room-popup-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin: 0 0 1.5rem;
}

.room-popup-choices {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.room-choice {
  flex: 1;
  max-width: 150px;
  background: none;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.room-choice:hover, .room-choice:focus-visible {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.room-choice-img {
  width: 100%;
  aspect-ratio: 2/3;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.08);
}
.room-choice-label {
  padding: 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}
.room-choice-emoji { font-size: 1.1rem; }
.room-choice-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}
.room-popup-skip {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.4rem 1rem;
  text-decoration: underline;
}
.room-popup-skip:hover { color: rgba(255,255,255,0.75); }

/* ═══════════════════════════════════════════════════════════════
   59. WELCOME
   59. WELCOME OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: rgba(10, 18, 40, 0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: welcomeFadeIn 0.5s ease both;
}
.welcome-overlay[hidden] { display: none !important; }
.welcome-overlay--out { animation: welcomeFadeOut 0.55s ease forwards; }
@keyframes welcomeFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcomeFadeOut { from { opacity: 1; } to { opacity: 0; } }

.welcome-logo { font-size: 2.4rem; opacity: 0.9; margin-bottom: 0.25rem; }
.welcome-go {
  margin-top: 0.5rem;
  padding: 0.65rem 1.6rem;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.welcome-go:hover { background: #b07818; }

.welcome-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.welcome-logo { opacity: 0.9; }
.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
}
.welcome-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin: 0;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   60. DARK MODE CONTRAST FIXES
   ═══════════════════════════════════════════════════════════════ */

/* checkout-cta: force white text on both themes (blue bg) */
.checkout-cta,
.checkout-cta strong,
.checkout-cta span {
  color: #fff !important;
}

/* checkout-cta: in dark mode --ribeira becomes medium blue → keep it dark */
[data-theme="dark"] .checkout-cta {
  background: linear-gradient(135deg, #1a3060 0%, #1e2d50 100%);
}

/* Leaflet popup: dark mode — white balloon with white text fix */
[data-theme="dark"] .leaflet-popup-content-wrapper,
[data-theme="dark"] .leaflet-popup-tip {
  background: #1e2535;
  color: #e8e4de;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
[data-theme="dark"] .leaflet-popup-content {
  color: #e8e4de;
}
[data-theme="dark"] .leaflet-popup-content a {
  color: var(--gold);
}
[data-theme="dark"] .leaflet-popup-close-button {
  color: #e8e4de !important;
}

/* ═══════════════════════════════════════════════════════════════
   61. MOBILE-FIRST ESSENTIAL ACTIONS
   ═══════════════════════════════════════════════════════════════ */
.guest-start {
  position: relative;
  z-index: 4;
  margin-top: -1.35rem;
  padding: 0 1rem 1rem;
}

.guest-start-heading {
  background: var(--surface, #fff);
  border-radius: 18px 18px 0 0;
  padding: 1.15rem 1rem 0.75rem;
  box-shadow: 0 -8px 28px rgba(18, 35, 67, 0.12);
}

.guest-start-kicker {
  margin: 0 0 0.2rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-start h2 {
  margin: 0;
  color: var(--ink, #1b2a4a);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6vw, 2rem);
  line-height: 1.1;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0 1rem 1.15rem;
  background: var(--surface, #fff);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 12px 30px rgba(18, 35, 67, 0.12);
}

.quick-action {
  min-height: 5.35rem;
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  padding: 0.85rem 0.72rem;
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: 14px;
  background: var(--bg, #faf8f4);
  color: var(--ink, #1b2a4a);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-action:hover,
.quick-action:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 7px 18px rgba(18, 35, 67, 0.10);
}

.quick-action-icon {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

.quick-action span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.quick-action strong {
  font-size: 0.88rem;
  line-height: 1.15;
}

.quick-action small {
  color: var(--muted, #6f706f);
  font-size: 0.69rem;
  line-height: 1.25;
}

.quick-action--wifi {
  background: #eef8f4;
  border-color: rgba(50, 122, 88, 0.28);
}

.quick-action--help {
  background: #fff5f1;
  border-color: rgba(165, 55, 55, 0.22);
}

[data-theme="dark"] .guest-start-heading,
[data-theme="dark"] .quick-actions {
  background: #172033;
}

[data-theme="dark"] .quick-action {
  background: #202a3d;
  border-color: rgba(255,255,255,0.12);
}

[data-theme="dark"] .quick-action--wifi { background: #173329; }
[data-theme="dark"] .quick-action--help { background: #38252a; }

@media (min-width: 720px) {
  .guest-start { margin-top: -2rem; }
  .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-action { min-height: 5.7rem; }
}


/* === MOBILE-FIRST GUEST ESSENTIALS HUB === */
#home.hero-section {
  min-height: 0;
}

#home .hero-content--hub {
  flex: none;
  min-height: 180px;
  padding: 1.35rem 1rem 1.15rem;
}

#home .hero-content--hub .hero-badge {
  margin-bottom: 0.75rem;
}

#home .hero-title--hub {
  margin-bottom: 0.4rem;
}

#home .hero-title--hub .hero-name {
  font-size: clamp(2rem, 9vw, 3.4rem);
}

#home .hero-tagline--hub {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(0.92rem, 3.5vw, 1.08rem);
  color: rgba(255,255,255,0.9);
  font-weight: 400;
}

.stay-hub {
  max-width: 640px;
  margin: 0 auto 1.15rem;
  padding: 0;
}

.stay-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.stay-hub-btn {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.stay-hub-btn:hover,
.stay-hub-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--ribeira);
  box-shadow: var(--shadow-md);
}

.stay-hub-icon {
  width: 1.7rem;
  flex: 0 0 1.7rem;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1;
}

.stay-hub-btn--help {
  border-color: rgba(192,57,43,0.25);
}

.stay-hub-explore {
  min-height: 50px;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  background: var(--ribeira);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.stay-hub-explore:hover,
.stay-hub-explore:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .stay-hub-btn {
  background: var(--white);
  border-color: var(--border);
}

@media (min-width: 700px) {
  #home .hero-content--hub {
    min-height: 210px;
    padding: 1.8rem 1.5rem 1.5rem;
  }

  .stay-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stay-hub-btn {
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
  }
}


/* Room-specific landing hubs */
.room-stay-hub {
  margin: 1rem auto 1.5rem;
  padding: 0 1rem;
  max-width: 680px;
}
.room-stay-hub-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.porto-grid-night {
  margin-bottom: 2rem;
}
.porto-img {
  position: relative;
}
.porto-photo-credit {
  position: absolute;
  right: 0.45rem;
  bottom: 0.4rem;
  z-index: 2;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: rgba(0,0,0,0.62);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 0.58rem;
  line-height: 1.2;
}
.place-photo-credit {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-light);
}
.place-photo-credit a {
  color: inherit;
}
.map-pin-utility span {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.22));
}
