/* =============================================================
   Real Hodge MLS Plugin — Listing Card Styles
   v2.1 | Brand: #1496d4 Blue | #d4af35 Gold | #c1c0c0 Silver
   ============================================================= */

/* ---- Grid ---- */
.rhg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 8px 0 32px;
}
@media (max-width: 1100px) {
    .rhg-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
    .rhg-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* Featured / homepage — 2-col */
.rhg-grid-featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
@media (max-width: 700px) {
    .rhg-grid-featured { grid-template-columns: 1fr; }
}

/* ---- Card ---- */
.rhg-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .22s ease, transform .22s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.rhg-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

/* ---- Photo ---- */
.rhg-card-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 180px;
    overflow: hidden;
    background: #e8f4fb;
    position: relative;
    flex-shrink: 0;
}
.rhg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}
.rhg-card:hover .rhg-card-img img {
    transform: scale(1.04);
}
.rhg-card-img-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 220px;
    background: linear-gradient(135deg, #e8f4fb 0%, #d0e9f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1496d4;
    font-size: 3rem;
}

/* ---- Badge (status pill) ---- */
.rhg-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1496d4;
    color: #fff;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 12px;
    border-radius: 20px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* ---- Card Body ---- */
.rhg-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

/* ---- Price ---- */
.rhg-price {
    font-family: 'Trajan Pro', 'Times New Roman', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #1496d4;
    line-height: 1.2;
    letter-spacing: -.01em;
}

/* ---- Address ---- */
.rhg-address {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: .9rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* ---- Meta row (beds / baths / sqft) ---- */
.rhg-meta {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: .88rem;
    color: #444;
    margin-top: 4px;
    flex-wrap: wrap;
}
.rhg-meta span {
    display: inline-flex;
    align-items: center;
    padding-right: 10px;
    margin-right: 10px;
    border-right: 1px solid #d0d0d0;
    line-height: 1.3;
}
.rhg-meta span:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}
.rhg-meta strong {
    color: #1a1a1a;
    font-weight: 700;
    margin-right: 3px;
}

/* ---- Search Wrap ---- */
.rhg-search-wrap {
    background: #f5fafd;
    border: 1px solid #c1c0c0;
    border-radius: 10px;
    padding: 24px 20px;
    margin-bottom: 28px;
}
.rhg-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rhg-form-row { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.rhg-form-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.rhg-form-group label { font-size: .82rem; font-weight: 600; color: #444; }
.rhg-form-group input,
.rhg-form-group select {
    padding: 9px 12px;
    border: 1px solid #c1c0c0;
    border-radius: 6px;
    font-size: .9rem;
    color: #333;
    background: #fff;
}
.rhg-form-group input:focus,
.rhg-form-group select:focus {
    outline: none;
    border-color: #1496d4;
    box-shadow: 0 0 0 3px rgba(20,150,212,.12);
}
.rhg-form-btn { display: flex; align-items: flex-end; }

/* ---- Buttons ---- */
.rhg-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #1496d4;
    color: #fff;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    letter-spacing: .02em;
}
.rhg-btn:hover { background: #0f7eb5; color: #fff; text-decoration: none; }

/* ---- Pagination ---- */
.rhg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 0 8px;
    flex-wrap: wrap;
}
.rhg-page-btn {
    padding: 7px 14px;
    border: 1px solid #c1c0c0;
    border-radius: 6px;
    background: #fff;
    color: #444;
    font-size: .88rem;
    cursor: pointer;
    transition: all .18s;
}
.rhg-page-btn:hover { border-color: #1496d4; color: #1496d4; }
.rhg-page-btn.active {
    background: #1496d4;
    border-color: #1496d4;
    color: #fff;
    font-weight: 700;
}

/* ---- States ---- */
.rhg-loading {
    text-align: center;
    padding: 48px 0;
    color: #1496d4;
    font-size: 1.1rem;
}
.rhg-no-results {
    text-align: center;
    padding: 48px 0;
    color: #888;
    font-size: 1rem;
}


/* ================================================
   MOBILE — iOS zoom prevention + touch targets
   ================================================ */

.rhg-search-bar input,
.rhg-search-bar select,
.rhg-filters input,
.rhg-filters select,
.rhg-contact-form input,
.rhg-contact-form select,
.rhg-contact-form textarea {
    font-size: 16px;
}

.rhg-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .rhg-search-bar {
        flex-direction: column;
        gap: 10px;
    }
    .rhg-search-bar input,
    .rhg-search-bar select {
        width: 100%;
        font-size: 16px;
    }
    .rhg-search-bar .rhg-btn {
        width: 100%;
    }
    .rhg-filters {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .rhg-filters {
        grid-template-columns: 1fr;
    }
    .rhg-price {
        font-size: 1.3rem;
    }
}

/* === Sidebar card layout: 1-col in map view === */
#rhg-map-sidebar .rhg-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 4px 0 16px;
}
#rhg-map-sidebar .rhg-card-img-wrap,
#rhg-map-sidebar .rhg-card-img {
  min-height: 140px;
  aspect-ratio: 16/9;
}
#rhg-map-sidebar .rhg-card-body {
  padding: 10px 12px 12px;
}
#rhg-map-sidebar .rhg-price {
  font-size: 1.1rem;
}
#rhg-map-sidebar .rhg-address {
  font-size: 0.78rem;
}
#rhg-map-sidebar .rhg-meta {
  font-size: 0.75rem;
}

/* === Badge visible with brand color === */
.rhg-badge {
  display: inline-block;
  background: #1496d4;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

/* === Featured cards on home/commercial/international === */
.rhg-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 8px 0 32px;
}
.rhg-featured-grid .rhg-card-img-wrap,
.rhg-featured-grid .rhg-card-img {
  min-height: 200px;
  aspect-ratio: 3/2;
}
.rhg-grid-featured .rhg-card-img-wrap,
.rhg-grid-featured .rhg-card-img {
  min-height: 200px;
  aspect-ratio: 3/2;
}
.rhg-grid-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
  padding: 8px 0 32px;
}

/* === List view full-width grid === */
#rhg-results .rhg-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .rhg-grid-featured, .rhg-featured-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #rhg-results .rhg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rhg-grid-featured, .rhg-featured-grid, #rhg-results .rhg-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ==========================================
   PHP Card Styles (rhg-commercial, rhg-moving-abroad, rhg-foreign-nationals)
   ========================================== */

/* Card link wrapper */
.rhg-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .22s, transform .22s;
  cursor: pointer;
}
.rhg-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

/* Photo wrap — constrains image height */
.rhg-card-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e8f4fb;
  flex-shrink: 0;
  max-height: 240px;
}
.rhg-card-photo-wrap img,
.rhg-card-photo,
.rhg-card-photo-wrap .rhg-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s;
}
.rhg-card:hover .rhg-card-photo {
  transform: scale(1.04);
}
.rhg-card-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: #e8ecf0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: .85rem;
}

/* Badge overlay on photo */
.rhg-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #1496d4;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 8px;
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
}

/* Card body */
.rhg-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.rhg-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1496d4;
  margin: 0;
}
.rhg-card-addr {
  font-size: .82rem;
  color: #444;
  line-height: 1.35;
  margin: 0;
}
.rhg-card-city {
  font-size: .78rem;
  color: #777;
  margin: 0;
}
.rhg-card-meta {
  font-size: .78rem;
  color: #888;
  margin-top: 2px;
}

/* Featured grids — fix sizing */
.rhg-grid-featured {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  padding: 8px 0 32px !important;
}
.rhg-grid-featured .rhg-card-photo-wrap {
  max-height: 220px;
  aspect-ratio: 16 / 10;
}

/* Home page featured — make section full content width */
.rhg-featured-wrap {
  width: 100%;
  max-width: 100%;
}

/* Badge inside .rhg-badge class (from JS rendered cards) */
.rhg-badge {
  display: inline-block !important;
  background: #1496d4 !important;
  color: #fff !important;
  font-size: .62rem !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  margin-bottom: 6px !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .rhg-grid-featured { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 580px) {
  .rhg-grid-featured { grid-template-columns: 1fr !important; }
}
/* === Sidebar card improvements === */
/* Compact image height in sidebar */
.rhg-sidebar-card img,
.rhg-sidebar-card .rhg-map-preview img {
  width: 100%;
  height: 130px !important;
  object-fit: cover;
  display: block;
}
.rhg-sidebar-card .rhg-map-preview {
  height: 130px;
  overflow: hidden;
}

/* Sidebar badge — property type */
.rhg-sidebar-badge {
  display: inline-block;
  background: #1496d4;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 4px;
  white-space: nowrap;
}

/* Sidebar info box — tighter */
.rhg-sidebar-info {
  padding: 8px 12px 10px !important;
}
.rhg-sidebar-price {
  font-size: 1rem !important;
}
.rhg-sidebar-addr {
  font-size: .77rem !important;
  line-height: 1.3 !important;
}
.rhg-sidebar-meta {
  font-size: .72rem !important;
  margin-bottom: 4px !important;
}
.rhg-sidebar-view {
  font-size: .78rem !important;
  font-weight: 600 !important;
}

/* Map preview image wrapper */
.rhg-map-preview {
  position: relative;
  overflow: hidden;
}
.rhg-card-no-photo,
.rhg-sidebar-no-img {
  height: 130px;
  background: linear-gradient(135deg, #e8f4fb 0%, #d4e8f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: .8rem;
}
/* === Home page / featured section: nested grid fix === */
/* The featured shortcode wraps cards in rhg-grid inside rhg-featured-grid.
   Override so the inner grid spans all columns of the outer wrapper. */
.rhg-featured-grid > .rhg-grid,
.rhg-grid-featured > .rhg-grid {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* When rhg-grid IS the featured grid (direct output), ensure 3 cols */
.listings-section .rhg-grid,
.section .rhg-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
}

/* Ensure the outer featured wrapper does NOT create grid layout conflicts */
.rhg-featured-grid:not(.rhg-grid) {
  display: block;
}

/* Card image proper height on home/content pages */
.rhg-card-img {
  min-height: 160px !important;
  max-height: 220px;
  aspect-ratio: 3 / 2;
}
/* ============================================================
   POPUP PHOTO SLIDER — Arrow overlay fix (definitive)
   ============================================================ */
.rhg-photo-slider {
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
  line-height: 0;
}
.rhg-popup-img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
  transition: opacity .2s;
}
.rhg-photo-prev,
.rhg-photo-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(0,0,0,0.52) !important;
  color: #fff !important;
  border: none !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  font-size: 16px !important;
  cursor: pointer !important;
  z-index: 999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  margin: 0 !important;
  transition: background .18s !important;
}
.rhg-photo-prev { left: 8px !important; }
.rhg-photo-next { right: 8px !important; }
.rhg-photo-prev:hover,
.rhg-photo-next:hover { background: rgba(0,0,0,0.78) !important; }
.rhg-photo-dots {
  position: absolute !important;
  bottom: 7px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 5px !important;
  z-index: 10 !important;
}
.rhg-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.5) !important;
}
.rhg-dot.active { background: #fff !important; }

/* ============================================================
   SIDEBAR CARDS — Width limit
   ============================================================ */
#rhg-map-sidebar {
  max-width: 420px;
  overflow-y: auto;
  overflow-x: hidden;
}
#rhg-map-sidebar .rhg-sidebar-card {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
}

/* ============================================================
   CONTENT PAGE SECTIONS — Properties Beyond Borders & South Florida for International Buyers
   Used by template-content.php sub-pages
   ============================================================ */

/* Base section wrapper */
.rhg-page-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Alt section — gray background strip */
.rhg-page-section-alt {
  background: #f7f9fc;
}

/* Hero tagline below page title */
.rhg-hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.6;
}

/* Destination tag chips */
.rhg-destination-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.rhg-destination-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Gold callout box */
.rhg-callout-gold {
  background: linear-gradient(135deg, #fffbf0 0%, #fef6e0 100%);
  border-left: 4px solid #d4af35;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
}

.rhg-callout-gold h3 {
  font-family: "Trajan Pro", Georgia, serif;
  color: #0B1D3A;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.rhg-callout-gold p {
  color: #555;
  font-size: .97rem;
  line-height: 1.75;
  margin: 0;
}

/* CTA Banner */
.rhg-cta-banner {
  background: #1496d4;
  color: #fff;
  text-align: center;
  padding: 64px 40px;
}

.rhg-cta-banner h2 {
  color: #fff;
  font-family: "Trajan Pro", Georgia, serif;
  font-size: 1.8rem;
  margin: 0 0 16px;
}

.rhg-cta-banner p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin: 0 0 24px;
  line-height: 1.7;
}

/* Gold button */
.rhg-btn-gold {
  background: #d4af35;
  color: #fff;
  padding: 14px 36px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  letter-spacing: .03em;
  transition: background .2s;
}

.rhg-btn-gold:hover {
  background: #b8963a;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .rhg-page-section {
    padding: 40px 20px;
  }
  .rhg-destination-tags {
    gap: 8px;
  }
  .rhg-destination-tag {
    font-size: .82rem;
    padding: 4px 12px;
  }
  .rhg-cta-banner {
    padding: 48px 24px;
  }
  .rhg-cta-banner h2 {
    font-size: 1.4rem;
  }
}

/* ====== FAVORITES — Phase 3 ====== */

/* Heart button on cards */
.rhg-card { position: relative; }
.rhg-card-img-wrap { position: relative; }
.rhg-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.95);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #c1c0c0;
  padding: 8px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rhg-heart-btn:hover { color: #1496d4; transform: scale(1.08); background: #fff; }
.rhg-heart-btn.is-filled { color: #d4af35; }
.rhg-heart-btn.is-filled:hover { color: #b8932a; }
.rhg-heart-btn svg { width: 22px; height: 22px; display: block; }

/* Modal overlay */
.rhg-fav-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: rhg-fade-in 0.2s ease;
}
.rhg-fav-modal-overlay.is-open { display: flex; }
@keyframes rhg-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rhg-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.rhg-fav-modal {
  background: #fff;
  max-width: 480px;
  width: 100%;
  border-radius: 4px;
  padding: 44px 40px 36px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.32);
  animation: rhg-slide-up 0.25s ease;
}
.rhg-fav-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0;
  font-size: 28px; line-height: 1;
  color: #999; cursor: pointer;
  width: 32px; height: 32px;
  padding: 0;
}
.rhg-fav-modal-close:hover { color: #333; }
.rhg-fav-modal-header { text-align: center; margin-bottom: 20px; }
.rhg-fav-modal-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px; letter-spacing: 6px;
  color: #1496d4; font-weight: 400;
}
.rhg-fav-modal-accent {
  width: 48px; height: 2px;
  background: #d4af35;
  margin: 12px auto 0;
}
.rhg-fav-modal h2 {
  font-family: Georgia, 'Noto Serif', 'Times New Roman', serif;
  font-size: 24px; font-weight: 400;
  margin: 0 0 14px;
  text-align: center; color: #1a1a1a;
  line-height: 1.3;
}
.rhg-fav-modal > p {
  text-align: center; color: #666;
  line-height: 1.55; margin: 0 0 24px;
  font-size: 14px;
}
.rhg-fav-modal-form { margin: 0; }
.rhg-fav-modal-form input[type=email],
.rhg-fav-signin-form input[type=email] {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 16px;
  box-sizing: border-box;
  font-family: inherit;
}
.rhg-fav-modal-form input[type=email]:focus,
.rhg-fav-signin-form input[type=email]:focus {
  outline: 0; border-color: #1496d4;
}
.rhg-fav-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.rhg-fav-consent {
  display: flex; gap: 8px;
  align-items: flex-start;
  margin-bottom: 20px;
  cursor: pointer;
}
.rhg-fav-consent input[type=checkbox] {
  margin-top: 4px; flex-shrink: 0;
}
.rhg-fav-consent-text {
  font-size: 11px; color: #666;
  line-height: 1.55;
}
.rhg-fav-consent-text a {
  color: #1496d4; text-decoration: underline;
}
.rhg-fav-modal-form button[type=submit],
.rhg-fav-signin-form button[type=submit] {
  width: 100%;
  background: #1496d4;
  color: #fff; border: 0;
  padding: 14px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.rhg-fav-modal-form button[type=submit]:hover,
.rhg-fav-signin-form button[type=submit]:hover {
  background: #0f7eb3;
}
.rhg-fav-modal-form button[type=submit]:disabled,
.rhg-fav-signin-form button[type=submit]:disabled {
  opacity: 0.5; cursor: wait;
}
.rhg-fav-form-error {
  color: #c33; font-size: 13px;
  margin-top: 12px; text-align: center;
}
.rhg-fav-modal-success { text-align: center; padding: 8px 0; }
.rhg-fav-success-icon {
  width: 56px; height: 56px;
  background: #d4af35; color: #fff;
  border-radius: 50%;
  font-size: 30px; line-height: 56px;
  margin: 0 auto 18px;
}
.rhg-fav-modal-success h3 {
  font-family: Georgia, serif;
  font-weight: 400; font-size: 22px;
  margin: 0 0 12px; color: #1a1a1a;
}
.rhg-fav-modal-success p {
  color: #666; line-height: 1.55;
  font-size: 14px; margin: 0 0 24px;
}

/* Toast notification */
.rhg-fav-toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a1a; color: #fff;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 14px;
  z-index: 100000;
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 90vw;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.rhg-fav-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* My Favorites page */
.rhg-favorites-page {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
  min-height: 400px;
}
.rhg-fav-loading {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  font-size: 15px;
}
.rhg-fav-welcome-banner {
  background: #f0f9ff;
  border: 1px solid #1496d4;
  color: #0d5a82;
  padding: 14px 20px;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
}
.rhg-fav-empty-state {
  text-align: center;
  padding: 56px 24px;
  background: #f5f3ef;
  border-radius: 6px;
  max-width: 520px;
  margin: 0 auto;
}
.rhg-fav-empty-icon { margin-bottom: 16px; }
.rhg-fav-empty-state h2 {
  font-family: Georgia, 'Noto Serif', serif;
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 12px;
  color: #1a1a1a;
}
.rhg-fav-empty-state > p {
  color: #666; line-height: 1.55;
  margin: 0 0 28px; font-size: 14px;
}
.rhg-fav-signin-form {
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}
.rhg-fav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.rhg-fav-header h1 {
  font-family: Georgia, 'Noto Serif', serif;
  font-weight: 400;
  font-size: 32px;
  margin: 0;
  color: #1a1a1a;
}
.rhg-fav-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.rhg-fav-buyer-email { color: #666; }
.rhg-fav-signout-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #666;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.rhg-fav-signout-btn:hover {
  border-color: #1496d4;
  color: #1496d4;
}
.rhg-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.rhg-fav-item {
  position: relative;
  transition: opacity 0.2s ease;
}
.rhg-fav-item.is-removing { opacity: 0.4; }
.rhg-fav-empty-list {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}
.rhg-fav-browse-btn {
  display: inline-block;
  margin-top: 16px;
  background: #1496d4;
  color: #fff;
  padding: 12px 28px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
}
.rhg-fav-browse-btn:hover { background: #0f7eb3; color: #fff; }

/* Responsive */
@media (max-width: 600px) {
  .rhg-fav-modal { padding: 36px 24px 28px; }
  .rhg-fav-modal h2 { font-size: 20px; }
  .rhg-fav-header h1 { font-size: 24px; }
  .rhg-favorites-page { margin: 24px auto 60px; }
}


/* ============================================================
   HOMEPAGE TESTIMONIALS FIX — April 30, 2026
   Bug: SVG stars had no width set and were expanding to 800px
   each (container width). Slider also failed to initialize, so
   only one testimonial-item was rendering, stretched to 4358px.
   Fix: convert to a 3-column responsive grid + constrain SVG stars.
   ============================================================ */

.testimonials-section .testimonials-slider {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    margin: 40px auto 0 !important;
    padding: 0 16px;
}

.testimonials-section .testimonial-item,
.testimonials-section .testimonial-item.active {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    height: auto !important;
    min-height: 240px;
    background: #ffffff !important;
    border: 1px solid #e8e4d8 !important;
    border-radius: 6px !important;
    padding: 32px 28px !important;
    box-shadow: 0 2px 14px rgba(20, 150, 212, 0.06) !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    position: relative !important;
}

/* Constrain stars: small horizontal row at top of each card */
.testimonials-section .testimonial-item svg {
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 1px 14px 0 !important;
    flex-shrink: 0 !important;
    color: #d4af35 !important;
    fill: #d4af35 !important;
}

/* Quote text — luxury serif treatment */
.testimonials-section .testimonial-item p {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #4a4a4a !important;
    margin: 0 0 20px 0 !important;
    font-style: italic;
    flex-grow: 1;
}

/* Author block — pushed to bottom of card */
.testimonials-section .testimonial-item .author,
.testimonials-section .testimonial-item .author-info,
.testimonials-section .testimonial-item .testimonial-author,
.testimonials-section .testimonial-item footer {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid #f0ede5 !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 13px !important;
    color: #1a1a1a !important;
}

/* Mobile: single column */
@media (max-width: 900px) {
    .testimonials-section .testimonials-slider {
        grid-template-columns: 1fr !important;
        max-width: 500px !important;
    }
}


/* ============================================================
   HERO READABILITY FIX — April 30, 2026
   The .hero-slideshow has bright backgrounds (pool/sky) that
   washed out the white text. Add a dark overlay + text shadow.
   Also hide leftover .testimonial-dot pagination buttons since
   the slider has been replaced with a static 3-column grid.
   ============================================================ */

.hero {
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.20) 50%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
}

.hero .hero-content h1 {
    text-shadow: 0 4px 18px rgba(0,0,0,0.35) !important;
}

.hero .hero-content p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45) !important;
    font-weight: 400 !important;
}

.hero .hero-eyebrow {
    color: #e8c352 !important;
    letter-spacing: 4px !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4) !important;
}

/* Hide leftover slider pagination dots */
.testimonials-section .testimonial-dots,
.testimonials-section .testimonial-dot,
.testimonials-section .swiper-pagination,
.testimonials-section [class*="pagination"] {
    display: none !important;
}


/* ============================================ */
/* TESTIMONIAL_FIX_V1 — Fix giant star bug      */
/* ============================================ */
.testimonials-section .testimonial-item {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.testimonials-section .testimonial-item:not(:first-child) {
    display: none;
}
.testimonials-section .testimonial-item.active {
    display: block !important;
}
.testimonials-section .testimonial-item svg {
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    vertical-align: middle;
    color: #d4af35;
    fill: currentColor;
    margin: 0 1px;
}
.testimonials-section .testimonial-item .stars,
.testimonials-section .testimonial-item [class*="star"]:not(svg) {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-bottom: 18px;
    width: auto !important;
    max-width: 140px;
    line-height: 1;
}
.testimonials-section .testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    width: 100% !important;
}
.testimonials-section blockquote,
.testimonials-section .testimonial-item p {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 20px;
    border: none;
    padding: 0;
}
.testimonials-section .testimonial-author,
.testimonials-section cite {
    font-style: normal;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 8px;
}
.testimonials-section .testimonial-role,
.testimonials-section .testimonial-meta {
    font-style: normal;
    font-family: Helvetica, Arial, sans-serif;
    color: #888;
    font-size: 13px;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
}

/* ============================================ */
/* HERO_READABILITY_V1 — Improve hero contrast  */
/* ============================================ */
.hero-section::after,
.home .hero::after,
section.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
    z-index: 1;
}
.hero-section .container,
.home .hero .container,
section.hero .container {
    position: relative;
    z-index: 2;
}
.hero-section h1,
.home .hero h1,
section.hero h1 {
    text-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
}
.hero-section .section-label,
.home .hero .section-label,
.hero-section .hero-label {
    color: #ffd54a !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    font-weight: 600 !important;
    letter-spacing: 4px;
}
.hero-section .hero-subtitle,
.home .hero p,
section.hero p {
    color: #fff !important;
    text-shadow: 0 1px 12px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
    font-weight: 400;
}


/* ============================================ */
/* PAGE_HERO_FIX_V1 — Inner page hero readability */
/* ============================================ */
.page-hero {
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 1;
}
.page-hero > * {
    position: relative;
    z-index: 2;
}
.page-hero h1,
.page-hero .page-title {
    color: #fff !important;
    text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.35);
}
.page-hero p,
.page-hero .page-subtitle,
.page-hero .hero-subtitle {
    color: #fff !important;
    text-shadow: 0 1px 14px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
    font-weight: 400;
    opacity: 1;
}
.page-hero .breadcrumbs,
.page-hero .breadcrumb {
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    opacity: 0.95;
}
.page-hero .breadcrumbs a,
.page-hero .breadcrumb a {
    color: #ffd54a !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}


/* ========================================================== */
/* RHG: testimonials & home hero refinement v1                */
/* ========================================================== */

/* --- Homepage testimonials: kill broken slider, fix stars --- */
.testimonials-section .testimonials-slider {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 48px auto 0 !important;
    padding: 0 16px;
    width: auto !important;
    height: auto !important;
}
.testimonials-section .testimonial-item,
.testimonials-section .testimonial-item.active {
    display: block !important;
    width: auto !important;
    height: auto !important;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
}
.testimonials-section .testimonial-stars {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px;
    margin-bottom: 18px !important;
    height: auto !important;
    width: auto !important;
    max-width: 130px;
}
.testimonials-section .testimonial-stars svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px;
    color: #d4af35;
    fill: currentColor;
    display: inline-block !important;
}
.testimonials-section .testimonial-stars svg polygon {
    fill: #d4af35;
}
@media (max-width: 768px) {
    .testimonials-section .testimonials-slider {
        grid-template-columns: 1fr !important;
    }
}

/* --- Home hero readability: darken overlay, brighten gold tagline --- */
.hero-section::before,
.home .hero::before {
    background: linear-gradient(180deg, rgba(20,150,212,0.35) 0%, rgba(0,0,0,0.30) 100%) !important;
}
.hero-section .hero-tagline,
.home .hero .pre-headline,
.home .hero [class*="tagline"] {
    color: #f5d76e !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.55) !important;
    letter-spacing: 4px;
}
.hero-section .hero-subtitle,
.home .hero p {
    text-shadow: 0 1px 10px rgba(0,0,0,0.55) !important;
    color: #ffffff !important;
}
