/* ============================================
   MIAMI RENTAS VIP — shared styles
   Palette:
     --ink        #1C1B20  (charcoal navy — header/footer/dark sections)
     --ink-soft   #2A2930
     --paper      #FDFCFA  (body background)
     --cream      #F3EFE6  (banner / alt section bg)
     --gold       #A9835A  (brass accent)
     --gold-light #C9A876
     --text-muted #6E6A63
   Type:
     Display: "Playfair Display" (serif, headlines + logo)
     Body/Nav: "Jost" (clean geometric sans, wide tracking on caps)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --ink: #1c1b20;
  --ink-soft: #2a2930;
  --paper: #fdfcfa;
  --cream: #f3efe6;
  --gold: #a9835a;
  --gold-light: #c9a876;
  --text-muted: #6e6a63;
  --border-soft: #e7e2d8;
  --max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, .serif {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.01em;
}

p { margin: 0; }

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.lede {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 34px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: #967249; }

.btn-outline-dark {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  background: transparent;
}
.btn-outline-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline-ink {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline-ink:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: #fff;
  white-space: nowrap;
}
.logo .accent { color: var(--gold-light); font-style: italic; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold-light);
  border-color: var(--gold-light);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.langs {
  display: flex;
  gap: 8px;
  font-size: 17px;
  opacity: 0.85;
}
.book-btn {
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff;
  padding: 11px 24px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.book-btn:hover { background: var(--gold); border-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .main-nav { position: fixed; top: 88px; left: 0; right: 0; bottom: 0;
    background: var(--ink); flex-direction: column; align-items: flex-start;
    padding: 32px 48px; gap: 26px; transform: translateX(100%);
    transition: transform 0.3s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-right { position: fixed; top: 88px; }
  .nav-toggle { display: block; }
  .nav-right .langs, .nav-right .book-btn { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,19,22,0.55) 0%, rgba(20,19,22,0.35) 45%, rgba(20,19,22,0.75) 100%);
}
.home-hero {
  overflow: hidden;
  background-image: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: -1%;
  z-index: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: none;
}
.home-hero::before {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10,18,28,0.55) 0%, rgba(10,18,28,0.25) 100%),
    linear-gradient(180deg, rgba(10,18,28,0.35) 0%, rgba(10,18,28,0.15) 45%, rgba(10,18,28,0.45) 100%);
}
.home-hero .hero-inner { text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4); }
.home-hero p.sub { color: #fff; }
.home-hero .btn-outline-dark { border-color: #fff; background: rgba(10,18,28,0.25); }
.hero-inner { position: relative; z-index: 2; text-align: center; margin: 0 auto; padding: 0 24px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 22px;
}
.hero p.sub {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.88);
}
.hero-ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.page-banner {
  min-height: 320px;
}
.page-banner h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.page-banner .eyebrow { color: var(--gold-light); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark h2 { color: #fff; }
.section-cream { background: var(--cream); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 16px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ---------- property filter tabs ---------- */
.tabs {
  display: flex; justify-content: center; gap: 40px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 48px; flex-wrap: wrap;
}
.tab {
  padding: 0 0 14px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  cursor: pointer; background: none; border-top: none; border-left: none; border-right: none;
  font-family: 'Jost', sans-serif;
}
.tab.active { color: var(--ink); border-color: var(--gold); font-weight: 500; }

/* ---------- property cards ---------- */
.property-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 760px) { .property-grid { grid-template-columns: 1fr; } }

.card { cursor: default; }
.card-img { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.property-gallery-trigger {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  color: inherit; cursor: pointer; text-align: left;
}
.property-gallery-trigger:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.gallery-prompt {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  padding: 8px 12px; background: rgba(28,27,32,0.82); color: #fff;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  backdrop-filter: blur(8px); transition: background 0.2s ease, transform 0.2s ease;
}
.property-gallery-trigger:hover .gallery-prompt { background: var(--gold); transform: translateY(-2px); }
.property-title-trigger {
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; text-align: left; transition: color 0.2s ease;
}
.property-title-trigger:hover { color: var(--gold); }
.property-title-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(253,252,250,0.92); padding: 6px 12px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px; color: var(--ink);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4f9b6e; }
.card-body { padding-top: 16px; }
.card-body h3 { font-size: 20px; margin-bottom: 4px; }
.card-body .loc {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.card-body .address-link {
  display: inline-block; text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px; transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.card-body .address-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.card-body .address-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.card-body .meta { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* ---------- property photo modal ---------- */
body.modal-open { overflow: hidden; }
.property-modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding: 24px; opacity: 0; transition: opacity 0.2s ease;
}
.property-modal[hidden] { display: none; }
.property-modal.is-open { opacity: 1; }
.property-modal-backdrop { position: absolute; inset: 0; background: rgba(18,17,21,0.88); backdrop-filter: blur(10px); }
.property-modal-dialog {
  position: relative; z-index: 1; width: min(1180px, 100%); max-height: calc(100vh - 48px);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden;
  background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,0.38);
  transform: translateY(16px) scale(0.985); transition: transform 0.25s ease;
}
.property-modal.is-open .property-modal-dialog { transform: translateY(0) scale(1); }
.property-modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 24px; border-bottom: 1px solid var(--border-soft);
}
.property-modal-header h2 { margin: 3px 0 0; font-size: clamp(22px, 3vw, 32px); }
.gallery-close {
  flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--border-soft);
  border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer;
  font-family: Georgia, serif; font-size: 32px; line-height: 1; transition: background 0.2s ease, color 0.2s ease;
}
.gallery-close:hover { background: var(--ink); color: #fff; }
.gallery-close:focus-visible, .gallery-arrow:focus-visible, .gallery-thumbnail:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
.gallery-viewer {
  min-height: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: stretch; background: #17161a;
}
.gallery-stage { min-width: 0; min-height: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.gallery-main-image {
  width: 100%; height: 100%; min-height: 260px; max-height: calc(100vh - 255px);
  object-fit: contain; background: #17161a; opacity: 1; transition: opacity 0.15s ease;
}
.gallery-main-image.is-loading { opacity: 0.35; }
.gallery-stage figcaption {
  display: flex; justify-content: space-between; gap: 20px; padding: 10px 16px;
  background: #17161a; color: rgba(255,255,255,0.72); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.gallery-arrow {
  border: 0; background: #17161a; color: #fff; cursor: pointer;
  font-family: Georgia, serif; font-size: 54px; transition: color 0.2s ease, background 0.2s ease;
}
.gallery-arrow:hover { color: var(--gold-light); background: #211f24; }
.gallery-thumbnails {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 14px;
  background: var(--paper); scrollbar-color: var(--gold) var(--cream);
}
.gallery-thumbnail {
  flex: 0 0 78px; width: 78px; height: 58px; padding: 0; border: 2px solid transparent;
  background: var(--cream); cursor: pointer; opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbnail:hover, .gallery-thumbnail[aria-current="true"] { opacity: 1; border-color: var(--gold); }
@media (max-width: 700px) {
  .property-modal { padding: 0; }
  .property-modal-dialog { width: 100%; height: 100%; max-height: none; }
  .property-modal-header { padding: 16px; }
  .gallery-viewer { grid-template-columns: 46px minmax(0, 1fr) 46px; }
  .gallery-main-image { max-height: none; }
  .gallery-arrow { font-size: 42px; }
  .gallery-thumbnail { flex-basis: 68px; width: 68px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .property-modal, .property-modal-dialog, .gallery-main-image, .gallery-prompt { transition: none; }
}

/* ---------- benefit strip ---------- */
.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
}
.benefits .benefit { padding: 0 32px; border-left: 1px solid var(--border-soft); }
.benefits .benefit:first-child { border-left: none; }
.benefit .marks { color: var(--gold); font-size: 14px; letter-spacing: 6px; margin-bottom: 14px; }
.benefit h3 { font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.benefit p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 760px) {
  .benefits { grid-template-columns: 1fr; gap: 40px; }
  .benefits .benefit { border-left: none; padding: 0; }
}

/* ---------- split (image + text) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0;
}
.split .split-media { aspect-ratio: 4/3; overflow: hidden; }
.split .split-media img { width: 100%; height: 100%; object-fit: cover; }
.split .split-text { padding: 60px; }
.split .split-text h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 20px; }
.split .split-text p { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; }
.split.reverse { grid-template-columns: 1fr 1fr; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media, .split.reverse .split-text { order: initial; }
  .split .split-text { padding: 40px 8px; }
}

/* ---------- gallery grid ---------- */
.gallery-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 20px;
}
.gallery-item {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
}
.gallery-grid .gallery-item:first-child { aspect-ratio: 3/4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.72) 100%);
}
.gallery-caption {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: #fff;
}
.gallery-caption .cap-title {
  font-family: 'Playfair Display', serif; font-size: 19px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.gallery-caption .cap-sub { font-size: 13px; color: rgba(255,255,255,0.82); margin-top: 6px; display: none; }
.gallery-item:hover .cap-sub { display: block; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- stats bar ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.stat { text-align: center; padding: 44px 20px; border-left: 1px solid var(--border-soft); }
.stat:first-child { border-left: none; }
.stat .num { font-family: 'Playfair Display', serif; font-size: 30px; }
.stat .label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--border-soft); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
}

/* ---------- icon trio (about page) ---------- */
.icon-trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center;
}
.icon-trio .item svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 18px; }
.icon-trio .item h3 { font-size: 19px; margin-bottom: 10px; }
.icon-trio .item p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 760px) { .icon-trio { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- form section ---------- */
.form-section { background: var(--ink); color: #fff; text-align: center; }
.form-section .section-head { max-width: 640px; }
.form-section .section-head p { color: rgba(255,255,255,0.65); }
.eval-form { max-width: 780px; margin: 0 auto; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.eval-form input, .eval-form select, .eval-form textarea {
  width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.28);
  color: #fff; padding: 15px 16px; font-family: 'Jost', sans-serif; font-size: 15px;
  font-weight: 300;
}
.eval-form textarea { min-height: 120px; resize: vertical; margin-bottom: 22px; }
.eval-form ::placeholder { color: rgba(255,255,255,0.45); }
.eval-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23C9A876' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.eval-form .submit-btn { width: 100%; border: none; }
.contact-row {
  display: flex; justify-content: center; align-items: center; gap: 28px;
  margin-top: 34px; flex-wrap: wrap; font-size: 15px;
}
.contact-row .c-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); }
.contact-row svg { width: 16px; height: 16px; color: var(--gold-light); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- contact cards page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.c-card {
  border: 1px solid var(--border-soft); padding: 44px 28px; text-align: center;
}
.c-card svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 18px; }
.c-card h3 { font-size: 18px; margin-bottom: 8px; }
.c-card p { color: var(--text-muted); }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 76px 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid .logo { margin-bottom: 16px; }
.footer-grid .about-copy { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-col h4 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 18px; font-weight: 500; font-family: 'Jost', sans-serif;
}
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 12px; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 26px;
  font-size: 12.5px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 10px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- hero booking search ---------- */
.hero-eyebrow { color: #ecd3a8; margin-bottom: 18px; }
.booking-search {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: stretch;
  max-width: 680px;
  margin: 4px auto 0;
  background: #fff;
  text-shadow: none;
  text-align: left;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.bs-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 16px;
  border-right: 1px solid #e6e1d8;
  cursor: pointer;
  min-width: 0;
}
.bs-field:hover { background: #faf8f4; }
.bs-label {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.bs-value, .bs-field select {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  line-height: 18px;
  height: 18px;
}
.bs-value.is-empty { color: #8a8580; }
.bs-date {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
}
.bs-field select {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; padding: 0; margin: 0;
  cursor: pointer; outline: none;
}
.bs-guests::after {
  content: '';
  position: absolute; right: 16px; bottom: 15px;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.bs-field:focus-within { box-shadow: inset 0 -2px 0 var(--gold); }
.bs-submit { border-radius: 0; padding: 0 24px; font-size: 11px; margin: 0; white-space: nowrap; }
@media (max-width: 760px) {
  .booking-search { grid-template-columns: 1fr 1fr; }
  .bs-field { padding: 9px 14px; border-bottom: 1px solid #e6e1d8; }
  .bs-field:nth-child(2) { border-right: 0; }
  .bs-guests { grid-column: 1 / -1; border-right: 0; }
  .bs-submit { grid-column: 1 / -1; padding: 13px; }
}

.search-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  margin: -12px auto 32px;
  font-family: 'Jost', sans-serif; font-size: 15px; color: var(--ink);
}
.search-summary[hidden] { display: none; }
.search-summary a { color: var(--gold); text-decoration: underline; }
.card.too-small { display: none !important; }

/* tighter gap between hero and featured homes */
#featured { padding-top: 44px; }
@media (max-width: 760px) { #featured { padding-top: 32px; } }

/* home page: landscape property photos */
#featured .card-img { aspect-ratio: 4/3; }

/* property cards link to property detail pages */
a.card-img { display: block; }
.card { cursor: pointer; }
.property-title-link { transition: color .2s ease; }
.property-title-link:hover { color: var(--gold); }

/* mobile: keep the menu button inside the header bar */
@media (max-width: 980px) {
  .nav-right { position: static; }
}

/* hero search: arrow + validation message */
.bs-arrow { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.bs-submit:hover .bs-arrow { transform: translateX(3px); }
.bs-msg { grid-column: 1 / -1; margin: 0; padding: 8px 16px; font-size: 13px; color: #a2482f; background: #fff; border-top: 1px solid #e6e1d8; }
.bs-msg:empty { display: none; }

/* ---------------- date range picker ---------------- */
.dp { position: absolute; z-index: 1100; background: #fff; border: 1px solid var(--border-soft); box-shadow: 0 24px 60px -24px rgba(28,27,32,.35); padding: 20px 22px 16px; width: 640px; max-width: calc(100vw - 32px); font-family: 'Jost', sans-serif; color: var(--ink); animation: dpFade .2s ease both; }
.dp[hidden], .dp-scrim[hidden] { display: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft); }
.dp-prompt { font-family: 'Playfair Display', serif; font-size: 19px; }
.dp-sel { display: flex; gap: 6px; }
.dp-sel span { display: flex; flex-direction: column; min-width: 96px; padding: 6px 12px; border: 1px solid var(--border-soft); font-size: 14px; }
.dp-sel span.is-on { border-color: var(--gold); }
.dp-sel small { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dp-body { position: relative; padding-top: 14px; }
.dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dp-title { text-align: center; font-family: 'Playfair Display', serif; font-size: 16px; margin-bottom: 10px; line-height: 30px; }
.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp-week span { text-align: center; font-size: 11px; letter-spacing: .08em; color: var(--text-muted); padding-bottom: 6px; }
.dp-day { position: relative; height: 40px; border: 0; background: none; font-family: 'Jost', sans-serif; font-size: 14px; color: var(--ink); cursor: pointer; }
.dp-day:hover:not([disabled]) { box-shadow: inset 0 0 0 1px var(--ink); }
.dp-day:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.dp-day[disabled] { color: #cbc6bd; cursor: default; }
.dp-day.is-today::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.dp-day.is-in, .dp-day.is-preview { background: var(--cream); }
.dp-day.is-start, .dp-day.is-end { background: var(--ink); color: #fff; }
.dp-day.is-start::after, .dp-day.is-end::after { background: #fff; }
.dp-nav { position: absolute; top: 14px; width: 30px; height: 30px; border: 1px solid var(--border-soft); background: #fff; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink); z-index: 1; }
.dp-nav:hover:not([disabled]) { border-color: var(--ink); }
.dp-nav[disabled] { opacity: .3; cursor: default; }
.dp-prev { left: 0; } .dp-next { right: 0; }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.dp-clear { background: none; border: 0; padding: 0; cursor: pointer; font-family: 'Jost', sans-serif; font-size: 13px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.dp-clear:hover { color: var(--ink); }
.dp-nights { font-size: 14px; color: var(--text-muted); flex: 1; text-align: right; }
.dp-done { padding: 11px 24px; font-size: 12px; }
.has-dp { cursor: pointer; }
.has-dp:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* phones: bottom sheet */
.dp.is-sheet { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; border: 0; border-radius: 10px 10px 0 0; padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); animation: dpUp .28s ease both; }
@keyframes dpUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.dp.is-sheet .dp-months { grid-template-columns: 1fr; }
.dp.is-sheet .dp-head { flex-direction: column; align-items: stretch; gap: 10px; }
.dp.is-sheet .dp-sel span { flex: 1; }
.dp.is-sheet .dp-day { height: 44px; font-size: 15px; }
.dp-scrim { position: fixed; inset: 0; z-index: 1090; background: rgba(20,19,22,.45); }
@keyframes dpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- guests picker ---------------- */
[data-guests] { cursor: pointer; }
[data-guests]:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.gp { position: absolute; z-index: 1100; background: #fff; border: 1px solid var(--border-soft); box-shadow: 0 24px 60px -24px rgba(28,27,32,.35); padding: 8px 20px 16px; width: 320px; max-width: calc(100vw - 32px); font-family: 'Jost', sans-serif; color: var(--ink); animation: dpFade .2s ease both; }
.gp[hidden] { display: none; }
.gp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.gp-row strong { display: block; font-weight: 500; font-size: 15px; }
.gp-row small { font-size: 12.5px; color: var(--text-muted); }
.gp-step { display: flex; align-items: center; gap: 14px; }
.gp-step span { min-width: 18px; text-align: center; font-size: 16px; }
.gp-step button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #cfc8bb; background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); }
.gp-step button:hover:not([disabled]) { border-color: var(--ink); }
.gp-step button[disabled] { opacity: .35; cursor: default; }
.gp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.gp-foot small { font-size: 12.5px; color: var(--text-muted); }
.gp.is-sheet { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; border: 0; border-radius: 10px 10px 0 0; padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); animation: dpUp .28s ease both; }

/* live calendar: nightly prices + loading */
.dp-day.has-price { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; height: 46px; }
.dp-day small { font-size: 9.5px; color: var(--text-muted); letter-spacing: 0; margin-top: 2px; }
.dp-day.is-start small, .dp-day.is-end small { color: rgba(255,255,255,.75); }
.dp-day[disabled] { text-decoration: line-through; text-decoration-color: #ddd8ce; }
.dp-day[disabled]:not([aria-label*="unavailable"]) { text-decoration: none; }
.dp-body.is-loading .dp-months { opacity: .45; pointer-events: none; transition: opacity .2s ease; }
.dp.is-sheet .dp-day.has-price { height: 50px; }
