/* ============================================================
   Goa VIP Escorts - Design Refresh
   Charcoal surfaces + warm gold accents, inspired by the
   MassageRepublic Candolim listing layout and colour palette.
   Loaded after style.css; admin colour settings still win.
   ============================================================ */

:root {
  --primary: #f4b827;
  --primary-light: #ffd45e;
  --primary-dark: #d39a11;
  --secondary: #d99a00;
  --accent: #f4b827;
  --gold: #f4b827;
  --rose: #f4b827;
  --violet: #d99a00;
  --pink: #f4b827;
  --purple: #d39a11;

  --bg: #2e2e2e;
  --bg-elevated: #373737;
  --bg-card: #3b3b3b;
  --bg-hover: #474747;
  --bg-input: #333333;

  --text: #f4f4f4;
  --text-secondary: #c8c8c8;
  --text-muted: #b0b0b0;
  --text-inverse: #1d1d1d;

  --border: #4d4d4d;
  --border-light: #5b5b5b;
  --border-focus: #f4b827;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .26);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, .34);
  --shadow-lg: 0 20px 54px rgba(0, 0, 0, .42);
  --shadow-glow: 0 0 0 1px rgba(244, 184, 39, .22), 0 10px 32px rgba(244, 184, 39, .12);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 18px;

  --navbar-bg: rgba(38, 38, 38, .97);
  --footer-bg: #232323;
}

html.dark-mode {
  --bg: #2e2e2e;
  --bg-elevated: #373737;
  --bg-card: #3b3b3b;
  --bg-hover: #474747;
  --bg-input: #333333;
  --text: #f4f4f4;
  --text-secondary: #c8c8c8;
  --text-muted: #b0b0b0;
  --text-inverse: #1d1d1d;
  --border: #4d4d4d;
  --border-light: #5b5b5b;
  --navbar-bg: rgba(38, 38, 38, .97);
  --footer-bg: #232323;
}

html.light-mode {
  --bg: #f7f4ed;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f0ece3;
  --bg-input: #ffffff;
  --text: #252525;
  --text-secondary: #55504a;
  --text-muted: #6f675c;
  --text-inverse: #1d1d1d;
  --border: #ddd6c9;
  --border-light: #ebe5da;
  --navbar-bg: rgba(255, 255, 255, .97);
  --footer-bg: #252525;
}

html { scroll-padding-top: 92px; }
body {
  overflow-x: clip;
  background-color: var(--bg);
  letter-spacing: .001em;
}

/* ---- Global accents and contrast ---- */
::selection { background: rgba(244, 184, 39, .3); color: var(--text); }
a { color: var(--accent); }
a:hover { color: var(--primary-light); }

.btn-primary,
.btn-primary:hover:not(:disabled),
.cg-btn-primary,
.cg-btn-primary:hover,
.cg-search-btn,
.cg-search-btn:hover,
.nav-search-btn,
.nav-search-btn:hover,
.site-navbar .nav-cta,
.site-navbar .nav-cta:hover,
.nav-login-btn:hover,
.theme-toggle:hover,
.badge-vip,
.price-flag {
  color: #1d1d1d !important;
}

.cg-btn-primary,
.cg-search-btn,
.site-navbar .nav-cta {
  background: linear-gradient(135deg, #ffd45e 0%, var(--primary) 52%, #d99a00 100%);
}

.cg-eyebrow {
  background: rgba(244, 184, 39, .1);
  border-color: rgba(244, 184, 39, .28);
  color: #ffd45e;
}
html.light-mode .cg-eyebrow { color: #7a5500; }

/* ---- Header / navigation ---- */
.site-navbar {
  padding: 10px 0;
  min-height: 68px;
  background: var(--navbar-bg);
  border-bottom: 1px solid rgba(244, 184, 39, .16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}
.site-navbar .container { min-height: 46px; }
.brand-text {
  background: linear-gradient(135deg, #ffe39a 0%, #f4b827 55%, #d39a11 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.025em;
}
.site-navbar .navbar-brand .brand-text { font-size: 1.42rem; white-space: nowrap; }
.site-navbar .nav-link {
  padding: 8px 11px !important;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-secondary) !important;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--primary) !important;
  background: rgba(244, 184, 39, .08);
}
.site-navbar .nav-link::after { background: var(--primary); bottom: 2px; }
.site-navbar .nav-cta {
  padding: 8px 14px !important;
  margin-left: 6px;
  box-shadow: 0 5px 18px rgba(244, 184, 39, .16);
  color: var(--text-inverse) !important;
}
.nav-search-form { max-width: 330px; }
.nav-search-input {
  height: 40px;
  background: rgba(255, 255, 255, .04);
  border-color: var(--border);
}
.nav-search-input:focus { background: var(--bg-card); box-shadow: 0 0 0 3px rgba(244, 184, 39, .18); }
.nav-search-btn { color: #1d1d1d; }
.nav-login-btn { color: var(--primary); border-color: rgba(244, 184, 39, .65); }
.nav-user-btn { background: rgba(255, 255, 255, .04); }
.theme-toggle { background: var(--bg-hover); border: 2px solid var(--border); color: var(--text); gap: 0; }
/* Inline SVG icons collapse to 0px inside a flex button unless sized explicitly. */
.theme-toggle > svg,
.theme-toggle .icon { width: 18px !important; height: 18px !important; flex: 0 0 18px; display: block; }
.theme-toggle:hover { border-color: var(--primary); }
.mega-menu, .cat-mega-menu, .dropdown-menu {
  background: #303030;
  border-color: #505050;
}
html.light-mode .mega-menu,
html.light-mode .cat-mega-menu,
html.light-mode .dropdown-menu { background: #fff; }
.dropdown-item { color: var(--text-secondary); }
.dropdown-item:hover { background: rgba(244, 184, 39, .1); color: var(--primary); }
.mega-header { color: var(--primary); }

/* ---- Hero ---- */
.cg-hero {
  padding: 62px 0 54px;
  background:
    radial-gradient(ellipse 70% 55% at 18% 15%, rgba(244, 184, 39, .1) 0%, transparent 62%),
    radial-gradient(ellipse 60% 60% at 86% 92%, rgba(217, 154, 0, .09) 0%, transparent 64%),
    linear-gradient(180deg, #343434 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(244, 184, 39, .12);
}
.cg-hero-inner { max-width: 900px; }
.cg-hero-title {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.cg-hero-sub { max-width: 680px; color: var(--text-secondary); }
.cg-hero-rating {
  background: rgba(255, 255, 255, .035);
  border-color: var(--border);
  border-radius: 10px;
  padding: 9px 16px;
}
.cg-search {
  background: #353535;
  border-color: #505050;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
html.light-mode .cg-search { background: #fff; }
.cg-search-field .form-select,
.cg-search-field .form-control { height: 46px; background: #2c2c2c; border-color: #4f4f4f; }
html.light-mode .cg-search-field .form-select,
html.light-mode .cg-search-field .form-control { background: #fbfaf7; }
.cg-search-btn { border-radius: 9px; min-width: 124px; }
.cg-search-btn:hover { box-shadow: 0 10px 26px rgba(244, 184, 39, .2); }
.cg-hero-stats { border-top-color: rgba(255, 255, 255, .09); }
.cg-hero-stats .icon { color: var(--primary); }

/* ---- Section rhythm ---- */
.cg-info { padding: 50px 0; }
.cg-info:nth-of-type(even) { background: rgba(0, 0, 0, .06); }
.cg-sec-head { margin-bottom: 30px; }
.cg-sec-head h2 { letter-spacing: -.02em; }
.cg-home-intro, .cg-content-card { background: #393939; border-color: #4c4c4c; }
html.light-mode .cg-home-intro,
html.light-mode .cg-content-card { background: #fff; }

/* ---- Cards ---- */
.profile-card {
  min-height: 0;
  height: 100%;
  border-radius: 13px;
  border-color: #4d4d4d;
  background: #3a3a3a;
}
.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32), 0 0 0 1px rgba(244, 184, 39, .24);
}
.profile-card-img { aspect-ratio: 4 / 5; background: #454545; }
.profile-card-img::after {
  opacity: 1;
  background: linear-gradient(to bottom, transparent 62%, rgba(0, 0, 0, .55) 100%);
}
.profile-card:hover .profile-card-img::after { opacity: 1; }
.profile-card-body { display: block; padding: 12px 13px 14px; }
.profile-name { font-size: .98rem; line-height: 1.3; margin: 0 0 4px; }
.profile-age, .profile-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .73rem;
  color: var(--text-muted);
  margin: 0 8px 4px 0;
  vertical-align: middle;
}
.profile-rating { display: flex; align-items: center; gap: 5px; margin: 0 0 5px; }
.profile-rating .stars { font-size: .74rem; }
.profile-rating small { color: var(--text-muted); font-size: .72rem; }
.profile-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.42em * 2);
  font-size: .78rem;
  line-height: 1.42;
  margin: 0;
}
.profile-card-img .card-badges {
  position: absolute;
  top: 9px;
  left: 9px;
  right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  z-index: 3;
}
.profile-card-img .verified-badge,
.profile-card-img .featured-badge {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.profile-card-img .verified-badge { background: #0d7a55; color: #fff; }
.profile-card-img .featured-badge { background: linear-gradient(135deg, #ffd45e, #f4b827); color: #1d1d1d; }
.profile-card-img .card-actions { bottom: 10px; }
.profile-card .card-actions .btn { width: 34px; height: 34px; }
.profile-card:hover .profile-card-img img { transform: scale(1.04); }

/* Keep contact actions reachable on touch and small screens. */
@media (hover: none), (max-width: 991px) {
  .profile-card-img .card-actions { opacity: 1; transform: none; }
  .profile-card-img::after { background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, .62) 100%); }
}

/* ---- Light mode: keep profile and listing cards readable on light surfaces ---- */
html.light-mode .profile-card,
html.light-mode .catpop-card,
html.light-mode .area-tile,
html.light-mode .cgt-card,
html.light-mode .cg-ben-card,
html.light-mode .cg-route-card,
html.light-mode .price-card,
html.light-mode .cg-test-card {
  background: #fff;
  border-color: #e6dfd2;
  color: var(--text);
}
html.light-mode .profile-card-img { background: #efe9dd; }
html.light-mode .profile-desc { color: var(--text-secondary); }
html.light-mode .profile-age, html.light-mode .profile-loc { color: var(--text-muted); }
html.light-mode .profile-rating small { color: var(--text-muted); }
html.light-mode .profile-name a { color: var(--text); }
html.light-mode .profile-name a:hover { color: var(--primary); }

/* ---- Category / area / service cards ---- */
.catpop-card, .area-tile, .cgt-card, .cg-ben-card, .cg-route-card, .price-card, .cg-test-card {
  border-color: #4b4b4b;
  background: #3a3a3a;
}
.catpop-card:hover, .area-tile:hover, .cgt-card:hover, .cg-ben-card:hover, .cg-route-card:hover, .price-card:hover {
  border-color: rgba(244, 184, 39, .75);
}
.catpop-ic { color: #1d1d1d; }
.area-ic { background: rgba(244, 184, 39, .12); color: var(--primary); }
.cgt-ic, .cg-route-ic, .cg-trust-grid .trust-card span { background: rgba(244, 184, 39, .11); }
.price-featured, .cg-route-featured { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(244, 184, 39, .2); }

/* ---- Listing toolbar ---- */
.cg-more-top { margin-bottom: 14px; }
.cg-more-top .cg-btn { width: 100%; }
.cg-viewmore { width: 100%; }
.cg-filter-bar {
  position: sticky;
  top: 78px;
  z-index: 20;
  padding: 12px 14px;
  gap: 10px 14px;
  background: rgba(59, 59, 59, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: #4e4e4e;
}
html.light-mode .cg-filter-bar { background: rgba(255, 255, 255, .96); }
.cg-filter-form { gap: 7px; }
.cg-filter-select { min-width: 0; flex: 1 1 120px; }
.cg-filter-search { flex: 1 1 150px; width: auto; }
.cg-filter-select, .cg-filter-search, .cg-filter-form .cg-btn, .cg-filter-clear { height: 36px; }
.cg-filter-form .cg-btn { padding: 0 15px; }
.cg-filter-clear { padding: 0 12px; }
.cg-city-pill { background: rgba(255, 255, 255, .04); }
.cg-city-pill:hover, .cg-city-pill.active { border-color: var(--primary); background: rgba(244, 184, 39, .12); color: var(--primary); }
.cg-city-pill.active { font-weight: 700; }
.cg-fallback-note { background: rgba(244, 184, 39, .08) !important; border-color: rgba(244, 184, 39, .26) !important; }
.cg-loc-combos, .sidebar-widget { background: #383838; border-color: #4b4b4b; }
html.light-mode .cg-loc-combos,
html.light-mode .sidebar-widget { background: #fff; }
.sidebar { top: 84px; }
.sidebar-count { background: rgba(244, 184, 39, .12); }
.sidebar-widget h4, .sidebar-widget .widget-title { font-size: 1rem; }

/* ---- Footer ---- */
.site-footer { background: var(--footer-bg); border-top-color: #3f3f3f; }
.footer-brand { background: linear-gradient(135deg, #ffe39a, #f4b827 58%, #d39a11); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-title { color: var(--text); }
.footer-combo-links a:hover, .footer-links a:hover { color: var(--primary); }
.footer-combo-links a { background: rgba(255, 255, 255, .05); }
.footer-bottom { border-top-color: #3d3d3d; }

/* ---- Sliders / overflow ---- */
.profiles-slider, .testimonials-slider { overflow: hidden; padding: 2px 6px 8px; }
.profiles-slider .slick-prev, .testimonials-slider .slick-prev { left: -4px; }
.profiles-slider .slick-next, .testimonials-slider .slick-next { right: -4px; }
.slick-prev, .slick-next { background: #303030; border-color: #555; }
.slick-prev:hover, .slick-next:hover { background: var(--primary); }
.slick-prev:before, .slick-next:before { color: #fff; }
.slick-prev:hover:before, .slick-next:hover:before { color: #1d1d1d; }

/* ---- Small screens ---- */
@media (max-width: 1199px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #303030;
    border-top: 1px solid var(--border);
    padding: 18px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  html.light-mode .navbar-collapse { background: #fff; }
  .site-navbar .nav-link { padding: 10px 12px !important; }
  .nav-search-form { max-width: 100%; }
  .navbar-actions { margin-top: 10px; }
  .nav-mobile-search { padding-top: 10px; }
}

@media (max-width: 991px) {
  .cg-hero { padding: 52px 0 46px; }
  .cg-info { padding: 42px 0; }
  .cg-filter-bar { position: static; }
  .sidebar { margin-top: 32px; }
}

@media (max-width: 767px) {
  .site-navbar .navbar-brand .brand-text { font-size: 1.22rem; }
  .cg-hero { padding: 42px 0 38px; }
  .cg-hero-title { font-size: clamp(1.85rem, 7vw, 2.5rem); }
  .cg-hero-rating { font-size: .8rem; gap: 6px 9px; }
  .cg-hero-stats { gap: 10px 16px; }
  .cg-info { padding: 36px 0; }
  .cg-sec-head { margin-bottom: 24px; }
  .cg-filter-form { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .cg-filter-select, .cg-filter-search { width: 100%; min-width: 0; }
  .cg-filter-search, .cg-filter-form .cg-btn, .cg-filter-clear { grid-column: 1 / -1; width: 100%; }
  .cg-filter-count { width: 100%; }
  .cg-search { padding: 12px; }
  .profile-name { font-size: .95rem; }
  .profile-desc { font-size: .75rem; }
  .profile-card-body { padding: 11px 12px 13px; }
  .footer-top { padding: 36px 0 22px; }
}

@media (max-width: 575px) {
  .container { padding: 0 14px; }
  .cg-hero-actions { gap: 9px; }
  .cg-hero-actions .cg-btn { width: 100%; }
  .cg-hero-stats { font-size: .76rem; }
  .profile-card-body { padding: 10px 11px 12px; }
  .profile-age, .profile-loc { font-size: .68rem; margin-right: 6px; }
  .profile-rating .stars { font-size: .68rem; }
  .profile-desc { -webkit-line-clamp: 2; }
  .cg-filter-form { grid-template-columns: 1fr; }
  .cg-filter-select, .cg-filter-search, .cg-filter-form .cg-btn, .cg-filter-clear { grid-column: 1 / -1; }
  .float-contact { right: 12px; bottom: 12px; }
  .back-to-top { right: 12px; bottom: 112px; }
}

/* ---- Reduced motion: no distracting motion for cards ---- */
@media (prefers-reduced-motion: reduce) {
  .profile-card, .category-card, .service-card, .area-card, .price-card, .trust-card, .route-card,
  .cg-sec-head > *, .section-header > * { opacity: 1 !important; animation: none !important; }
}

/* ============================================================
   Final density & responsive pass
   Compact above-the-fold, fewer empty gaps, predictable grids.
   ============================================================ */

/* ---- Global rhythm ---- */
.cg-info { padding: 44px 0; }
.cg-sec-head { margin-bottom: 26px; }
.cg-sec-head h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.2; text-wrap: balance; }
.cg-sec-head p { max-width: 720px; margin: 0 auto; font-size: .95rem; line-height: 1.6; }
.cg-sec-head-row p { margin-left: 0; }
.cg-sec-cta { margin-top: 24px; }
.cg-home-intro, .cg-content-card { padding: 24px 26px; }
.cg-final-cta { padding: 54px 0; }

/* ---- Header ---- */
.site-navbar { padding: 8px 0; }
.site-navbar .container { min-height: 48px; }
.site-navbar .nav-link { padding: 8px 10px !important; }
.site-navbar .navbar-brand .brand-text { font-size: 1.34rem; }
.nav-search-form { max-width: 300px; }
.nav-search-input { height: 38px; }

/* ---- Hero ---- */
.cg-hero { padding: 42px 0 38px; }
.cg-hero-inner { max-width: 1000px; }
.cg-hero-title { font-size: clamp(2rem, 3.1vw, 2.75rem); line-height: 1.14; margin-bottom: 12px; }
.cg-hero-sub { max-width: 790px; font-size: clamp(.98rem, 1.3vw, 1.06rem); line-height: 1.58; margin-bottom: 18px; }
.cg-hero-rating { padding: 7px 14px; margin-bottom: 18px; font-size: .84rem; gap: 7px 10px; }
.cg-search { padding: 12px; margin-bottom: 18px; gap: 10px; }
.cg-search-field label { margin-bottom: 5px; font-size: .68rem; }
.cg-hero-actions { margin-bottom: 16px; gap: 10px; }
.cg-hero-stats { padding-top: 15px; gap: 12px 24px; font-size: .84rem; }

@media (min-width: 1200px) {
  .cg-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 34px;
    align-items: center;
  }
  .cg-hero-inner > * { grid-column: 1 / -1; }
  .cg-hero-inner > .cg-eyebrow,
  .cg-hero-inner > .cg-hero-rating,
  .cg-hero-inner > .cg-hero-sub { justify-self: center; }
  .cg-hero-inner > .cg-search { justify-self: stretch; }
  .cg-hero-actions {
    grid-column: 1;
    justify-self: end;
    justify-content: flex-end;
    margin-bottom: 0;
  }
  .cg-hero-stats {
    grid-column: 2;
    justify-self: start;
    justify-content: flex-start;
    border-top: 0;
    padding-top: 0;
  }
}

/* ---- Homepage grids: fewer rows, same content ---- */
.cg-cat-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cgt-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.catpop-card { padding: 13px 15px; gap: 11px; }
.catpop-ic { width: 38px; height: 38px; }
.catpop-body strong { font-size: .9rem; }
.catpop-body small { font-size: .72rem; }
.cgt-card { padding: 16px; }
.cgt-ic { width: 40px; height: 40px; margin-bottom: 11px; }
.cgt-card h3 { font-size: .95rem; margin-bottom: 5px; }
.cgt-card p {
  font-size: .79rem;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cgt-count { font-size: .74rem; }

/* ---- Popular services grid ---- */
.cg-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cg-service-card { border: 1px solid #4b4b4b; background: #3a3a3a; border-radius: 10px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; }
.cg-service-card a { color: inherit; text-decoration: none; width: 100%; display: flex; align-items: center; gap: 12px; }
.cg-service-card:hover { border-color: rgba(244, 184, 39, .75); background: #404040; box-shadow: 0 10px 28px rgba(0, 0, 0, .34); }
.cg-svc-ic { width: 34px; height: 34px; background: rgba(244, 184, 39, .11); color: var(--primary); border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.cg-svc-ic svg { width: 17px; height: 17px; }
.cg-svc-name { font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--text); flex: 1 1 0; min-width: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cg-svc-count { font-size: .8rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
html.light-mode .cg-service-card { background: #fff; border-color: #e6dfd2; color: var(--text); }
html.light-mode .cg-service-card:hover { background: #f7f4ed; }
html.light-mode .cg-svc-ic { background: rgba(244, 184, 39, .14); color: #7a5500; }
html.light-mode .cg-svc-name { color: var(--text); }
html.light-mode .cg-svc-count { color: var(--text-muted); }

/* ---- Popular services responsive ---- */
@media (max-width: 1199px) {
  .cg-services-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 9px; }
}
@media (max-width: 767px) {
  .cg-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cg-service-card { padding: 9px 12px; }
  .cg-svc-ic { width: 30px; height: 30px; }
  .cg-svc-ic svg { width: 15px; height: 15px; }
  .cg-svc-name { font-size: .88rem; }
  .cg-svc-count { font-size: .75rem; }
}
@media (max-width: 575px) {
  .cg-services-grid { grid-template-columns: 1fr; gap: 8px; }
  .cg-svc-name { white-space: normal; overflow: visible; -webkit-line-clamp: unset; display: block; }
}
.cg-ben-card { padding: 20px; }
.cg-ben-ic { margin-bottom: 11px; }
.cg-ben-card p { font-size: .85rem; line-height: 1.55; }
.cg-area-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* ---- Profile card body is a simple block layout (see card block above) ---- */

/* ---- Listing toolbar ---- */
.cg-filter-bar { border-radius: 12px; }
.cg-filter-form { align-items: center; }
.cg-filter-select, .cg-filter-search, .cg-filter-form .cg-btn, .cg-filter-clear { height: 34px; font-size: .78rem; }

/* ---- Tablet ---- */
@media (max-width: 1199px) {
  .site-navbar .nav-search-form { max-width: 100%; }
  .cg-hero { padding: 42px 0 36px; }
  .cg-info { padding: 38px 0; }
  .cg-cat-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .cgt-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .cg-services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 991px) {
  .cg-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }
  .cg-search-btn { grid-column: 1 / -1; width: 100%; height: 42px; }
  .cg-search-field .form-select,
  .cg-search-field .form-control { height: 42px; font-size: .86rem; }
  .cg-hero { padding: 36px 0 32px; }
  .cg-info { padding: 34px 0; }
  .cg-filter-bar { position: static; }
}

/* ---- Phone ---- */
@media (max-width: 767px) {
  .cg-hero { padding: 30px 0 28px; }
  .cg-hero-title { font-size: clamp(1.7rem, 7.2vw, 2.25rem); line-height: 1.16; margin-bottom: 10px; }
  .cg-hero-sub { font-size: .9rem; line-height: 1.52; margin-bottom: 14px; }
  .cg-hero-rating { font-size: .72rem; padding: 6px 10px; gap: 4px 8px; margin-bottom: 14px; }
  .cg-hero-rating svg { width: 13px; height: 13px; }
  .cg-hero-rating .cg-dot { display: none; }
  .cg-search { padding: 11px; margin-bottom: 14px; }
  .cg-hero-actions { flex-direction: row; gap: 8px; margin-bottom: 14px; }
  .cg-hero-actions .cg-btn { flex: 1 1 0; width: auto; min-height: 44px; padding: 10px 8px; font-size: .8rem; }
  .cg-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    justify-items: start;
    text-align: left;
    font-size: .74rem;
    padding-top: 12px;
  }
  .cg-info { padding: 30px 0; }
  .cg-sec-head { margin-bottom: 20px; }
  .cg-sec-head h2 { font-size: 1.45rem; }
  .cg-sec-head p { font-size: .88rem; }
  .cg-ben-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cg-ben-card { padding: 15px; }
  .cg-ben-card h3 { font-size: .92rem; }
  .cg-ben-card p { font-size: .76rem; line-height: 1.45; }
  .cg-ben-ic { width: 36px; height: 36px; margin-bottom: 8px; }
  .cg-cat-grid,
  .cgt-grid,
  .cg-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .catpop-card { padding: 11px 12px; gap: 9px; }
  .catpop-ic { width: 34px; height: 34px; }
  .catpop-body strong { font-size: .82rem; }
  .catpop-body small { font-size: .66rem; }
  .cgt-card { padding: 13px; }
  .cgt-card h3 { font-size: .86rem; }
  .cgt-card p { -webkit-line-clamp: 2; font-size: .72rem; }
  .cgt-count { font-size: .68rem; }
  .profile-card-body { padding: 10px 11px 12px; }
  .profile-name { font-size: .92rem; }
  .profile-desc { -webkit-line-clamp: 2; }
  .footer-top { padding: 32px 0 20px; }
}

@media (max-width: 575px) {
  .cg-hero { padding: 26px 0 24px; }
  .cg-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-search-grow { grid-column: 1 / -1; }
  .cg-search-btn { grid-column: 1 / -1; }
  .cg-search-field label { font-size: .62rem; letter-spacing: .03em; }
  .cg-search-field .form-select,
  .cg-search-field .form-control { height: 40px; font-size: .8rem; padding-left: 10px; padding-right: 24px; }
  .cg-hero-actions .cg-btn { padding: 9px 6px; font-size: .73rem; }
  .cg-hero-stats { font-size: .7rem; }
  .cg-filter-form { grid-template-columns: 1fr 1fr; }
  .cg-filter-search,
  .cg-filter-form .cg-btn,
  .cg-filter-clear { grid-column: 1 / -1; }
  .profile-age, .profile-loc { font-size: .66rem; }
  .profile-rating .stars { font-size: .66rem; }
}

/* ============================================================
   Location / category / service hub polish
   Keeps long area and category lists compact on small screens.
   ============================================================ */

/* Profile page: decorative glows must never widen the document */
.profile-detail-section.cg-prof { position: relative; overflow-x: clip; }

/* ---- Location, city and combo heroes ---- */
.cg-loc-hero { padding: 36px 0 38px; }
.cg-loc-head { max-width: 900px; }
.cg-loc-title { font-size: clamp(1.6rem, 2.8vw, 2.45rem); margin-bottom: 10px; }
.cg-loc-sub { font-size: .98rem; line-height: 1.55; margin-bottom: 14px; }
.cg-loc-stats { padding: 8px 16px; margin-bottom: 16px; font-size: .82rem; }
.cg-city-pills {
  max-height: 96px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 184, 39, .5) transparent;
}
.cg-loc-combos { margin-top: 24px; padding: 18px; }
.cg-combo-chips {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 184, 39, .5) transparent;
  padding-right: 4px;
}
.cg-combo-chips a { font-size: .76rem; padding: 5px 11px; }

/* ---- Category and service hub cards: compact mobile grid ---- */
@media (max-width: 767px) {
  .cg-loc-hero { padding: 26px 0 28px; }
  .cg-loc-crumb { margin-bottom: 10px; }
  .cg-loc-title { font-size: 1.55rem; }
  .cg-loc-sub { font-size: .9rem; line-height: 1.5; margin-bottom: 12px; }
  .cg-loc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
    width: 100%;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: .76rem;
  }
  .cg-loc-stats .cg-dot { display: none; }
  .cg-loc-stats span { min-width: 0; }
  .cg-loc-stats strong { white-space: nowrap; }
  .cg-city-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .cg-city-pills::-webkit-scrollbar { display: none; }
  .cg-city-pill { flex: 0 0 auto; padding: 5px 11px; font-size: .76rem; }
  .cg-combo-chips { max-height: 260px; }

  .category-card-lg, .service-card-lg {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 11px 12px;
    position: relative;
  }
  .cat-img, .svc-img, .cat-icon, .svc-icon { width: 34px; height: 34px; }
  .category-card-lg > svg, .service-card-lg > svg {
    position: absolute;
    top: 12px;
    right: 10px;
    width: 14px;
    height: 14px;
  }
  .cat-name-lg, .svc-name-lg { font-size: .8rem; line-height: 1.3; }
  .cat-count-lg, .svc-desc-lg { font-size: .68rem; line-height: 1.35; }
  .cat-desc, .svc-desc { display: none; }
}

/* ============ BLOG ============ */
/* ---- Index / filters ---- */
.cg-blog-filter-wrap { padding: 16px 0 0; }
.cg-blog-filter { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.cg-blog-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cg-blog-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid #4b4b4b; background: #3a3a3a; color: var(--text); font-size: .83rem; font-weight: 600; text-decoration: none; transition: .18s; }
.cg-blog-chip span { font-size: .72rem; color: var(--text-muted); }
.cg-blog-chip:hover, .cg-blog-chip.active { border-color: var(--primary); color: var(--primary); background: rgba(244, 184, 39, .1); }
.cg-blog-search { display: flex; align-items: center; gap: 8px; background: #3a3a3a; border: 1px solid #4b4b4b; border-radius: 10px; padding: 5px 6px 5px 12px; }
.cg-blog-search > span { color: var(--text-muted); display: flex; }
.cg-blog-search input { background: none; border: 0; outline: none; color: var(--text); font-size: .88rem; min-width: 170px; }
.cg-blog-search button { border: 0; background: var(--primary); color: #1d1d1d; font-weight: 700; font-size: .8rem; border-radius: 7px; padding: 7px 12px; }
.cg-blog-results { font-size: .86rem; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cg-blog-results a { margin-left: 6px; color: var(--primary); font-weight: 600; text-decoration: none; }

/* ---- Cards ---- */
.cg-blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cg-blog-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cg-blog-card { background: #3b3b3b; border: 1px solid #4b4b4b; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.cg-blog-card:hover { transform: translateY(-3px); border-color: rgba(244, 184, 39, .65); box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.cg-blog-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #4a3a15, #2f2f2f); overflow: hidden; }
.cg-blog-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; transition: transform .4s; }
.cg-blog-card:hover .cg-blog-thumb img { transform: scale(1.05); }
.cg-blog-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(244, 184, 39, .55); background: radial-gradient(circle at 70% 30%, rgba(244, 184, 39, .14), transparent 60%), linear-gradient(135deg, #403513, #2b2b2b); }
.cg-blog-cat { position: absolute; top: 10px; left: 10px; background: rgba(20, 20, 20, .78); color: var(--primary); border: 1px solid rgba(244, 184, 39, .4); border-radius: 999px; padding: 4px 10px; font-size: .7rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.cg-blog-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cg-blog-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .75rem; color: var(--text-muted); }
.cg-blog-meta .cg-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.cg-blog-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; line-height: 1.3; margin: 0; }
.cg-blog-title a { color: var(--text); text-decoration: none; }
.cg-blog-title a:hover { color: var(--primary); }
.cg-blog-excerpt { font-size: .87rem; line-height: 1.6; color: var(--text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cg-blog-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.cg-blog-more:hover { color: var(--primary); gap: 9px; }

/* ---- Sidebar ---- */
.cg-blog-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.cg-blog-side-card { background: #3b3b3b; border: 1px solid #4b4b4b; border-radius: 14px; padding: 18px; }
.cg-blog-side-card h3 { font-family: 'Playfair Display', serif; font-size: 1rem; display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--text); }
.cg-blog-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cg-blog-side-list a { display: flex; gap: 10px; text-decoration: none; color: var(--text); }
.cg-blog-side-thumb { width: 42px; height: 42px; border-radius: 9px; background: rgba(244, 184, 39, .12); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.cg-blog-side-list strong { display: block; font-size: .83rem; line-height: 1.4; font-weight: 600; }
.cg-blog-side-list small { color: var(--text-muted); font-size: .72rem; }
.cg-blog-side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-blog-side-tags a { font-size: .78rem; padding: 5px 10px; border-radius: 999px; background: #333; border: 1px solid #4b4b4b; color: var(--text); text-decoration: none; }
.cg-blog-side-tags a:hover { border-color: var(--primary); color: var(--primary); }
.cg-blog-side-cta { background: linear-gradient(150deg, rgba(244, 184, 39, .16), #333); border: 1px solid rgba(244, 184, 39, .35); border-radius: 14px; padding: 20px; }
.cg-blog-side-cta h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin: 6px 0 8px; color: var(--text); }
.cg-blog-side-cta p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.cg-blog-side-cta .cg-btn { width: 100%; justify-content: center; }

/* ---- Single post ---- */
.cg-post-hero-inner { max-width: 880px; padding: 8px 0 6px; }
.cg-post-cat { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(244, 184, 39, .45); background: rgba(244, 184, 39, .1); color: var(--primary); font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; text-decoration: none; }
.cg-post-title { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; color: var(--text); margin: 12px 0; }
.cg-post-lede { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; max-width: 760px; margin: 0; }
.cg-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-muted); font-size: .85rem; margin-top: 16px; }
.cg-post-section { padding-top: 26px; }
.cg-post { background: #3b3b3b; border: 1px solid #4b4b4b; border-radius: 16px; overflow: hidden; }
.cg-post-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 22%; display: block; }
.cg-post-content { padding: 28px clamp(18px, 4vw, 46px); color: var(--text); font-size: 1rem; line-height: 1.8; }
.cg-post-content > *:first-child { margin-top: 0; }
.cg-post-content h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; line-height: 1.25; margin: 1.6em 0 .5em; color: var(--text); }
.cg-post-content h3 { font-family: 'Playfair Display', serif; font-size: 1.28rem; line-height: 1.3; margin: 1.4em 0 .4em; color: var(--text); }
.cg-post-content h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; color: var(--text); }
.cg-post-content p { margin: 0 0 1.05em; }
.cg-post-content ul, .cg-post-content ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.cg-post-content li { margin-bottom: .45em; }
.cg-post-content a { color: var(--primary); font-weight: 600; text-decoration: none; }
.cg-post-content a:hover { text-decoration: underline; }
.cg-post-content blockquote { border-left: 3px solid var(--primary); margin: 1.4em 0; padding: .4em 0 .4em 1.1em; color: var(--text-muted); font-style: italic; }
.cg-post-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1em 0; }
.cg-post-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px clamp(18px, 4vw, 46px); border-top: 1px solid #4b4b4b; font-size: .82rem; color: var(--text-muted); }
.cg-share { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #4b4b4b; background: #333; color: var(--text); border-radius: 8px; padding: 7px 12px; font-size: .78rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: .18s; }
.cg-share:hover { border-color: var(--primary); color: var(--primary); }
.cg-share-wa { color: #25d366; border-color: rgba(37, 211, 102, .4); }
.cg-post-author { display: flex; gap: 14px; align-items: flex-start; margin: 0 clamp(18px, 4vw, 46px) 28px; padding: 16px; background: #333; border: 1px solid #4b4b4b; border-radius: 12px; }
.cg-post-author-avatar { width: 46px; height: 46px; border-radius: 50%; background: rgba(244, 184, 39, .14); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.cg-post-author strong { display: block; margin-bottom: 3px; color: var(--text); }
.cg-post-author p { margin: 0; font-size: .84rem; color: var(--text-muted); line-height: 1.5; }
.cg-post-related-section { padding-top: 6px; }

/* ---- Blog light mode ---- */
html.light-mode .cg-blog-chip,
html.light-mode .cg-blog-search { background: #fff; border-color: #e6dfd2; color: #2e2e2e; }
html.light-mode .cg-blog-search input { color: #2e2e2e; }
html.light-mode .cg-blog-chip.active,
html.light-mode .cg-blog-chip:hover { color: #8a6300; background: #fff6da; border-color: #d99a00; }
html.light-mode .cg-blog-card,
html.light-mode .cg-blog-side-card,
html.light-mode .cg-post { background: #fff; border-color: #e6dfd2; }
html.light-mode .cg-blog-title a,
html.light-mode .cg-post-title,
html.light-mode .cg-post-content,
html.light-mode .cg-post-content h2,
html.light-mode .cg-post-content h3,
html.light-mode .cg-post-content h4 { color: #2e2e2e; }
html.light-mode .cg-blog-thumb { background: linear-gradient(135deg, #fdf3d8, #f0ece2); }
html.light-mode .cg-blog-thumb-fallback { color: #b98a00; background: radial-gradient(circle at 70% 30%, rgba(244, 184, 39, .2), transparent 60%), linear-gradient(135deg, #fdf3d8, #f3ede0); }
html.light-mode .cg-blog-cat { background: rgba(255, 255, 255, .9); color: #8a6300; border-color: rgba(217, 154, 0, .4); }
html.light-mode .cg-blog-side-tags a,
html.light-mode .cg-share { background: #faf7f0; border-color: #e6dfd2; color: #2e2e2e; }
html.light-mode .cg-blog-side-cta { background: linear-gradient(150deg, #fff6da, #f7f1e3); border-color: #e8d9ac; }
html.light-mode .cg-blog-side-cta h3 { color: #2e2e2e; }
html.light-mode .cg-post-share { border-color: #e6dfd2; }
html.light-mode .cg-post-author { background: #faf7f0; border-color: #e6dfd2; }
html.light-mode .cg-post-author strong { color: #2e2e2e; }

/* ---- Blog responsive ---- */
@media (max-width: 991px) {
  .cg-blog-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-blog-side { position: static; }
}
@media (max-width: 767px) {
  .cg-blog-grid, .cg-blog-grid-3 { grid-template-columns: 1fr; }
  .cg-blog-filter { align-items: stretch; }
  .cg-blog-search { width: 100%; }
  .cg-blog-search input { flex: 1; min-width: 0; }
  .cg-post-title { font-size: 1.75rem; }
  .cg-post-content { padding: 20px 16px; font-size: .96rem; }
}



/* ---- People also search for (plain-text keyword block, no links) ---- */
.cg-pasf-info { padding: 30px 0 6px; }
.cg-pasf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.cg-pasf-head { margin-bottom: 16px; }
.cg-pasf-head h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 6px 0 6px;
}
.cg-pasf-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
}
.cg-pasf-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-pasf-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: .8rem;
  line-height: 1.25;
  cursor: default;
  user-select: text;
}
@media (max-width: 575px) {
  .cg-pasf-card { padding: 20px 16px; border-radius: var(--radius); }
  .cg-pasf-chip { font-size: .74rem; padding: 6px 10px; }
}

/* ============================================================
   Mobile structure pass + smooth scrolling
   ============================================================ */

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { -webkit-overflow-scrolling: touch; }

/* ---- Homepage plain-English guide ---- */
.cg-home-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  padding: 30px clamp(18px, 3vw, 38px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
html.light-mode .cg-home-guide { background: #fff; border-color: #e6dfd2; }
.cg-guide-copy h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 1.45em 0 .35em;
  color: var(--text);
}
.cg-guide-copy h3:first-child { margin-top: 0; }
.cg-guide-copy p {
  margin: 0 0 .85em;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.75;
}
.cg-guide-copy p:last-child { margin-bottom: 0; }
.cg-guide-copy a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cg-guide-side {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
}
html.light-mode .cg-guide-side { background: #faf7f0; border-color: #e6dfd2; }
.cg-guide-side h3 {
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--text);
}
.cg-guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cg-guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.cg-guide-list .icon { color: var(--primary); flex: 0 0 auto; margin-top: 2px; }
.cg-guide-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---- Small-screen layout ---- */
@media (max-width: 991px) {
  /* Blurred fixed layers are the main cause of janky scrolling on phones. */
  .site-navbar,
  .cg-filter-bar,
  .cg-loc-combos {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-navbar { background: var(--navbar-bg); }
  .cg-filter-bar { background: var(--bg-card); position: static; }
  html.light-mode .cg-filter-bar { background: #fff; }
  /* Decorative blurred blobs are expensive and add nothing on a small screen. */
  .cg-blob { display: none; }
  /* The desktop sidebar becomes a very long link list on mobile. */
  .sidebar { display: none; }
  /* No hover lift on touch screens. */
  .profile-card:hover,
  .catpop-card:hover,
  .area-tile:hover,
  .cgt-card:hover {
    transform: none;
  }
  .cg-home-guide { grid-template-columns: 1fr; gap: 22px; }
  .cg-guide-side { position: static; }
  /* Stop decorative animation loops that keep the phone repainting while scrolling. */
  .gradient-text { animation: none; background-position: 50% 50%; }
  .hero-eyebrow { animation: none; }
  .float-btn::before { display: none; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 76px; }

  /* --- Location / city hero --- */
  .cg-loc-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
  }
  .cg-loc-stats .cg-dot { display: none; }
  .cg-loc-stats span {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    min-width: 0;
    font-size: .8rem;
    line-height: 1.4;
    white-space: normal;
  }
  .cg-loc-stats strong { white-space: nowrap; }

  /* --- Area pills: one clean row you can swipe, not tall wrapped blocks --- */
  .cg-city-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 8px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .cg-city-pills::-webkit-scrollbar { display: none; }
  .cg-city-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    font-size: .78rem;
    line-height: 1.1;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .cg-city-pill span { flex: 0 0 auto; }

  /* --- Content and combo blocks --- */
  .cg-content-card { padding: 18px 16px; }
  .cg-loc-combos { margin-top: 20px; padding: 15px; }
  .cg-combo-title { font-size: .92rem; margin-bottom: 11px; }
  .cg-combo-chips { max-height: 230px; gap: 6px; }
  .cg-combo-chips a { font-size: .74rem; padding: 5px 10px; }
  .cg-loc-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cg-area-card { padding: 11px 12px; gap: 9px; }
  .cg-area-card .catpop-ic { width: 34px; height: 34px; }
  .cg-area-card .catpop-body strong { font-size: .8rem; }
  .cg-area-card .catpop-body small { font-size: .68rem; line-height: 1.35; }

  /* --- Listing filters --- */
  .cg-filter-bar { padding: 11px 12px; gap: 9px; }
  .cg-filter-count { font-size: .8rem; line-height: 1.4; }
  .cg-filter-tags {
    flex-basis: 100%;
    font-style: normal;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cg-filter-form { grid-template-columns: 1fr 1fr; gap: 6px; }
  .cg-filter-form > .cg-filter-select { grid-column: auto; }
  .cg-filter-form > .cg-filter-select:last-of-type { grid-column: 1 / -1; }
  .cg-filter-select,
  .cg-filter-search,
  .cg-filter-form .cg-btn,
  .cg-filter-clear { height: 42px; }

  /* --- Profile cards --- */
  #profileGrid,
  .cg-latest-profiles .row,
  .cg-profiles-info .row { --bs-gutter-x: .7rem; --bs-gutter-y: .7rem; }
  .profile-card-body { padding: 10px 11px 12px; }
  .profile-name { font-size: .9rem; line-height: 1.25; }
  .profile-age,
  .profile-loc { font-size: .7rem; gap: 3px; margin: 0 5px 4px 0; max-width: 100%; }
  .profile-rating { gap: 4px; margin-bottom: 5px; }
  .profile-rating .stars { font-size: .7rem; }
  .profile-rating small { font-size: .68rem; }
  .profile-desc { font-size: .76rem; line-height: 1.45; }
  .profile-card-img .card-actions .btn { width: 34px; height: 34px; }
  .profile-card-img .card-badges { top: 7px; left: 7px; gap: 4px; }
  .profile-card-img .verified-badge,
  .profile-card-img .featured-badge { font-size: .62rem; padding: 3px 7px; }

  /* --- Guides, sections and CTA spacing --- */
  .cg-home-guide { padding: 20px 16px; gap: 18px; }
  .cg-guide-copy h3 { font-size: 1rem; margin: 1.1em 0 .3em; }
  .cg-guide-copy h3:first-child { margin-top: 0; }
  .cg-guide-copy p { font-size: .88rem; line-height: 1.6; margin-bottom: .75em; }
  .cg-guide-side { padding: 16px; }
  .cg-guide-list li { font-size: .82rem; }
  .cg-final-cta { padding: 44px 0; }
  .cg-pasf-card { padding: 18px 15px; }
  .cg-pasf-head { margin-bottom: 12px; }
}

@media (max-width: 420px) {
  .cg-hero-actions { gap: 8px; }
  .cg-hero-actions .cg-btn { padding: 11px 8px; font-size: .8rem; }
}

/* ---- Touch sizing and motion preferences ---- */
@media (max-width: 767px) {
  .cg-city-pill { min-height: 36px; padding: 6px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---- Footer: comfortable tap rows on phones ---- */
@media (max-width: 767px) {
  .footer-links li { margin-bottom: 2px; }
  .footer-links a {
    min-height: 34px;
    padding: 5px 0;
    font-size: .875rem;
    line-height: 1.3;
    align-items: flex-start;
  }
  .footer-links a:hover { transform: none; }
  .footer-bottom { font-size: .78rem; line-height: 1.6; }
  .footer-bottom-links { flex-wrap: wrap; gap: 6px 14px; }
  .footer-bottom-links a { min-height: 30px; display: inline-flex; align-items: center; }
}

/* ---- Mobile filter toggle (long filter forms only) ---- */
.cg-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-hover);
  color: var(--text);
  font-size: .84rem;
  font-weight: 600;
}
.cg-filter-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.cg-filter-bar.cg-filters-open .cg-filter-toggle::after { transform: translateY(2px) rotate(-135deg); }
@media (max-width: 767px) {
  .cg-filter-toggle { display: inline-flex; }
  .cg-filter-bar.cg-filters-collapsed .cg-filter-form { display: none; }
  .cg-filter-bar.cg-filters-collapsed { gap: 10px; }
}

/* ---- Mobile filter toggle sizing ---- */
@media (max-width: 767px) {
  .cg-filter-bar.cg-filters-collapsed,
  .cg-filter-bar:not(.cg-filters-collapsed):not(.cg-filters-open) { gap: 10px; }
  .cg-filter-bar.cg-filters-open .cg-filter-form { margin-top: 2px; }
}

/* ---- Phone scroll performance ---- */
@media (max-width: 991px) {
  .site-navbar,
  .site-navbar.navbar,
  .cg-filter-bar,
  .cg-loc-combos {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .site-navbar { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
  .cg-blob,
  .cg-hero::before,
  .cg-loc-hero::before { display: none; }
  .profile-card,
  .catpop-card,
  .area-tile,
  .cgt-card,
  .cg-service-card,
  .trust-card { box-shadow: none; }
  .profile-card:hover,
  .cg-service-card:hover,
  .catpop-card:hover { box-shadow: none; }
}

/* ---- Small inline links get a comfortable tap area on phones ---- */
@media (max-width: 767px) {
  .cg-sec-head .cg-link,
  .cg-blog-more,
  .cg-route-link,
  .profile-name a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
  }
  .cg-sec-head .cg-link { margin-top: -4px; }
}

/* ---- Carousel dots and footer contact need a real tap area ---- */
@media (max-width: 767px) {
  .slick-dots { bottom: -6px; }
  .slick-dots li,
  .slick-dots li button { width: 26px; height: 30px; }
  .slick-dots li button::before { line-height: 30px; }
  .footer-contact a { display: inline-flex; align-items: center; min-height: 32px; }
}

/* ---- Breadcrumb + footer text links: padding, not extra height ---- */
@media (max-width: 767px) {
  .breadcrumb-item a,
  .breadcrumb-item.active { display: inline-flex; align-items: center; min-height: 28px; }
  .footer-bottom-links a,
  .footer-contact a,
  footer .footer-links a { padding-top: 5px; padding-bottom: 5px; }
}

/* ---- Profile link chips ---- */
@media (max-width: 767px) {
  .stat-row a,
  .profile-detail-meta a,
  .profile-detail-meta .badge { display: inline-flex; align-items: center; min-height: 28px; }
}

/* ---- Inline body links sitting alone on a line ---- */
@media (max-width: 767px) {
  .contact-list li > a,
  .cg-consult-row a,
  .legal-body a {
    display: inline-block;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .contact-list li { line-height: 1.65; }
}

/* ---- Legal pages: table of contents + inline links ---- */
@media (max-width: 767px) {
  .legal-toc ol,
  .legal-toc ul { line-height: 1.7; }
  .legal-toc a,
  .legal-card li > a,
  .legal-card p > a,
  .legal-help a,
  .legal-help-link {
    display: inline-block;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .legal-section { scroll-margin-top: 84px; }
}

/* ---- More services: compact chips, no duplicate cards ---- */
.cg-more-services {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.cg-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text);
  font-size: .86rem;
  font-weight: 500;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.cg-service-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(244, 184, 39, .08); }
.cg-service-chip .icon { color: var(--primary); flex: 0 0 auto; }
.cg-service-chip em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.4;
}
@media (max-width: 575px) {
  .cg-more-services { gap: 7px; }
  .cg-service-chip { min-height: 38px; padding: 7px 12px; font-size: .8rem; }
}

/* ---- Touch tablets: keep the same tap areas up to 991px ---- */
@media (max-width: 991px) {
  .cg-sec-head .cg-link,
  .cg-blog-more,
  .cg-route-link,
  .profile-name a,
  .stat-row a,
  .profile-detail-meta a,
  .profile-detail-meta .badge,
  .breadcrumb-item a,
  .breadcrumb-item.active,
  .footer-bottom-links a,
  .footer-contact a,
  footer .footer-links a,
  .contact-list li > a,
  .cg-consult-row a,
  .legal-toc a,
  .legal-card li > a,
  .legal-card p > a,
  .legal-help a,
  .legal-help-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
  }
}
@media (max-width: 991px) {
  .slick-dots { bottom: -6px; }
  .slick-dots li,
  .slick-dots li button { width: 26px; height: 30px; }
  .slick-dots li button::before { line-height: 30px; }
}
@media (max-width: 575px) {
  .back-to-top { bottom: 122px; }
}

/* ---- Light mode: footer keeps its dark charcoal panel, so text must stay light ---- */
html.light-mode .site-footer { color: #c9c3b8; }
html.light-mode .footer-title,
html.light-mode .footer-combo-title { color: #f4f4f4; }
html.light-mode .footer-about-text,
html.light-mode .footer-contact,
html.light-mode .footer-contact a,
html.light-mode .footer-links a,
html.light-mode .footer-combo-links a { color: #c9c3b8; }
html.light-mode .footer-copy,
html.light-mode .footer-bottom-links a,
html.light-mode .footer-area { color: #a9a29a; }
html.light-mode .disclaimer-text { color: #b3ab9f; }
html.light-mode .footer-combo-links a { border-color: rgba(255, 255, 255, .14); }
html.light-mode .footer-combo-links a:hover,
html.light-mode .footer-links a:hover,
html.light-mode .footer-contact a:hover,
html.light-mode .footer-bottom-links a:hover { color: var(--primary); }

/* ---- Light mode: darken gold text links so they stay readable on cream/white ---- */
html.light-mode .cg-link,
html.light-mode .cg-blog-more,
html.light-mode .cg-route-link,
html.light-mode .cg-guide-copy a,
html.light-mode .price-range { color: #8a6300; }
html.light-mode .cg-link:hover,
html.light-mode .cg-blog-more:hover,
html.light-mode .cg-route-link:hover,
html.light-mode .cg-guide-copy a:hover { color: #6f5000; }
html.light-mode .cg-guide-note,
html.light-mode .cg-price-disclaimer { color: #6b6358; }
html.light-mode .footer-city-name { color: inherit; }

/* ---- Light mode: readable gold accents on white panels ---- */
html.light-mode .cg-consult-row strong,
html.light-mode .cg-consult-row a,
html.light-mode .cg-accordion .accordion-button,
html.light-mode .contact-faq .accordion-button,
html.light-mode .stat-row a,
html.light-mode .profile-detail-meta a,
html.light-mode .cg-post-content a,
html.light-mode .dropdown-menu a,
html.light-mode .nav-link.active,
html.light-mode .rating-value,
html.light-mode .rating-value-main,
html.light-mode .cat-tag { color: #8a6300; }
html.light-mode .service-tag { color: #6f5000; }
html.light-mode .accordion-button:not(.collapsed),
html.light-mode .cg-accordion .accordion-button:not(.collapsed),
html.light-mode .contact-faq .accordion-button:not(.collapsed) { color: #6f5000; background: rgba(244, 184, 39, .14); }
html.light-mode .breadcrumb-item.active { color: #6b6358; }
html.light-mode .verified-overlay { background: #0d7a55; }
html.light-mode .verified-badge-lg { color: #0a6b4a; border-color: rgba(10, 107, 74, .35); background: rgba(16, 185, 129, .14); }
html.light-mode .cat-tag { border-color: rgba(138, 99, 0, .3); }
html.light-mode .service-tag { border-color: rgba(111, 80, 0, .3); }
@media (max-width: 991px) {
  html.light-mode .nav-link.active,
  html.light-mode .nav-link:hover { color: #8a6300 !important; }
}

/* ---- Verified badges: readable white text on a deeper green ---- */
.verified-overlay { background: #0d7a55; }
.verified-badge-lg { color: #6ee7b7; }

/* ============================================================
   Location / city about section (guide copy + quick facts)
   ============================================================ */
.cg-loc-about { padding: 48px 0 54px; }
.cg-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: 32px;
  align-items: start;
}
.cg-about-head { margin: 0 0 16px; }
.cg-about-head h2 {
  margin: 12px 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.22;
  max-width: 26ch;
}
.cg-about-copy {
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}
.cg-about-copy-wrap { position: relative; }
.cg-about-copy-wrap.is-collapsed .cg-about-copy {
  /* Roughly five lines of body copy, with the last line fading out. */
  max-height: 9em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
}
.cg-about-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  margin-top: 12px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.cg-about-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cg-about-more[hidden] { display: none !important; }
.cg-about-more-icon { transition: transform .2s ease; }
.cg-about-more[aria-expanded="true"] .cg-about-more-icon { transform: rotate(180deg); }
.cg-about-copy p { margin: 0 0 14px; }
.cg-about-copy p:last-child { margin-bottom: 0; }
.cg-about-copy p.cg-about-lede {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.65;
}
.cg-about-copy a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cg-about-copy a:hover { color: var(--primary); }
.cg-about-copy strong { color: var(--text); font-weight: 600; }
.cg-about-copy h2,
.cg-about-copy h3 { color: var(--text); margin: 20px 0 8px; }
.cg-about-copy h2:first-child,
.cg-about-copy h3:first-child { margin-top: 0; }
.cg-about-copy ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px 20px;
}
.cg-about-copy li { position: relative; padding-left: 25px; }
.cg-about-copy li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: .52em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
@media (min-width: 640px) {
  .cg-about-copy ul { grid-template-columns: 1fr 1fr; }
}
.cg-about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cg-about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.cg-about-card > h3 { font-size: 1.02rem; margin: 0 0 14px; color: var(--text); }
.cg-fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cg-fact-list li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cg-fact-ic {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(244, 184, 39, .12);
}
.cg-fact-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cg-fact-text strong { color: var(--text); font-size: 1rem; font-weight: 700; }
.cg-fact-text small { color: var(--text-muted); font-size: .78rem; }
.cg-about-nearby { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.cg-about-nearby h4 {
  margin: 0 0 10px;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cg-nearby-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-nearby-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text);
  font-size: .82rem;
  line-height: 1.2;
  transition: border-color .2s ease, color .2s ease;
}
.cg-nearby-list a:hover { border-color: var(--primary); color: var(--primary); }
.cg-nearby-list em {
  font-style: normal;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 1px 6px;
}
.cg-about-services { margin-top: 28px; }
.cg-about-services h3 { font-size: .98rem; margin: 0 0 12px; color: var(--text); }
.cg-about-chips { display: flex; flex-wrap: wrap; gap: 9px; }
html.light-mode .cg-about-card { background: #fff; border-color: #e6dfd2; }
html.light-mode .cg-about-copy a { color: #8a6300; }
html.light-mode .cg-about-copy a:hover { color: #6f5000; }
html.light-mode .cg-about-copy li::before { border-color: #8a6300; }
html.light-mode .cg-about-more { background: #fff; border-color: #e0d8ca; }
html.light-mode .cg-about-more:hover { color: #8a6300; border-color: #8a6300; }
html.light-mode .cg-nearby-list a { background: #f7f4ed; }
html.light-mode .cg-nearby-list em { background: #fff; }

@media (max-width: 991px) {
  .cg-loc-about { padding: 40px 0 46px; }
  .cg-about-grid { grid-template-columns: 1fr; gap: 22px; }
  .cg-about-head h2 { max-width: none; }
  .cg-about-copy { max-width: 72ch; }
  .cg-about-card { max-width: none; }
}
@media (max-width: 575px) {
  .cg-loc-about { padding: 34px 0 40px; }
  .cg-about-head h2 { font-size: 1.35rem; }
  .cg-about-copy { font-size: .96rem; line-height: 1.75; }
  .cg-about-card { padding: 18px; border-radius: 14px; max-width: none; }
  .cg-fact-list { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .cg-fact-list li { gap: 9px; }
  .cg-fact-ic { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
  .cg-fact-text strong { font-size: .95rem; }
  .cg-fact-text small { font-size: .72rem; line-height: 1.25; }
  .cg-about-nearby { margin-top: 16px; padding-top: 14px; }
  .cg-nearby-list a { min-height: 34px; font-size: .78rem; padding: 6px 10px; }
  .cg-about-actions { flex-direction: column; align-items: stretch; }
  .cg-about-actions .cg-btn { justify-content: center; width: 100%; }
  .cg-about-chips { gap: 7px; }
  .cg-about-services .cg-service-chip { min-height: 38px; padding: 7px 12px; font-size: .8rem; }
}

/* ---- Homepage SEO guide ---- */
.cg-seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  align-items: start;
}
.cg-seo-copy { padding: 30px clamp(20px, 3vw, 38px); }
.cg-seo-copy h3 {
  font-size: 1.16rem;
  line-height: 1.35;
  margin: 1.65em 0 .45em;
  color: var(--text);
}
.cg-seo-copy h3:first-child { margin-top: 0; }
.cg-seo-copy p {
  margin: 0 0 1em;
  color: var(--text-secondary);
  font-size: .96rem;
  line-height: 1.8;
}
.cg-seo-copy p:last-child { margin-bottom: 0; }
.cg-seo-copy a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cg-seo-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}
.cg-seo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.cg-seo-card > h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}
.cg-seo-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cg-seo-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--border);
}
.cg-seo-links li:last-child a { border-bottom: 0; }
.cg-seo-links a:hover { color: var(--primary); }
.cg-seo-links svg { flex: 0 0 auto; opacity: .7; }
.cg-seo-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.cg-seo-facts li {
  padding-left: 12px;
  border-left: 2px solid rgba(244, 184, 39, .45);
  color: var(--text-secondary);
  font-size: .87rem;
  line-height: 1.5;
}
.cg-seo-facts strong {
  display: block;
  margin-bottom: 1px;
  color: var(--text);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.cg-seo-help p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.6;
}
.cg-seo-help .cg-btn { width: 100%; justify-content: center; min-height: 42px; }
html.light-mode .cg-seo-copy a { color: #8a6300; }
html.light-mode .cg-seo-copy a:hover { color: #6f5000; }
html.light-mode .cg-seo-card { background: #fff; border-color: #e6dfd2; }
html.light-mode .cg-seo-links a { border-bottom-color: #ece5d8; }

@media (max-width: 991px) {
  .cg-seo-layout { grid-template-columns: 1fr; gap: 20px; }
  .cg-seo-side { position: static; }
}
@media (max-width: 767px) {
  .cg-seo-copy { padding: 18px 16px; }
  .cg-seo-copy h3 { font-size: 1.02rem; margin-top: 1.4em; }
  .cg-seo-copy p { font-size: .9rem; line-height: 1.72; }
  .cg-seo-card { padding: 17px; }
}
