/* ============================================================
   RoommateAds.com theme.css (2026-11 redesign)
   A plain, trustworthy marketplace skin: white and cool-gray surfaces,
   near-black ink, one blue for actions, one green reserved for "verified".
   Loaded after style.css and nav-fix.css. To roll the redesign back,
   delete the theme.css <link> in includes/header.php.
   ============================================================ */

:root {
  --ink: #1D2327;
  --charcoal: #1D2327;
  --warm-gray: #58626C;
  --cream: #FFFFFF;
  --paper: #FFFFFF;
  --sand: #EEF1F4;
  --border: #D9DEE4;
  --rah-line: #D9DEE4;
  --terracotta: #C73E23;
  --terracotta-light: #A8321A;
  --terracotta-bg: #FCEDE9;
  --teal: #C73E23;
  --teal-deep: #A8321A;
  --rah-teal-l: #FCEDE9;
  --sage: #0A7F4F;
  --sage-light: #E6F4EC;
  --sky-light: #FCEDE9;
  --marigold: #F2A33C;
  --marigold-deep: #B96F00;
  --radius: 12px;
  --shadow-sm: none;
  --shadow-md: 0 2px 10px rgba(27,31,35,.10);
  --shadow-lg: 0 4px 16px rgba(27,31,35,.12);
  --display: 'Red Hat Display', 'Public Sans', system-ui, sans-serif;
  --t1: #2B8A3E; --t2: #3B5BDB; --t3: #F2B134; --t4: #C23D22;
  --font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body { font-family: var(--font); background: #fff; color: var(--ink); padding-top: 64px; line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; }
a { text-underline-offset: 3px; }
/* Pages no longer fade in from blank: content is there on first paint. */
.fade-up { animation: none !important; opacity: 1 !important; transform: none !important; }

/* ---------- Top bar ---------- */
#nav { height: 64px; padding: 0 24px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--border); }
.logo { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.logo-ads { color: var(--terracotta); }
footer .logo-ads { color: #F08A73; }
.nav-links { gap: 4px; }
.nav-links > a { font-size: 14.5px; font-weight: 600; color: #38424B; padding: 8px 12px; border-radius: 8px; }
.nav-links > a:hover { color: var(--ink); background: var(--sand); }
.nav-links > a.btn-primary { color: #fff; margin-left: 6px; }
.nav-links > a.btn-primary:hover { color: #fff; background: var(--terracotta-light); }
.nav-avatar { background: var(--terracotta); }
.nav-dropdown { border-radius: 10px; box-shadow: var(--shadow-md); }
.mobile-nav { border-left: 1px solid var(--border); }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font); font-weight: 600; font-size: 15px; border-radius: 8px; padding: 11px 20px; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { transform: none; }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--terracotta-light); box-shadow: none; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid #B7C0C9; box-shadow: none; }
.btn-outline:hover { border-color: var(--terracotta); color: var(--terracotta-light); box-shadow: none; }
.btn-sm { border-radius: 8px; }

/* ---------- Cards (search results, state and city pages) ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; transition: border-color .15s; }
.card:hover { transform: none; box-shadow: none; border-color: var(--terracotta); }
.card:hover .card-img img { transform: none; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-price { color: var(--ink); font-size: 17px; font-weight: 800; }
.card-badge { border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; padding: 4px 9px; }
.card-badge.new { background: var(--ink); }
.tag { border-radius: 6px; background: var(--sand); color: #38424B; font-weight: 600; }
.tag-green { background: var(--sage-light); color: #0A6B42; }
.tag-blue { background: var(--terracotta-bg); color: #A8321A; }
.tag-orange { background: var(--terracotta-bg); color: #A8321A; }
.no-photo { background: var(--sand); }
.verified-badge { border-radius: 6px !important; background: #fff !important; color: #0A6B42 !important; border: 1px solid #BFE3CF; box-shadow: none !important; font-size: 12px !important; padding: 3px 8px !important; }

/* ---------- Forms ---------- */
.form-group input, .form-group select, .form-group textarea, .search-input, .auth-card .form-group input {
  font-family: var(--font); border: 1px solid #B7C0C9; border-radius: 8px; background: #fff; color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .search-input:focus, .auth-card .form-group input:focus {
  border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(199,62,35,.25); outline: none;
}
.auth-card, .sidebar-card, .form-page, .dash-stat, .msg-item { box-shadow: none; }
.auth-card, .sidebar-card { border: 1px solid var(--border); border-radius: var(--radius); }
.search-form { border: 1px solid var(--border); box-shadow: none; border-radius: var(--radius); }
.search-submit { background: var(--terracotta); border-radius: 8px; }
.search-submit:hover { background: var(--terracotta-light); }

/* ---------- Listing page ---------- */
.detail-title { font-weight: 900; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.detail-price { color: var(--ink); font-weight: 800; }
.detail-hero-img { border-radius: var(--radius); }
.detail-section h3, .sidebar-card h3 { font-weight: 700; letter-spacing: -.01em; }
.avail-badge { border-radius: 6px; }
.poster-avatar { background: var(--terracotta-bg); color: var(--terracotta-light); }
.map-tab { border-radius: 8px; border-color: #B7C0C9; color: #38424B; }
.map-tab:hover, .map-tab.active-tab { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

/* ---------- Search page ---------- */
.search-results-header h1 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

/* ---------- Footer ---------- */
footer { background: var(--ink); margin-top: 64px; }
.footer-col h4 { font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 14px; color: #fff; }
.footer-col a { color: #C5CDD5; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { color: rgba(255,255,255,.7); }

/* ---------- Focus (keyboard) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
footer a:focus-visible, footer button:focus-visible { outline-color: #fff; }

/* ---------- Location picker chips ---------- */
.ralp-chip { border-radius: 8px; }
.ralp-chip:hover { border-color: var(--terracotta); color: var(--terracotta-light); }
.ralp-chip.on { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.ralp-chip.parent.on { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

/* The hamburger exists only on phones (an earlier rule had forced it visible on desktop). */
.mobile-menu-btn { display: none; }
@media (max-width: 768px) {
  .mobile-menu-btn { display: inline-flex; }
  #nav { padding: 0 16px; }
  body { padding-top: 64px; }
}

/* ---------- Reviewer fixes (2026-11-28) ---------- */
/* Listing page: only the contact card follows you down the page; the rest of the sidebar scrolls normally. */
.detail-sidebar { position: static !important; }
.detail-sidebar > .sidebar-card:first-child { position: sticky; top: 80px; z-index: 2; }
/* The phone menu drawer's shadow leaked a gray stripe down the page edge while closed. */
.mobile-nav { box-shadow: none; }
body.mobile-nav-open .mobile-nav { box-shadow: -4px 0 20px rgba(0,0,0,.15); }
/* Breadcrumb gets room above the gallery. */
nav[aria-label="Breadcrumb"] { margin-bottom: 16px !important; }
/* Availability badges in the cool palette. */
.avail-badge { background: var(--sand); color: #38424B; font-weight: 600; }
.avail-now { background: var(--sage-light); color: #0A6B42; }
.avail-soon { background: var(--terracotta-bg); color: #A8321A; }
.avail-later { background: var(--sand); color: #38424B; }
.sim-card:hover, .ba-match-card:hover { background: var(--cream); border-color: var(--border); }
.ra-match { font-size: 12.5px; font-weight: 700; color: #7A4A00; background: #FFF4DC; border: 1px solid #F0CE8A; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
/* Search page on phones: full-width filter panel, one scrolling row of type tabs. */
@media (max-width: 768px) {
  .search-results-header, .search-filter-bar { padding-left: 16px !important; padding-right: 16px !important; max-width: none !important; }
  .search-filter-bar > div:first-child { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; padding-bottom: 4px; }
  .search-filter-bar > div:first-child a { flex: none; white-space: nowrap; }
  .search-filter-bar select.search-input, .search-filter-bar input.search-input { width: 100%; }
}

/* ---------- Rent tiers: color tells you the price range (2026-11-28) ---------- */
.ra-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ra-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #B7C0C9; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ra-chip i { width: 12px; height: 12px; border-radius: 3px; background: var(--ink); }
.ra-chip.t1 i { background: var(--t1); } .ra-chip.t2 i { background: var(--t2); } .ra-chip.t3 i { background: var(--t3); } .ra-chip.t4 i { background: var(--t4); }
.ra-chip:hover { border-color: var(--ink); }
.ra-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-price[class*="ra-t"] { padding: 3px 9px; border-radius: 6px; color: #fff; font-family: var(--display); font-weight: 900; }
.card-price.ra-t1 { background: var(--t1); } .card-price.ra-t2 { background: var(--t2); } .card-price.ra-t3 { background: var(--t3); color: var(--ink); } .card-price.ra-t4 { background: var(--t4); }
.card-price[class*="ra-t"] span { color: inherit; opacity: .85; font-weight: 500; }
.ra-match { color: #1D2327; background: #FFF4DC; }
.search-filter-bar .ra-legend { justify-content: center; }

/* Same rent colors on state, city, favorites, listing and blog pages */
.ra-pr { display: inline-block; padding: 3px 9px; border-radius: 6px; color: #fff; font-family: var(--display); font-weight: 900; }
.ra-pr.ra-t1 { background: var(--t1); } .ra-pr.ra-t2 { background: var(--t2); } .ra-pr.ra-t3 { background: var(--t3); color: var(--ink); } .ra-pr.ra-t4 { background: var(--t4); }
.ra-pr span { color: inherit; opacity: .85; font-weight: 500; }
.ad-card-price.ra-pr { display: inline-block; font-size: 17px; }
.detail-price.ra-dp { display: inline-block; padding: 6px 16px; border-radius: 8px; color: #fff; font-family: var(--display); }
.detail-price.ra-dp.ra-t1 { background: var(--t1); } .detail-price.ra-dp.ra-t2 { background: var(--t2); } .detail-price.ra-dp.ra-t3 { background: var(--t3); color: var(--ink); } .detail-price.ra-dp.ra-t4 { background: var(--t4); }
.detail-price.ra-dp span { color: inherit !important; opacity: .85; }
.blog-content .ra-legend, .blog-content + div .ra-legend { justify-content: center; }
div:has(> .ra-legend) .ra-legend { justify-content: center; }
