/* ==========================================================================
   Coastal Villas — Brand CSS
   coastalvillas.co
   ========================================================================== */

/* Pull in the small Tailwind utility set (.grid-cols-[1fr_auto], .gap-2,
   .p-3, .rounded-lg, etc.) used by .cv-unit-row cards on PM/building pages.
   Originally only loaded on the homepage; @import here means every page that
   links style.css picks it up — fixes broken unit-card layout site-wide. */
@import url("tailwind-custom.css");

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand palette */
  --cv-deep: #0C1B2A;
  --cv-ocean: #1A6B7A;
  --cv-ocean-light: #2A8D9E;
  --cv-sand: #F7F4EE;
  --cv-sand-dark: #EDE8DC;
  --cv-white: #FFFFFF;
  --cv-coral: #E8634A;
  --cv-coral-hover: #D5533A;
  --cv-green: #2D8F65;
  --cv-gray-100: #F8F8F6;
  --cv-gray-200: #EDECE8;
  --cv-gray-400: #A09D95;
  --cv-gray-500: #7A776F;
  --cv-gray-700: #4A473F;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono: 'Roboto Mono', ui-monospace, monospace;

  /* Layout */
  --max-width: 1200px;
  --section-py: 5rem;
  --section-px: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(12, 27, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(12, 27, 42, 0.08);
  --shadow-lg: 0 8px 24px rgba(12, 27, 42, 0.10);
  --shadow-lift: 0 12px 32px rgba(12, 27, 42, 0.12);

  /* Borders */
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--cv-deep);
  background-color: var(--cv-sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--cv-ocean);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--cv-ocean-light);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--cv-deep);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Display heading -- serif accent */
.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Monospace for unit numbers, prices */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}


/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-px);
  padding-right: var(--section-px);
}

.section-white {
  background-color: var(--cv-white);
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-sand {
  background-color: var(--cv-sand);
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-sand-dark {
  background-color: var(--cv-sand-dark);
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-deep {
  background-color: var(--cv-deep);
  color: var(--cv-white);
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-deep h2,
.section-deep h3,
.section-deep h4 {
  color: var(--cv-white);
}

.section-deep a {
  color: #7DD3C0;
}

.section-deep a:hover {
  color: var(--cv-white);
}

.text-center { text-align: center; }
.text-muted  { color: var(--cv-gray-500); }
.text-small  { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

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

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

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


/* ---------- Card ---------- */
.card {
  background: var(--cv-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--cv-gray-500);
  font-size: 1rem;
}

.card-flat {
  background: var(--cv-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--cv-gray-200);
  padding: 1.5rem;
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--cv-coral);
  color: var(--cv-white);
  border-color: var(--cv-coral);
}

.btn-primary:hover {
  background-color: var(--cv-coral-hover);
  border-color: var(--cv-coral-hover);
  color: var(--cv-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 99, 74, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--cv-ocean);
  border-color: var(--cv-ocean);
}

.btn-secondary:hover {
  background-color: var(--cv-ocean);
  color: var(--cv-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background-color: var(--cv-white);
  color: var(--cv-deep);
  border-color: var(--cv-white);
}

.btn-white:hover {
  background-color: var(--cv-sand);
  border-color: var(--cv-sand);
  color: var(--cv-deep);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}


/* ---------- Tier Badges ---------- */
.tier-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  line-height: 1.4;
}

.tier-badge.luxury {
  background: linear-gradient(135deg, #B8860B, #DAA520);
  color: var(--cv-white);
}

.tier-badge.premium {
  background-color: #0369A1;
  color: var(--cv-white);
}

.tier-badge.comfortable {
  background-color: #5F8C5A;
  color: var(--cv-white);
}

.tier-badge.classic {
  background-color: #78716C;
  color: var(--cv-white);
}


/* ---------- Stat Card ---------- */
.stat-card {
  background: var(--cv-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cv-ocean);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.8125rem;
  color: var(--cv-gray-500);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}


/* ---------- Unit Card ---------- */
.unit-card {
  background: var(--cv-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  border: 1px solid var(--cv-gray-200);
}

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

.unit-card .unit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.unit-card .unit-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cv-deep);
}

.unit-card .unit-price {
  text-align: right;
}

.unit-card .unit-price .nightly {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cv-deep);
}

.unit-card .unit-price .nightly-label {
  font-size: 0.75rem;
  color: var(--cv-gray-500);
}

.unit-card .unit-price .total {
  font-size: 0.8125rem;
  color: var(--cv-gray-500);
}

.unit-card .unit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--cv-gray-500);
}

.unit-card .unit-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.unit-card .unit-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cv-gray-200);
}

.unit-card .unit-highlight {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cv-deep);
  line-height: 1.3;
}

.unit-card .unit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.unit-card .unit-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.175rem 0.5rem;
  background: rgba(26, 107, 122, 0.08);
  color: var(--cv-ocean);
  border-radius: 9999px;
  white-space: nowrap;
}

.unit-card .unit-tag-more {
  background: var(--cv-gray-100);
  color: var(--cv-gray-500);
  cursor: pointer;
}

.unit-card .pm-name {
  font-size: 0.8125rem;
  color: var(--cv-gray-500);
}

.unit-card .unit-reviews {
  font-size: 0.75rem;
  color: var(--cv-gray-500);
  font-weight: 400;
  margin-left: 0.5rem;
}

.unit-card.expanded {
  box-shadow: var(--shadow-lg);
  border-color: var(--cv-ocean-light);
}

.unit-card .unit-detail {
  padding-top: 0.75rem;
  border-top: 1px solid var(--cv-gray-200);
  margin-top: 0.5rem;
}

.unit-card { cursor: pointer; }
.unit-card a { cursor: pointer; }

.unit-card.unavailable {
  opacity: 0.5;
  cursor: default;
}

/* ---------- Unit Row (compact search-result layout) ---------- */
.unit-list {
  display: flex;
  flex-direction: column;
}

.unit-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cv-gray-200);
  transition: background 0.1s;
  cursor: pointer;
}
.unit-row:hover {
  background: rgba(26, 107, 122, 0.02);
}
.unit-row.unavailable {
  opacity: 0.4;
}
.unit-row.expanded {
  background: rgba(26, 107, 122, 0.03);
}

/* Thumbnail placeholder */
.ur-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.ur-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  position: relative;
}
.ur-thumb-placeholder .tier-badge {
  font-size: 0.5625rem;
  padding: 0.125rem 0.5rem;
}
.ur-thumb-placeholder.luxury { background: linear-gradient(135deg, #B8860B22, #DAA52033); }
.ur-thumb-placeholder.premium { background: rgba(3, 105, 161, 0.1); }
.ur-thumb-placeholder.comfortable { background: rgba(95, 140, 90, 0.1); }
.ur-thumb-placeholder.classic { background: rgba(120, 113, 108, 0.1); }

/* Main content */
.ur-main { min-width: 0; }
.ur-top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.ur-unit {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--cv-deep);
  flex-shrink: 0;
}
.ur-highlight {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cv-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ur-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-bottom: 0.25rem;
}
.ur-tags .unit-tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background: rgba(26, 107, 122, 0.08);
  color: var(--cv-ocean);
  border-radius: 9999px;
  white-space: nowrap;
  font-weight: 500;
}
.ur-meta {
  font-size: 0.6875rem;
  color: var(--cv-gray-400);
}

/* Price column */
.ur-price {
  text-align: right;
  flex-shrink: 0;
}
.ur-nightly {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cv-deep);
}
.ur-total {
  font-size: 0.6875rem;
  color: var(--cv-gray-400);
}

/* Reviews */
.ur-reviews {
  font-size: 0.8125rem;
  color: var(--cv-gray-500);
  white-space: nowrap;
  text-align: center;
  min-width: 60px;
}

/* Actions */
.ur-actions {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  flex-shrink: 0;
}

/* Expandable detail within row */
.ur-detail {
  display: none;
  grid-column: 1 / -1;
  padding: 0.75rem 0 0.75rem 0;
  margin-left: calc(80px + 0.75rem);
  font-size: 0.8125rem;
  color: var(--cv-gray-700);
  line-height: 1.5;
}
.unit-row.expanded .ur-detail {
  display: block;
}
.ur-detail-line {
  margin-bottom: 0.375rem;
}

/* Mobile: stack the row */
@media (max-width: 768px) {
  .unit-row {
    grid-template-columns: 60px 1fr;
    gap: 0.5rem;
    padding: 0.625rem 0;
  }
  .ur-thumb {
    width: 60px;
    height: 45px;
  }
  .ur-price, .ur-reviews, .ur-actions {
    grid-column: 2;
  }
  .ur-price {
    text-align: left;
  }
  .ur-actions {
    justify-content: flex-start;
  }
  .ur-detail {
    margin-left: calc(60px + 0.5rem);
  }
}


/* ---- Shared features banner ---- */
.compare-shared {
  background: rgba(26, 107, 122, 0.06);
  border: 1px solid rgba(26, 107, 122, 0.15);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--cv-gray-700);
  margin-bottom: 1.25rem;
}

.compare-shared strong {
  color: var(--cv-deep);
}

/* ---- Comparison Table (single-tier view) ---- */
.unit-grid-table {
  width: 100%;
}

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare-table th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv-gray-500);
  padding: 0.75rem 0.75rem;
  border-bottom: 2px solid var(--cv-gray-200);
  white-space: nowrap;
}

.compare-table td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid var(--cv-gray-200);
  vertical-align: top;
}

.compare-table tr:hover {
  background: rgba(26, 107, 122, 0.03);
}

.compare-table .ct-unit {
  font-family: var(--font-mono);
  font-size: 1rem;
  white-space: nowrap;
}

.compare-table .ct-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.compare-table .ct-price .ct-total {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--cv-gray-400);
}

.compare-table .ct-position {
  font-size: 0.8125rem;
  color: var(--cv-gray-700);
  white-space: nowrap;
}

.compare-table .ct-diff {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 320px;
}

.compare-table .ct-beach {
  font-size: 0.8125rem;
  color: var(--cv-gray-700);
  max-width: 200px;
}

.compare-table .ct-reno {
  font-size: 0.8125rem;
  color: var(--cv-gray-700);
  white-space: nowrap;
}

.compare-table .ct-reviews {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.compare-table .ct-book {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .compare-table {
    font-size: 0.8125rem;
  }
  .compare-table .ct-tags {
    max-width: 180px;
  }
}


/* ---------- Week Selector ---------- */
.week-selector {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--cv-gray-400) transparent;
}

.week-selector::-webkit-scrollbar { height: 4px; }
.week-selector::-webkit-scrollbar-track { background: transparent; }
.week-selector::-webkit-scrollbar-thumb { background: var(--cv-gray-400); border-radius: 2px; }

.week-card {
  flex: 0 0 auto;
  background: var(--cv-white);
  border: 2px solid var(--cv-gray-200);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  min-width: 120px;
  user-select: none;
}

.week-card:hover {
  border-color: var(--cv-ocean-light);
  background: var(--cv-gray-100);
}

.week-card.active {
  border-color: var(--cv-ocean);
  background: var(--cv-ocean);
  color: var(--cv-white);
}

.week-card .week-date {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
}

.week-card .week-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-top: 0.125rem;
}


/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 0;
}

.filter-bar select,
.filter-bar input {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--cv-gray-200);
  border-radius: var(--radius-md);
  background: var(--cv-white);
  color: var(--cv-deep);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--cv-ocean);
  box-shadow: 0 0 0 3px rgba(26, 107, 122, 0.12);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv-gray-500);
}

.filter-pills {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--cv-gray-200);
  background: var(--cv-white);
  color: var(--cv-gray-700);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.filter-pill:hover {
  border-color: var(--cv-ocean-light);
  color: var(--cv-ocean);
}

.filter-pill.active {
  background: var(--cv-ocean);
  border-color: var(--cv-ocean);
  color: var(--cv-white);
}


/* ---------- Results Stats Bar ---------- */
.results-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cv-gray-200);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.results-bar .results-count {
  font-weight: 600;
}

.results-bar .results-count .highlight {
  color: var(--cv-green);
}


/* ---------- Navigation ---------- */
.cv-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cv-gray-200);
  transition: box-shadow 0.3s var(--ease);
}

.cv-location-bar {
  background: var(--cv-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.375rem 0;
  text-align: center;
}

.cv-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.cv-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}

.cv-nav-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--cv-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cv-nav-logo:hover {
  color: var(--cv-ocean);
}

.cv-nav-logo svg {
  width: 28px;
  height: 28px;
}
.cv-nav-logo-img {
  height: 96px;
  width: auto;
}

.cv-nav-tagline {
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--cv-gray-500);
  display: block;
  margin-top: -0.125rem;
  letter-spacing: 0.01em;
}
@media (max-width: 900px) {
  .cv-nav-tagline { display: none; }
}

.cv-nav-dest-active {
  font-weight: 600;
}
.cv-nav-dest-soon {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  color: var(--cv-gray-400);
  background: var(--cv-white);
  border-bottom: 1px solid var(--cv-gray-200);
  cursor: default;
}
.cv-nav-dest-soon:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.cv-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cv-nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cv-gray-700);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  position: relative;
}

.cv-nav-links a:hover {
  color: var(--cv-ocean);
}

.cv-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cv-ocean);
  transition: width 0.2s var(--ease);
}

.cv-nav-links a:hover::after {
  width: 100%;
}

/* Nav dropdown */
.cv-nav-dropdown {
  position: relative;
}

.cv-nav-dropdown-trigger {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cv-gray-700);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  position: relative;
  cursor: pointer;
}

.cv-nav-dropdown-trigger:hover {
  color: var(--cv-ocean);
}

.cv-nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cv-ocean);
  transition: width 0.2s var(--ease);
}

.cv-nav-dropdown-trigger:hover::after {
  width: 100%;
}

.cv-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.75rem;
  padding-top: 0.5rem;
  min-width: 200px;
}

.cv-nav-dropdown:hover .cv-nav-dropdown-menu,
.cv-nav-dropdown.open .cv-nav-dropdown-menu {
  display: block;
}

.cv-nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--cv-gray-700);
  background: var(--cv-white);
  border-bottom: 1px solid var(--cv-gray-200);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.cv-nav-dropdown-menu a:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.cv-nav-dropdown-menu a:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.cv-nav-dropdown-menu a:hover {
  background: var(--cv-gray-100);
  color: var(--cv-ocean);
}

/* Wide PM dropdown — two columns for 18 PMs */
.cv-nav-dropdown-menu-wide {
  min-width: 420px;
  max-width: calc(100vw - 1rem);
  display: none;
  columns: 2;
  column-gap: 0;
}
.cv-nav-dropdown:hover .cv-nav-dropdown-menu-wide,
.cv-nav-dropdown.open .cv-nav-dropdown-menu-wide {
  display: block;
}
.cv-nav-dropdown-menu-wide a {
  break-inside: avoid;
}

/* Unit count badge in nav */
.cv-nav-count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--cv-gray-400);
  margin-left: 0.25rem;
}

/* Mobile hamburger */
.cv-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--cv-deep);
}

.cv-nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .cv-nav-toggle {
    display: flex;
  }

  .cv-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cv-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--cv-gray-200);
    box-shadow: var(--shadow-lg);
  }

  .cv-nav-links.open {
    display: flex;
  }

  .cv-nav-links a {
    font-size: 1.125rem;
  }

  .cv-nav-links a::after {
    display: none;
  }

  /* Mobile: show dropdown items inline */
  .cv-nav-dropdown-menu {
    display: block;
    position: static;
    min-width: auto;
    padding-top: 0;
    margin-left: 1rem;
  }

  .cv-nav-dropdown-menu a {
    padding: 0.5rem 1rem;
    background: transparent;
    border-bottom: none;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .cv-nav-dropdown-trigger::after {
    display: none;
  }
}


/* ---------- Footer ---------- */
.cv-footer {
  background: var(--cv-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.cv-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.cv-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--cv-white);
  margin-bottom: 0.5rem;
}

.cv-footer-brand .footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
}

.cv-footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.cv-footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s var(--ease);
}

.cv-footer-links a:hover {
  color: var(--cv-white);
}

.cv-footer-contact {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}
.cv-footer-email {
  color: var(--cv-teal, #7DD3C0);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}
.cv-footer-email:hover {
  text-decoration: underline;
}

.cv-footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.cv-footer-bottom p {
  margin-bottom: 0.25rem;
}

.cv-footer-bottom .disclaimer {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}


/* ---------- Hero (Homepage) ---------- */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.hero .hero-subtitle {
  font-size: 1.25rem;
  color: var(--cv-gray-700);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero .hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero gradient variant (deep background) */
.hero-deep {
  background: linear-gradient(135deg, var(--cv-deep) 0%, #153042 50%, var(--cv-ocean) 100%);
  color: var(--cv-white);
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero-deep h1 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--cv-white);
  margin-bottom: 1.25rem;
}

.hero-deep .hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero-deep .hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #7DD3C0;
  margin-bottom: 1rem;
}

/* Hero (Building page) */
.hero-building {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--cv-sand-dark) 0%, var(--cv-sand) 100%);
}

.hero-building .hero-breadcrumb {
  font-size: 0.8125rem;
  color: var(--cv-gray-500);
  margin-bottom: 1rem;
}

.hero-building .hero-breadcrumb a {
  color: var(--cv-gray-500);
}

.hero-building .hero-breadcrumb a:hover {
  color: var(--cv-ocean);
}

.hero-building h1 {
  margin-bottom: 0.75rem;
}

.hero-building .hero-location {
  font-size: 1.125rem;
  color: var(--cv-gray-500);
  margin-bottom: 2rem;
}

.hero-building .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ---------- How It Works ---------- */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--cv-ocean);
  color: var(--cv-white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}


/* ---------- Tier Explanation ---------- */
.tier-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--cv-gray-200);
}

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

.tier-row .tier-description h4 {
  margin-bottom: 0.25rem;
}

.tier-row .tier-description p {
  font-size: 0.9375rem;
  color: var(--cv-gray-500);
}


/* ---------- Availability Page ---------- */
.availability-header {
  padding: 2rem 0 1rem;
}

.availability-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.5rem;
}

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

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

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

@media (min-width: 1100px) {
  .unit-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Tier count in sidebar pills */
.sb-pill-count {
  font-size: 0.625rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.125rem;
}

.availability-note {
  background: var(--cv-gray-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--cv-gray-500);
  line-height: 1.6;
  margin-top: 2rem;
}


/* ---------- Section Label ---------- */
.label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cv-ocean);
  margin-bottom: 0.75rem;
}


/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--cv-gray-200);
  margin: 2rem 0;
}


/* ---------- Info Box ---------- */
.info-box {
  background: rgba(26, 107, 122, 0.06);
  border-left: 4px solid var(--cv-ocean);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box p {
  font-size: 1rem;
  margin: 0;
}


/* ---------- Feature List ---------- */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  font-size: 1.05rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cv-ocean);
}


/* ---------- Coming Soon Badge ---------- */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--cv-sand-dark);
  color: var(--cv-gray-500);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
}


/* ---------- Loading / Empty States ---------- */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}

.loading-spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--cv-gray-200);
  border-top-color: var(--cv-ocean);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--cv-gray-500);
}

.empty-state h3 {
  color: var(--cv-gray-700);
  margin-bottom: 0.5rem;
}


/* ---------- Image Placeholders ---------- */
.img-placeholder {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.img-placeholder.ocean {
  background: linear-gradient(135deg, #0C1B2A 0%, var(--cv-ocean) 60%, #2AA89A 100%);
}

.img-placeholder.sand {
  background: linear-gradient(135deg, #D4C9B8 0%, #E8DED0 100%);
  color: rgba(0, 0, 0, 0.3);
}

.img-placeholder.sunset {
  background: linear-gradient(135deg, var(--cv-deep) 0%, #3B2A5A 30%, var(--cv-coral) 70%, #F5A623 100%);
}


/* ---------- Mobile Touch & Sizing Fixes ---------- */
@media (max-width: 768px) {
  /* Ensure minimum 44px tap targets for small buttons */
  .btn-sm {
    min-height: 44px;
    padding: 0.625rem 1rem;
  }

  /* Filter bar & inline selects need bigger tap targets */
  .filter-bar select,
  .filter-bar input,
  select {
    min-height: 44px;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
  }

  /* Nav links need adequate tap area */
  .cv-nav-links a {
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Bump tiny labels from 11px to 12px minimum */
  .label,
  .tier-badge,
  .unit-card .unit-tag,
  .ur-tags .unit-tag,
  .cv-ur-tag,
  .tbi-count,
  .tbi-desc,
  .sb-label,
  .sb-hint-inline,
  .sb-floor-hint,
  .week-card .week-label,
  .filter-group label,
  .detail-label {
    font-size: 0.75rem;
  }

  /* Week cards: ensure tall enough for touch */
  .week-card {
    min-height: 44px;
    min-width: 100px;
    padding: 0.75rem 1rem;
  }
}

/* ---------- Responsive Helpers ---------- */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile { display: initial; }
  .hide-desktop { display: none; }
}


/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--cv-ocean);
  outline-offset: 2px;
}


/* ==========================================================================
   cv-components.js — Shared Component Styles
   ========================================================================== */

/* ---------- Tier Bar (horizontal class selector) ---------- */
.tier-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tier-bar-item {
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--cv-white);
  border: 1px solid var(--cv-gray-200);
  border-top: 4px solid var(--cv-gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: var(--font-primary);
  text-align: left;
  transition: all 0.15s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 44px;
  justify-content: space-between;
}

.tier-bar-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Always-visible tier colors — Option B: Coastal-inspired */
.tier-bar-item.tbi-all {
  border-top: 4px solid var(--cv-deep);
  background: var(--cv-white);
  flex: none;
  width: 120px;
}
.tier-bar-item.tbi-luxury {
  border-top: 4px solid #B8860B;
  background: linear-gradient(180deg, rgba(184, 134, 11, 0.08) 0%, var(--cv-white) 100%);
}
.tier-bar-item.tbi-premium {
  border-top: 4px solid #0369A1;
  background: linear-gradient(180deg, rgba(3, 105, 161, 0.06) 0%, var(--cv-white) 100%);
}
.tier-bar-item.tbi-comfortable {
  border-top: 4px solid #5F8C5A;
  background: linear-gradient(180deg, rgba(95, 140, 90, 0.05) 0%, var(--cv-white) 100%);
}
.tier-bar-item.tbi-classic {
  border-top: 4px solid #78716C;
  background: linear-gradient(180deg, rgba(120, 113, 108, 0.05) 0%, var(--cv-white) 100%);
}

/* Active state */
.tier-bar-item.active { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tier-bar-item.tbi-all.active { background: var(--cv-deep); }
.tier-bar-item.tbi-all.active .tbi-name,
.tier-bar-item.tbi-all.active .tbi-desc,
.tier-bar-item.tbi-all.active .tbi-count,
.tier-bar-item.tbi-all.active .tbi-price { color: var(--cv-white); }
.tier-bar-item.tbi-luxury.active { background: linear-gradient(135deg, #B8860B, #DAA520); }
.tier-bar-item.tbi-luxury.active .tbi-name,
.tier-bar-item.tbi-luxury.active .tbi-desc,
.tier-bar-item.tbi-luxury.active .tbi-count,
.tier-bar-item.tbi-luxury.active .tbi-price { color: var(--cv-white); }
.tier-bar-item.tbi-premium.active { background: #0369A1; }
.tier-bar-item.tbi-premium.active .tbi-name,
.tier-bar-item.tbi-premium.active .tbi-desc,
.tier-bar-item.tbi-premium.active .tbi-count,
.tier-bar-item.tbi-premium.active .tbi-price { color: var(--cv-white); }
.tier-bar-item.tbi-comfortable.active { background: #5F8C5A; }
.tier-bar-item.tbi-comfortable.active .tbi-name,
.tier-bar-item.tbi-comfortable.active .tbi-desc,
.tier-bar-item.tbi-comfortable.active .tbi-count,
.tier-bar-item.tbi-comfortable.active .tbi-price { color: var(--cv-white); }
.tier-bar-item.tbi-classic.active { background: #78716C; }
.tier-bar-item.tbi-classic.active .tbi-name,
.tier-bar-item.tbi-classic.active .tbi-desc,
.tier-bar-item.tbi-classic.active .tbi-count,
.tier-bar-item.tbi-classic.active .tbi-price { color: var(--cv-white); }

/* Tier-colored name text */
.tbi-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.tbi-all .tbi-name { color: var(--cv-deep); }
.tbi-luxury .tbi-name { color: #7A5C08; }
.tbi-premium .tbi-name { color: #025482; }
.tbi-comfortable .tbi-name { color: #3D5B39; }
.tbi-classic .tbi-name { color: #44403C; }

.tbi-desc {
  font-size: 0.8125rem;
  color: var(--cv-gray-600);
  line-height: 1.35;
}

.tbi-price {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cv-ocean);
  min-height: 1.125rem;
}
.tier-bar-item.active .tbi-price { color: rgba(255,255,255,0.9); }

.tbi-count {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cv-gray-600);
  margin-top: auto;
}

@media (max-width: 768px) {
  .tier-bar {
    flex-direction: column;
    gap: 0.375rem;
  }
  .tier-bar-item {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-top: none;
    border-left: 4px solid var(--cv-gray-200);
  }
  .tier-bar-item.tbi-all { border-left-color: var(--cv-deep); }
  .tier-bar-item.tbi-luxury { border-left-color: #B8860B; }
  .tier-bar-item.tbi-premium { border-left-color: #0369A1; }
  .tier-bar-item.tbi-comfortable { border-left-color: #5F8C5A; }
  .tier-bar-item.tbi-classic { border-left-color: #78716C; }
  .tbi-desc { display: none; }
  .tbi-count { margin-left: auto; }
}

/* ---------- Sidebar Filter Sections ---------- */
.sb-section {
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sb-section:first-child {
  padding-top: 0;
}

.sb-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cv-gray-500);
  margin-bottom: 0.5rem;
}

.sb-hint-inline {
  font-size: 0.6875rem;
  color: var(--cv-gray-400);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.sb-floor-hint {
  font-size: 0.625rem;
  color: var(--cv-gray-400);
  margin-top: 0.25rem;
}

.sb-results-summary {
  padding: 1rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cv-ocean);
}

/* ---------- Sidebar Pills ---------- */
.sb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.sb-pill {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--cv-gray-200);
  border-radius: 9999px;
  background: var(--cv-white);
  color: var(--cv-gray-700);
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.sb-pill:hover { border-color: var(--cv-ocean-light); color: var(--cv-ocean); }
.sb-pill.active { background: var(--cv-ocean); color: var(--cv-white); border-color: var(--cv-ocean); }

/* Feature pills toggle independently */
.sb-pill-feat.active { background: var(--cv-ocean); color: var(--cv-white); border-color: var(--cv-ocean); }

@media (max-width: 768px) {
  .sb-pill {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* ---------- Compare Tray (sticky bottom bar) ---------- */
.compare-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cv-deep);
  color: var(--cv-white);
  padding: 0.875rem 1.5rem;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.compare-tray-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.compare-tray-units {
  flex: 1;
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  flex-wrap: wrap;
}

.compare-tray-unit {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,0.1);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
}

.compare-tray-unit .ctu-remove {
  cursor: pointer;
  opacity: 0.5;
  font-size: 1.125rem;
  line-height: 1;
}

.compare-tray-unit .ctu-remove:hover { opacity: 1; }

.compare-tray-clear {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: var(--font-primary);
  min-height: 44px;
  padding: 0.5rem;
}

.compare-tray-clear:hover { color: var(--cv-white); }

@media (max-width: 768px) {
  .compare-tray {
    padding: 0.75rem 1rem;
  }
  .compare-tray-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .compare-tray-units {
    font-size: 0.8125rem;
    gap: 0.375rem;
  }
}

/* ---------- Unit Row (cv-components) ---------- */
/* Layout handled by Tailwind on .cv-unit-row */
.cv-unit-row {
  background: var(--cv-white);
  border: none;
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease);
  cursor: pointer;
}

/* Tier left accent — using inset box-shadow (border-left was being overridden) */
.cv-unit-row.cv-tier-luxury { box-shadow: inset 6px 0 0 #B8860B; }
.cv-unit-row.cv-tier-premium { box-shadow: inset 6px 0 0 #0369A1; }
.cv-unit-row.cv-tier-comfortable { box-shadow: inset 6px 0 0 #5F8C5A; }
.cv-unit-row.cv-tier-classic { box-shadow: inset 6px 0 0 #78716C; }

.cv-unit-row:hover {
  background: rgba(26, 107, 122, 0.02);
}

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

/* Badge column */
.cv-ur-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 80px;
  padding-top: 0.125rem;
}

.cv-ur-score {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cv-gray-400);
}

/* Main content — layout via Tailwind */

.cv-ur-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cv-deep);
  text-decoration: none;
}

.cv-ur-name:hover {
  color: var(--cv-ocean);
}

.cv-ur-tier-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cv-gray-500);
}

.cv-ur-highlight {
  font-size: 0.8125rem;
  color: var(--cv-gray-700);
  line-height: 1.4;
}

/* Room tags */
.cv-ur-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.cv-ur-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
  background: var(--cv-gray-100);
  color: var(--cv-gray-700);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* .cv-ur-meta — sizing via Tailwind */

.cv-ur-limited-note {
  font-size: 0.6875rem;
  color: var(--cv-gray-400);
  font-style: italic;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 183, 0, 0.08);
  border-radius: var(--radius-sm);
  border-left: 2px solid #FFB300;
}

/* Actions — layout via Tailwind */
.cv-ur-actions {
  flex-shrink: 0;
  min-width: 140px;
  text-align: right;
}

.cv-ur-actions .btn {
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.625rem 1.5rem;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
  width: 100px;
}

/* Unified search card */
.cv-search-card-section {
  padding: 1.5rem 0 1rem;
  background: var(--cv-gray-50, #F5F5F5);
}
.cv-search-card {
  background: var(--cv-white);
  border-radius: 1rem;
  padding: 1.5rem 2rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  max-width: 960px;
  margin: 0 auto;
}
/* Layout handled by Tailwind utilities on .cv-search-card-row */
.cv-search-summary {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.cv-search-summary-count {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--cv-deep);
}
.cv-search-summary-range {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cv-ocean);
}
/* .cv-search-btn sizing handled by Tailwind utilities */
.cv-search-card-tiers {
  margin-bottom: 0.75rem;
}

/* ============================================================
   MOBILE — iPhone (375-428px)
   Complete mobile override block. Keep this at the end of the file.
   ============================================================ */
@media (max-width: 768px) {

  /* --- Nav --- */
  .cv-nav-inner { height: 60px; }
  .cv-nav-logo-img { height: 44px; }

  /* --- Hero --- */
  .cv-hero-compact { padding: 0.5rem 0 0.25rem; }
  .cv-hero-location { display: none; }
  .cv-hero-headline { white-space: normal; font-size: 1.375rem !important; line-height: 1.2; }
  .cv-hero-subtitle { font-size: 0.75rem !important; margin-top: 0.25rem !important; }

  /* --- Search card --- */
  /* Layout handled by Tailwind on .cv-search-card-row */
  .cv-search-card-section { padding: 0.5rem 0 0.25rem; }
  .cv-search-card {
    padding: 0.75rem;
    margin: 0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
  }

  /* --- Summary line --- */
  .cv-search-summary { margin-bottom: 0.25rem; }
  .cv-search-summary-count { font-size: 0.875rem; }
  .cv-search-summary-range { font-size: 0.6875rem; }

  /* --- Tier bar --- */
  .cv-search-card-tiers p { font-size: 0.625rem; margin-bottom: 0.125rem; }
  .tier-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    overflow: hidden;
  }
  .tier-bar-item {
    padding: 0.375rem 0.5rem;
    min-width: 0;
    overflow: hidden;
  }
  .tbi-name { font-size: 0.75rem; }
  .tbi-desc { display: none; }
  .tbi-price { display: none; }
  .tbi-count { font-size: 0.625rem; }

  /* --- Disclaimer — hide on mobile to save space --- */
  .cv-search-prompt-note { display: none; }

  /* --- Layout, sidebar, unit cards, filter toggle — handled by Tailwind --- */
  .cv-ur-desktop { display: none !important; }
  .cv-ur-price { font-size: 0.75rem; }
  .cv-ur-price-nightly { font-size: 0.625rem; }
  /* sidebar open/close handled above in dedicated block */

  /* --- Footer --- */
  .cv-footer-inner { padding: 1.5rem 1rem; }
  .cv-footer-top { flex-direction: column; gap: 1rem; }
  .cv-footer-links { flex-direction: column; gap: 0; }
  .cv-footer-links a {
    display: block;
    padding: 0.625rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .cv-footer-contact p { font-size: 0.8125rem; }
  .cv-footer-bottom .disclaimer { font-size: 0.6875rem; }

  /* --- Week picker dropdown on mobile --- */
  .cv-week-picker-menu {
    max-height: 50vh;
    overflow-y: auto;
  }
  .cv-week-picker-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* --- iOS safe area --- */
  .cv-nav { padding-top: env(safe-area-inset-top); }
  .cv-footer { padding-bottom: env(safe-area-inset-bottom); }
}
.cv-budget-toggle {
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cv-ocean);
  background: none;
  border: none;
  border-bottom: 1px dashed var(--cv-ocean);
  padding: 0 0.125rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-transform: lowercase;
}
.cv-search-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cv-search-field-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv-deep);
  margin-bottom: 0.375rem;
}
/* Custom week picker dropdown */
.cv-week-picker {
  position: relative;
}
.cv-week-picker-btn {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  padding: 0.75rem 2.5rem 0.75rem 0.875rem;
  border: 2px solid var(--cv-gray-300);
  border-radius: 0.5rem;
  background: var(--cv-white);
  color: var(--cv-deep);
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.cv-week-picker-btn:focus {
  outline: none;
  border-color: var(--cv-ocean);
  box-shadow: 0 0 0 2px rgba(26, 107, 122, 0.15);
}
.cv-week-picker-btn svg {
  flex-shrink: 0;
  opacity: 0.5;
}
.cv-week-picker-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--cv-white);
  border: 1px solid var(--cv-gray-200);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: none;
}
.cv-week-picker-menu::-webkit-scrollbar {
  display: none;
}
.cv-week-picker.open .cv-week-picker-menu {
  display: block;
}
.cv-week-picker-item {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--cv-gray-700);
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.1s;
}
.cv-week-picker-item:last-child {
  border-bottom: none;
}
.cv-week-picker-item:hover {
  background: var(--cv-gray-50, #f5f5f5);
}
.cv-week-picker-item.active {
  color: var(--cv-ocean);
  font-weight: 600;
  background: rgba(26, 107, 122, 0.05);
}

.cv-search-select {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  padding: 0.75rem 2.5rem 0.75rem 0.875rem;
  border: 2px solid var(--cv-gray-300);
  border-radius: 0.5rem;
  background: var(--cv-white);
  color: var(--cv-deep);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
  width: 100%;
}
.cv-search-select:focus {
  outline: none;
  border-color: var(--cv-ocean);
  box-shadow: 0 0 0 2px rgba(26, 107, 122, 0.15);
}
/* Budget layout handled by Tailwind utilities */
.cv-search-input {
  font-family: var(--font-primary);
  border: 2px solid var(--cv-gray-200, #EDECE8);
  border-radius: 0.5rem;
  color: var(--cv-deep);
  /* Size/width handled by Tailwind utilities */
}
.cv-search-input:focus {
  outline: none;
  border-color: var(--cv-ocean);
  box-shadow: 0 0 0 2px rgba(26, 107, 122, 0.15);
}
.cv-search-input::placeholder {
  color: var(--cv-gray-400);
}
/* Prefix/sep/btn sizing handled by Tailwind utilities */
.cv-search-prompt-note {
  font-size: 0.75rem;
  color: var(--cv-gray-400);
  margin-top: 0.625rem;
  font-style: italic;
}
/* Old mobile override removed — consolidated into main mobile block */

/* Tier pricing summary bar */
.cv-tier-pricing-bar {
  padding: 0.75rem 0;
  background: var(--cv-gray-50, #FAFAFA);
  border-bottom: 1px solid var(--cv-gray-200);
}
.cv-tier-pricing-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}
.cv-tier-pricing-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.cv-tier-pricing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cv-tier-pricing-label {
  font-weight: 600;
  color: var(--cv-gray-700);
}
.cv-tier-pricing-range {
  font-family: var(--font-mono);
  color: var(--cv-gray-600);
}

/* Pricing display */
.cv-ur-price {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cv-deep);
  white-space: nowrap;
}
.cv-ur-price-nightly {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cv-gray-500);
}
.cv-ur-price-range {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cv-gray-700);
}
.cv-ur-price-booked {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cv-gray-400);
}
.cv-ur-price-na {
  font-size: 0.75rem;
  color: var(--cv-gray-400);
  font-style: italic;
}
.cv-ur-price-est {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--cv-gray-400);
  font-style: italic;
}

/* Booked unit row */
.cv-unit-row.cv-ur-booked {
  opacity: 0.6;
}
.cv-unit-row.cv-ur-booked:hover {
  opacity: 0.8;
}

/* Week dropdown */
.sb-select {
  width: 100%;
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--cv-gray-200);
  border-radius: var(--radius-md);
  background: var(--cv-white);
  color: var(--cv-deep);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px;
}
.sb-select:focus {
  outline: none;
  border-color: var(--cv-ocean);
  box-shadow: 0 0 0 2px rgba(26, 107, 122, 0.15);
}

.cv-compare-toggle {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--cv-gray-300);
  border-radius: var(--radius-md);
  background: var(--cv-white);
  color: var(--cv-gray-600);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cv-compare-toggle:hover {
  border-color: var(--cv-ocean);
  color: var(--cv-ocean);
  background: rgba(26, 107, 122, 0.04);
}

.cv-compare-toggle.selected {
  background: var(--cv-ocean);
  color: var(--cv-white);
  border-color: var(--cv-ocean);
}

.cv-ur-detail-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cv-ocean);
  text-decoration: none;
}

.cv-ur-detail-link:hover {
  color: var(--cv-ocean-light);
  text-decoration: underline;
}

/* Expanded detail (hidden until row click) */
.cv-ur-detail {
  display: none;
  grid-column: 1 / -1;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid var(--cv-gray-200);
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--cv-gray-700);
  line-height: 1.5;
}

.cv-unit-row.cv-ur-expanded .cv-ur-detail {
  display: block;
}

.cv-unit-row.cv-ur-expanded {
  background: rgba(26, 107, 122, 0.02);
  border-color: var(--cv-ocean-light);
}

/* Tier chips (used in score context) */
.cv-ur-tier-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-ur-tier-chip.luxury { background: rgba(184, 134, 11, 0.15); color: #92700A; }
.cv-ur-tier-chip.premium { background: rgba(3, 105, 161, 0.12); color: #0369A1; }
.cv-ur-tier-chip.comfortable { background: rgba(95, 140, 90, 0.12); color: #4A6F46; }
.cv-ur-tier-chip.classic { background: rgba(120, 113, 108, 0.12); color: #57534E; }

/* Tier dots — color indicators without text */
.cv-ur-tier-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cv-ur-tier-dot.luxury { background: #B8860B; }
.cv-ur-tier-dot.premium { background: #0369A1; }
.cv-ur-tier-dot.comfortable { background: #5F8C5A; }
.cv-ur-tier-dot.classic { background: #78716C; }

/* Expanded detail — two-column layout */
.cv-ur-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .cv-ur-detail-grid { grid-template-columns: 1fr; }
}

.cv-ur-detail-col {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Room detail lines */
.cv-ur-detail-room {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 0.25rem 0;
}

.cv-ur-detail-room-label {
  color: var(--cv-deep);
  flex-shrink: 0;
  min-width: 55px;
}

.cv-ur-detail-room-text {
  color: var(--cv-gray-600, #5A574F);
}

/* Fact lines */
.cv-ur-detail-fact {
  font-size: 0.8125rem;
  color: var(--cv-gray-700);
  line-height: 1.4;
}

.cv-ur-detail-fact strong {
  color: var(--cv-deep);
}

.cv-ur-detail-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cv-gray-200);
}

/* Unit row mobile layout handled by Tailwind */

/* ---------- Building Group (grouped results) ---------- */
.cv-building-group {
  margin-bottom: 1.5rem;
}

.cv-building-group-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--cv-sand);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 2px solid var(--cv-gray-200);
}

.cv-building-group-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cv-deep);
  text-decoration: none;
}

.cv-building-group-name:hover {
  color: var(--cv-ocean);
}

.cv-building-group-count {
  font-size: 0.8125rem;
  color: var(--cv-gray-400);
}

/* ---------- Community Cards (explore section) ---------- */
.cv-community-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cv-community-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  transition: color 0.2s var(--ease);
}

.cv-community-card:hover h3 {
  color: var(--cv-ocean);
}

.cv-cc-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cv-ocean);
  margin-top: auto;
}

/* ---------- Search Layout — sidebar visibility ---------- */
/* Mobile: hidden by default, toggle via JS .open class */
@media (max-width: 767px) {
  .cv-search-sidebar {
    display: none;
  }
  .cv-search-sidebar.open {
    display: block;
    border-bottom: 1px solid var(--cv-gray-200);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
  }
}
/* Desktop: always visible, sticky */
@media (min-width: 768px) {
  .cv-search-sidebar {
    display: block;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
  }
}
.cv-search-sidebar {
  scrollbar-width: none;
  padding-bottom: 2rem;
}
.cv-search-sidebar::-webkit-scrollbar {
  display: none;
}

/* Results toggle active state */
.cv-results-toggle.active {
  background: var(--cv-ocean);
  color: var(--cv-white);
  border-color: var(--cv-ocean);
}

/* Filter toggle hover */
.cv-mobile-filter-toggle:hover {
  border-color: var(--cv-ocean-light);
}

/* ---------- Compact Hero ---------- */
.cv-hero-compact {
  background: var(--cv-sand);
  padding: 2rem 0 1rem;
  text-align: center;
}

.cv-hero-compact h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--cv-deep);
  margin-bottom: 0.5rem;
}
.cv-hero-headline {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .cv-hero-headline {
    white-space: normal;
    font-size: 1.75rem !important;
  }
}

.cv-hero-compact .cv-hero-subtitle {
  font-size: 1.125rem;
  color: var(--cv-gray-500);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- Explore Section ---------- */
.cv-explore-section {
  background: var(--cv-white);
  padding: 4rem 0;
}

.cv-explore-section h2 {
  margin-bottom: 0.5rem;
}

.cv-explore-lead {
  font-size: 1.0625rem;
  color: var(--cv-gray-500);
  margin-bottom: 2rem;
}

/* ---------- Pulse Stats tiles (homepage hero, community/building hubs) ---------- */
.cv-pulse-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.cv-pulse-tile {
  background: var(--cv-white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
  border: 1px solid var(--cv-gray-200);
  text-align: left;
}

.cv-pulse-tile .cv-pulse-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cv-ocean);
  margin-bottom: 0.25rem;
}

.cv-pulse-tile .cv-pulse-value {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cv-deep);
  line-height: 1.2;
}

.cv-pulse-tile .cv-pulse-note {
  font-size: 0.75rem;
  color: var(--cv-gray-500);
  margin-top: 0.25rem;
}

/* On dark hero sections, tiles need a translucent panel treatment */
.section-deep .cv-pulse-tile,
.hero-deep .cv-pulse-tile {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.section-deep .cv-pulse-tile .cv-pulse-label,
.hero-deep .cv-pulse-tile .cv-pulse-label {
  color: var(--cv-ocean-light, #2A8D9E);
}

.section-deep .cv-pulse-tile .cv-pulse-value,
.hero-deep .cv-pulse-tile .cv-pulse-value {
  color: var(--cv-white);
}

.section-deep .cv-pulse-tile .cv-pulse-note,
.hero-deep .cv-pulse-tile .cv-pulse-note {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 640px) {
  .cv-pulse-tiles {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
}


/* ---------- Unit availability & rates ---------- */
.cv-availability .cv-avail-subhead {
  font-size: 0.9375rem;
  color: var(--cv-gray-600, #4a4a4a);
  margin: 0 0 1.25rem 0;
  line-height: 1.55;
}

.cv-availability .cv-avail-summary {
  background: white;
  border: 1px solid var(--cv-gray-200);
  border-left: 4px solid #5F8C5A;
  padding: 0.875rem 1.125rem;
  margin: 0 0 1.25rem 0;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5;
}

.cv-availability .cv-avail-summary--inquire {
  border-left-color: #C99A2E;
}

.cv-availability .cv-avail-summary--booked {
  border-left-color: var(--cv-gray-400, #999);
  color: var(--cv-gray-600, #4a4a4a);
}

/* Open weeks list — prominent rows */
.cv-availability .cv-avail-open-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cv-availability .cv-avail-week {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  background: white;
  border: 1px solid var(--cv-gray-200);
  border-radius: 8px;
  flex-wrap: wrap;
}

.cv-availability .cv-avail-week--inquire {
  border-style: dashed;
}

.cv-availability .cv-avail-week-dates {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1 1 240px;
  min-width: 0;
}

.cv-availability .cv-avail-week-range {
  font-size: 0.9375rem;
  color: var(--cv-deep, #1a1a1a);
  white-space: nowrap;
}

.cv-availability .cv-avail-week-range strong {
  font-weight: 600;
}

.cv-availability .cv-avail-week-tag {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cv-availability .cv-avail-week-tag--open {
  background: rgba(95, 140, 90, 0.14);
  color: #3a6a3a;
}

.cv-availability .cv-avail-week-tag--inquire {
  background: rgba(201, 154, 46, 0.14);
  color: #8a6a20;
}

.cv-availability .cv-avail-week-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  flex: 0 0 auto;
}

.cv-availability .cv-avail-week-nightly {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cv-deep, #1a1a1a);
}

.cv-availability .cv-avail-week-suffix {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cv-gray-500);
}

.cv-availability .cv-avail-week-total {
  font-size: 0.75rem;
  color: var(--cv-gray-500);
  margin-top: 0.125rem;
}

.cv-availability .cv-avail-week-price--muted {
  color: var(--cv-gray-500);
  font-size: 0.875rem;
  font-style: italic;
}

.cv-availability .cv-avail-week-cta {
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Booked strip — compact pills */
.cv-availability .cv-avail-booked {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  padding: 0.875rem 1.125rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--cv-gray-200);
  border-radius: 8px;
  margin: 0 0 1rem 0;
}

.cv-availability .cv-avail-booked-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cv-gray-500);
  white-space: nowrap;
}

.cv-availability .cv-avail-booked-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.cv-availability .cv-avail-booked-pill {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--cv-gray-200);
  font-size: 0.75rem;
  color: var(--cv-gray-600, #4a4a4a);
  white-space: nowrap;
}

.cv-availability .cv-avail-footer {
  font-size: 0.8125rem;
  color: var(--cv-gray-500);
  margin-top: 1rem;
  line-height: 1.5;
}

/* Mobile — stack price and CTA below dates */
@media (max-width: 640px) {
  .cv-availability .cv-avail-week {
    padding: 0.75rem 0.875rem;
    gap: 0.5rem 0.75rem;
  }
  .cv-availability .cv-avail-week-dates {
    flex: 1 1 100%;
  }
  .cv-availability .cv-avail-week-range {
    font-size: 0.875rem;
    white-space: normal;
  }
  .cv-availability .cv-avail-week-price {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }
  .cv-availability .cv-avail-week-total {
    margin-top: 0;
  }
  .cv-availability .cv-avail-booked {
    padding: 0.75rem 0.875rem;
  }
}

/* ---------- Building / Community full unit index (SEO-friendly list) ---------- */
.bldg-unit-index {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem;
}

.bldg-unit-index li {
  margin: 0;
}

.bldg-unit-index a {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.625rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cv-gray-200);
  border-radius: 6px;
  background: white;
  text-decoration: none;
  color: var(--cv-gray-700);
  transition: border-color 120ms ease, background 120ms ease;
}

.bldg-unit-index a:hover {
  border-color: var(--cv-teal, #1a6b7a);
  background: rgba(26, 107, 122, 0.04);
}

.bldg-unit-index a strong {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--cv-deep, #0c3a44);
}

.bldg-unit-index .bldg-unit-tier {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
}

.bldg-unit-index .bldg-unit-meta {
  font-size: 0.8125rem;
  color: var(--cv-gray-500);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Print ---------- */
@media print {
  .cv-nav,
  .cv-footer,
  .btn,
  .filter-bar,
  .week-selector {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
}
