/*
Theme Name: Residentas
Theme URI: https://residentas.com
Description: Custom block theme for Residentas luxury vacation rentals - Lisbon & Orlando.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
Author: Residentas
Author URI: https://residentas.com
Text Domain: residentas
License: Private
*/

/* ========== DESIGN TOKENS (matched to Netlify) ========== */
:root {
  /* Primary palette - warm brown/terracotta tones */
  --ink: #231a15;
  --muted: #6d5f55;
  --muted-soft: #5a544e;
  --sand: #fff4e6;
  --sand-soft: #fbf6ef;
  --sand-deep: #ead6bd;
  --sand-border: rgba(35, 26, 21, 0.08);
  --clay: #b95732;
  --clay-dark: #8f3c24;
  --terracotta: #d9693d;
  --orange-light: rgba(185, 87, 50, 0.10);

  /* Footer palette - warm dark tones */
  --footer-bg: #171310;
  --footer-panel: #211b16;
  --footer-line: rgba(255, 244, 230, 0.14);

  /* Legacy aliases (keep for back-compat) */
  --sand-dark: #fbf6ef;
  --charcoal: #231a15;
  --charcoal-mid: #3d3029;
  --muted-light: rgba(35, 26, 21, 0.45);
  --orange: #b95732;
  --orange-dark: #8f3c24;

  --serif: Georgia, "Times New Roman", serif;
  --sans: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; margin: 0; }

/* ========== DARK PAGE (Homepage) ========== */
.residentas-dark-page {
  min-height: 100vh;
  background: var(--charcoal) !important;
  color: #fff;
}
.residentas-dark-page .wp-site-blocks {
  background: var(--charcoal);
}
body:has(.residentas-dark-page) {
  background: var(--charcoal) !important;
}
body:has(.residentas-dark-page) .wp-site-blocks {
  padding-top: 0 !important;
}

/* ========== HEADER (Portugal) ========== */
.residentas-header-portugal {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.residentas-nav-cta a {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.residentas-nav-cta a:hover {
  background: var(--orange-dark) !important;
}

/* ========== FOOTER LINKS ========== */
/* Both the original wp:list block AND the new wp_nav_menu output land
   here with the .residentas-footer-links class. The wp:list block
   came pre-styled by WP's blockGap (flex column + gap); the menu
   output is a default <ul> which we need to flex explicitly so the
   12px gap between items works. */
.residentas-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  font-size: 13px;
}
.residentas-footer-links li {
  list-style: none;
  margin: 0;
}
.residentas-footer-links a {
  color: rgba(255,255,255,0.55) !important;
  text-decoration: none !important;
  font-size: 13px;
  transition: color 0.2s;
}
.residentas-footer-links a:hover {
  color: #fff !important;
}
/* wp_nav_menu adds menu-item-* classes - flatten any inline padding
   from those defaults so the column looks identical to the original
   wp:list block. */
.residentas-footer-links .menu-item {
  padding: 0;
}

/* ========== EYEBROW LABEL ========== */
.residentas-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.residentas-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--orange);
}

/* ========== SECTION TITLES ========== */
.residentas-section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--charcoal);
}
.residentas-section-title em {
  font-style: italic;
}

/* ========== BUTTONS ========== */
.wp-block-button.is-style-residentas-primary .wp-block-button__link,
.residentas-btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.wp-block-button.is-style-residentas-primary .wp-block-button__link:hover,
.residentas-btn-primary:hover {
  background: var(--orange-dark);
}

.residentas-btn-ghost {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.residentas-btn-ghost:hover { color: #fff; }

/* ========== HERO SECTIONS ========== */
.residentas-hero-dark {
  background: var(--charcoal) !important;
  color: #fff;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 48px 80px;
  text-align: center;
}

/* Destination cover cards */
.residentas-dest-columns {
  overflow: hidden;
}
.residentas-dest-cover .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 350px;
  padding: 20px 24px !important;
}
.residentas-dest-cover .wp-block-cover__inner-container p,
.residentas-dest-cover .wp-block-cover__inner-container h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.residentas-hero-destination {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.residentas-hero-destination .wp-block-cover__inner-container {
  padding: 80px 48px;
  max-width: 620px;
}

/* ========== DESTINATION CARDS (Homepage) ========== */
.residentas-dest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  max-width: 820px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}
.residentas-dest-card {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: #fff;
}
.residentas-dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.residentas-dest-card:hover img { transform: scale(1.04); }
.residentas-dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,6,0.92) 0%, rgba(10,8,6,0.6) 50%, rgba(10,8,6,0.35) 100%);
}
.residentas-dest-card-content {
  position: relative;
  z-index: 2;
  padding: 20px 24px;
}
.residentas-dest-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.residentas-dest-tag::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--orange);
}
.residentas-dest-name {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 6px;
}
.residentas-dest-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}
.residentas-dest-props {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.residentas-dest-prop {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 3px;
}
.residentas-dest-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  padding: 10px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}
.residentas-dest-card:hover .residentas-dest-cta { background: var(--orange-dark); }

/* ========== BOOK BAND ========== */
.residentas-book-band {
  background: var(--charcoal);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.residentas-band-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.residentas-band-icon {
  width: 32px;
  height: 32px;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.residentas-band-label {
  font-weight: 500;
  color: #fff;
  font-size: 14px;
}
.residentas-band-sub {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

/* ========== PROPERTY CARDS ========== */
.residentas-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.residentas-prop-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(28,28,28,0.07);
  border: 1px solid rgba(229,221,213,0.6);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.residentas-prop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(28,28,28,0.13);
}
.residentas-prop-card img {
  width: 100%;
  display: block;
}
.residentas-prop-card-body {
  padding: 20px 22px 24px;
  border-top: 1px solid var(--sand-border);
}
.residentas-prop-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 7px;
}
.residentas-prop-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.residentas-prop-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-light);
}
.residentas-nb-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--orange);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
  z-index: 2;
}

/* ========== ABOUT SECTION ========== */
.residentas-about {
  background: var(--sand-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 48px;
}
.residentas-about-quote {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 28px;
  padding-left: 24px;
  border-left: 2px solid var(--orange);
}
.residentas-about-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.residentas-about-text strong {
  color: var(--charcoal);
  font-weight: 500;
}

/* ========== NEIGHBOURHOOD STRIP ========== */
.residentas-nb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-radius: 8px;
  overflow: hidden;
}
.residentas-nb-item {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.residentas-nb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.residentas-nb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,0.7) 0%, transparent 60%);
}
.residentas-nb-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
}
.residentas-nb-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 4px;
}
.residentas-nb-property {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ========== REVIEWS ========== */
.residentas-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.residentas-review-card {
  background: #fff;
  border: 1px solid var(--sand-border);
  border-radius: 8px;
  padding: 28px;
}
.residentas-review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.residentas-review-star {
  width: 14px;
  height: 14px;
  background: var(--orange);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.residentas-review-text {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 20px;
}
.residentas-review-author {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
}
.residentas-review-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.residentas-review-property {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 500;
}

/* ========== OPT-IN / NEWSLETTER ========== */
.residentas-optin {
  background: var(--charcoal);
  padding: 100px 48px;
  text-align: center;
  color: #fff;
}
.residentas-optin-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.2;
}
.residentas-optin-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.residentas-optin-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.residentas-optin-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
}
.residentas-optin-input::placeholder { color: rgba(255,255,255,0.3); }
.residentas-optin-submit {
  background: var(--orange);
  border: none;
  color: #fff;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.residentas-optin-submit:hover { background: var(--orange-dark); }
.residentas-optin-submit[disabled] { opacity: 0.6; cursor: default; }

.residentas-optin-success {
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  text-align: center;
  background: rgba(255,255,255,0.04);
}
.residentas-optin-success-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.residentas-optin-success-code {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.residentas-optin-success-note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.residentas-optin-error {
  max-width: 440px;
  margin: 12px auto 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #ffb4a2;
  background: rgba(255,76,76,0.08);
  border: 1px solid rgba(255,76,76,0.25);
  border-radius: 4px;
  text-align: center;
}

/* ========== PROPERTY HERO ========== */
.residentas-prop-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  overflow: hidden;
}
.residentas-prop-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 56px;
  color: #fff;
}
.residentas-prop-breadcrumb {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.residentas-prop-breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.residentas-prop-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}
.residentas-prop-hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 6.5vw, 88px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 12px;
}

/* ========== BOOKING SECTION ========== */
.residentas-book-section {
  background: var(--sand-dark);
  padding: 48px;
  text-align: center;
}
.residentas-book-section .residentas-section-title {
  font-size: 36px;
  margin-bottom: 8px;
}

/* ========== SIDEBAR (Property pages) ========== */
.residentas-sidebar-card {
  background: #fff;
  border: 1px solid var(--sand-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.residentas-sidebar-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--sand-border);
}
.residentas-sidebar-body {
  padding: 20px 24px;
}
.residentas-sidebar-price {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--charcoal);
}

/* ========== HIGHLIGHT PILLS ========== */
.residentas-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.residentas-pill {
  background: var(--sand-dark);
  border: 1px solid var(--sand-border);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--charcoal-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}
.residentas-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}

/* ========== APARTMENT CARDS ========== */
.residentas-apt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.residentas-apt-card {
  background: #fff;
  border: 1px solid var(--sand-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.residentas-apt-card:hover {
  box-shadow: 0 6px 24px rgba(28,28,28,0.09);
}
.residentas-apt-card-body { padding: 16px 20px; }
.residentas-apt-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.residentas-apt-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.residentas-apt-pill {
  background: var(--sand-dark);
  color: var(--muted);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 3px;
}

/* ========== PERKS BOX ========== */
.residentas-perks {
  background: var(--sand-dark);
  border: 1px solid var(--sand-border);
  border-radius: 10px;
  padding: 20px 24px;
}
.residentas-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.residentas-perk-item:last-child { margin-bottom: 0; }
.residentas-perk-icon {
  width: 28px;
  height: 28px;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========== INCLUDED FEATURES GRID (US) ========== */
.residentas-included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-radius: 10px;
  overflow: hidden;
}
.residentas-incl-card {
  background: #fff;
  padding: 32px 28px;
}
.residentas-incl-icon {
  width: 40px;
  height: 40px;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.residentas-incl-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.residentas-incl-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.residentas-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 48px 32px;
  color: rgba(255,255,255,0.55);
}
.residentas-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.residentas-footer-brand {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.residentas-footer-col-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
  font-weight: 500;
}
.residentas-footer a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.residentas-footer a:hover { color: #fff; }
.residentas-footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.residentas-footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.residentas-footer-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .residentas-dest-grid { grid-template-columns: 1fr; max-width: 440px; }
  .residentas-about { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px; }
  .residentas-nb-strip { grid-template-columns: 1fr 1fr; }
  .residentas-reviews-grid { grid-template-columns: 1fr; }
  .residentas-prop-grid { grid-template-columns: 1fr; }
  .residentas-included-grid { grid-template-columns: 1fr; }
  .residentas-apt-grid { grid-template-columns: 1fr; }
  .residentas-footer-grid { grid-template-columns: 1fr 1fr; }
  .residentas-book-band { flex-wrap: wrap; gap: 20px; padding: 24px 20px; }
  .residentas-hero-dark { padding: 100px 20px 60px; }
}

@media (max-width: 480px) {
  .residentas-nb-strip { grid-template-columns: 1fr; }
  .residentas-footer-grid { grid-template-columns: 1fr; }
  .residentas-dest-name { font-size: 28px; }
  .residentas-prop-hero-title { font-size: clamp(34px, 10vw, 46px); }
  .residentas-optin-form { flex-direction: column; }
}

/* ========== SHORTCODE-BASED SECTIONS ========== */

/* Dark band divider */
.residentas-band-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.12);
}

/* Hero dark (homepage) */
.residentas-hero-dark-title {
  font-family: var(--serif) !important;
  font-size: clamp(44px, 5.5vw, 80px) !important;
  font-weight: 300 !important;
  line-height: 1.05 !important;
  color: #fff !important;
  margin-bottom: 20px !important;
}
.residentas-hero-dark-title em {
  font-style: italic;
  color: rgba(255,255,255,0.7);
}
.residentas-hero-dark-sub {
  font-size: 15px !important;
  color: rgba(255,255,255,0.45) !important;
  line-height: 1.7 !important;
  max-width: 440px;
  margin: 0 auto 56px !important;
  text-align: center;
}

/* Portugal hero */
.residentas-hero-destination .wp-block-cover__inner-container {
  padding: 80px 48px;
  max-width: 620px;
  color: #fff;
}
.residentas-hero-title {
  font-family: var(--serif) !important;
  font-size: clamp(52px, 5.5vw, 80px) !important;
  font-weight: 300 !important;
  line-height: 1.08 !important;
  color: #fff !important;
  margin-bottom: 28px !important;
}
.residentas-hero-title em {
  font-style: italic;
  color: var(--orange);
}
.residentas-hero-sub {
  font-size: 16px !important;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.75 !important;
  max-width: 420px;
  margin-bottom: 44px !important;
}

/* Property hero */
.residentas-prop-hero {
  min-height: 480px;
}
.residentas-prop-hero .wp-block-cover__inner-container {
  padding: 0 48px 56px;
  color: #fff;
}
.residentas-prop-breadcrumb {
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 16px !important;
}
.residentas-prop-breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.residentas-prop-badge {
  display: inline-block !important;
  background: var(--orange) !important;
  color: #fff !important;
  font-size: 11px !important;
  padding: 4px 12px !important;
  border-radius: 3px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  margin-bottom: 16px !important;
  width: auto !important;
}
.residentas-prop-hero-title {
  font-family: var(--serif) !important;
  font-size: clamp(52px, 6.5vw, 88px) !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  color: #fff !important;
  margin-bottom: 12px !important;
}
.residentas-prop-hero-sub {
  font-size: 16px !important;
  color: rgba(255,255,255,0.7) !important;
  max-width: 520px;
  line-height: 1.65 !important;
}

/* Section wrappers */
.residentas-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.residentas-section-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 48px;
}

/* Property content */
.residentas-prop-intro {
  font-family: var(--serif) !important;
  font-size: 26px !important;
  font-weight: 300 !important;
  font-style: italic !important;
  line-height: 1.5 !important;
  color: var(--charcoal) !important;
  margin-bottom: 32px !important;
  padding-bottom: 32px !important;
  border-bottom: 1px solid var(--sand-border) !important;
}
.residentas-prop-desc {
  font-size: 15px !important;
  color: var(--muted) !important;
  line-height: 1.85 !important;
  margin-bottom: 16px !important;
}
.residentas-prop-desc strong {
  color: var(--charcoal);
  font-weight: 500;
}
.residentas-prop-highlights {
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  color: var(--charcoal-mid) !important;
  margin-top: 32px !important;
  padding-top: 28px !important;
  border-top: 1px solid var(--sand-border) !important;
}

/* Page hero (About, Contact, Guides, Policies) */
.residentas-page-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 24px clamp(32px, 4vw, 48px);
  text-align: center;
}
.residentas-page-title {
  font-family: var(--serif) !important;
  font-size: clamp(36px, 4.6vw, 64px) !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
  color: var(--charcoal) !important;
  margin: 0 0 18px !important;
}
.residentas-page-sub {
  max-width: 640px;
  margin: 0 auto !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: var(--charcoal-mid) !important;
}

/* Section mini title */
.residentas-section-mini-title {
  font-family: var(--serif) !important;
  font-size: clamp(28px, 3.2vw, 44px) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  color: var(--charcoal) !important;
  margin: 0 0 18px !important;
}
.residentas-section-lead {
  max-width: 680px;
  margin: 0 auto 36px !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: var(--charcoal-mid) !important;
}

/* Pillars (About) */
.residentas-pillar {
  background: #fff;
  border: 1px solid var(--sand-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(28,28,28,0.04);
}
.residentas-pillar-num {
  font-family: var(--serif) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--orange) !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 8px !important;
  display: inline-block;
}

/* Contact cards */
.residentas-contact-card,
.residentas-guide-card,
.residentas-policy-card {
  background: #fff;
  border: 1px solid var(--sand-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(28,28,28,0.04);
  margin-bottom: 18px;
}
.residentas-card-kicker,
.residentas-guide-kicker {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--orange) !important;
  margin-bottom: 10px !important;
}
.residentas-card-title,
.residentas-guide-title {
  font-family: var(--serif) !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  color: var(--charcoal) !important;
  margin: 0 0 12px !important;
}
.residentas-guide-meta {
  font-size: 13px !important;
  color: var(--muted) !important;
  margin-bottom: 14px !important;
}

/* Nb block on property pages */
.residentas-nb-block {
  margin: 64px 48px;
  background: var(--sand-dark);
  border-radius: 12px;
  overflow: hidden;
  padding: 48px;
}
.residentas-nb-title {
  font-family: var(--serif) !important;
  font-size: 32px !important;
  font-weight: 300 !important;
  color: var(--charcoal) !important;
  margin-bottom: 20px !important;
  line-height: 1.2 !important;
}
.residentas-nb-body {
  font-size: 14px !important;
  color: var(--muted) !important;
  line-height: 1.8 !important;
  margin-bottom: 14px !important;
}
.residentas-nb-highlights li {
  font-size: 13px !important;
  color: var(--charcoal-mid);
  margin-bottom: 12px;
}
.residentas-nb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Buttons */
.residentas-btn-primary .wp-block-button__link {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 14px 32px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
}
.residentas-btn-primary .wp-block-button__link:hover {
  background: var(--orange-dark) !important;
}
.residentas-btn-ghost-dark .wp-block-button__link {
  background: #fff !important;
  color: var(--charcoal) !important;
  border: 1px solid var(--sand-border) !important;
  padding: 14px 32px !important;
  border-radius: 4px !important;
}

/* ========== GUESTY DUAL LOCATION TABS ========== */
.residentas-guesty-dual {
  max-width: 960px;
  margin: 0 auto;
}
.residentas-guesty-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--sand-border);
  padding-bottom: 0;
}
.residentas-guesty-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.residentas-guesty-tab:hover {
  color: var(--charcoal);
}
.residentas-guesty-tab.is-active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.residentas-guesty-panel {
  min-height: 80px;
}

/* ========== COMPREHENSIVE MOBILE RESPONSIVE ========== */

@media (max-width: 1024px) {
  .residentas-section { padding: 64px 32px; }
  .residentas-section-narrow { padding: 48px 32px; }
  .residentas-nb-block { margin: 48px 24px; padding: 36px; }
  .residentas-prop-hero .wp-block-cover__inner-container { padding: 0 32px 40px; }
  .residentas-hero-destination .wp-block-cover__inner-container { padding: 60px 32px; }
}

@media (max-width: 768px) {
  /* Hero */
  .residentas-hero-dark { padding: 100px 20px 60px; min-height: auto; }
  .residentas-hero-dark-title { font-size: 38px !important; }
  .residentas-hero-dark-sub { font-size: 14px !important; margin-bottom: 40px !important; }

  /* Destination cards */
  .residentas-dest-grid { grid-template-columns: 1fr; max-width: 440px; }
  .residentas-dest-name { font-size: 28px; }

  /* Portugal hero */
  .residentas-hero-destination { min-height: 85vh; }
  .residentas-hero-destination .wp-block-cover__inner-container { padding: 48px 24px; }
  .residentas-hero-title { font-size: clamp(36px, 8vw, 52px) !important; }
  .residentas-hero-sub { font-size: 15px !important; max-width: 100%; }

  /* Property hero */
  .residentas-prop-hero { min-height: 420px; }
  .residentas-prop-hero .wp-block-cover__inner-container { padding: 0 24px 36px; }
  .residentas-prop-hero-title { font-size: clamp(38px, 11vw, 58px) !important; }
  .residentas-prop-hero-sub { font-size: 15px !important; }

  /* Book band */
  .residentas-book-band { flex-wrap: wrap; gap: 20px 32px; padding: 24px 20px; justify-content: flex-start; }
  .residentas-band-divider { display: none; }

  /* Sections */
  .residentas-section { padding: 48px 20px; }
  .residentas-section-narrow { padding: 40px 20px; }

  /* Property grid */
  .residentas-prop-grid { grid-template-columns: 1fr; gap: 16px; }

  /* About */
  .residentas-about { grid-template-columns: 1fr !important; gap: 40px; padding: 60px 20px; }

  /* Neighbourhood strip */
  .residentas-nb-strip { grid-template-columns: 1fr 1fr; }
  .residentas-nb-item { height: 220px; }
  .residentas-nb-name { font-size: 22px; }

  /* Nb block on property pages */
  .residentas-nb-block { margin: 40px 16px; padding: 28px 20px; }
  .residentas-nb-block .wp-block-columns { flex-direction: column !important; gap: 24px; }
  .residentas-nb-title { font-size: 26px !important; }

  /* Reviews */
  .residentas-reviews-grid { grid-template-columns: 1fr !important; gap: 16px; }

  /* Newsletter */
  .residentas-optin { padding: 60px 20px; }
  .residentas-optin-title { font-size: clamp(28px, 6vw, 40px) !important; }
  .residentas-optin-form { flex-direction: column; border-radius: 8px; }

  /* Page hero */
  .residentas-page-hero { padding: 48px 20px 32px; }
  .residentas-page-title { font-size: clamp(28px, 8vw, 42px) !important; }
  .residentas-page-sub { font-size: 15px !important; }

  /* Pillars */
  .residentas-pillars { flex-direction: column !important; gap: 16px; }
  .residentas-pillar { padding: 24px; }

  /* Contact/guide/policy cards */
  .residentas-contact-cards,
  .residentas-guides-grid { flex-direction: column !important; gap: 16px; }
  .residentas-contact-card,
  .residentas-guide-card,
  .residentas-policy-card { padding: 22px; }
  .residentas-card-title { font-size: 22px !important; }

  /* Apartment grid */
  .residentas-apt-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Property intro */
  .residentas-prop-intro { font-size: 20px !important; padding-bottom: 24px !important; margin-bottom: 24px !important; }
  .residentas-prop-desc { font-size: 14px !important; }
  .residentas-prop-highlights { font-size: 11px !important; padding-top: 22px !important; }

  /* Footer */
  .residentas-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px; }
  .residentas-footer { padding: 40px 20px 24px; }

  /* Guesty tabs */
  .residentas-guesty-tab { font-size: 12px; padding: 12px 14px; }

  /* Header Portugal */
  .residentas-header-portugal { padding: 0 20px !important; min-height: 64px !important; flex-wrap: wrap; }

  /* Booking section */
  .residentas-book-section { padding: 48px 20px !important; }
}

@media (max-width: 480px) {
  .residentas-nb-strip { grid-template-columns: 1fr; }
  .residentas-footer-grid { grid-template-columns: 1fr !important; }
  .residentas-dest-name { font-size: 24px; }
  .residentas-prop-hero-title { font-size: 36px !important; }
  .residentas-prop-hero-sub { font-size: 14px !important; }
  .residentas-hero-title { font-size: 32px !important; }
  .residentas-hero-dark-title { font-size: 30px !important; }
  .residentas-section-mini-title { font-size: 24px !important; }
  .residentas-section-title { font-size: 28px !important; }
  .residentas-page-title { font-size: 26px !important; }
  .residentas-optin-title { font-size: 24px !important; }
  .residentas-nb-title { font-size: 22px !important; }
  .residentas-optin-form input,
  .residentas-optin-form button { padding: 14px 16px !important; }
  .residentas-prop-grid,
  .residentas-reviews-grid,
  .residentas-apt-grid { grid-template-columns: 1fr !important; }
  .residentas-book-band { gap: 14px 20px; padding: 20px 16px; }
  .residentas-band-label { font-size: 12px; }
  .residentas-band-sub { font-size: 11px; }
  .residentas-prop-intro { font-size: 18px !important; }
  .residentas-guesty-tabs { flex-direction: column; gap: 0; }
  .residentas-guesty-tab { border-bottom: 1px solid var(--sand-border); }
  .residentas-guesty-tab.is-active { background: var(--orange-light); }
}

/* ========================================
   NETLIFY-MATCHED STYLES (override earlier)
   ======================================== */

/* Header - Portugal */
.residentas-header-portugal {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 48px) !important;
  background: rgba(255, 251, 245, 0.9) !important;
  border-bottom: 1px solid rgba(35, 26, 21, 0.07) !important;
  box-shadow: 0 6px 20px rgba(35, 26, 21, 0.05);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.residentas-header-left {
  gap: 22px !important;
}
.residentas-kicker-link a {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.residentas-kicker-link a::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}
.residentas-brand {
  gap: 10px !important;
}
.residentas-brand-text a {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(11px, 0.9vw, 13px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: var(--ink) !important;
  text-decoration: none !important;
}
.residentas-nav-links .wp-block-navigation-item a {
  position: relative;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #3d3029 !important;
  padding: 10px 4px !important;
  text-decoration: none !important;
}
.residentas-nav-links .wp-block-navigation-item a:hover {
  color: var(--clay-dark) !important;
}
.residentas-book-direct a {
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: var(--clay) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(143, 60, 36, 0.24) !important;
  transition: background 0.2s ease, transform 0.2s ease;
}
.residentas-book-direct a:hover {
  background: var(--clay-dark) !important;
  transform: translateY(-1px);
}

/* Booking section - with Netlify card styling */
.residentas-book-section {
  position: relative;
  padding: clamp(56px, 7vw, 96px) clamp(22px, 4vw, 56px) !important;
  background: var(--sand-soft) !important;
  border-top: 1px solid rgba(35, 26, 21, 0.06) !important;
  color: var(--ink);
  scroll-margin-top: 100px;
}
.residentas-book-section > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.residentas-book-section .residentas-eyebrow {
  color: var(--clay) !important;
  justify-content: center;
}
.residentas-book-section h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(28px, 3.4vw, 44px) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em !important;
  color: var(--ink) !important;
}

/* Footer - Portugal (warm dark gradient) */
.residentas-footer {
  position: relative;
  padding: clamp(42px, 6vw, 72px) clamp(22px, 4vw, 56px) 30px !important;
  background: linear-gradient(145deg, var(--footer-panel), var(--footer-bg) 58%) !important;
  color: rgba(255, 244, 230, 0.78) !important;
  border-top: 1px solid var(--footer-line) !important;
}
.residentas-footer a {
  color: rgba(255, 244, 230, 0.74) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.residentas-footer a:hover {
  color: #fff4e6 !important;
}
.residentas-footer h2,
.residentas-footer-col-title {
  color: rgba(255, 244, 230, 0.96) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  margin: 4px 0 18px !important;
}
.residentas-footer-brand {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(13px, 1.05vw, 15px) !important;
  font-weight: 600 !important;
  color: #fff4e6 !important;
  letter-spacing: 0.02em !important;
}
.residentas-footer-bottom {
  border-top: 1px solid var(--footer-line) !important;
  color: rgba(255, 244, 230, 0.48) !important;
  padding-top: 24px !important;
}

/* Body + base */
body {
  background: var(--sand-soft) !important;
  color: var(--ink) !important;
  font-family: var(--sans);
  line-height: 1.7;
}

/* Eyebrow */
.residentas-eyebrow {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  color: var(--clay) !important;
}
.residentas-eyebrow::before {
  background: var(--clay) !important;
}

/* Section titles */
.residentas-section-title,
.residentas-section-mini-title {
  font-family: Georgia, "Times New Roman", serif !important;
  color: var(--ink) !important;
}

/* Body text colors */
.residentas-page-sub,
.residentas-section-lead {
  color: var(--muted-soft) !important;
}
.residentas-prop-desc {
  color: var(--muted-soft) !important;
}
.residentas-prop-desc strong {
  color: var(--ink) !important;
}

/* Policy/guide/contact cards - warm tones */
.residentas-policy-card,
.residentas-guide-card,
.residentas-contact-card,
.residentas-pillar {
  background: #fff !important;
  border: 1px solid var(--sand-border) !important;
  box-shadow: 0 6px 20px rgba(35, 26, 21, 0.04) !important;
}
.residentas-guide-kicker,
.residentas-card-kicker,
.residentas-pillar-num {
  color: var(--clay) !important;
}

/* Buttons */
.residentas-btn-primary .wp-block-button__link {
  background: var(--clay) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(185, 87, 50, 0.20);
  transition: background 0.2s, transform 0.2s;
}
.residentas-btn-primary .wp-block-button__link:hover {
  background: var(--clay-dark) !important;
  transform: translateY(-1px);
}

/* Property badge (on hero) */
.residentas-prop-badge {
  background: var(--clay) !important;
}

/* Property cards - warm */
.residentas-prop-card {
  border: 1px solid var(--sand-border);
  box-shadow: 0 6px 20px rgba(35, 26, 21, 0.04);
}
.residentas-nb-tag {
  background: var(--clay) !important;
}

/* Book band - warm dark */
.residentas-book-band {
  background: var(--footer-bg) !important;
  color: rgba(255, 244, 230, 0.85);
}
.residentas-band-label {
  color: rgba(255, 244, 230, 0.96) !important;
}
.residentas-band-sub {
  color: rgba(255, 244, 230, 0.62) !important;
}
.residentas-band-icon {
  background: var(--orange-light) !important;
}
.residentas-band-icon svg {
  stroke: var(--clay) !important;
}

/* Newsletter opt-in - warm dark */
.residentas-optin {
  background: var(--footer-bg) !important;
  color: #fff4e6;
}
.residentas-optin-submit {
  background: var(--clay) !important;
}
.residentas-optin-submit:hover {
  background: var(--clay-dark) !important;
}

/* Reviews property tag */
.residentas-review-property {
  background: var(--orange-light) !important;
  color: var(--clay-dark) !important;
}
.residentas-review-stars .residentas-review-star {
  background: var(--clay) !important;
}

/* Dark page (homepage) */
.residentas-dark-page,
body:has(.residentas-dark-page) {
  background: var(--footer-bg) !important;
}

/* Destination cards on homepage */
.residentas-dest-cta {
  background: var(--clay) !important;
}
.residentas-dest-card:hover .residentas-dest-cta {
  background: var(--clay-dark) !important;
}
.residentas-dest-tag::before {
  background: var(--clay);
}

/* Guesty dual tabs */
.residentas-guesty-tab.is-active {
  color: var(--clay) !important;
  border-bottom-color: var(--clay) !important;
}

/* About quote */
.residentas-about-quote {
  border-left-color: var(--clay) !important;
}

/* Highlights pills / prop highlights */
.residentas-pill::before {
  background: var(--clay);
}
.residentas-prop-highlights {
  color: var(--muted-soft) !important;
  border-top-color: var(--sand-border) !important;
}

/* Prop intro quote */
.residentas-prop-intro {
  border-bottom-color: var(--sand-border) !important;
}

/* Neighbourhood block on property pages */
.residentas-nb-block {
  background: var(--sand-soft) !important;
}

/* Cover dim color override (remove pure black, use warm) */
.residentas-prop-hero .wp-block-cover__background,
.residentas-hero-destination .wp-block-cover__background {
  background: rgba(23, 19, 16, 0.7) !important;
}

/* ========================================
   SIZE FIX - cross-checked against Netlify
   ======================================== */

/* Header - backdrop blur & gap */
.residentas-header-portugal {
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  gap: 22px !important;
}

/* Header - dark page (homepage) uses 72px height */
.residentas-header-dark {
  min-height: 72px !important;
}

@media (max-width: 640px) {
  .residentas-header-dark {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* Hero eyebrows - 13px on hero sections (not 11px) */
.residentas-hero-destination .residentas-eyebrow,
.residentas-prop-hero .residentas-eyebrow {
  font-size: 13px !important;
  margin-bottom: 24px !important;
}

/* Hero eyebrow letter-spacing - homepage uses 0.22em */
.residentas-hero-dark .residentas-eyebrow {
  letter-spacing: 0.22em !important;
}

/* Footer links - 14px (not 13px) */
.residentas-footer a,
.residentas-footer li a {
  font-size: 14px !important;
}

/* Footer list gap - 12px */
.residentas-footer ul,
.residentas-footer-links {
  gap: 12px !important;
}

/* Footer bottom - padding 24px (not 28px) */
.residentas-footer-bottom {
  margin-top: 48px !important;
  padding-top: 24px !important;
}

/* Property / guide / contact cards - border-radius 16px (not 10px) */
.residentas-prop-card,
.residentas-guide-card,
.residentas-contact-card,
.residentas-policy-card,
.residentas-pillar,
.residentas-apt-card,
.residentas-review-card {
  border-radius: 16px !important;
}

/* Property meta - font-weight 500 */
.residentas-prop-meta {
  font-weight: 500 !important;
}

/* Booking inner wrapper - proper padding & max-width */
.residentas-book-section .wp-block-group {
  max-width: 1080px;
  margin: 0 auto;
}

/* Booking eyebrow - 14px margin-bottom */
.residentas-book-section .residentas-eyebrow {
  margin-bottom: 14px !important;
}

/* Booking description */
.residentas-book-section p:not(.residentas-eyebrow) {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer brand description - 15px, 1.8 line-height */
.residentas-footer .residentas-footer-brand + p,
.residentas-footer-brand ~ p {
  font-size: 15px !important;
  line-height: 1.8 !important;
  max-width: 390px;
  color: rgba(255, 244, 230, 0.68) !important;
}

/* About page hero - match sizes from Netlify about page */
.residentas-page-hero .residentas-page-title {
  letter-spacing: -0.015em !important;
}

/* Property intro - match Netlify property pages */
.residentas-prop-intro {
  font-family: Georgia, "Times New Roman", serif !important;
}

/* Section mini title - match Netlify pages */
.residentas-section-mini-title {
  letter-spacing: -0.01em !important;
}

/* ══════════════════════════════════════════════════════════════
   UNIVERSAL MOBILE RESPONSIVE SAFETY NET (applies to all pages)
   ══════════════════════════════════════════════════════════════
   Defense against horizontal overflow that creates the "page
   wider than viewport" effect on phones (text cut off both
   sides, page scrolls horizontally). Wrapping body class is
   already overflow-x: hidden via line 49, but child elements
   can still escape if they have explicit widths exceeding
   viewport. These rules cap them universally.
   ══════════════════════════════════════════════════════════════ */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Cap any media element at viewport width */
img,
picture,
video,
iframe,
embed,
object,
svg {
  max-width: 100%;
  height: auto;
}

/* Soft word breaking for long unbreakable text in headings/copy
   (URLs, hashtags, long compound words). Only on small viewports
   so desktop typography is unchanged. */
@media (max-width: 640px) {
  h1, h2, h3, h4, p, li, a, span, blockquote {
    overflow-wrap: anywhere;
    word-break: normal;
  }
  /* Hero titles get hyphens too - last-resort safety for very narrow phones */
  .rs-hero-title,
  .rs-us-hero-title,
  .rs-us-prop-title,
  .property-hero-title,
  .rs-page-title,
  .rs-us-about-title {
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Very small phones (320–380px range) - tighten property hero
   titles further so multi-word names like "Arco do Bandeira"
   fit on screen */
@media (max-width: 420px) {
  .property-hero-title {
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1.05;
  }
  .rs-us-prop-title {
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1.05;
  }
  .property-hero-content,
  .rs-us-prop-hero-content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Sticky elements + sticky headers get max-width clamps so their
   "100vw" or "100%" widths can't accidentally trigger overflow on
   iOS where 100vw includes scrollbar width */
.residentas-header-portugal,
.residentas-header-us,
.residentas-header-dark,
.rs-us-booking-bar,
.property-booking-bar {
  max-width: 100vw;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE NAVIGATION OVERLAY MENU (WP block-nav driven)
   ══════════════════════════════════════════════════════════════
   We use WordPress's built-in responsive overlay (the hamburger
   that opens a full-screen menu on mobile). Custom styling below
   tunes its appearance to match our brand. The toggle behaviour
   is wired via custom JS in functions.php (residentas_nav_toggle.js)
   so it works regardless of whether wp-block-navigation-view auto-
   enqueues. */

/* Hamburger open button - visible on mobile only by WP default */
.wp-block-navigation__responsive-container-open {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: inherit;
}

/* Overlay container styled for our brand */
.wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(255, 251, 245, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 64px 32px 32px !important;
  z-index: 100000;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  flex-direction: column !important;
  gap: 12px !important;
  align-items: stretch !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #231a15 !important;
  padding: 14px 4px !important;
  border-bottom: 1px solid rgba(35, 26, 21, 0.06);
}
/* Submenu items inside the open overlay - indented + lighter */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  padding-left: 18px;
  border-left: 2px solid rgba(185, 87, 50, 0.3);
  margin: 8px 0 16px 8px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item a {
  font-size: 15px !important;
  font-weight: 400 !important;
  padding: 10px 4px !important;
  border-bottom: 0;
}
/* Close button (X) on the open overlay */
.wp-block-navigation__responsive-container-close {
  background: rgba(0, 0, 0, 0.06);
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.wp-block-navigation__responsive-container-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* Desktop submenu dropdown - appears under "Properties" on hover */
.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  background: rgba(255, 251, 245, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(35, 26, 21, 0.07);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(35, 26, 21, 0.1);
  padding: 8px 0;
  min-width: 220px;
}
.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item a {
  padding: 10px 18px !important;
  font-size: 13px !important;
  color: #3d3029 !important;
  border-bottom: 0 !important;
}
.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
  background: rgba(185, 87, 50, 0.06);
  color: #b95732 !important;
}
.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item a::after {
  display: none !important;
}

/* ──────────────────────────────────────────────────────────────────
   Custom [residentas_menu] shortcode - responsive scaffolding.
   The original <!-- wp:navigation --> block had WP-injected CSS that
   handled "show inline on desktop / show hamburger on mobile". Since
   our shortcode renders the same wp-block-navigation* markup but does
   NOT trigger WP's auto-enqueue of navigation block CSS, we replicate
   the essentials here. Keeps the design + hamburger behaviour intact.
   ────────────────────────────────────────────────────────────────── */

/* Reset list defaults inside any wp-block-navigation root */
.wp-block-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wp-block-navigation li {
  margin: 0;
  padding: 0;
}

/* DESKTOP (>=980px) - hide hamburger, show menu inline horizontally */
@media (min-width: 980px) {
  .wp-block-navigation .wp-block-navigation__responsive-container-open {
    display: none !important;
  }
  .wp-block-navigation .wp-block-navigation__responsive-container,
  .wp-block-navigation .wp-block-navigation__responsive-close,
  .wp-block-navigation .wp-block-navigation__responsive-dialog,
  .wp-block-navigation .wp-block-navigation__responsive-container-content {
    display: contents;
  }
  .wp-block-navigation .wp-block-navigation__responsive-container-close {
    display: none !important;
  }
  .wp-block-navigation .wp-block-navigation__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  /* Submenu chevron button styling on desktop */
  .wp-block-navigation .wp-block-navigation__submenu-icon {
    background: none;
    border: 0;
    padding: 0 0 0 4px;
    cursor: pointer;
    color: inherit;
    display: inline-flex;
    align-items: center;
  }
  /* Desktop submenu dropdown: show on hover/focus of parent */
  .wp-block-navigation .has-child {
    position: relative;
  }
  .wp-block-navigation .has-child > .wp-block-navigation__submenu-container {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 4px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 50;
  }
  .wp-block-navigation .has-child:hover > .wp-block-navigation__submenu-container,
  .wp-block-navigation .has-child:focus-within > .wp-block-navigation__submenu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* MOBILE (<980px) - show hamburger, hide menu unless toggled open */
@media (max-width: 979px) {
  .wp-block-navigation .wp-block-navigation__responsive-container-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }
  .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100000;
    overflow-y: auto;
  }
  .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
  .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
  .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    display: block;
  }
  .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
    position: relative;
    min-height: 100%;
  }
  .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  /* Hide the desktop chevron on mobile (parent label is itself tappable) */
  .wp-block-navigation .wp-block-navigation__submenu-icon {
    display: none;
  }
  /* Mobile submenu: collapsed by default, expand on .is-submenu-open */
  .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation__submenu-container {
    display: none;
  }
  .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .has-child.is-submenu-open > .wp-block-navigation__submenu-container {
    display: block;
  }
}

/* Hero slideshow indicator card - was overflowing the right edge on
   small phones. Force-hide on tablet+phone since the rotating hero
   image already shows what it is; the label is decorative on desktop. */
@media (max-width: 768px) {
  .rs-hero-indicators {
    display: none !important;
  }
}
