/* ═══════════════════════════════════════════════════
   VCG MLS Listing Styles
   Brand: Black #231F20 · Gold #D4A84B · Cream #F4F1E1
   Fonts: DM Serif Display (headings) + Raleway (body)
   Inherits vars from vcg-theme/css/global.css
   ═══════════════════════════════════════════════════ */

/* Fallback vars if theme not loaded */
:root {
  --vcg-black: #231F20;
  --vcg-gold: #D4A84B;
  --vcg-gold-light: #E0BE6A;
  --vcg-cream: #F4F1E1;
  --vcg-white: #FFFFFF;
  --vcg-bg: #FFFFFF;
  --vcg-bg-subtle: #F9F8F5;
  --vcg-text: #2D3748;
  --vcg-text-light: #718096;
  --vcg-border: #E2E8F0;
  --vcg-border-light: #F0EDE3;
  --vcg-success: #38A169;
  --vcg-error: #E53E3E;
  --vcg-font-heading: 'DM Serif Display', Georgia, serif;
  --vcg-font-body: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  --vcg-max-width: 1200px;
  --vcg-radius: 8px;
  --vcg-radius-lg: 12px;
  --vcg-transition: 0.2s ease;
  --vcg-section-pad: 80px;
  --vcg-section-pad-mobile: 48px;
}

/* ═══════════════════════════════════════════════════
   BASE / RESETS
   ═══════════════════════════════════════════════════ */
.vcg-listing-page {
  font-family: var(--vcg-font-body);
  color: var(--vcg-text);
  line-height: 1.7;
  font-size: 15px;
  background: var(--vcg-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.vcg-listing-page h1,
.vcg-listing-page h2,
.vcg-listing-page h3,
.vcg-listing-page h4 {
  font-family: var(--vcg-font-heading);
  color: var(--vcg-black);
  line-height: 1.25;
  font-weight: 400;
}

.vcg-listing-page h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 24px;
}

.vcg-listing-page h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.vcg-listing-page a {
  color: var(--vcg-black);
  transition: color var(--vcg-transition);
}

.vcg-listing-page a:hover {
  color: var(--vcg-gold);
}

.vcg-container {
  max-width: var(--vcg-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.vcg-section {
  padding: 56px 24px;
}

/* ═══════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════ */
.vcg-breadcrumb {
  padding: 14px 24px;
  font-size: 13px;
  color: var(--vcg-text-light);
  border-bottom: 1px solid var(--vcg-border);
}

.vcg-breadcrumb a {
  color: var(--vcg-text-light);
  text-decoration: none;
}

.vcg-breadcrumb a:hover {
  color: var(--vcg-gold);
}

.vcg-breadcrumb .separator {
  margin: 0 8px;
}

/* ═══════════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════════ */
.vcg-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--vcg-font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vcg-white);
  margin-bottom: 6px;
}

.vcg-status-active {
  background: #38A169;
}

.vcg-status-active-under-contract {
  background: #D69E2E;
}

.vcg-status-pending {
  background: #DD6B20;
}

.vcg-status-hold {
  background: #A0AEC0;
}

.vcg-status-sold {
  background: #E53E3E;
}

.vcg-status-off-market {
  background: var(--vcg-black);
}

/* ═══════════════════════════════════════════════════
   SINGLE LISTING — HERO
   ═══════════════════════════════════════════════════ */
.vcg-listing-hero {
  padding: 32px 24px 24px;
  border-bottom: 1px solid var(--vcg-border);
  background: var(--vcg-white);
}

.vcg-listing-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  max-width: var(--vcg-max-width);
  margin: 0 auto;
}

.vcg-listing-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 4px;
}

.vcg-listing-location {
  color: var(--vcg-text-light);
  font-size: 15px;
  margin: 0;
}

.vcg-listing-hero-price {
  text-align: right;
}

.vcg-listing-price {
  font-family: var(--vcg-font-heading);
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--vcg-black);
  display: block;
}

.vcg-listing-ppsf {
  font-size: 14px;
  color: var(--vcg-text-light);
}

.vcg-off-market-price {
  color: var(--vcg-text-light);
  font-size: 1.2rem;
}

/* Stats Bar (below photos) */
.vcg-listing-stats-bar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--vcg-border);
  background: var(--vcg-white);
}

/* Quick Stats Bar */
.vcg-listing-quick-stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--vcg-border);
  flex-wrap: wrap;
  max-width: var(--vcg-max-width);
  margin-left: auto;
  margin-right: auto;
}

.vcg-quick-stat {
  font-size: 14px;
  color: var(--vcg-text-light);
}

.vcg-quick-stat strong {
  font-size: 1.15rem;
  color: var(--vcg-black);
  display: block;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   PHOTO GALLERY
   ═══════════════════════════════════════════════════ */
.vcg-listing-gallery {
  padding: 0;
  background: #000;
}

.vcg-gallery-main {
  position: relative;
  max-height: 520px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.vcg-gallery-main img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.vcg-gallery-prev,
.vcg-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: var(--vcg-white);
  border: none;
  font-size: 1.8rem;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 5;
  border-radius: 4px;
  transition: background var(--vcg-transition);
}

.vcg-gallery-prev {
  left: 12px;
}

.vcg-gallery-next {
  right: 12px;
}

.vcg-gallery-prev:hover,
.vcg-gallery-next:hover {
  background: rgba(0, 0, 0, 0.75);
}

.vcg-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--vcg-white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.vcg-gallery-thumbs {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  background: #111;
}

.vcg-thumb {
  width: 72px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: opacity var(--vcg-transition);
  flex-shrink: 0;
}

.vcg-thumb:hover,
.vcg-thumb.active {
  opacity: 1;
  border-color: var(--vcg-white);
}

/* ═══════════════════════════════════════════════════
   OFF MARKET BANNER
   ═══════════════════════════════════════════════════ */
.vcg-off-market-banner {
  background: var(--vcg-cream);
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--vcg-border);
}

.vcg-off-market-banner h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.vcg-off-market-banner p {
  color: var(--vcg-text-light);
  margin-bottom: 16px;
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════
   TWO-COLUMN LAYOUT
   Force grid to override any Elementor remnants
   ═══════════════════════════════════════════════════ */
.vcg-listing-columns {
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  gap: 0 !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  align-items: start !important;
  width: 100% !important;
  min-height: 0 !important;
}

.vcg-listing-main {
  min-width: 0 !important;
  border-right: 1px solid var(--vcg-border);
}

.vcg-listing-sidebar {
  padding: 24px;
  align-self: start !important;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR CARDS
   ═══════════════════════════════════════════════════ */
.vcg-sidebar-card {
  background: var(--vcg-white);
  border-radius: var(--vcg-radius);
  padding: 20px;
  border: 1px solid var(--vcg-border);
  margin-bottom: 12px;
}

.vcg-sidebar-card h3 {
  font-family: var(--vcg-font-heading);
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--vcg-black);
}

/* Schedule Tour CTA */
.vcg-sidebar-cta-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--vcg-black);
  color: var(--vcg-white) !important;
  text-decoration: none;
  text-align: center;
  font-family: var(--vcg-font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--vcg-radius);
  margin-bottom: 16px;
  transition: all var(--vcg-transition);
  border: 2px solid var(--vcg-black);
  box-sizing: border-box;
}

.vcg-sidebar-cta-btn:hover {
  background: transparent;
  color: var(--vcg-black) !important;
}

/* ═══════════════════════════════════════════════════
   SHARE BUTTONS — Colored Circles
   ═══════════════════════════════════════════════════ */
.vcg-share-card {
  text-align: center;
}

.vcg-share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.vcg-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--vcg-white);
  font-size: 16px;
  transition: transform var(--vcg-transition), opacity var(--vcg-transition);
}

.vcg-share-btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
  color: var(--vcg-white);
}

.vcg-share-fb  { background: #1877F2; }
.vcg-share-x   { background: #000000; }
.vcg-share-li  { background: #0A66C2; }
.vcg-share-pin { background: #BD081C; }
.vcg-share-email { background: var(--vcg-text-light); }

/* ═══════════════════════════════════════════════════
   LEAD CAPTURE FORM — Clean inputs, gold focus
   ═══════════════════════════════════════════════════ */
.vcg-form-subtitle {
  font-size: 12px;
  color: var(--vcg-text-light);
  margin: 0 0 12px;
}

.vcg-form-field {
  margin-bottom: 10px;
}

.vcg-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
  color: var(--vcg-black);
}

.vcg-form-field .required {
  color: var(--vcg-error);
}

.vcg-form-field input,
.vcg-form-field select,
.vcg-form-field textarea {
  width: 100% !important;
  padding: 9px 12px;
  border: 1px solid var(--vcg-border) !important;
  border-radius: var(--vcg-radius);
  font-size: 13px;
  font-family: var(--vcg-font-body);
  color: var(--vcg-text);
  background: var(--vcg-white);
  transition: border-color var(--vcg-transition), box-shadow var(--vcg-transition);
  box-sizing: border-box;
}

.vcg-form-field input:focus,
.vcg-form-field select:focus,
.vcg-form-field textarea:focus {
  border-color: var(--vcg-gold) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.12);
}

.vcg-form-checkboxes {
  margin-bottom: 10px;
}

.vcg-form-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--vcg-text);
  margin-bottom: 8px;
  cursor: pointer;
}

.vcg-form-submit {
  width: 100%;
  border: 2px solid var(--vcg-gold);
  cursor: pointer;
  font-family: var(--vcg-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px;
  background: var(--vcg-gold);
  color: var(--vcg-white);
  border-radius: var(--vcg-radius);
  transition: all var(--vcg-transition);
}

.vcg-form-submit:hover {
  background: var(--vcg-gold-light);
  border-color: var(--vcg-gold-light);
}

.vcg-form-disclaimer {
  font-size: 11px;
  color: var(--vcg-text-light);
  margin-top: 12px;
  line-height: 1.5;
}

.vcg-form-disclaimer a {
  color: var(--vcg-text);
}

/* ═══════════════════════════════════════════════════
   DESCRIPTION SECTION
   ═══════════════════════════════════════════════════ */
.vcg-listing-description {
  background: var(--vcg-white);
}

.vcg-listing-description h2 {
  margin-bottom: 16px;
}

.vcg-description-text {
  max-width: 760px;
  color: var(--vcg-text);
}

.vcg-description-text p {
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════
   PROPERTY DETAILS — Alternating row grid
   ═══════════════════════════════════════════════════ */
.vcg-listing-details {
  background: var(--vcg-white);
  border-top: 1px solid var(--vcg-border);
}

.vcg-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}

.vcg-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--vcg-border);
  font-size: 14px;
}

.vcg-detail-item:nth-child(odd) {
  background: var(--vcg-cream);
}

.vcg-detail-item:nth-child(even) {
  background: var(--vcg-white);
}

.vcg-detail-label {
  color: var(--vcg-text-light);
  font-weight: 500;
}

.vcg-detail-value {
  font-weight: 600;
  color: var(--vcg-black);
  text-align: right;
}

/* ═══════════════════════════════════════════════════
   FEATURES & AMENITIES — Multi-column, gold underlines
   ═══════════════════════════════════════════════════ */
.vcg-listing-features {
  background: var(--vcg-white);
  border-top: 1px solid var(--vcg-border);
}

.vcg-features-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.vcg-feature-group h3 {
  font-family: var(--vcg-font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--vcg-black);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--vcg-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vcg-feature-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vcg-feature-group li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--vcg-text);
  border-bottom: 1px solid var(--vcg-border-light);
}

.vcg-feature-group li:last-child {
  border-bottom: none;
}

/* ═══════════════════════════════════════════════════
   SCHOOLS — Clean cards
   ═══════════════════════════════════════════════════ */
.vcg-listing-schools {
  border-top: 1px solid var(--vcg-border);
  background: var(--vcg-cream);
}

.vcg-schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.vcg-school-item {
  background: var(--vcg-white);
  border-radius: var(--vcg-radius);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--vcg-border);
  transition: transform var(--vcg-transition), box-shadow var(--vcg-transition);
}

.vcg-school-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.vcg-school-level {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vcg-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.vcg-school-item strong {
  font-size: 15px;
  color: var(--vcg-black);
  display: block;
}

.vcg-school-item .vcg-school-district {
  font-size: 13px;
  color: var(--vcg-text-light);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   MAP SECTION
   ═══════════════════════════════════════════════════ */
.vcg-listing-map {
  background: var(--vcg-white);
  border-top: 1px solid var(--vcg-border);
}

.vcg-listing-map iframe {
  border-radius: var(--vcg-radius);
  border: 1px solid var(--vcg-border);
}

/* ═══════════════════════════════════════════════════
   MORTGAGE CALCULATOR — Dark result card
   ═══════════════════════════════════════════════════ */
.vcg-mortgage-calc {
  border-top: 1px solid var(--vcg-border);
  background: var(--vcg-bg-subtle) !important;
}

.vcg-calc-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.vcg-calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.vcg-calc-field label {
  display: block;
  font-size: 12px;
  color: var(--vcg-text-light);
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vcg-calc-field input,
.vcg-calc-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--vcg-border);
  border-radius: var(--vcg-radius);
  font-size: 14px;
  font-family: var(--vcg-font-body);
  color: var(--vcg-text);
  background: var(--vcg-white);
  transition: border-color var(--vcg-transition);
}

.vcg-calc-field input:focus,
.vcg-calc-field select:focus {
  outline: none;
  border-color: var(--vcg-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.1);
}

.vcg-calc-result {
  background: var(--vcg-black);
  border-radius: var(--vcg-radius-lg);
  padding: 32px 28px;
  text-align: center;
  color: var(--vcg-white);
}

.vcg-calc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.vcg-calc-amount {
  font-family: var(--vcg-font-heading);
  font-size: 2.2rem;
  color: var(--vcg-white);
  display: block;
  margin-bottom: 6px;
}

.vcg-calc-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════════════════════════
   FAQ SECTION — Accordion (matches global.css pattern)
   ═══════════════════════════════════════════════════ */
.vcg-listing-faq {
  border-top: 1px solid var(--vcg-border);
  background: var(--vcg-white) !important;
}

.vcg-faq-list {
  max-width: 760px;
  border-top: 1px solid var(--vcg-border);
}

.vcg-faq-item {
  border-bottom: 1px solid var(--vcg-border);
}

.vcg-faq-item {
  border-bottom: 1px solid var(--vcg-border);
}

.vcg-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  font-family: var(--vcg-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--vcg-black);
  line-height: 1.4;
  list-style: none;
  transition: color var(--vcg-transition);
}

.vcg-faq-item summary::-webkit-details-marker { display: none; }
.vcg-faq-item summary::marker { display: none; content: ''; }

.vcg-faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  color: var(--vcg-text-light);
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform var(--vcg-transition);
}

.vcg-faq-item[open] summary::after {
  content: '−';
}

.vcg-faq-item summary:hover {
  color: var(--vcg-gold);
}

.vcg-faq-item summary:hover,
.vcg-faq-trigger:hover {
  color: var(--vcg-gold);
}

.vcg-faq-item summary::-webkit-details-marker {
  display: none;
}

.vcg-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: 16px;
  position: relative;
}

.vcg-faq-icon::before,
.vcg-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--vcg-text-light);
  transform: translate(-50%, -50%);
  transition: transform var(--vcg-transition);
}

.vcg-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.vcg-faq-item.active .vcg-faq-icon::after,
.vcg-faq-item[open] .vcg-faq-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.vcg-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.vcg-faq-item.active .vcg-faq-content {
  max-height: 600px;
}

.vcg-faq-content-inner,
.vcg-faq-item p {
  padding: 0 0 12px;
  margin: 0;
  font-size: 13px;
  color: var(--vcg-text-light);
  line-height: 1.6;
}

.vcg-faq-item a {
  color: var(--vcg-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vcg-faq-item a:hover {
  color: var(--vcg-gold);
}

/* ═══════════════════════════════════════════════════
   SIDEBAR — Similar Properties (compact list)
   ═══════════════════════════════════════════════════ */
.vcg-sidebar-listing-list {
  margin-top: 12px;
}

.vcg-sidebar-listing-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vcg-border);
  text-decoration: none;
  color: var(--vcg-text);
  transition: background var(--vcg-transition);
  border-radius: 4px;
}

.vcg-sidebar-listing-item:last-child {
  border-bottom: none;
}

.vcg-sidebar-listing-item:hover {
  background: var(--vcg-bg-subtle);
}

.vcg-sidebar-listing-thumb {
  width: 64px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--vcg-border);
}

.vcg-sidebar-listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcg-sidebar-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--vcg-border);
}

.vcg-sidebar-listing-info {
  min-width: 0;
}

.vcg-sidebar-listing-info strong {
  font-size: 14px;
  color: var(--vcg-black);
  display: block;
  font-weight: 700;
}

.vcg-sidebar-listing-addr {
  font-size: 13px;
  color: var(--vcg-text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcg-sidebar-listing-meta {
  font-size: 12px;
  color: var(--vcg-text-light);
}

/* ═══════════════════════════════════════════════════
   SIDEBAR — Browse More (simple text links)
   ═══════════════════════════════════════════════════ */
.vcg-browse-links {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.vcg-browse-links li {
  padding: 7px 0;
  border-bottom: 1px solid var(--vcg-border-light);
}

.vcg-browse-links li:last-child {
  border-bottom: none;
}

.vcg-browse-links a {
  color: var(--vcg-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--vcg-transition);
}

.vcg-browse-links a:hover {
  color: var(--vcg-gold);
}

/* ═══════════════════════════════════════════════════
   SIDEBAR — Map
   ═══════════════════════════════════════════════════ */
.vcg-sidebar-map iframe {
  margin-top: 8px;
  border-radius: var(--vcg-radius);
}

/* ═══════════════════════════════════════════════════
   AGENT CARD (bottom of single listing)
   ═══════════════════════════════════════════════════ */
.vcg-listing-agent {
  background: var(--vcg-cream);
  border-top: 1px solid var(--vcg-border);
}

.vcg-agent-card-listing {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.vcg-agent-card-listing h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.vcg-agent-card-listing p {
  color: var(--vcg-text-light);
  margin-bottom: 20px;
  font-size: 15px;
}

.vcg-agent-names-listing {
  font-size: 1rem;
  margin-bottom: 12px;
}

.vcg-agent-names-listing strong {
  color: var(--vcg-black);
}

/* Tour CTA buttons — call/text/email */
.vcg-agent-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vcg-btn-tour-call,
.vcg-btn-tour-text,
.vcg-btn-tour-email {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--vcg-radius);
  font-family: var(--vcg-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--vcg-transition);
  border: 2px solid var(--vcg-black);
}

.vcg-btn-tour-call {
  background: var(--vcg-black);
  color: var(--vcg-white) !important;
}
.vcg-btn-tour-call:hover {
  background: var(--vcg-gold);
  border-color: var(--vcg-gold);
}

.vcg-btn-tour-text,
.vcg-btn-tour-email {
  background: transparent;
  color: var(--vcg-black) !important;
}
.vcg-btn-tour-text:hover,
.vcg-btn-tour-email:hover {
  background: var(--vcg-black);
  color: var(--vcg-white) !important;
}

.vcg-agent-contact-listing {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.vcg-agent-contact-listing a {
  color: var(--vcg-black);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.vcg-agent-contact-listing a:hover {
  color: var(--vcg-gold);
}

/* CTA Button (generic) */
.vcg-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--vcg-black);
  color: var(--vcg-white);
  text-decoration: none;
  font-family: var(--vcg-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--vcg-radius);
  border: 2px solid var(--vcg-black);
  transition: all var(--vcg-transition);
}

.vcg-cta-btn:hover {
  background: transparent;
  color: var(--vcg-black);
}

/* ═══════════════════════════════════════════════════
   FMLS DISCLAIMER
   ═══════════════════════════════════════════════════ */
.vcg-listing-disclaimer {
  background: var(--vcg-bg-subtle);
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--vcg-black);
  font-weight: 500;
  line-height: 1.6;
  border-top: 1px solid var(--vcg-border);
}

.vcg-mls-disclaimer-block {
  max-width: 760px;
  margin: 0 auto 16px;
}

.vcg-fmls-logo {
  height: 40px;
  width: auto;
  margin: 0 auto 14px;
  display: block;
}

.vcg-mls-disclaimer-text {
  color: var(--vcg-black);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.vcg-mls-disclaimer-text a {
  color: var(--vcg-black);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.vcg-mls-id {
  font-size: 12px;
  color: var(--vcg-text-light);
  margin-top: 12px;
}

/* FMLS 13.7(c) — Attribution (now placed inline below Property Details) */
.vcg-listing-attribution-inline {
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--vcg-bg-subtle);
  border-left: 3px solid var(--vcg-gold);
  border-radius: 4px;
}

.vcg-listing-attribution-inline p {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--vcg-text);
  line-height: 1.5;
}

.vcg-listing-attribution-inline p:last-child {
  margin-bottom: 0;
}

.vcg-listing-attribution-inline strong {
  color: var(--vcg-black);
  font-weight: 700;
}

/* MLS# on archive cards */
.vcg-listing-card-mls {
  font-size: 11px;
  color: var(--vcg-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* FMLS 13.8 — Technical Entity Disclosure */
.vcg-technical-entity {
  max-width: 760px;
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--vcg-border);
  font-size: 13px;
  color: var(--vcg-black);
  font-weight: 500;
  line-height: 1.6;
}

.vcg-technical-entity p {
  margin: 0;
}

.vcg-technical-entity a {
  color: var(--vcg-black);
  text-decoration: underline;
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   ARCHIVE / SEARCH PAGE
   ═══════════════════════════════════════════════════════════ */

/* ─── Dark Hero ─── */
.vcg-listings-archive-hero {
  background: var(--vcg-black);
  padding: 56px 24px 48px;
  text-align: center;
}

.vcg-listings-archive-hero h1 {
  color: var(--vcg-white);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.vcg-listings-archive-hero p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  margin: 0;
}

/* ─── Horizontal Filter Bar ─── */
/* ═══════════════════════════════════════════════════
   Listings page — Neuhaus-style filter card + sidebar
   ═══════════════════════════════════════════════════ */

.vcg-listings-archive-hero {
  padding: 48px 24px 16px;
  background: var(--vcg-white);
}
.vcg-listings-archive-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 6px;
  color: var(--vcg-black);
}
.vcg-listings-count {
  color: var(--vcg-text-light);
  font-size: 15px;
  margin: 0;
}

.vcg-listings-main { padding: 24px 24px 60px; background: var(--vcg-bg-subtle); }

/* Two-column layout: main + right sidebar */
.vcg-listings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1024px) {
  .vcg-listings-layout { grid-template-columns: 1fr; }
}
.vcg-listings-main-col { min-width: 0; }

/* ─── Filter Card ─── */
.vcg-listings-filter-card {
  background: var(--vcg-white);
  border: 1px solid var(--vcg-border);
  border-radius: var(--vcg-radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.vcg-filter-search-block { margin-bottom: 18px; }
.vcg-filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vcg-text-light);
  margin-bottom: 6px;
}
.vcg-filter-search-row-new {
  display: flex;
  gap: 8px;
}
.vcg-filter-search-input {
  flex: 1;
  padding: 12px 16px !important;
  border: 1px solid var(--vcg-border) !important;
  border-radius: var(--vcg-radius);
  font-size: 14px !important;
  font-family: var(--vcg-font-body);
  color: var(--vcg-text);
  background: var(--vcg-white);
  min-width: 0;
  max-width: none !important;
  width: 100% !important;
}
.vcg-filter-search-input:focus {
  outline: none;
  border-color: var(--vcg-gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}
.vcg-filter-search-btn {
  background: var(--vcg-black);
  color: var(--vcg-white);
  border: none;
  border-radius: var(--vcg-radius);
  padding: 0 20px;
  cursor: pointer;
  transition: background var(--vcg-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vcg-filter-search-btn:hover { background: var(--vcg-gold); }

/* Filters toggle button — outlined, matches search button height */
.vcg-filter-toggle-btn {
  background: var(--vcg-white);
  color: var(--vcg-black);
  border: 1px solid var(--vcg-border);
  border-radius: var(--vcg-radius);
  padding: 0 18px;
  cursor: pointer;
  transition: border-color var(--vcg-transition), color var(--vcg-transition), background var(--vcg-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--vcg-font-body);
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}
.vcg-filter-toggle-btn:hover {
  border-color: var(--vcg-gold);
  color: var(--vcg-gold);
}
.vcg-filter-toggle-btn svg { flex-shrink: 0; }
.vcg-filter-toggle-caret {
  transition: transform 0.2s ease;
  opacity: 0.6;
}
.vcg-filter-toggle-btn[aria-expanded="true"] .vcg-filter-toggle-caret {
  transform: rotate(180deg);
}

/* Collapsible filter panel */
.vcg-filter-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--vcg-border);
  animation: vcg-filter-slide-in 0.2s ease-out;
}
@keyframes vcg-filter-slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .vcg-filter-search-row-new {
    flex-wrap: wrap;
  }
  .vcg-filter-search-input { flex: 1 1 100%; }
  .vcg-filter-search-btn,
  .vcg-filter-toggle-btn { flex: 1 1 calc(50% - 4px); }
  .vcg-filter-toggle-btn { justify-content: center; }
}

.vcg-filter-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.vcg-filter-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) {
  .vcg-filter-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .vcg-filter-grid-4 { grid-template-columns: 1fr; }
}

.vcg-filter-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vcg-text-light);
  margin-bottom: 5px;
}
.vcg-filter-field input,
.vcg-filter-field select {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--vcg-border) !important;
  border-radius: var(--vcg-radius);
  font-size: 14px;
  font-family: var(--vcg-font-body);
  color: var(--vcg-text);
  background: var(--vcg-white);
}
.vcg-filter-field input:focus,
.vcg-filter-field select:focus {
  outline: none;
  border-color: var(--vcg-gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

.vcg-filter-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--vcg-border);
  margin-top: 14px;
}
.vcg-filter-btn-primary {
  background: var(--vcg-black);
  color: var(--vcg-white);
  border: 2px solid var(--vcg-black);
  border-radius: var(--vcg-radius);
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--vcg-transition);
}
.vcg-filter-btn-primary:hover {
  background: var(--vcg-gold);
  border-color: var(--vcg-gold);
  color: var(--vcg-black);
}
.vcg-filter-reset {
  font-size: 13px;
  color: var(--vcg-text-light);
  text-decoration: none;
  border-bottom: 1px dashed var(--vcg-text-light);
  transition: color 0.15s ease;
}
.vcg-filter-reset:hover {
  color: var(--vcg-black);
  border-bottom-color: var(--vcg-black);
}

/* ─── Right sidebar: Quick Searches column ─── */
.vcg-listings-sidebar { position: sticky; top: 100px; }
@media (max-width: 1024px) {
  .vcg-listings-sidebar { position: static; }
}
.vcg-listings-sidebar-card {
  background: var(--vcg-white);
  border: 1px solid var(--vcg-border);
  border-radius: var(--vcg-radius-lg);
  padding: 20px 22px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.vcg-sidebar-heading {
  font-family: var(--vcg-font-heading);
  font-size: 1.15rem;
  color: var(--vcg-black);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--vcg-border);
}
.vcg-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vcg-sidebar-list li { margin: 0; }
.vcg-sidebar-list a {
  display: block;
  padding: 9px 0;
  color: var(--vcg-black);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--vcg-bg-subtle);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.vcg-sidebar-list li:last-child a { border-bottom: none; }
.vcg-sidebar-list a:hover {
  color: var(--vcg-gold);
  padding-left: 6px;
}

/* Grid wrapper now lives inside main-col */
.vcg-listings-grid-wrap { /* container only; grid itself keeps its styles */ }

.vcg-filter-form {
  max-width: var(--vcg-max-width);
  margin: 0 auto;
}

/* (Legacy filter-search-row/label/wrap/input/btn rules removed —
   new rules for .vcg-filter-search-input/.vcg-filter-search-btn live
   near the top of this file under "Listings page — Neuhaus-style filter card") */

.vcg-filter-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.vcg-filter-row select,
.vcg-filter-row input {
  padding: 9px 14px;
  border: 1px solid var(--vcg-border) !important;
  border-radius: var(--vcg-radius);
  font-size: 13px;
  font-family: var(--vcg-font-body);
  color: var(--vcg-text);
  min-width: 110px;
  max-width: 180px;
  width: auto !important;
  background: var(--vcg-white);
  transition: border-color var(--vcg-transition);
}

.vcg-filter-row select:focus,
.vcg-filter-row input:focus {
  outline: none;
  border-color: var(--vcg-gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.1);
}

.vcg-filter-row input[type="number"] {
  width: 110px !important;
}

.vcg-filter-btn {
  padding: 9px 24px;
  background: var(--vcg-black);
  color: var(--vcg-white);
  border: 2px solid var(--vcg-black);
  border-radius: var(--vcg-radius);
  font-family: var(--vcg-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--vcg-transition);
}

.vcg-filter-btn:hover {
  background: transparent;
  color: var(--vcg-black);
}

.vcg-filter-reset {
  padding: 9px 16px;
  background: transparent;
  color: var(--vcg-text-light);
  border: 1px solid var(--vcg-border);
  border-radius: var(--vcg-radius);
  font-family: var(--vcg-font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--vcg-transition);
}

.vcg-filter-reset:hover {
  border-color: var(--vcg-text-light);
  color: var(--vcg-text);
}

/* Results Bar */
.vcg-listings-results-bar {
  padding: 12px 24px;
  font-size: 13px;
  color: var(--vcg-text-light);
  border-bottom: 1px solid var(--vcg-border);
  background: var(--vcg-bg-subtle);
}

.vcg-listings-results-bar strong {
  color: var(--vcg-black);
  font-weight: 700;
}

/* ─── Card Grid ─── */
.vcg-listings-grid-section {
  padding: 40px 24px;
  background: var(--vcg-white);
}

.vcg-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--vcg-max-width);
  margin: 0 auto;
}

.vcg-listing-card {
  text-decoration: none;
  color: var(--vcg-text);
  border-radius: var(--vcg-radius);
  overflow: hidden;
  border: 1px solid var(--vcg-border);
  transition: transform var(--vcg-transition), box-shadow var(--vcg-transition);
  background: var(--vcg-white);
  display: block;
}

.vcg-listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.vcg-listing-card-image {
  position: relative;
  height: 210px;
  background: var(--vcg-border);
  overflow: hidden;
}

.vcg-listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vcg-listing-card:hover .vcg-listing-card-image img {
  transform: scale(1.03);
}

.vcg-listing-card-image .vcg-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.vcg-listing-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--vcg-text-light);
  font-size: 13px;
  background: var(--vcg-border);
}

.vcg-listing-card-info {
  padding: 16px 18px;
}

.vcg-listing-card-price {
  font-family: var(--vcg-font-heading);
  font-size: 1.2rem;
  color: var(--vcg-black);
  display: block;
  margin-bottom: 4px;
}

.vcg-listing-card-info h3 {
  font-family: var(--vcg-font-body);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 2px;
  color: var(--vcg-text);
  line-height: 1.4;
}

.vcg-listing-card-location {
  font-size: 13px;
  color: var(--vcg-text-light);
  margin: 0 0 8px;
}

.vcg-listing-card-stats {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--vcg-text-light);
  padding-top: 8px;
  border-top: 1px solid var(--vcg-border-light);
}

.vcg-listing-card-stats span {
  font-weight: 600;
  color: var(--vcg-text);
}

/* ─── Pagination ─── */
.vcg-pagination {
  text-align: center;
  margin-top: 40px;
  padding-bottom: 16px;
}

.vcg-pagination a,
.vcg-pagination span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border-radius: var(--vcg-radius);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--vcg-transition);
}

.vcg-pagination a {
  border: 1px solid var(--vcg-border);
  color: var(--vcg-text);
  background: var(--vcg-white);
}

.vcg-pagination a:hover {
  background: var(--vcg-bg-subtle);
  border-color: var(--vcg-text-light);
  color: var(--vcg-black);
}

.vcg-pagination .current {
  background: var(--vcg-black);
  color: var(--vcg-white);
  border: 1px solid var(--vcg-black);
}

.vcg-pagination .dots {
  border: none;
  color: var(--vcg-text-light);
}

.vcg-no-results {
  text-align: center;
  padding: 64px 24px;
  color: var(--vcg-text-light);
  font-size: 16px;
}

.vcg-no-results h2 {
  margin-bottom: 12px;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 768px (tablet)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Stack two-column layout */
  .vcg-listing-columns {
    grid-template-columns: 1fr !important;
  }

  .vcg-listing-main {
    border-right: none;
  }

  .vcg-listing-sidebar {
    position: static !important;
    padding: 24px;
    max-height: none;
    overflow-y: visible;
  }

  /* Hero stacks */
  .vcg-listing-hero-top {
    flex-direction: column;
  }

  .vcg-listing-hero-price {
    text-align: left;
  }

  /* Mortgage calc stacks */
  .vcg-calc-grid {
    grid-template-columns: 1fr;
  }

  .vcg-calc-inputs {
    grid-template-columns: 1fr;
  }

  /* Details grid single column */
  .vcg-details-grid {
    grid-template-columns: 1fr;
  }

  /* Section padding reduced */
  .vcg-section {
    padding: 40px 20px;
  }

  /* Archive hero */
  .vcg-listings-archive-hero {
    padding: 40px 20px 32px;
  }

  /* Card grid 2 col */
  .vcg-listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  /* Schools grid */
  .vcg-schools-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 600px (mobile)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* Quick stats wrap tighter */
  .vcg-listing-quick-stats {
    gap: 20px;
  }

  /* Filter bar stacks vertically */
  .vcg-filter-row {
    flex-direction: column !important;
  }

  .vcg-filter-row select,
  .vcg-filter-row input {
    width: 100% !important;
    max-width: none !important;
    min-width: auto !important;
  }

  .vcg-filter-btn,
  .vcg-filter-reset {
    width: 100%;
  }

  /* Features single column */
  .vcg-features-columns {
    grid-template-columns: 1fr;
  }

  /* Card grid single column */
  .vcg-listings-grid {
    grid-template-columns: 1fr;
  }

  /* Schools single column */
  .vcg-schools-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery thumbs smaller */
  .vcg-thumb {
    width: 56px;
    height: 40px;
  }

  /* Agent card padding */
  .vcg-agent-card-listing {
    padding: 0 8px;
  }

  /* Share buttons tighter */
  .vcg-share-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  /* Sidebar card padding */
  .vcg-sidebar-card {
    padding: 20px 16px;
  }

  /* Listing card image shorter on mobile */
  .vcg-listing-card-image {
    height: 180px;
  }

  /* Pagination smaller */
  .vcg-pagination a,
  .vcg-pagination span {
    padding: 6px 10px;
    font-size: 12px;
  }
}


/* ═══════════════════════════════════════════════════
   Mobile sticky CTA bar — single listing pages only
   Desktop hides this entirely (sidebar has the CTAs)
   ═══════════════════════════════════════════════════ */

.vcg-listing-mobile-cta {
  display: none !important; /* hidden ≥768px; shown on mobile */
}

@media (max-width: 767px) {
  .vcg-listing-mobile-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999; /* above WP admin bar (32), above WP Rocket lazyload (~99) */
    padding: 10px 12px;
    /* Respect iOS safe area without relying on calc() that older Safari chokes on */
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: #ffffff; /* solid fallback for older Safari where backdrop-blur fails */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    /* Progressive enhancement — translucent blur only where supported */
  }
  @supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    .vcg-listing-mobile-cta {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
  }

  /* Reserve bottom space so the bar never overlaps page content. Applied via
     a high-specificity selector that doesn't require a specific body class. */
  body:has(.vcg-listing-mobile-cta) {
    padding-bottom: 80px;
  }
  /* Fallback for browsers without :has() — scope to listing post type class that WP emits */
  .single-listing,
  .postid-listing {
    padding-bottom: 80px;
  }
}

.vcg-mobile-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--vcg-font-body, 'Raleway', system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap; /* no wrapping on narrow phones */
  line-height: 1.1;
  box-sizing: border-box;
  border: 0;
  cursor: pointer;
}
.vcg-mobile-cta-btn:active { transform: scale(0.98); }

.vcg-mobile-cta-primary {
  background: #D4A84B; /* explicit values — no var() fallback dependency */
  color: #231F20 !important; /* override any theme link color cascades */
  box-shadow: 0 2px 8px rgba(212, 168, 75, 0.35);
}
.vcg-mobile-cta-primary:hover,
.vcg-mobile-cta-primary:focus,
.vcg-mobile-cta-primary:visited {
  color: #231F20 !important;
  background: #c89a3d;
}

.vcg-mobile-cta-secondary {
  background: #231F20;
  color: #ffffff !important;
}
.vcg-mobile-cta-secondary:hover,
.vcg-mobile-cta-secondary:focus,
.vcg-mobile-cta-secondary:visited {
  color: #ffffff !important;
  background: #3a3333;
}

.vcg-mobile-cta-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  /* Force visible stroke regardless of inherited color rules */
  stroke: currentColor;
  fill: none;
}

/* Narrow phones: shrink label slightly so both buttons fit comfortably */
@media (max-width: 360px) {
  .vcg-mobile-cta-btn {
    font-size: 11px;
    padding: 10px 8px;
    gap: 4px;
  }
  .vcg-mobile-cta-btn svg { width: 14px; height: 14px; }
}
