/* ==========================================================================
   IBD Liquid Glass layer — islamabad.org.pk
   Sits on top of the existing design (ibd-* redesign + ListingPro).
   Keeps brand green, Figtree/Sora type and every layout; changes surfaces,
   depth, buttons and motion. Remove this file to return to the old look.
   ========================================================================== */

:root {
  --lg-green: #087a2b;
  --lg-green-2: #0aa53a;
  --lg-forest: #103825;
  --lg-ink: #14231b;
  --lg-glass: rgba(255, 255, 255, 0.58);
  --lg-glass-strong: rgba(255, 255, 255, 0.74);
  --lg-edge: rgba(255, 255, 255, 0.7);
  --lg-shadow: 0 1px 1px rgba(12, 33, 23, 0.04), 0 10px 30px -8px rgba(12, 33, 23, 0.18);
  --lg-shadow-hover: 0 2px 2px rgba(12, 33, 23, 0.05), 0 22px 48px -12px rgba(12, 33, 23, 0.28);
  --lg-blur: blur(22px) saturate(185%);
  --lg-radius: 26px;
  --lg-radius-sm: 18px;
  --lg-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --lg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  interpolate-size: allow-keywords;
}

/* ---------- Living background: soft green aurora behind the page ---------- */
body:not(.wp-admin) {
  background-color: #f6faf7;
}
body > #page,
.ibd-global-header,
.ibd-redesign,
.ibd-hero {
  background: transparent !important;
}
body:not(.wp-admin)::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 12% 8%, rgba(10, 165, 58, 0.16), transparent 70%),
    radial-gradient(42vmax 42vmax at 92% 18%, rgba(56, 189, 148, 0.18), transparent 70%),
    radial-gradient(46vmax 46vmax at 70% 96%, rgba(8, 122, 43, 0.16), transparent 70%),
    radial-gradient(30vmax 30vmax at 4% 80%, rgba(180, 230, 196, 0.45), transparent 70%);
  animation: lg-aurora 28s var(--lg-ease) infinite alternate;
}
@keyframes lg-aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(3vmax, -2vmax, 0) rotate(8deg) scale(1.06); }
  100% { transform: translate3d(-2vmax, 2vmax, 0) rotate(-6deg) scale(1.02); }
}

/* ---------- Shared glass material ---------- */
.ibd-site-header,
.ibd-search,
.ibd-slide-card,
.ibd-category,
.ibd-panel,
.ibd-agency-card,
.ibd-ad,
.ibd-accordion details,
.ibd-benefit,
.ibd-faq-item,
.lp_term_archive_description,
.lp-grid-box-contianer .lp-listing {
  position: relative;
  background: var(--lg-glass) !important;
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-edge) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    var(--lg-shadow) !important;
  border-radius: var(--lg-radius) !important;
  isolation: isolate;
}
/* Real blur only where something sits behind the surface (header over the page, panels over photos).
   Cards on flat backgrounds get the same frosted look without the blur: it looks identical there,
   costs nothing on phones and avoids a Chrome repaint glitch on lifted, blurred cards. */
.ibd-category,
.ibd-panel,
.ibd-agency-card,
.ibd-ad,
.ibd-accordion details,
.ibd-benefit,
.ibd-faq-item,
.lp_term_archive_description,
.lp-grid-box-contianer .lp-listing {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74)) !important;
}

/* Light that follows the pointer (JS sets --lg-x / --lg-y) */
.ibd-category::after,
.ibd-panel::after,
.ibd-agency-card::after,
.ibd-benefit::after,
.ibd-slide-card::after,
.lp-grid-box-contianer .lp-listing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(420px circle at var(--lg-x, 50%) var(--lg-y, -20%), rgba(255, 255, 255, 0.45), transparent 42%);
  opacity: 0;
  transition: opacity 0.45s var(--lg-ease);
}
.ibd-category:hover::after,
.ibd-panel:hover::after,
.ibd-agency-card:hover::after,
.ibd-benefit:hover::after,
.ibd-slide-card:hover::after,
.lp-grid-box-contianer .lp-listing:hover::after {
  opacity: 1;
}

/* ---------- Floating glass header that condenses on scroll ---------- */
.ibd-site-header {
  margin: 10px auto 0 !important;
  width: min(1240px, calc(100% - 24px));
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  transition: width 0.5s var(--lg-ease), margin 0.5s var(--lg-ease), background 0.4s ease, box-shadow 0.4s ease;
}
.ibd-site-header.lg-condensed {
  margin-top: 6px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(12, 33, 23, 0.06), 0 18px 40px -14px rgba(12, 33, 23, 0.3) !important;
}
/* keep the skip link hidden until it is focused with the keyboard */
.ibd-skip:not(:focus):not(:focus-visible) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.ibd-skip:focus-visible {
  z-index: 10000;
  transform: none !important;
  border-radius: 999px;
}
.ibd-site-header .ibd-menu-items > a {
  position: relative;
  border-radius: 999px;
  padding: 8px 14px !important;
  transition: color 0.3s ease;
}
.lg-nav-blob {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  height: 38px;
  border-radius: 999px;
  background: rgba(8, 122, 43, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(8, 122, 43, 0.12);
  opacity: 0;
  transition: transform 0.55s var(--lg-spring), width 0.55s var(--lg-spring), opacity 0.3s ease;
  pointer-events: none;
}
.lg-nav-blob.is-on { opacity: 1; }

/* ---------- Buttons: capsule glass with press + shine ---------- */
.ibd-button,
.ibd-search button,
.lp-review-btn,
.show-number {
  position: relative;
  overflow: hidden;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--lg-green-2), var(--lg-green)) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 6px rgba(0, 60, 20, 0.25),
    0 8px 20px -8px rgba(8, 122, 43, 0.65) !important;
  transition: transform 0.45s var(--lg-spring), box-shadow 0.35s ease !important;
}
.ibd-button::before,
.ibd-search button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--lg-ease);
  pointer-events: none;
}
.ibd-button:hover::before,
.ibd-search button:hover::before {
  transform: translateX(120%);
}
.ibd-button:hover,
.ibd-search button:hover,
.lp-review-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 6px rgba(0, 60, 20, 0.25), 0 14px 28px -10px rgba(8, 122, 43, 0.7) !important;
}
.ibd-button:active,
.ibd-search button:active,
.lp-review-btn:active {
  transform: scale(0.95);
  transition-duration: 0.12s !important;
}
.ibd-button-outline {
  background: rgba(255, 255, 255, 0.5) !important;
  color: var(--lg-forest) !important;
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid rgba(16, 56, 37, 0.16) !important;
}
.ibd-button-dark {
  background: linear-gradient(180deg, #1a4d34, var(--lg-forest)) !important;
  color: #fff !important;
}
.ibd-button:focus-visible,
.ibd-category:focus-visible,
.ibd-search :is(input, select, button):focus-visible {
  outline: 3px solid rgba(10, 165, 58, 0.55) !important;
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.ibd-hero {
  background: transparent !important;
}
.ibd-hero h1 mark {
  background: linear-gradient(transparent 62%, rgba(10, 165, 58, 0.22) 62%) !important;
}
.ibd-search {
  padding: 14px !important;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(14, 160, 62, 0.94), rgba(8, 110, 40, 0.96)) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 18px 40px -16px rgba(8, 122, 43, 0.6) !important;
}
.ibd-search button {
  background: linear-gradient(180deg, #1d5a3c, var(--lg-forest)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px -8px rgba(0, 0, 0, 0.5) !important;
}
.ibd-redesign .ibd-search :is(input[type="search"], select) {
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  transition: box-shadow 0.3s ease;
}
.ibd-redesign .ibd-search :is(input[type="search"], select):focus {
  box-shadow: 0 0 0 4px rgba(10, 165, 58, 0.3);
}
.ibd-slide-card {
  overflow: hidden;
}
.ibd-slider-arrows button {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid rgba(16, 56, 37, 0.14) !important;
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -8px rgba(12, 33, 23, 0.35) !important;
  transition: transform 0.4s var(--lg-spring), background 0.3s ease;
}
.ibd-slider-arrows button:hover { transform: scale(1.08); background: #fff !important; }
.ibd-slide-title[aria-hidden="false"] mark,
.ibd-slide-description[aria-hidden="false"] {
  animation: lg-rise 0.7s var(--lg-ease) both;
}
@keyframes lg-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Cards ---------- */
.ibd-category,
.ibd-panel,
.ibd-agency-card,
.ibd-benefit {
  overflow: hidden;
}
.ibd-category,
.ibd-panel,
.ibd-agency-card,
.ibd-benefit,
.lp-grid-box-contianer .lp-listing {
  transition: transform 0.6s var(--lg-spring), box-shadow 0.45s ease !important;
}
.ibd-category:hover,
.ibd-panel:hover,
.ibd-agency-card:hover,
.ibd-benefit:hover,
.lp-grid-box-contianer .lp-listing:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--lg-shadow-hover) !important;
}
.ibd-feature-photo,
.lp-listing-top-thumb img {
  transition: transform 0.9s var(--lg-ease) !important;
}
.ibd-panel:hover .ibd-feature-photo,
.lp-grid-box-contianer .lp-listing:hover .lp-listing-top-thumb img {
  transform: scale(1.06);
}
.ibd-category .ibd-arrow {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lg-glass-strong);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px -4px rgba(12, 33, 23, 0.3);
  transition: transform 0.5s var(--lg-spring);
}
.ibd-category:hover .ibd-arrow { transform: translateX(4px) rotate(-12deg); }
.ibd-icon,
.ibd-benefit-icon,
.ibd-title-icon {
  border-radius: 14px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(233, 246, 236, 0.6)) !important;
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -6px rgba(8, 122, 43, 0.45) !important;
}
.ibd-float {
  background: var(--lg-glass-strong) !important;
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-edge) !important;
  border-radius: 18px !important;
  animation: lg-float 6s ease-in-out infinite;
}
.ibd-float-two { animation-delay: -2s; }
.ibd-float-three { animation-delay: -4s; }
@keyframes lg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Accordions / FAQ: smooth open ---------- */
.ibd-accordion details,
.ibd-faq-item {
  border-radius: var(--lg-radius-sm) !important;
  margin-bottom: 10px;
}
.ibd-accordion details::details-content,
.ibd-faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.5s var(--lg-ease), content-visibility 0.5s allow-discrete;
}
.ibd-accordion details[open]::details-content,
.ibd-faq-item[open]::details-content {
  block-size: auto;
}
.ibd-faq-item[open] summary,
.ibd-accordion details[open] summary {
  color: var(--lg-green) !important;
}

/* ---------- Directory pages (categories / areas / listings) ---------- */
.lp_term_archive_description {
  padding: 26px 28px !important;
}
.ibd-term-title {
  font-family: "Sora", "Figtree", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.lp-listings-inner-wrap {
  border: 0 !important;
}
.lp-grid-box-contianer {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.lp-grid-box-contianer .lp-listing {
  margin-bottom: 22px;
}
/* listing page sidebar boxes sit over a photo: use a near-solid frosted panel */
.lp-widget-inner-wrap,
.lp_detail_page_styles4 .lp-sidebar .lp-widget {
  background: rgba(255, 255, 255, 0.9) !important;
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: var(--lg-radius-sm) !important;
  box-shadow: inset 0 1px 0 #fff, var(--lg-shadow) !important;
}
.lp-listing-top-thumb {
  border-radius: calc(var(--lg-radius) - 6px) calc(var(--lg-radius) - 6px) 0 0;
  overflow: hidden;
}
.lp-listing-cat,
.verified {
  border-radius: 999px !important;
}
.ibd-term-faq {
  background: transparent !important;
}

/* ---------- Footer ---------- */
.ibd-footer,
.ibd-global-footer-wrap {
  background:
    radial-gradient(60% 120% at 10% 0%, rgba(10, 165, 58, 0.25), transparent 60%),
    linear-gradient(180deg, #123d29, #0c2117) !important;
  border-radius: 32px 32px 0 0;
}
.ibd-socials a {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  transition: transform 0.45s var(--lg-spring), background 0.3s ease !important;
}
.ibd-socials a:hover { transform: translateY(-3px) scale(1.08); background: rgba(255, 255, 255, 0.2) !important; }

/* ---------- Scroll reveal (only when the script is running) ---------- */
html.lg-js .lg-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.9s var(--lg-ease), transform 0.9s var(--lg-ease);
  transition-delay: var(--lg-delay, 0s);
}
html.lg-js .lg-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Fallbacks & accessibility ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ibd-site-header, .ibd-category, .ibd-panel, .ibd-agency-card, .ibd-ad, .ibd-benefit,
  .ibd-faq-item, .lp_term_archive_description, .lp-grid-box-contianer .lp-listing {
    background: rgba(255, 255, 255, 0.94) !important;
  }
}
/* Small laptops / landscape tablets: the menu was already overlapping the logo at ~1024px.
   Tighten spacing and drop the small menu icons so everything fits on one line. */
@media (min-width: 768px) and (max-width: 1299px) {
  .ibd-site-header { width: calc(100% - 16px); }
  .ibd-site-header .ibd-nav { gap: 10px !important; padding-inline: 14px !important; max-width: none !important; }
  .ibd-site-header .ibd-menu-items { gap: 2px !important; }
  .ibd-site-header .ibd-menu-items > a,
  .ibd-site-header .ibd-menu-items summary { padding: 8px 10px !important; font-size: 14.5px !important; }
  .ibd-site-header .ibd-menu-icon { display: none !important; }
  .ibd-site-header .ibd-logo { flex: 0 1 170px; min-width: 120px; }
  .ibd-site-header .ibd-logo img { max-width: 100%; height: auto; }
  .ibd-site-header .ibd-nav > .ibd-button { padding-inline: 14px !important; white-space: nowrap; }
}
/* Portrait tablets: put the menu on its own centred row under logo + CTA */
@media (min-width: 768px) and (max-width: 1023px) {
  .ibd-site-header .ibd-nav { display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; row-gap: 6px !important; padding-block: 10px !important; }
  .ibd-site-header .ibd-menu-items { order: 3; flex: 1 0 100% !important; justify-content: center !important; display: flex !important; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .ibd-site-header .ibd-menu-items > a,
  .ibd-site-header .ibd-menu-items summary { padding: 8px 7px !important; font-size: 13.5px !important; }
  .ibd-site-header .ibd-logo { flex-basis: 140px; }
}
@media (max-width: 767px) {
  :root { --lg-radius: 22px; --lg-blur: blur(16px) saturate(170%); }
  .ibd-site-header { width: calc(100% - 16px); border-radius: 20px !important; }
  .ibd-site-header .ibd-nav {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 8px !important;
    padding-inline: 10px !important;
  }
  .ibd-site-header .ibd-logo { min-width: 0; max-width: 100%; }
  .ibd-site-header .ibd-logo img { max-width: 100%; height: auto; }
  .ibd-site-header .ibd-nav > .ibd-button { padding-inline: 14px !important; }
  body:not(.wp-admin)::before { animation-duration: 40s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  html.lg-js .lg-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   v2 — bolder, Apple-style pass
   ========================================================================== */

/* ---------- Type: big, tight display headings ---------- */
.ibd-redesign h1,
.ibd-redesign h2,
.ibd-term-title,
.lp-listing-name h1 {
  letter-spacing: -0.035em !important;
}
.ibd-hero h1 {
  font-size: clamp(42px, 5.4vw, 78px) !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
}
.ibd-hero h1 mark {
  background: linear-gradient(100deg, #077a2a 0%, #0fae4a 35%, #14b8a6 60%, #077a2a 100%) !important;
  background-size: 220% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  padding: 0 0.04em;
  animation: lg-sheen 7s ease-in-out infinite;
}
@keyframes lg-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.ibd-hero p { color: #44544a !important; }

/* ---------- Hero: living colour field + entrance ---------- */
.ibd-hero { position: relative; isolation: isolate; }
.ibd-hero::before {
  content: "";
  position: absolute;
  inset: -120px -4vw -40px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(34% 46% at 18% 30%, rgba(16, 185, 80, 0.30), transparent 70%),
    radial-gradient(30% 40% at 78% 22%, rgba(20, 184, 166, 0.26), transparent 70%),
    radial-gradient(36% 44% at 62% 86%, rgba(132, 204, 22, 0.20), transparent 70%),
    radial-gradient(26% 36% at 6% 92%, rgba(8, 122, 43, 0.18), transparent 70%);
  filter: blur(30px) saturate(120%);
  animation: lg-mesh 16s ease-in-out infinite alternate;
}
@keyframes lg-mesh {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -2%, 0) scale(1.05); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.02); }
}
.ibd-hero h1,
.ibd-hero h1 + p,
.ibd-hero .ibd-actions,
.ibd-hero .ibd-search,
.ibd-hero .ibd-slide-card,
.ibd-hero .ibd-slider-controls {
  animation: lg-in 1s var(--lg-ease) both;
}
.ibd-hero h1 + p { animation-delay: 0.12s; }
.ibd-hero .ibd-actions { animation-delay: 0.22s; }
.ibd-hero .ibd-search { animation-delay: 0.32s; }
.ibd-hero .ibd-slide-card { animation-delay: 0.18s; animation-duration: 1.2s; }
.ibd-hero .ibd-slider-controls { animation-delay: 0.4s; }
@keyframes lg-in {
  from { opacity: 0; transform: translateY(26px) scale(0.98); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}
.ibd-slide-card {
  border-radius: 32px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 30px 60px -24px rgba(12, 33, 23, 0.45) !important;
}

/* ---------- Section headings: open, large, no dark bars ---------- */
.ibd-section-head,
#ibd-categories .ibd-section-head {
  background: transparent !important;
  color: var(--lg-ink) !important;
  padding: 0 2px !important;
  margin-bottom: clamp(18px, 2.4vw, 32px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  align-items: flex-end !important;
}
.ibd-section-head h2,
#ibd-categories .ibd-section-head h2 {
  color: var(--lg-ink) !important;
  font-size: clamp(30px, 3.6vw, 52px) !important;
  font-weight: 800 !important;
  line-height: 1.04 !important;
}
.ibd-section-head .ibd-title-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 15px !important;
  color: var(--lg-green) !important;
}
.ibd-section-head .ibd-button,
#ibd-categories .ibd-section-head .ibd-button {
  background: rgba(8, 122, 43, 0.08) !important;
  color: var(--lg-green) !important;
  border: 1px solid rgba(8, 122, 43, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  font-size: 15px !important;
  padding: 10px 20px !important;
}
.ibd-section-head .ibd-button:hover { background: rgba(8, 122, 43, 0.14) !important; }
.ibd-eyebrow {
  color: var(--lg-green) !important;
  letter-spacing: 0.14em !important;
}

/* ---------- Dark panels keep dark glass (text is white there) ---------- */
.ibd-spotlight:nth-child(2),
.ibd-contact {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(20, 184, 120, 0.22), transparent 60%),
    linear-gradient(160deg, #164a32, #0c2117) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--lg-shadow) !important;
}
.ibd-spotlight:nth-child(2) :is(h3, p, a:not(.ibd-button)),
.ibd-contact :is(h2, a, span, div) { color: inherit; }
.ibd-directory-strip {
  border-radius: 999px !important;
  background: linear-gradient(180deg, #174a33, #0c2117) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--lg-shadow) !important;
}
.ibd-agency {
  border-radius: 32px !important;
  background: linear-gradient(160deg, rgba(232, 246, 236, 0.9), rgba(244, 250, 246, 0.7)) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

/* ---------- Cards: 3D tilt (JS sets --lg-rx / --lg-ry) ---------- */
.ibd-category,
.ibd-spotlight,
.ibd-agency-card,
.ibd-benefit,
.lp-grid-box-contianer .lp-listing {
  transform-style: preserve-3d;
  will-change: transform;
}
.ibd-category:hover,
.ibd-spotlight:hover,
.ibd-agency-card:hover,
.ibd-benefit:hover,
.lp-grid-box-contianer .lp-listing:hover {
  transform: perspective(1000px) rotateX(var(--lg-rx, 0deg)) rotateY(var(--lg-ry, 0deg)) translateY(-6px);
  transition: transform 0.25s var(--lg-ease), box-shadow 0.45s ease !important;
}
.ibd-category { border-radius: 28px !important; }

/* ---------- Buttons: lean toward the cursor (JS sets --lg-mx / --lg-my) ---------- */
.ibd-button:hover,
.ibd-search button:hover {
  transform: translate(var(--lg-mx, 0px), calc(var(--lg-my, 0px) - 2px)) scale(1.03);
}

/* ---------- Scroll progress line ---------- */
.lg-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100000;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #0aa53a, #14b8a6, #84cc16);
  box-shadow: 0 0 12px rgba(10, 165, 58, 0.6);
  pointer-events: none;
}

/* ---------- Reveal: rise + un-blur ---------- */
html.lg-js .lg-reveal {
  filter: blur(8px);
  transition: opacity 0.9s var(--lg-ease), transform 0.9s var(--lg-ease), filter 0.9s var(--lg-ease);
  transition-delay: var(--lg-delay, 0s);
}
html.lg-js .lg-reveal.is-in { filter: none; }

/* ---------- Top strip: lighter ---------- */
.ibd-topbar {
  background: linear-gradient(90deg, #0c2117, #133a28 50%, #0c2117) !important;
  font-size: 13px;
}

/* ---------- Directory pages ---------- */
.lp-archive-banner {
  background:
    radial-gradient(40% 90% at 15% 20%, rgba(16, 185, 80, 0.55), transparent 70%),
    radial-gradient(35% 80% at 85% 30%, rgba(20, 184, 166, 0.5), transparent 70%),
    radial-gradient(50% 90% at 55% 120%, rgba(132, 204, 22, 0.35), transparent 70%),
    linear-gradient(135deg, #0d3a26, #0f5132 55%, #0b2c1d) !important;
  background-size: 140% 140%, 140% 140%, 140% 140%, 100% 100% !important;
  animation: lg-banner 18s ease-in-out infinite alternate;
  padding-block: 18px !important;
}
@keyframes lg-banner {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  100% { background-position: 30% 40%, 70% 30%, 40% 60%, 0 0; }
}
.lp-archive-banner .lp-header-overlay { background: transparent !important; }
.lp-archive-banner :is(h1, h2, h3, .lp-header-title, .lp-title) {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  font-size: clamp(24px, 2.6vw, 38px) !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.lp-archive-banner .lp-search-bar,
.lp-archive-banner .lp-header-search-form {
  border-radius: 999px !important;
}
.lp-archive-banner .select-filter,
.lp-archive-banner .lp-search-bar .form-control,
.lp-archive-banner .chosen-container .chosen-single {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: inset 0 1px 0 #fff, 0 12px 32px -12px rgba(0, 0, 0, 0.45) !important;
}
.open-now-filter a,
.lp-filter-inner .btn.default,
.lp-filter-inner .btn,
.sort-filters-wrap a {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid rgba(16, 56, 37, 0.12) !important;
  color: var(--lg-ink) !important;
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgba(12, 33, 23, 0.25) !important;
  padding: 8px 16px !important;
  transition: transform 0.4s var(--lg-spring), background 0.3s ease !important;
}
.open-now-filter a:hover,
.lp-filter-inner .btn:hover,
.sort-filters-wrap a:hover { transform: translateY(-1px); background: #fff !important; }
.open-now-filter a i,
.lp-filter-inner .btn i { color: var(--lg-green) !important; }
.listing-view-layout ul {
  display: inline-flex !important;
  gap: 2px;
  padding: 4px !important;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(16, 56, 37, 0.07);
  box-shadow: inset 0 1px 2px rgba(12, 33, 23, 0.08);
}
.listing-view-layout ul li { margin: 0 !important; }
.listing-view-layout ul li a {
  display: grid !important;
  place-items: center;
  width: 44px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #5b6b61 !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.listing-view-layout ul li a.active {
  background: #fff !important;
  color: var(--lg-green) !important;
  box-shadow: 0 1px 2px rgba(12, 33, 23, 0.12), 0 4px 10px -4px rgba(12, 33, 23, 0.25) !important;
}
.lp-grid-box-contianer .lp-listing { border-radius: 26px !important; }
.lp-listing-top-thumb,
.lp-listing-top-thumb img { border-radius: 18px !important; }
.lp-new-grid-bottom-button {
  border: 0 !important;
  background: transparent !important;
}
.lp-new-grid-bottom-button ul {
  display: flex !important;
  gap: 10px;
  padding: 4px 0 2px !important;
  border: 0 !important;
}
.lp-new-grid-bottom-button ul li {
  flex: 1 1 0;
  border: 0 !important;
  float: none !important;
  width: auto !important;
}
.lp-new-grid-bottom-button ul li a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 999px !important;
  background: rgba(8, 122, 43, 0.07) !important;
  border: 1px solid rgba(8, 122, 43, 0.14) !important;
  color: var(--lg-forest) !important;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.4s var(--lg-spring);
}
.lp-new-grid-bottom-button ul li a:hover { background: rgba(8, 122, 43, 0.14) !important; transform: translateY(-1px); }
.lp-pagination .page-numbers li > :is(span, a) {
  display: inline-grid !important;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 999px !important;
  border: 1px solid rgba(16, 56, 37, 0.12) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--lg-ink) !important;
  margin: 0 3px;
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px -6px rgba(12, 33, 23, 0.3);
}
.lp-pagination .page-numbers li > .current {
  background: linear-gradient(180deg, var(--lg-green-2), var(--lg-green)) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.leaflet-container,
.lp-sidebar .widget-box.map-area,
#cat-map,
.lp-sidebar [class*="map"] .leaflet-container {
  border-radius: 24px !important;
  overflow: hidden !important;
}

/* ---------- Single listing: ambient blurred header ---------- */
.lp-listing-top-title-header { position: relative; isolation: isolate; }
.lp-listing-top-title-header .lp-header-overlay {
  background: linear-gradient(180deg, rgba(6, 22, 14, 0.55), rgba(6, 22, 14, 0.72)) !important;
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  opacity: 1 !important;
}
.lp-listing-top-title-header :is(.add-to-fav-v2, .lp-single-sharing) {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  padding: 6px 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.lp-rating-avg { border-radius: 999px !important; padding-inline: 12px !important; }
.lp-listing-logo img { border-radius: 999px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 10px 24px -8px rgba(0, 0, 0, 0.5); }
.lp-listing-slide img,
.lp-listing-slider img { border-radius: 20px !important; }
.lp-listing-faq .faq-title,
.lp-listing-faq .ui-accordion-content { border-radius: 16px !important; }
.review-reaction { border-radius: 999px !important; }
.lp-listing-leadform input,
.lp-listing-leadform textarea { border-radius: 12px !important; }

/* ---------- Footer fixes ---------- */
.ibd-socials a {
  width: auto !important;
  height: 40px !important;
  padding: 0 18px !important;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
}
.ibd-global-legal > span,
.ibd-legal > span { color: rgba(255, 255, 255, 0.62) !important; }

/* Theme notification bar: only when it has a message */
.lp-notifaction-area:not(.active-wrap) { visibility: hidden !important; }

@media (max-width: 767px) {
  .ibd-hero h1 { font-size: clamp(38px, 10.5vw, 52px) !important; }
  .ibd-section-head h2, #ibd-categories .ibd-section-head h2 { font-size: clamp(28px, 8vw, 38px) !important; }
  .ibd-directory-strip { border-radius: 24px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.lg-js .lg-reveal { filter: none !important; }
  .lg-progress { display: none; }
}

/* ---------- v2 refinements ---------- */
.ibd-hero::before {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
.ibd-slider-dots button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.lp-header-search-filters .open-now-filter a,
.sort-filters-wrap .open-now-filter a,
.lp-archive-banner .open-now-filter a {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  padding: 8px 18px !important;
}
.lp-header-search-filters .open-now-filter a i { color: #b9f5c8 !important; }
.listing-view-layout.listing-view-layout-v2 ul li a,
.lp-header-togglesa .listing-view-layout ul li a {
  border: 0 !important;
  outline: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
}
.listing-view-layout.listing-view-layout-v2 ul li a.active,
.lp-header-togglesa .listing-view-layout ul li a.active {
  background: #fff !important;
  color: var(--lg-green) !important;
  box-shadow: 0 1px 2px rgba(12, 33, 23, 0.12), 0 4px 10px -4px rgba(12, 33, 23, 0.25) !important;
}
/* Reviews: rounded cards, site font instead of the theme serif */
.ibd-review-section .classic-reivew-grid-outer-boxed,
.ibd-review-section .lp-activity-thumb {
  border-radius: 26px !important;
  overflow: hidden !important;
}
.ibd-review-section .classic-reivew-grid-outer-boxed {
  box-shadow: 0 24px 48px -24px rgba(12, 33, 23, 0.5) !important;
  transition: transform 0.5s var(--lg-spring), box-shadow 0.4s ease;
}
.ibd-review-section .classic-reivew-grid-outer-boxed:hover { transform: translateY(-6px); }
.ibd-review-section :is(p, h3, h4, h5, span, a, div):not([class*="fa"]) {
  font-family: "Figtree", system-ui, -apple-system, sans-serif !important;
}
.ibd-hero::before {
  inset: -120px -4vw 0 !important;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%) !important;
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%) !important;
}
.open-now-filter.header-filter-wrap,
.sort-filters-wrap .header-filter-wrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Price filter: the theme draws four empty 4px slivers; show them as $ … $$$$ pills */
.lp-header-search-filters .priceRangeFilter {
  display: inline-flex !important;
  gap: 4px;
  padding: 4px !important;
  margin: 0 8px 0 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  vertical-align: middle;
}
.lp-header-search-filters .priceRangeFilter li {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  float: none !important;
}
.lp-header-search-filters .priceRangeFilter li a {
  display: grid !important;
  place-items: center;
  min-width: 36px;
  height: 34px !important;
  padding: 0 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #fff !important;
  font: 700 13px/1 "Figtree", system-ui, sans-serif;
  text-decoration: none !important;
  transition: background 0.3s ease, color 0.3s ease;
}
.lp-header-search-filters .priceRangeFilter li#one a::before { content: "$"; }
.lp-header-search-filters .priceRangeFilter li#two a::before { content: "$$"; }
.lp-header-search-filters .priceRangeFilter li#three a::before { content: "$$$"; }
.lp-header-search-filters .priceRangeFilter li#four a::before { content: "$$$$"; }
.lp-header-search-filters .priceRangeFilter li a:hover { background: rgba(255, 255, 255, 0.2) !important; }
.lp-header-search-filters .priceRangeFilter li.active a,
.lp-header-search-filters .priceRangeFilter li a.active {
  background: #fff !important;
  color: var(--lg-green) !important;
}
.lp-header-search-filters .filters-wrap-for-mobile { display: flex !important; align-items: center; gap: 8px; justify-content: center; }
.lp-header-search-filters .price-filter,
.lp-header-search-filters .sort-filters-wrap { float: none !important; margin: 0 !important; }
.listing-view-layout ul li a i {
  border: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
}
#see_filter {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.85) !important;
  color: var(--lg-ink) !important;
  border: 1px solid rgba(16, 56, 37, 0.12) !important;
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgba(12, 33, 23, 0.25) !important;
  font-weight: 600;
  white-space: nowrap;
}
.lp-archive-banner .lp-search-bar,
.lp-archive-banner .lp-header-search-form,
.lp-archive-banner .lp-search-bar .form-control,
.lp-archive-banner .chosen-container .chosen-single {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.lp-archive-banner .select-filter {
  display: flex !important;
  align-items: center;
}
.lp-archive-banner .select-filter > * { margin-block: 0 !important; }

/* Never allow sideways page scroll (theme .row overflow on some pages, listing gallery track).
   overflow-x: clip does not create a scroll container, so the sticky header keeps working. */
html,
body {
  overflow-x: clip;
}
