/* Load tooltip styles first so the browser does not ignore the import. */
@import url('tooltips.css');

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --primary-color: #ffffff;
  --theme-bg: #0b0b0b;
  --theme-bg-soft: #121212;
  --theme-surface: rgba(255, 255, 255, 0.08);
  --theme-surface-strong: rgba(255, 255, 255, 0.14);
  --theme-surface-muted: rgba(255, 255, 255, 0.05);
  --theme-border: rgba(255, 255, 255, 0.18);
  --theme-border-strong: rgba(255, 255, 255, 0.28);
  --theme-text: #f5f5f5;
  --theme-text-muted: #c8c8c8;
  --theme-text-soft: #9a9a9a;
  --theme-accent: #f0f0f0;
  --theme-accent-soft: rgba(255, 255, 255, 0.14);
  --theme-accent-strong: #ffffff;
  --theme-shadow: rgba(0, 0, 0, 0.38);
  --theme-glow: rgba(255, 255, 255, 0.12);
  --theme-focus: #ffffff;
  --theme-route: #0000ff;
  --theme-pin: #4285F4;
  --theme-pin-border: #4285F4;
  --theme-pin-glyph: #ffffff;
  --theme-overlay: rgba(0, 0, 0, 0.52);
  --map-ink: #f5f5f5;
  --map-ink-soft: #c8c8c8;
  --map-gold: #f0f0f0;
  --map-gold-glow: rgba(255, 255, 255, 0.14);
  --map-gold-soft: rgba(255, 255, 255, 0.08);
  --map-burgundy: #1f1f1f;
  --map-surface: rgba(255, 255, 255, 0.08);
  --map-surface-strong: rgba(255, 255, 255, 0.14);
  --map-border: rgba(255, 255, 255, 0.18);
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #080808, #111111);
  color: var(--theme-text);
}

.container {
  padding: 2rem;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 8px;
  z-index: 60;
  width: min(1360px, calc(100% - 20px));
  margin: 12px auto 0;
  padding: 0.9rem 1.3rem;
  box-sizing: border-box;
  color: var(--theme-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.72));
  backdrop-filter: blur(18px) saturate(110%);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.navbar-logo {
  width: 120px;
  margin-left: 15px;
}

.navbar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 20px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.navbar-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--theme-accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggle:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

.navbar.is-mobile-open .navbar-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar.is-mobile-open .navbar-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.is-mobile-open .navbar-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.navbar nav a {
  color: var(--theme-text);
  margin-left: 1rem;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 60px;
  background: transparent;
  font-family: 'Bebas Neue';
  font-weight: normal;
  font-size: 1.5em;
  letter-spacing: 3px;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.24s ease, background-color 0.24s ease, border-color 0.24s ease,
    box-shadow 0.24s ease, transform 0.2s ease;
}

.navbar nav a::after {
  content: none;
}

.navbar nav a:hover {
  color: var(--theme-accent-strong);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.navbar nav a.active {
  color: var(--theme-accent-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.08));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 20px rgba(0, 0, 0, 0.24),
    0 0 12px rgba(255, 255, 255, 0.06);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.96), rgba(8, 8, 8, 0.98));
  color: var(--theme-text);
}

.site-footer__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
}

.site-footer__meta {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-footer__disclaimer {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--theme-text-muted);
}

/* ─── Generic Card ───────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  grid-auto-rows: 1fr;
  width: 100%;
  margin: 0 auto;
}

.card {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--theme-text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  border-radius: 6px;
}

/* ─── Lawyer Card ────────────────────────────────────────────────────────── */
.lawyer-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.5), rgba(15, 15, 15, 0.8));
  backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.32),
    0 0 12px rgba(255, 255, 255, 0.08),
    0 0 28px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--details-ink);
  text-decoration: none;
  /*
    color: black;
  */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.lawyer-card div:last-child {
  min-width: 0;
  flex: 1;
}

.lawyer-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.50);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.42),
    0 0 16px rgba(255, 255, 255, 0.18),
    0 0 36px rgba(255, 255, 255, 0.12),
    0 0 64px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.card.lawyer-card h3 {
  margin: 0;
  color: var(--theme-text);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.card.lawyer-card p {
  margin: 7px 0 0;
  color: var(--theme-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
  /* Or a specific max-width */
}

.card.lawyer-card img {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eceff3;
  display: block;
  margin: 2px auto 10px;
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.12);
}

/* ─── Basic Info Card ────────────────────────────────────────────────────── */
.basic-card {
  width: 290px;
  padding: 12px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

.basic-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.basic-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 190px;
  color: #111111;
}

.basic-pill {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: #111111;
  border: 1px solid #111111;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.basic-pill.offline {
  color: #333333;
  background: #e8e8e8;
  border-color: #cfcfcf;
}

.basic-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4a4a4a;
  margin-bottom: 10px;
}

.basic-dot {
  color: #8a8a8a;
}

.basic-service-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 8px;
}

.basic-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #111111;
  background: #e7e7e7;
  border-radius: 999px;
  padding: 3px 8px;
}

.basic-service-row .type-line {
  display: block;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  color: #333333;
}

.basic-sub {
  font-size: 12px;
  line-height: 1.4;
  color: #4a4a4a;
  margin-top: 4px;
}

.basic-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.basic-actions .nav-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid #c8c8c8;
  color: #1a1a1a;
  background: #f0f0f0;
  padding: 8px 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.basic-actions .nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.basic-actions .nav-btn-primary {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.basic-actions .nav-btn-primary:hover {
  background: #ffffff;
  border-color: #111111;
  color: #000000;
}

/* ─── Place Card ─────────────────────────────────────────────────────────── */
.place-card {
  width: 280px;
  font-family: Arial, sans-serif;
}

.place-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.place-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.place-title {
  font-weight: 700;
  font-size: 16px;
}

.place-sub {
  font-size: 13px;
  color: var(--theme-text-muted);
}

.place-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.place-photo {
  display: none;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.place-photo.active {
  display: block;
}

/* ─── Misc ───────────────────────────────────────────────────────────────── */
.alert-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--theme-text);
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  cursor: pointer;
}

.type-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Search ─────────────────────────────────────────────────────────────── */
.flex-search {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  position: relative;
}

.search-form {
  width: 70%;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--theme-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.search-bar:hover,
.search-bar:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.search-icon {
  font-size: 20px;
  color: var(--theme-text);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  padding-left: 10px;
  position: relative;
  z-index: 1;
  color: var(--theme-text);
}

.search-placeholder-anim {
  position: absolute;
  left: 22px;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--theme-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 2;
}

.search-form.has-value .search-placeholder-anim {
  opacity: 0;
}

.search-placeholder-anim.swipe-out {
  animation: placeholder-swipe-out 180ms ease forwards;
}

.search-placeholder-anim.swipe-in {
  animation: placeholder-swipe-in 220ms ease forwards;
}

.search-btn {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--theme-text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-btn span {
  font-size: 18px;
  color: var(--theme-text);
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ─── Suggestions ────────────────────────────────────────────────────────── */
.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 15%;
  z-index: 30;
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
  width: 70%;
  color: var(--theme-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.24s ease, visibility 0s linear 0.24s;
}

.suggestions:empty {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.suggestions:not(:empty) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.suggestion-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--theme-text);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.suggestion-item::before {
  content: "";
  width: 3px;
  height: 62%;
  border-radius: 999px;
  background: transparent;
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.suggestion-item:hover::before,
.suggestion-item.active::before {
  background: var(--theme-accent-strong);
}

.suggestion-main {
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-main mark {
  background: rgba(255, 255, 255, 0.16);
  color: var(--theme-accent-strong);
  border-radius: 3px;
  padding: 0 2px;
}

.suggestion-hint {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--theme-text-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 7px;
}

.suggestions::-webkit-scrollbar {
  width: 10px;
}

.suggestions::-webkit-scrollbar-track {
  background: transparent;
}

.suggestions::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  border: 3px solid #0b0b0b;
}

/* ─── Map ────────────────────────────────────────────────────────────────── */
.map-container {
  padding-top: 0;
  margin-bottom: 20px;
  height: 500px;
}

.map-container h2 {
  margin-top: 10px;
}

.map-box {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--theme-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

/* ─── Filters ────────────────────────────────────────────────────────────── */
.map-filters {
  width: 100%;
  margin-top: 10px;
  padding: 10px 32px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--theme-text);
}

.map-notice {
  width: 100%;
  box-sizing: border-box;
  padding: 0 32px;
  margin-top: 4px;
  color: var(--theme-text-muted);
  font-size: 13px;
  font-weight: 600;
  min-height: 18px;
}

.filters-left {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.filters-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.filters select {
  margin-right: 0.5rem;
}

.filter-field {
  width: clamp(150px, 14vw, 190px);
  flex: 0 0 clamp(150px, 14vw, 190px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-text-muted);
}

.filter-field select {
  width: 100%;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.06),
    0 0 8px rgba(255, 255, 255, 0.06),
    0 0 18px rgba(255, 255, 255, 0.04);
}

.filter-field select:hover,
.filter-field select:focus {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.10),
    0 0 0 3px rgba(255, 255, 255, 0.07),
    0 0 12px rgba(255, 255, 255, 0.18),
    0 0 28px rgba(255, 255, 255, 0.12),
    0 0 52px rgba(255, 255, 255, 0.06);
}

.clear-filter-btn {
  height: 38px;
  width: 70px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--theme-text);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.06),
    0 0 18px rgba(255, 255, 255, 0.04);
}

.clear-filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.16),
    0 0 24px rgba(255, 255, 255, 0.10),
    0 0 48px rgba(255, 255, 255, 0.06);
}

.sort-filter-btn {
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-text);
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.06),
    0 0 18px rgba(255, 255, 255, 0.04);
}

.sort-filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.16),
    0 0 24px rgba(255, 255, 255, 0.10),
    0 0 48px rgba(255, 255, 255, 0.06);
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes placeholder-swipe-out {
  from {
    transform: translateY(-50%);
    opacity: 1;
  }

  to {
    transform: translateY(calc(-50% - 14px));
    opacity: 0;
  }
}

@keyframes placeholder-swipe-in {
  from {
    transform: translateY(calc(-50% + 14px));
    opacity: 0;
  }

  to {
    transform: translateY(-50%);
    opacity: 1;
  }
}

@keyframes suggestion-item-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes filter-field-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Media Queries ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-filters {
    align-items: stretch;
  }

  .filters-right {
    width: 100%;
    justify-content: flex-end;
  }

  .filter-field {
    width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 820px) {
  .navbar {
    width: calc(100% - 16px);
    margin: 0 8px;
    padding: 0.65rem 0.8rem;
    border-radius: 26px;
    gap: 10px;
  }

  .navbar-logo {
    width: clamp(88px, 30vw, 110px);
    margin-left: 6px;
  }

  .navbar-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
  }

  .navbar nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 0.75rem;
    right: 0.75rem;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    border-radius: 20px;
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(40px) saturate(160%) brightness(0.7);
    -webkit-backdrop-filter: blur(40px) saturate(160%) brightness(0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      0 32px 64px rgba(0, 0, 0, 0.72),
      0 8px 24px rgba(0, 0, 0, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.28s ease;
  }

  .navbar.is-mobile-open nav,
  .navbar nav.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding: 8px;
  }

  .navbar nav a {
    margin-left: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 1.2em;
    letter-spacing: 2px;
  }

  .navbar nav a:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 16px rgba(0, 0, 0, 0.24);
  }

  .navbar nav a.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.1));
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 18px rgba(0, 0, 0, 0.24);
  }

  .suggestions {
    width: 100%;
    left: 0;
    margin-top: 4px;
  }

  .suggestion-item {
    animation: suggestion-item-pop 0.2s ease both;
  }

  .suggestion-item:nth-child(2) {
    animation-delay: 0.02s;
  }

  .suggestion-item:nth-child(3) {
    animation-delay: 0.04s;
  }

  .suggestion-item:nth-child(4) {
    animation-delay: 0.06s;
  }

  .suggestion-item:nth-child(5) {
    animation-delay: 0.08s;
  }

  .filter-field select {
    transition: border-color 0.2s ease, box-shadow 0.22s ease, transform 0.22s ease;
  }

  .filter-field select:focus,
  .filter-field select:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.50);
    box-shadow:
      0 8px 14px rgba(0, 0, 0, 0.18),
      0 0 12px rgba(255, 255, 255, 0.14),
      0 0 26px rgba(255, 255, 255, 0.08);
  }

  .map-filters.is-open .filter-field {
    animation: filter-field-reveal 0.26s ease both;
  }

  .map-filters.is-open .filter-field:nth-child(2) {
    animation-delay: 0.03s;
  }

  .map-filters.is-open .filter-field:nth-child(3) {
    animation-delay: 0.06s;
  }

  .map-filters.is-open .filter-field:nth-child(4) {
    animation-delay: 0.09s;
  }

  .map-filters.is-open .filter-field:nth-child(5) {
    animation-delay: 0.12s;
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__inner {
    width: calc(100% - 20px);
  }

  .filters-left {
    width: 100%;
  }

  .filter-field {
    width: 100%;
  }

  .filters-right {
    width: 100%;
    justify-content: space-between;
  }

  .find-page .find-controls,
  .find-page .container {
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
  }

  .find-page .search-form {
    flex-basis: 100%;
  }

  .find-page .mobile-filter-toggle {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .suggestions,
  .suggestion-item,
  .filter-field,
  .filter-field select {
    animation: none !important;
    transition: none !important;
  }
}

.map-video-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.map-background-video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.5);
  transform: scale(1.03);
  transform-origin: center center;
  will-change: transform;
}

.map-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.44), rgba(8, 8, 8, 0.8));
}

/* ─── Navbar Right Container ─────────────────────────────────────────────── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── Theme Toggle Button ────────────────────────────────────────────────── */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--theme-text);
  padding: 0;
  transition: background 0.22s ease, border-color 0.22s ease,
    box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
  transform: scale(1.08) rotate(15deg);
}

.theme-toggle-btn:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

.theme-toggle-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

/* Dark mode: show sun (click → go light). Light mode: show moon (click → go dark). */
.theme-toggle-btn .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: block;
}

/* ─── Light Theme Variables ──────────────────────────────────────────────── */
[data-theme="light"] {
  --theme-bg: #f4f0ea;
  --theme-bg-soft: #ede8e1;
  --theme-surface: rgba(255, 255, 255, 0.65);
  --theme-surface-strong: rgba(255, 255, 255, 0.88);
  --theme-surface-muted: rgba(255, 255, 255, 0.45);
  --theme-border: rgba(0, 0, 0, 0.10);
  --theme-border-strong: rgba(0, 0, 0, 0.20);
  --theme-text: #1a1410;
  --theme-text-muted: #5c5550;
  --theme-text-soft: #9a9590;
  --theme-accent: #1a1410;
  --theme-accent-soft: rgba(0, 0, 0, 0.08);
  --theme-accent-strong: #000000;
  --theme-shadow: rgba(0, 0, 0, 0.10);
  --theme-glow: rgba(0, 0, 0, 0.06);
  --theme-focus: #1a1410;
  --theme-route: #0000cc;
  --theme-pin: #2563eb;
  --theme-pin-border: #1d4ed8;
  --theme-pin-glyph: #ffffff;
  --theme-overlay: rgba(244, 240, 234, 0.52);
  --map-ink: #1a1410;
  --map-ink-soft: #5c5550;
  --map-gold: #1a1410;
  --map-gold-glow: rgba(0, 0, 0, 0.08);
  --map-gold-soft: rgba(0, 0, 0, 0.06);
  --map-burgundy: #f0ece6;
  --map-surface: rgba(255, 255, 255, 0.65);
  --map-surface-strong: rgba(255, 255, 255, 0.88);
  --map-border: rgba(0, 0, 0, 0.10);
}

/* ─── Light Theme: Base ──────────────────────────────────────────────────── */
[data-theme="light"] body {
  background: linear-gradient(180deg, #f4f0ea00, #ede8e100);
  color: var(--theme-text);
}

/* Video: wash out greatly so it reads as subtle texture */
[data-theme="light"] .map-background-video {
  filter: grayscale(1) contrast(0.6) brightness(2.4);
  opacity: 0.3;
}

[data-theme="light"] .map-video-overlay {
  background:
    radial-gradient(circle at top left, rgba(244, 240, 234, 0), transparent 32%),
    radial-gradient(circle at top right, rgba(244, 240, 234, 0), transparent 28%),
    linear-gradient(180deg, rgba(244, 240, 234, 0), rgba(237, 232, 225, 0));
}

/* ─── Light Theme: Navbar ────────────────────────────────────────────────── */
[data-theme="light"] .navbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 240, 234, 0.74));
  border-color: rgba(0, 0, 0, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}


[data-theme="light"] .navbar-toggle {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80), 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar-toggle span {
  background: var(--theme-text);
}

[data-theme="light"] .navbar nav a {
  color: var(--theme-text);
}

[data-theme="light"] .navbar nav a:hover {
  color: var(--theme-accent-strong);
  background: rgba(0, 0, 0, 0.055);
  border-color: rgba(0, 0, 0, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar nav a.active {
  color: var(--theme-accent-strong);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.03));
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 4px 12px rgba(0, 0, 0, 0.10),
    0 0 10px rgba(0, 0, 0, 0.04);
}

/* Mobile nav dropdown */
@media (max-width: 820px) {
  [data-theme="light"] .navbar nav {
    background: rgba(248, 244, 238, 0.97);
    border-color: rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12),
      0 8px 16px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  [data-theme="light"] .navbar nav a:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70), 0 4px 10px rgba(0, 0, 0, 0.07);
  }

  [data-theme="light"] .navbar nav a.active {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04));
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 4px 10px rgba(0, 0, 0, 0.09);
  }
}

/* Theme toggle button light-mode overrides */
[data-theme="light"] .theme-toggle-btn {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80), 0 4px 12px rgba(0, 0, 0, 0.07);
  color: var(--theme-text);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.24);
  transform: scale(1.08) rotate(15deg);
}

/* ─── Light Theme: Footer ────────────────────────────────────────────────── */
[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, rgba(244, 240, 234, 0.96), rgba(237, 232, 225, 0.99));
  border-top-color: rgba(0, 0, 0, 0.10);
  color: var(--theme-text);
}

[data-theme="light"] .site-footer__disclaimer {
  color: var(--theme-text-muted);
}

/* ─── Light Theme: Cards ─────────────────────────────────────────────────── */
[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.09);
  color: var(--theme-text);
}

[data-theme="light"] .lawyer-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.74));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .card.lawyer-card h3 {
  color: var(--theme-text);
}

[data-theme="light"] .card.lawyer-card p {
  color: var(--theme-text-muted);
}

/* ─── Light Theme: Filter fields ─────────────────────────────────────────── */
[data-theme="light"] .filter-field span {
  color: var(--theme-text-muted);
}

[data-theme="light"] .filter-field select {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.13);
  color: var(--theme-text);
}

[data-theme="light"] .filter-field select:hover,
[data-theme="light"] .filter-field select:focus {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 0 0 6px rgba(0, 0, 0, 0.03),
    0 0 14px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .clear-filter-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.13);
  color: var(--theme-text);
}

[data-theme="light"] .clear-filter-btn:hover {
  background: rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.22);
}

/* ─── Light Theme: Find Page ─────────────────────────────────────────────── */
[data-theme="light"] .find-page {
  background: linear-gradient(180deg, rgba(244, 240, 234, 0.92), rgba(237, 232, 225, 0.82));
}

[data-theme="light"] .find-page::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 0, 0, 0.05), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(0, 0, 0, 0.03), transparent 20%),
    radial-gradient(circle at 68% 84%, rgba(0, 0, 0, 0.025), transparent 26%);
}

[data-theme="light"] .find-page .find-controls {
  border-color: rgba(0, 0, 0, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.66));
  box-shadow: none;
}

[data-theme="light"] .find-page .search-bar {
  border-color: rgba(0, 0, 0, 0.11);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 16px rgba(0, 0, 0, 0.07), 0 0 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .find-page .search-input {
  color: var(--theme-text);
}

[data-theme="light"] .find-page .search-input::placeholder {
  color: var(--theme-text-muted);
}

[data-theme="light"] .find-page .search-btn {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.03));
  color: var(--theme-text);
}

[data-theme="light"] .find-page .map-filters {
  border-color: rgba(0, 0, 0, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.64));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.06), 0 0 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .find-page .filter-field select {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.13);
  color: var(--theme-text);
}

[data-theme="light"] .find-page .filter-field select:hover,
[data-theme="light"] .find-page .filter-field select:focus {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: none;
}

[data-theme="light"] .find-page .clear-filter-btn {
  border-color: rgba(0, 0, 0, 0.14);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.03));
  color: var(--theme-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80), 0 4px 12px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .find-page .clear-filter-btn:hover {
  filter: brightness(0.94);
}

[data-theme="light"] .find-page .mobile-filter-toggle {
  border-color: rgba(0, 0, 0, 0.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.62));
  color: var(--theme-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 4px 14px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .find-page .mobile-filter-toggle:hover {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.03));
}

[data-theme="light"] .find-page .suggestions {
  border-color: rgba(0, 0, 0, 0.11);
  background: rgba(248, 244, 238, 0.97);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.11), 0 0 18px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .find-page .suggestion-item {
  color: var(--theme-text);
}

[data-theme="light"] .find-page .suggestion-item:hover,
[data-theme="light"] .find-page .suggestion-item.active {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .find-page .suggestion-main mark {
  background: rgba(0, 0, 0, 0.09);
  color: var(--theme-accent-strong);
}

[data-theme="light"] .find-page .suggestion-hint {
  color: var(--theme-text-muted);
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .find-page .map-filters.is-open {
  border-color: rgba(0, 0, 0, 0.13);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .find-page .site-footer {
  border-top-color: rgba(0, 0, 0, 0.10);
  background: linear-gradient(180deg, rgba(244, 240, 234, 0.96), rgba(237, 232, 225, 0.99));
}

/* ─── Light Theme: Map Page ──────────────────────────────────────────────── */
[data-theme="light"] .map-page {
  background: linear-gradient(180deg, rgba(244, 240, 234, 0.92), rgba(237, 232, 225, 0.82));
}

[data-theme="light"] .map-page::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 0, 0, 0.05), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(0, 0, 0, 0.03), transparent 20%),
    radial-gradient(circle at 68% 84%, rgba(0, 0, 0, 0.025), transparent 26%);
}

[data-theme="light"] .map-page .map-controls {
  border-color: rgba(0, 0, 0, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.66));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.07), 0 0 24px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .map-page .search-bar {
  border-color: rgba(0, 0, 0, 0.11);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 16px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .map-page .search-input {
  color: var(--theme-text);
}

[data-theme="light"] .map-page .search-input::placeholder {
  color: var(--theme-text-muted);
}

[data-theme="light"] .map-page .search-btn {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.03));
  color: var(--theme-text);
}

[data-theme="light"] .map-page .map-filters {
  border-color: rgba(0, 0, 0, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.64));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .map-page .filter-field select {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.13);
  color: var(--theme-text);
}

[data-theme="light"] .map-page .filter-field select:hover,
[data-theme="light"] .map-page .filter-field select:focus {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 0 0 8px rgba(0, 0, 0, 0.03),
    0 0 12px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .map-page .clear-filter-btn {
  border-color: rgba(0, 0, 0, 0.14);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.03));
  color: var(--theme-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80), 0 4px 12px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .map-page .clear-filter-btn:hover {
  filter: brightness(0.94);
}

[data-theme="light"] .mobile-filter-toggle {
  border-color: rgba(0, 0, 0, 0.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.62));
  color: var(--theme-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 4px 14px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .map-page .suggestions {
  border-color: rgba(0, 0, 0, 0.11);
  background: rgba(248, 244, 238, 0.97);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.11);
}

[data-theme="light"] .map-page .suggestion-item {
  color: var(--theme-text);
}

[data-theme="light"] .map-page .suggestion-item:hover,
[data-theme="light"] .map-page .suggestion-item.active {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.13);
}

[data-theme="light"] .map-page .map-notice {
  color: var(--theme-text-muted);
}

[data-theme="light"] .map-page .map-container {
  border-color: rgba(0, 0, 0, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.56));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .map-page .map-container h2 {
  color: var(--theme-text);
}

[data-theme="light"] .map-page .map-box {
  border-color: rgba(0, 0, 0, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 16px 40px rgba(0, 0, 0, 0.11);
}

[data-theme="light"] .map-page .map-box::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 0, 0, 0.03), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(0, 0, 0, 0.025), transparent 26%);
}

[data-theme="light"] .map-page .map-filters.is-open {
  border-color: rgba(0, 0, 0, 0.13);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .map-page .site-footer {
  border-top-color: rgba(0, 0, 0, 0.10);
  background: linear-gradient(180deg, rgba(244, 240, 234, 0.96), rgba(237, 232, 225, 0.99));
}

/* ─── Light Theme: Lawyer Details Page ───────────────────────────────────── */
[data-theme="light"] .lawyer-details-page {
  background:
    radial-gradient(circle at 14% 15%, rgba(0, 0, 0, 0.04), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(0, 0, 0, 0.025), transparent 24%),
    linear-gradient(180deg, rgba(244, 240, 234, 0.96), rgba(237, 232, 225, 0.92));
}

[data-theme="light"] .lawyer-details-page::before {
  background:
    radial-gradient(circle at 22% 80%, rgba(0, 0, 0, 0.04), transparent 30%),
    radial-gradient(circle at 70% 84%, rgba(0, 0, 0, 0.03), transparent 26%);
}

[data-theme="light"] .lawyer-details-page .lawyer-hero {
  border-color: rgba(0, 0, 0, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.74));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.07), 0 0 18px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .lawyer-details-page .lawyer-info h2 {
  color: var(--theme-text);
}

[data-theme="light"] .lawyer-details-page .lawyer-specialty {
  color: var(--theme-text-muted);
}

[data-theme="light"] .lawyer-details-page .lawyer-location {
  color: var(--theme-text-muted);
}

[data-theme="light"] .lawyer-details-page .lawyer-meta span {
  border-color: rgba(0, 0, 0, 0.11);
  background: rgba(0, 0, 0, 0.05);
  color: var(--theme-text);
}

[data-theme="light"] .lawyer-details-page .btn-primary {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.09), rgba(0, 0, 0, 0.05));
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--theme-text);
}

[data-theme="light"] .lawyer-details-page .btn-secondary {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.03));
  border-color: rgba(0, 0, 0, 0.11);
  color: var(--theme-text);
}

[data-theme="light"] .lawyer-details-page .lawyer-section {
  border-color: rgba(0, 0, 0, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .lawyer-details-page .accordion-trigger {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.62));
  color: var(--theme-text);
}

[data-theme="light"] .lawyer-details-page .accordion-trigger:hover {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.02));
}

[data-theme="light"] .lawyer-details-page .accordion-icon {
  border-color: var(--theme-text);
}

[data-theme="light"] .lawyer-details-page .accordion-content {
  color: var(--theme-text);
}

[data-theme="light"] .lawyer-details-page .lawyer-map-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.62));
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .lawyer-details-page .lawyer-map-header h3 {
  color: var(--theme-text);
}

[data-theme="light"] .lawyer-details-page .fee-card {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.09);
}

[data-theme="light"] .lawyer-details-page .fee-label {
  color: var(--theme-text-muted);
}

[data-theme="light"] .lawyer-details-page .fee-value {
  color: var(--theme-text);
}

[data-theme="light"] .lawyer-details-page .lawyer-section p {
  color: var(--theme-text);
}

[data-theme="light"] .lawyer-details-page .site-footer {
  border-top-color: rgba(0, 0, 0, 0.10);
  background: linear-gradient(180deg, rgba(244, 240, 234, 0.96), rgba(237, 232, 225, 0.99));
}

/* Light theme modal styles removed */

/* ─── Light Theme: About Page ────────────────────────────────────────────── */
[data-theme="light"] .about-page {
  background: linear-gradient(180deg, rgba(244, 240, 234, 0.92), rgba(237, 232, 225, 0.82));
}

[data-theme="light"] .about-page::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 0, 0, 0.05), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(0, 0, 0, 0.03), transparent 20%),
    radial-gradient(circle at 68% 84%, rgba(0, 0, 0, 0.025), transparent 26%);
}

[data-theme="light"] .about-page .about-intro {
  color: var(--theme-text-muted);
}

[data-theme="light"] .about-page .accordion-item {
  --about-card-border: rgba(0, 0, 0, 0.11);
  --about-card-shadow: rgba(0, 0, 0, 0.09);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(248, 244, 238, 0.72));
  border-color: rgba(0, 0, 0, 0.11);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .about-page .accordion-item::before {
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .about-page .accordion-item:hover {
  border-color: rgba(0, 0, 0, 0.20);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .about-page .accordion-item summary {
  color: var(--theme-text);
}

[data-theme="light"] .about-page .accordion-item summary::after {
  border-color: rgba(0, 0, 0, 0.18);
  background-color: rgba(0, 0, 0, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%231a1410' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

[data-theme="light"] .about-page .accordion-item[open] summary {
  background: rgba(0, 0, 0, 0.03);
  color: var(--theme-text);
}

[data-theme="light"] .about-page .accordion-item[open] summary::after {
  background-color: rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.24);
}

[data-theme="light"] .about-page .accordion-panel-inner {
  color: var(--theme-text-muted);
}

[data-theme="light"] .about-page .team-card {
  border-color: rgba(0, 0, 0, 0.10);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(248, 244, 238, 0.74));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.90), 0 12px 28px rgba(0, 0, 0, 0.09);
  color: var(--theme-text);
}

[data-theme="light"] .about-page .team-card:hover {
  border-color: rgba(0, 0, 0, 0.20);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 238, 0.84));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), 0 20px 38px rgba(0, 0, 0, 0.13);
}

[data-theme="light"] .about-page .team-name {
  color: var(--theme-text);
}

[data-theme="light"] .about-page .team-role {
  color: var(--theme-text-muted);
}

[data-theme="light"] .about-page .team-matric {
  color: var(--theme-text-soft);
}

[data-theme="light"] .about-page .team-chevron {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .about-page .team-chevron svg {
  stroke: var(--theme-text);
}

[data-theme="light"] .about-page .team-card[open] .team-chevron {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .about-page .team-panel-inner {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .about-page .team-detail {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .about-page .team-detail-label {
  color: var(--theme-text-soft);
}

[data-theme="light"] .about-page .team-detail-value {
  color: var(--theme-text);
}

[data-theme="light"] .about-page .team-panel-fallback {
  color: var(--theme-text-muted);
}

/* ─── Light Theme: Home Page ─────────────────────────────────────────────── */
[data-theme="light"] .home-page {
  background: linear-gradient(180deg, rgba(244, 240, 234, 0.92), rgba(237, 232, 225, 0.82));
}

[data-theme="light"] .home-page h1 {
  color: var(--theme-text);
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.301)
}

[data-theme="light"] .home-page h2 {
  color: var(--theme-text);
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.301)
}

[data-theme="light"] .home-page span {
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.301);
}

[data-theme="light"] .home-page p {
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.301);
}

[data-theme="light"] .home-page::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 0, 0, 0.05), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(0, 0, 0, 0.03), transparent 20%),
    radial-gradient(circle at 68% 84%, rgba(0, 0, 0, 0.025), transparent 26%);
}

/* ─── Light Theme: Home Page - stats ─────────────────────────────────────────────── */
[data-theme="light"] .home-page .stats {

  .available-lawyers-stats,
  .available-firms-stats {
    background-color: rgba(235, 231, 231, 0.178);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 0, 0, 0.253);
  }
}

/* ─── Light Theme: Home Page - carousel ─────────────────────────────────────────────── */
[data-theme="light"] .card-list .card-item .card-link {
  background: linear-gradient(180deg, rgb(255, 255, 255), rgb(197, 191, 191));
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.486);
  border: 0 solid rgba(10, 10, 10, 0.166);
}

[data-theme="light"] .card-list .card-item .card-link:hover {
  border-color: rgba(19, 18, 18, 0.397);
  box-shadow: 0 4px 15px 0 rgb(0, 0, 0);
}

[data-theme="light"] .card-item .card-link .card-image {
  border: 2px solid rgba(80, 77, 77, 0.407);
}

[data-theme="light"] .card-list .card-item .card-link:hover .card-image {
  border: 2px solid rgba(95, 93, 93, 0.742);
}


[data-theme="light"] .card-item .card-link .lawyer-name {
  color: var(--theme-text);
}

[data-theme="light"] .card-item .div-carousel-loc .lawyer-loc,
[data-theme="light"] .card-item .div-carousel-cat .lawyer-cat {
  border: 1px solid rgba(37, 36, 36, 0.16);
  color: #000000;
  backdrop-filter: blur(18px) saturate(110%);
}

[data-theme="light"] .card-item .div-carousel-loc .lawyer-loc {
  background: linear-gradient(180deg, rgba(202, 202, 202, 0.39), rgba(0, 0, 0, 0.03));
}

[data-theme="light"] .card-item .div-carousel-cat .lawyer-cat {
  background-color: rgba(58, 57, 57, 0);
}

[data-theme="light"] .card-link .card-content .lawyer-card__rating .rating-value {
  color: #ffee00;
  font-family: "Bebas Neue";
  font-size: 25px;
  letter-spacing: 2px;
  text-shadow: 0 0 3px #000000;
}

[data-theme="light"] .card-link .card-content .lawyer-card__rating .stars {
  margin-left: 5px;
  color: #ffee00;
  font-size: 21px;
  text-shadow: 0 0 3px #000000;
}

/* ─── Light Theme: Home Page - Map ─────────────────────────────────────────────── */


/* Pagination (find page) */
[data-theme="light"] .find-page .page-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7));
  border-color: rgba(120, 88, 56, 0.22);
  color: var(--theme-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 10px 22px rgba(136, 102, 72, 0.12);
}

[data-theme="light"] .find-page .page-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(120, 88, 56, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 24px rgba(126, 94, 66, 0.16), 0 0 14px rgba(193, 149, 92, 0.2);
}

[data-theme="light"] .find-page .page-btn.page-current-input {
  border-color: rgba(120, 88, 56, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76));
}

[data-theme="light"] .find-page .page-btn.page-current-input:focus {
  border-color: rgba(120, 88, 56, 0.72);
  box-shadow: 0 0 0 3px rgba(193, 149, 92, 0.22), 0 0 16px rgba(193, 149, 92, 0.2);
}

[data-theme="light"] .find-page .page-total {
  color: var(--theme-text-soft);
}

/* ⚡️ GLOBAL GPU & LAYER ACCELERATION OPTIMIZATIONS */
.scroll-element,
.scroll-slide-left,
.scroll-slide-right,
.navbar,
.lawyer-card,
.card-item {
  /* Promote frequently updated elements to independent GPU layers */
  will-change: transform, opacity;
}

/* Fixes "fixed-background repaint storm" on mobile touch scrolls */
.home-page::before,
.about-page::before,
.find-page::before,
.map-page::before,
.lawyer-details-page::before {
  transform: translateZ(0);
  will-change: transform;
}


/* 📱 PERFORMANCE FIXES FOR MOBILE VIEWPORTS (≤768px) */
@media (max-width: 768px) {

  /* 1. Bypass heavy scroll-driven blurs (Keep clean fades & translates) */
  @keyframes element-appear {
    from {
      opacity: 0;
      transform: translateY(30px);
      /* Tighter distance looks cleaner on mobile screens */
      filter: none !important;
    }

    to {
      opacity: 1;
      transform: translateY(0);
      filter: none !important;
    }
  }

  @keyframes slide-left {
    from {
      opacity: 0;
      transform: translateX(-30px);
      filter: none !important;
    }

    to {
      opacity: 1;
      transform: translateX(0);
      filter: none !important;
    }
  }

  @keyframes slide-right {
    from {
      opacity: 0;
      transform: translateX(30px);
      filter: none !important;
    }

    to {
      opacity: 1;
      transform: translateX(0);
      filter: none !important;
    }
  }

  /* 2. Flatten expensive backdrop blurs for scrolling containers */
  .navbar,
  .find-page .find-controls,
  .map-page .search-bar,
  .map-page .filter-field select,
  .lawyer-card,
  .card-item .div-carousel-loc .lawyer-loc,
  .card-item .div-carousel-cat .lawyer-cat {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  [data-theme="light"] .navbar,
  [data-theme="light"] .find-page .find-controls,
  [data-theme="light"] .map-page .search-bar,
  [data-theme="light"] .map-page .filter-field select,
  [data-theme="light"] .lawyer-card,
  [data-theme="light"] .card-item .div-carousel-loc .lawyer-loc,
  [data-theme="light"] .card-item .div-carousel-cat .lawyer-cat {
    /* Increase color opacity slightly to retain deep aesthetic contrast without the rendering cost */
    background-color: white !important;
  }

  /* Adjust sticky navbar layout for solid mobile performance */
  .navbar {
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.96), rgba(12, 12, 12, 0.98));
  }

  /* Reduce full-screen overlay blurs when the mobile menu drawer opens */
  .navbar.is-mobile-open {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.72));
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  [data-theme="light"] .navbar.is-mobile-open {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 240, 234, 0.74));
    border-color: rgba(0, 0, 0, 0.11);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
}