/* ============================================================
   HomeHealthCareList.com — Main Stylesheet
   Colors pulled directly from logo:
   Navy:  #1B3A6B  |  Green: #4CAF50  |  Blue: #5B9BD5
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:        #1B3A6B;
  --navy-dark:   #122952;
  --navy-light:  #2A4F8A;
  --green:       #4CAF50;
  --green-dark:  #388E3C;
  --green-light: #EDF7EE;
  --blue:        #5B9BD5;
  --blue-light:  #EBF4FC;
  --bg:          #F8FAFB;
  --white:       #FFFFFF;
  --text:        #1C2B3A;
  --text-mid:    #4A5568;
  --text-mute:   #718096;
  --border:      rgba(27,58,107,0.12);
  --border-mid:  rgba(27,58,107,0.22);
  --shadow-sm:   0 1px 4px rgba(27,58,107,0.08);
  --shadow-md:   0 4px 16px rgba(27,58,107,0.10);
  --shadow-lg:   0 8px 32px rgba(27,58,107,0.13);
  --radius:      10px;
  --radius-lg:   16px;
  --radius-pill: 50px;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
  --transition:  all 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: var(--font-body); }

/* ── Utility ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--text-mid); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 24px; border-radius: var(--radius-pill); font-family: var(--font-head); font-size: 14px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: var(--transition); white-space: nowrap; }
.btn-green  { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover  { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-navy   { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover   { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-green { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline-green:hover { background: var(--green-light); }
.btn-outline-navy  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover  { background: var(--blue-light); }
.btn-outline-grey  { background: transparent; color: var(--text-mute); border-color: var(--border-mid); }
.btn-outline-grey:hover  { background: #f0f0f0; }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ── Badges / Tags ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-blue  { background: var(--blue-light); color: #1a5fa0; }
.badge-navy  { background: var(--navy); color: #fff; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-gold  { background: #FFF8E1; color: #B7791F; }

.tag { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: 11px; padding: 3px 9px; border-radius: var(--radius-pill); font-weight: 500; }

/* ── Verified badges ── */
.dot-verified   { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 4px; }
.dot-unverified { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; display: inline-block; margin-right: 4px; }

/* Verified badge pill — shown on claimed listings */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #86EFAC;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  letter-spacing: 0.02em;
}
.verified-badge::before {
  content: '✓';
  font-weight: 900;
}

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border-mid); border-radius: var(--radius); font-size: 14px; font-family: var(--font-body); background: #fff; color: var(--text); outline: none; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(76,175,80,0.12); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ══════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════ */
.site-header { background: #ffffff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.10); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { height: 44px; width: auto; }
.logo-text { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.logo-text span { color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-mobile { display: none; }
.nav-links a { color: var(--navy); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: var(--transition); font-family: var(--font-head); }
.nav-links a:hover, .nav-links a.active { color: var(--green-dark); background: var(--green-light); }
.nav-cta { margin-left: 1rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e4d8a 100%); padding: 4rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero p  { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 2rem; }

.search-bar { background: #fff; border-radius: var(--radius-pill); padding: 6px 6px 6px 22px; display: flex; align-items: center; max-width: 640px; margin: 0 auto 1.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.2); gap: 8px; }
.search-bar input { flex: 1; border: none; outline: none; font-size: 15px; font-family: var(--font-body); color: var(--text); background: transparent; min-width: 0; }
.search-bar select { border: none; border-left: 1px solid var(--border); outline: none; font-size: 13px; color: var(--text-mid); background: transparent; font-family: var(--font-body); padding: 0 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.search-bar .btn { flex-shrink: 0; }

.filter-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25); padding: 5px 16px; border-radius: var(--radius-pill); font-size: 13px; cursor: pointer; transition: var(--transition); font-family: var(--font-head); font-weight: 500; }
.chip:hover, .chip.active { background: var(--green); border-color: var(--green); }

/* ══════════════════════════════════════════════
   SECTION TITLES
══════════════════════════════════════════════ */
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p  { color: var(--text-mute); max-width: 560px; margin: 0 auto; }
.section-title .underline { display: inline-block; width: 48px; height: 3px; background: var(--green); border-radius: 3px; margin: 10px auto 0; }

/* ══════════════════════════════════════════════
   LISTING CARDS
══════════════════════════════════════════════ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }

.listing-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); position: relative; }
.listing-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.listing-card.featured { border-color: var(--green); border-width: 1.5px; }
.listing-card.featured::before { content: '★ Featured'; position: absolute; top: 12px; right: 12px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); font-family: var(--font-head); letter-spacing: 0.05em; }

.card-img { width: 100%; height: 160px; object-fit: cover; background: var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 3rem; }
.card-body { padding: 1rem 1.1rem; }
.card-type { margin-bottom: 6px; }
.card-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; font-family: var(--font-head); }
.card-addr { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-mute); padding-top: 10px; border-top: 1px solid var(--border); }
.card-rating { color: #F59E0B; font-weight: 600; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 1.1rem 1rem; }

/* ══════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════ */
.how-section { padding: 4rem 0; background: #fff; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.how-card { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius-lg); transition: var(--transition); }
.how-card:hover { background: var(--bg); box-shadow: var(--shadow-md); }
.how-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 28px; }
.how-card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.how-card p  { font-size: 14px; }

/* ══════════════════════════════════════════════
   AFFILIATE BANNER
══════════════════════════════════════════════ */
.aff-banner { background: var(--green-light); border-radius: var(--radius-lg); padding: 2.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border: 1px solid rgba(76,175,80,0.2); }
.aff-banner h3 { color: var(--navy); margin-bottom: 0.4rem; font-size: 1.3rem; }
.aff-banner p  { font-size: 14px; color: var(--text-mid); max-width: 480px; }

/* ══════════════════════════════════════════════
   SEARCH PAGE — TWO-COLUMN LAYOUT
══════════════════════════════════════════════ */
.search-layout { display: grid; grid-template-columns: 1fr 400px; gap: 0; min-height: calc(100vh - 68px); }
.listings-pane { overflow-y: auto; padding: 1.5rem; background: var(--bg); max-height: calc(100vh - 68px); }
.map-pane { position: sticky; top: 68px; height: calc(100vh - 68px); background: var(--blue-light); }
.map-pane iframe, .map-pane #map { width: 100%; height: 100%; border: none; }

.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.results-bar span { font-size: 13px; color: var(--text-mute); }
.results-bar select { font-size: 12px; border: 1px solid var(--border-mid); border-radius: 6px; padding: 5px 10px; background: #fff; font-family: var(--font-body); outline: none; cursor: pointer; }

/* ══════════════════════════════════════════════
   SINGLE LISTING
══════════════════════════════════════════════ */
.listing-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; padding: 2rem 0; }
.listing-main {}
.listing-sidebar {}
.listing-hero-img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 1.5rem; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.listing-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 1.5rem; }
.listing-gallery img { border-radius: var(--radius); height: 120px; object-fit: cover; cursor: pointer; }
.amenities-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 1rem 0; }
.amenity-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-mid); }
.amenity-item::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-card h4 { color: var(--navy); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }

/* ══════════════════════════════════════════════
   AFFILIATE TOOLS PAGE
══════════════════════════════════════════════ */
.tools-section { padding: 2.5rem 0; }
.tools-section + .tools-section { border-top: 1px solid var(--border); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card.top-pick { border-color: var(--green); }
.product-card.top-pick .product-img::after { content: 'Top Pick'; position: absolute; top: 8px; left: 8px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); font-family: var(--font-head); }
.product-img { height: 160px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-body { padding: 1rem; }
.product-name { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; font-family: var(--font-head); }
.product-price { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.product-desc { font-size: 12px; color: var(--text-mute); margin-bottom: 10px; line-height: 1.5; }
.product-rating { font-size: 12px; color: #F59E0B; margin-bottom: 10px; }
.amazon-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px; background: #FF9900; color: #fff; border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: var(--font-head); }
.amazon-btn:hover { background: #e68900; transform: translateY(-1px); }
.amazon-disclaimer { font-size: 11px; color: var(--text-mute); text-align: center; margin-top: 1rem; font-style: italic; }

/* ══════════════════════════════════════════════
   BLOG
══════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-img { height: 180px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-cat { font-size: 11px; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.blog-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-family: var(--font-head); line-height: 1.35; }
.blog-excerpt { font-size: 13px; color: var(--text-mute); line-height: 1.6; margin-bottom: 12px; }
.blog-meta { font-size: 12px; color: var(--text-mute); display: flex; gap: 12px; }

/* Blog Post Page */
.blog-post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; padding: 2rem 0 4rem; }
.blog-post-content { max-width: 700px; }
.blog-post-content h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
.blog-post-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.blog-post-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.blog-post-content p  { margin-bottom: 1.25rem; font-size: 15px; line-height: 1.8; }
.blog-post-content ul, .blog-post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-post-content li { margin-bottom: 0.5rem; font-size: 15px; line-height: 1.7; color: var(--text-mid); }
.blog-post-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.blog-post-content .affiliate-box { background: var(--green-light); border: 1px solid rgba(76,175,80,0.25); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.blog-post-content .affiliate-box h4 { color: var(--navy); margin-bottom: 0.5rem; }
.blog-post-content .affiliate-box p { font-size: 14px; margin-bottom: 0.75rem; }
.post-hero-img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 2rem; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.post-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 1.5rem; font-size: 13px; color: var(--text-mute); flex-wrap: wrap; }
.post-meta .cat { background: var(--green-light); color: var(--green-dark); padding: 3px 10px; border-radius: var(--radius-pill); font-weight: 600; font-size: 11px; text-transform: uppercase; }
.blog-sidebar .sidebar-card { position: sticky; top: 88px; }

/* ══════════════════════════════════════════════
   AFFILIATE INLINE PRODUCT BOX (blog)
══════════════════════════════════════════════ */
.inline-product { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; margin: 1.5rem 0; align-items: flex-start; }
.inline-product-img { width: 90px; height: 90px; flex-shrink: 0; background: var(--bg); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; overflow: hidden; }
.inline-product-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.inline-product-info { flex: 1; min-width: 0; }
.inline-product-name { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 4px; font-family: var(--font-head); }
.inline-product-price { font-size: 16px; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.inline-product-desc { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; }
.disclaimer-box { background: #FFF8E1; border-left: 3px solid #F59E0B; padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 12px; color: var(--text-mid); margin: 1.5rem 0; }

/* ══════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); padding: 2rem; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-mute); line-height: 1; padding: 4px; }
.modal h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.modal p.sub { font-size: 13px; color: var(--text-mute); margin-bottom: 1.5rem; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1rem 0; }
.plan-card { border: 1.5px solid var(--border-mid); border-radius: var(--radius); padding: 1rem; cursor: pointer; transition: var(--transition); }
.plan-card:hover { border-color: var(--blue); }
.plan-card.selected { border-color: var(--green); background: var(--green-light); }
.plan-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.plan-price { font-size: 20px; font-weight: 700; color: var(--green-dark); }
.plan-price span { font-size: 11px; font-weight: 400; color: var(--text-mute); }
.plan-features { font-size: 11px; color: var(--text-mute); margin-top: 6px; line-height: 1.7; }
.modal-actions { display: flex; gap: 8px; margin-top: 1.25rem; }
.modal-actions .btn { flex: 1; justify-content: center; }
.success-msg { text-align: center; padding: 2rem 1rem; }
.success-msg .icon { font-size: 48px; margin-bottom: 1rem; }
.success-msg h3 { margin-bottom: 0.5rem; }

/* ══════════════════════════════════════════════
   PAGE HEADERS
══════════════════════════════════════════════ */
.page-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 3rem 0 2.5rem; }
.page-header h1 { color: #fff; margin-bottom: 0.5rem; }
.page-header p  { color: rgba(255,255,255,0.75); font-size: 1rem; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; }

/* ══════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════ */
.cta-section { background: var(--navy); padding: 4rem 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-section p  { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   TRUST BADGES
══════════════════════════════════════════════ */
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.trust-item { text-align: center; padding: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.trust-icon { font-size: 24px; margin-bottom: 0.5rem; }
.trust-item h4 { font-size: 13px; color: var(--navy); }
.trust-item p  { font-size: 12px; color: var(--text-mute); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand .logo-text { font-size: 1.2rem; margin-bottom: 0.75rem; color: #ffffff; }
.footer-brand .logo-text span { color: var(--green); }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; color: rgba(255,255,255,0.65); }
.footer-tagline { font-style: italic; color: var(--blue); font-size: 13px; margin-top: 0.5rem; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-head); }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.5); gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--green); }
.heart { color: var(--green); }

/* ══════════════════════════════════════════════
   NOTIFICATION BAR
══════════════════════════════════════════════ */
.tracking-notice { background: var(--green-light); border-bottom: 1px solid rgba(76,175,80,0.2); padding: 8px 0; font-size: 12px; color: var(--green-dark); text-align: center; }
.tracking-notice strong { font-weight: 600; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .search-layout { grid-template-columns: 1fr; }
  .map-pane { display: none; }
  .listing-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-post-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-mobile { display: none; background: var(--navy-dark); padding: 1rem 1.5rem; }
  .nav-mobile.open { display: block !important; }
  .nav-mobile a { display: block; color: #fff; padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-mobile a:last-child { border-bottom: none; }
  .how-grid { grid-template-columns: 1fr; }
  .aff-banner { flex-direction: column; text-align: center; }
  /* Mobile search bar */
  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 14px;
    gap: 10px;
    margin: 0 1rem 1rem;
    max-width: calc(100% - 2rem);
    background: #fff;
  }
  /* Ensure input is always visible */
  .search-bar input[type="text"],
  .search-bar input {
    display: block !important;
    width: 100% !important;
    font-size: 16px !important;
    padding: 12px 10px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--text) !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    flex-basis: auto !important;
  }
  .search-bar input::placeholder {
    color: var(--text-mute);
    font-size: 15px;
  }
  .search-bar select {
    display: block;
    width: 100%;
    font-size: 15px;
    padding: 12px 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    appearance: auto;
    box-sizing: border-box;
  }
  .search-bar .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .trust-grid, .plan-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .modal { padding: 1.5rem 1rem; }
  .inline-product { flex-direction: column; }
}

/* ══════════════════════════════════════════════
   SECURITY HEADERS (applied via meta tags in HTML)
   Additional styles for security-related UI
══════════════════════════════════════════════ */
.ssl-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--green-dark); font-weight: 500; }
.ssl-badge::before { content: '🔒'; font-size: 12px; }

/* ── Print styles ── */
@media print {
  .site-header, .site-footer, .modal-overlay, .map-pane { display: none; }
  .listing-layout, .blog-post-layout { grid-template-columns: 1fr; }
}
/* ============================================================
   HomeHealthCareList.com — Pricing Tiers CSS
   ADD THIS TO THE BOTTOM OF css/style.css
   ============================================================ */

/* ── Tier color tokens ── */
:root {
  --tier-basic:         #6B7280;
  --tier-basic-bg:      #F9FAFB;
  --tier-listed:        #2563EB;
  --tier-listed-bg:     #EFF6FF;
  --tier-active:        #4CAF50;
  --tier-active-bg:     #EDF7EE;
  --tier-premier:       #B7791F;
  --tier-premier-bg:    #FFFBEB;
  --tier-premier-gold:  #F59E0B;
}

/* ══════════════════════════════════════════════
   PRICING PAGE — FULL TIER CARDS
══════════════════════════════════════════════ */
.pricing-section { padding: 4rem 0; background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.pricing-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Per-tier accent borders */
.pricing-card.tier-basic   { border-top: 4px solid var(--tier-basic); }
.pricing-card.tier-listed  { border-top: 4px solid var(--tier-listed); }
.pricing-card.tier-active  { border-top: 4px solid var(--tier-active); }
.pricing-card.tier-premier {
  border: 2px solid var(--tier-premier-gold);
  border-top: 4px solid var(--tier-premier-gold);
  background: linear-gradient(160deg, #FFFBEB 0%, #fff 60%);
}

/* Most popular badge */
.pricing-card.tier-active::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Premier glow */
.pricing-card.tier-premier::before {
  content: '⭐ Premier';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #B7791F, #F59E0B);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-tier-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-family: var(--font-head);
}
.tier-basic   .pricing-tier-label { color: var(--tier-basic); }
.tier-listed  .pricing-tier-label { color: var(--tier-listed); }
.tier-active  .pricing-tier-label { color: var(--tier-active); }
.tier-premier .pricing-tier-label { color: var(--tier-premier); }

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 0.75rem 0 0.25rem;
}
.pricing-price .amount {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-head);
  color: var(--navy);
}
.tier-premier .pricing-price .amount { color: var(--tier-premier); }
.pricing-price .period {
  font-size: 13px;
  color: var(--text-mute);
  padding-bottom: 4px;
}

.pricing-annual {
  font-size: 12px;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
  min-height: 18px;
}
.tier-premier .pricing-annual { color: var(--tier-premier); }

.pricing-desc {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex: 0;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1.25rem;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}
.pricing-features li {
  font-size: 13px;
  color: var(--text-mid);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.pricing-features li .check {
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 1px;
}
.pricing-features li.included .check::before { content: '✓'; color: var(--green); font-weight: 700; }
.pricing-features li.highlight .check::before { content: '★'; color: var(--tier-premier-gold); font-weight: 700; }
.pricing-features li.not-included {
  color: var(--text-mute);
  opacity: 0.5;
}
.pricing-features li.not-included .check::before { content: '—'; color: var(--text-mute); }

.pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.tier-basic   .pricing-cta { background: var(--bg); color: var(--text); border-color: var(--border-mid); }
.tier-basic   .pricing-cta:hover { background: #f0f0f0; }
.tier-listed  .pricing-cta { background: var(--tier-listed); color: #fff; }
.tier-listed  .pricing-cta:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.tier-active  .pricing-cta { background: var(--green); color: #fff; }
.tier-active  .pricing-cta:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.tier-premier .pricing-cta {
  background: linear-gradient(90deg, #B7791F, #D97706);
  color: #fff;
  box-shadow: 0 4px 16px rgba(183,121,31,0.3);
}
.tier-premier .pricing-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(183,121,31,0.4); }

/* Annual toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5rem;
  font-size: 14px;
  font-family: var(--font-head);
}
.billing-toggle span { color: var(--text-mid); }
.billing-toggle span.active { color: var(--navy); font-weight: 600; }
.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--green);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.toggle-switch.annual::after { transform: translateX(22px); }
.save-badge {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* ══════════════════════════════════════════════
   COMPACT PRICING IN MODALS
══════════════════════════════════════════════ */
.plan-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 1rem 0;
}
.plan-card-4 {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.plan-card-4:hover { border-color: var(--green); }
.plan-card-4.selected { border-color: var(--green); background: var(--green-light); }
.plan-card-4.tier-premier { border-color: var(--tier-premier-gold); }
.plan-card-4.tier-premier.selected { background: var(--tier-premier-bg); }
.plan-card-4 .plan-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.plan-card-4 .plan-amount {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1;
}
.plan-card-4.tier-premier .plan-amount { color: var(--tier-premier); }
.plan-card-4 .plan-period { font-size: 10px; color: var(--text-mute); }
.plan-card-4 .plan-blurb { font-size: 11px; color: var(--text-mute); margin-top: 5px; line-height: 1.4; }
.plan-popular-tag {
  position: absolute;
  top: -8px;
  right: 8px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
}
.plan-premier-tag {
  position: absolute;
  top: -8px;
  right: 8px;
  background: linear-gradient(90deg, #B7791F, #F59E0B);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
}

/* ══════════════════════════════════════════════
   LISTING CARD TIER BADGES
══════════════════════════════════════════════ */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}
.tier-badge-basic   { background: var(--tier-basic-bg);   color: var(--tier-basic); }
.tier-badge-listed  { background: var(--tier-listed-bg);  color: var(--tier-listed); }
.tier-badge-active  { background: var(--tier-active-bg);  color: var(--green-dark); }
.tier-badge-premier {
  background: linear-gradient(90deg, #B7791F, #D97706);
  color: #fff;
  box-shadow: 0 2px 8px rgba(183,121,31,0.25);
}

/* Premier listing card special styling */
.listing-card.premier {
  border: 1.5px solid var(--tier-premier-gold);
  background: linear-gradient(160deg, #FFFDF5 0%, #fff 40%);
}
.listing-card.premier::before {
  content: '⭐ Premier';
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(90deg, #B7791F, #D97706);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
}
.listing-card.premier:hover { box-shadow: 0 8px 32px rgba(183,121,31,0.15); }

/* ══════════════════════════════════════════════
   LEAD GATE NOTIFICATION (shows after contact
   form submitted for unclaimed listing)
══════════════════════════════════════════════ */
.lead-gate-notice {
  background: var(--green-light);
  border: 1px solid rgba(76,175,80,0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  text-align: center;
}
.lead-gate-notice h4 { color: var(--navy); margin-bottom: 0.4rem; font-size: 1rem; }
.lead-gate-notice p  { font-size: 13px; color: var(--text-mid); margin-bottom: 0.75rem; }

/* ══════════════════════════════════════════════
   UPSELL EMAIL PREVIEW CARDS (admin view)
══════════════════════════════════════════════ */
.email-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.email-preview-header {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-size: 12px;
  font-family: var(--font-head);
}
.email-preview-body { padding: 1.25rem; font-size: 14px; line-height: 1.7; }

/* ══════════════════════════════════════════════
   RESPONSIVE PRICING
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.tier-active::before,
  .pricing-card.tier-premier::before { display: none; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-grid-4  { grid-template-columns: 1fr 1fr; }
}

/* Footer logo wordmark color fix — ChatGPT approach */
.site-footer .footer-logo-wordmark {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-footer .footer-logo-wordmark .word-home,
.site-footer .footer-logo-wordmark .word-list {
  color: #ffffff !important;
}

.site-footer .footer-logo-wordmark .word-health,
.site-footer .footer-logo-wordmark .word-dotcom {
  color: var(--green) !important;
}

.site-footer .footer-logo-wordmark .word-care {
  color: var(--blue) !important;
}
