/* =========================
   FONTS (fallback-safe)
   If you add real font files later, we can swap these.
========================= */
:root{
  --font-header: "Arsenica", Georgia, "Times New Roman", serif;
  --font-ui: "Solomon Sans", "Solomon", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* COLORS (from your Figma) */
  --header-bg:#1A2849;
  --header-fg:#FFFCE9;

  --sidebar-bg:#DFCFC7;

  --search-bg:#D9D9D9;
  --search-stroke:#000000;
  --search-text:#857D7D;

  --filter-bg:#4B4343;
  --filter-fg:#FFFCE9;

  --table-head-bg:#1F2C4C;
  --table-head-fg:#FFFCE9;

  --table-bg:#FFFFFF;
  --table-text:#000000;

  --line:#000000;

  --full:#3F8442;
  --partial:#AF7A34;

  /* sizing */
  --header-h:110px;
  --radius-lg:22px;
  --radius-md:14px;
  --radius-sm:10px;

  --shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* =========================
   BASE / RESET
========================= */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  color:var(--table-text);
  background:var(--sidebar-bg);
  font-family:var(--font-body);
}
html, body {
  height: auto;
  min-height: 100dvh;
}
/* =========================
   HEADER
========================= */
header{
  height:var(--header-h);
  background:var(--header-bg);
  color:var(--header-fg);

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:0 28px;
}

header h1{
  margin:0;
  font-family:var(--font-header);
  font-weight:700;
  font-size:44px;
  letter-spacing:.2px;
}
.logo-link{
  text-decoration:none;
  color:inherit;
  display:inline-flex;
  align-items:center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 30px;
  color: var(--header-fg);
  white-space: nowrap;
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.logo-text {
  display: inline-block;
}

.logo-link{
  text-decoration:none;
  color:inherit;
  display:inline-block;
}

.logo-link:hover{
  opacity:0.95;
}
.desktop-actions{
  display:flex;
}

.mobile-menu{
  display:none;
  position:relative;
}

.mobile-menu-panel{
  position:absolute;
  top:52px;
  right:0;
  min-width:180px;
  background:#fff;
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:20002;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20000;
}
.mobile-menu{
  position: relative;
  z-index: 20001
}
#map{
  z-index: 1;
}
.seo-hidden {
  position: absolute;
  left: -9999px;
}
.mobile-menu-link{
  display:block;
  width:100%;
  text-align:left;
  text-decoration:none;
  color:var(--table-head-bg);
  background:#fff;
  border:none;
  border-radius:10px;
  padding:10px 12px;
  font-family:var(--font-ui);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}

.mobile-menu-link:hover{
  background:#f5f5f5;
}
.topbar{
  height:var(--header-h);
  background:var(--header-bg);
  color:var(--header-fg);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
}

.top-actions{
  display:flex;
  flex-direction:row;     /* force horizontal */
  align-items:center;
  gap:12px;
}
.icon-svg{
  width:22px;
  height:22px;
  display:block;
}
/* small icon buttons in header (your “i” + “add” buttons) */
.icon-btn{
  width:44px;
  height:44px;
  border-radius:12px;
  border:none;
  background: transparent;
  color:var(--header-fg);
  display:flex;
  justify-content:center;
  align-items: center;
  cursor:pointer;
}
.site-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.site-modal.hidden{
  display: none !important;
}

.site-modal-content{
  background: #fff;
  width: min(520px, 90vw);
  max-height: 80vh;
  overflow: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.site-modal-content h2{
  margin: 0 0 12px;
  font-family: var(--font-header);
  font-size: 35px;
  font-weight: 700;
  color: var(--table-head-bg);
}
.site-modal-content p{
  margin:0 0 20px;
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  color:#333;
}
.icon-btn:hover{ background:rgba(255,252,233,.10); }

/* =========================
   MAIN LAYOUT (map + sidebar + splitter)
========================= */
.app{
  height: calc(100dvh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display:flex;
  width:100%;
  overflow:hidden;
}
body {
  min-height: 100dvh;
}
/* map left */
#map{
  flex:1;
  min-width:260px;
  height:100%;
  min-height:0;
}

/* draggable divider */
#splitter{
  width:10px;
  cursor:col-resize;
  background:transparent;
  position:relative;
}
#splitter::before{
  content:"";
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:2px;
  transform:translateX(-50%);
  background:rgba(0,0,0,.22);
}

/* sidebar right */
.sidebar{
  width:680px;
  max-width:1040px;
  min-width:460px;
  height:100%;
  background:var(--sidebar-bg);
  padding:26px 26px 18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
}
.search-row{
  display:flex;
  align-items:stretch;
  gap:10px;
  margin-bottom:8px;
}

.search-row .search-wrap{
  flex:1 1 auto;
  margin:0;
}
.search-row #searchInput {
  height:46px;
}

.near-me-btn{
  height:46px;
  min-width:120px;
  padding:0 14px;
  border:none;
  border-radius:12px;
  background:#FFFCE9;
  color:#1F2C4C;
  font-family:var(--font-ui);
  font-weight:700;
  font-size:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  flex:0 0 auto;
  transition:transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.near-me-btn:hover{
  opacity:0.95;
}

.near-me-btn:active{
  transform:translateY(1px);
}
.near-me-btn.is-active{
  background:#E8F2EA;
}
.near-me-icon{
  width:16px;
  height:16px;
  display:block;
}

.nearby-status{
  display:none;
}
.user-location-marker{
  position:relative;
  width:34px;
  height:34px;
}

.user-location-marker .pulse{
  position:absolute;
  inset:0;
  border-radius:50%;
  background:rgba(96,165,250,0.35);
  animation:userPulse 1.8s ease-out infinite;
}

.user-location-marker .dot{
  position:absolute;
  top:50%;
  left:50%;
  width:18px;
  height:18px;
  transform:translate(-50%, -50%);
  border-radius:50%;
  background:#60a5fa;
  border:3px solid #fff;
  box-shadow:0 0 0 2px rgba(0,0,0,0.06);
}
.leaflet-marker-icon:hover {
  transform: scale(1.08);
  transition: transform 0.15s ease;
}
@keyframes userPulse{
  0%{
    transform:scale(0.6);
    opacity:0.9;
  }
  70%{
    transform:scale(3.2);
    opacity:0;
  }
  100%{
    transform:scale(3.2);
    opacity:0;
  }
}
/* =========================
   SEARCH
========================= */
#searchInput{
  width:100%;
  height:46px;
  border-radius:var(--radius-md);
  background:var(--search-bg);
  border:1px solid var(--search-stroke);

  padding:0 16px;
  font-family:var(--font-body);
  font-size:16px;
  color:var(--search-text);
  outline:none;
}
#searchInput::placeholder{
  color:var(--search-text);
}
.search-wrap{
  position:relative;
  width:100%;
}

.search-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  opacity:.75;
}
.input-wrap{
  position:relative;
  width:100%;
}
.input-icon{
  position:absolute;
  left: 16px;
  top:25px;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  opacity:.7;
}

.input-wrap input:focus{
  border-color: var(--table-head-bg);
  box-shadow: 0 0 0 2px rgba(31,44,76,0.08);
}
.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--table-head-bg);
  box-shadow: 0 0 0 2px rgba(31,44,76,0.08);
}

.input-wrap input:focus + .input-icon,
.input-wrap textarea:focus + .input-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}
#searchInput{
  padding-left:44px; /* ✅ makes room for the icon */
}
/* =========================
   FILTER BUTTON + POPOVER
========================= */
.filter-bar{
  position:relative;
  z-index: 1000;
  margin-top:0;
}

.btn-icon{
  width:16px;
  height:16px;
}

.filter-btn,
#toggleFilters{
  width:206px;
  height:42px;
  margin:0 auto;
  border:none;
  border-radius:12px;
  background:var(--filter-bg);
  color:var(--filter-fg);
  font-family:var(--font-ui);
  font-weight:700;
  font-size:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 16px;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.10);
  transition:transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.filter-btn:hover,
#toggleFilters:hover{
  filter:brightness(1.04);
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.nearby-bar{
  display:flex;
  align-items:center;
  gap:12px;
}
/* Popover base */
.filter-popover{
  position:absolute;
  top:58px;
  left:0;
  width:min(380px, 100%);
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadow);
  z-index:9999;

  height:min(65vh, 520px);
  display:flex;
  flex-direction:column;
  overflow:hidden;

  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
  transition:opacity 180ms ease, transform 180ms ease;
}

.filter-popover.is-open{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.filter-head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:2px solid var(--line);
}

.filter-head strong{
  font-family:var(--font-ui);
  font-size:19px;
  color:#000;
}

.close-btn{
  border:none;
  background:transparent;
  font-size:18px;
  cursor:pointer;
}

.filter-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:12px 14px;
}

.filter-section{
  padding:12px 4px 10px;
  border-bottom:2px solid var(--line);
}

.filter-section:last-of-type{
  border-bottom:none;
}

.filter-title{
  font-family:var(--font-ui);
  font-weight:700;
  font-size:14px;
  color:var(--table-head-bg);
  margin-bottom:10px;
}
.chk input[type="checkbox"],
.chip input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:18px;
  height:18px;
  border-radius:6px;
  border:1.5px solid #cbbfb7;
  background:#fff;
  display:inline-grid;
  place-content:center;
  cursor:pointer;
  transition:all .18s ease;
  margin:0;
}

.chk input[type="checkbox"]::before,
.chip input[type="checkbox"]::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:3px;
  transform:scale(0);
  transition:transform .15s ease-in-out;
  background:var(--table-head-bg);
}

.chk input[type="checkbox"]:checked::before,
.chip input[type="checkbox"]:checked::before{
  transform:scale(1);
}

.chk input[type="checkbox"]:hover,
.chip input[type="checkbox"]:hover{
  border-color:var(--table-head-bg);
}
.chk{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-ui);
  font-weight:700;
  font-size:13px;
  color:var(--table-head-bg);
  margin:10px 0;
}

.chipgrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:10px;
}

.chip{
  display:flex;
  align-items:center;
  gap:10px;
  height:44px;
  padding:0 14px;
  border:1.5px solid #d7d0c8;
  border-radius:14px;
  background:#fff;
  font-family:var(--font-ui);
  font-weight:700;
  font-size:13px;
  color:var(--table-head-bg);
  cursor:pointer;
  transition:all .18s ease;
}

.chip:hover{
  background:#f7f3ee;
  border-color:#b8aea3;
  transform:translateY(-1px);
}

.chip span{
  font-size:13px;
  line-height:1.2;
}

.chip:has(input[type="checkbox"]:checked){
  background:#f4efe9;
  border-color:var(--table-head-bg);
  box-shadow:0 4px 12px rgba(0,0,0,.06);
}

.filter-actions{
  flex:0 0 auto;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px;
  border-top:1px solid rgba(0,0,0,.08);
  background:#fff;
  position:sticky;
  bottom:0;
  z-index:2;
}

.ghost-btn,
.primary-btn{
  height:40px;
  padding:0 18px;
  border:none;
  border-radius:12px;
  font-family:var(--font-ui);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease;
}

.ghost-btn{
  background:#ece7e3;
  color:var(--table-head-bg);
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}

.ghost-btn:hover{
  background:#e2dbd5;
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.primary-btn{
  background:var(--table-head-bg);
  color:#fff;
  box-shadow:0 4px 12px rgba(31,44,76,.18);
}

.primary-btn:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(31,44,76,.22);
}

.ghost-btn:active,
.primary-btn:active{
  transform:translateY(0);
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* =========================
   TABLE CARD
========================= */
.table-wrap{
  flex:1 1 auto;
  min-height:360px;
  height: 620px;
  overflow-y:auto;
  overflow-x:auto;
  padding:0 0 10px;
  margin:18px 6px 10px;
  position:relative;
  border-radius:var(--radius-lg);
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  table-layout: fixed;
  background:var(--table-bg);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
}
.table thead th{
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--table-head-bg);
  color: var(--table-head-fg);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

/* body rows */
.table tbody td{
  font-family:var(--font-ui);
  font-weight:700;
  font-size:14px;
  color:var(--table-text);

  padding:14px 16px;
  border-bottom:1px solid var(--line);

  vertical-align:top;
}

/* subtle hover */
.table tbody tr:hover{
  background:rgba(31,44,76,.06);
}

/* selected row (your JS adds .active) */
.table tbody tr.active{
  outline:2px solid rgba(31,44,76,.35);
  outline-offset:-2px;
  background:rgba(31,44,76,.08);
}

/* clamp long text so it doesn’t explode your layout */
.table td{
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Let Name and Comments wrap more nicely */
.table{
  table-layout:auto;          /* ✅ important: reduces weird reflow */
  min-width: 980px;           /* ✅ stable baseline like NC site */
}

.table th,
.table td{
  white-space:nowrap;         /* ✅ prevents letters wrapping */
}
.sidebar{
  min-width: 460px; /* try 420–520 depending on your taste */
}
/* badges */
.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-family:var(--font-ui);
  font-weight:800;
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
}
.badge.full{
  background:#e7f3e8;
  color:var(--full);
}
.badge.partial{
  background:#f3e7d6;
  color:var(--partial);
}

.smallmuted{
  font-size:12px;
  opacity:.75;
}

/* =========================
   LEAFLET: keep it clean
========================= */
.leaflet-container{
  font-family:var(--font-body);
}
.leaflet-control-attribution{
  font-size:11px;
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0); }
}

header, .app {
  animation: fadeUp 260ms ease both;
}

.suggest-page{
  min-height: calc(100vh - var(--header-h));
  background: var(--sidebar-bg);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:40px 20px;
}

.suggest-card{
  width:min(720px, 100%);
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:28px;
}

.suggest-card h2{
  margin:0 0 8px;
  font-family:var(--font-header);
  font-size:40px;
  color:var(--table-head-bg);
}

.suggest-subtext{
  margin:0 0 22px;
  font-family:var(--font-body);
  font-size:16px;
  color:#444;
}

.suggest-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.suggest-form input,
.suggest-form textarea{
  width:100%;
  border:1px solid var(--search-stroke);
  background:var(--search-bg);
  border-radius:12px;
  padding:14px 16px 14px 48px;
  font-family:var(--font-body);
  font-size:16px;
  color:var(--table-text);
  outline:none;
}

.suggest-form textarea{
  resize:vertical;
  min-height:120px;
}

.suggest-actions{
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.back-link{
  color:var(--table-head-bg);
  text-decoration:none;
  font-family:var(--font-ui);
  font-weight:700;
}

.back-link:hover{
  text-decoration:underline;
}

.admin-page{
  min-height: calc(100vh - var(--header-h));
  background: var(--sidebar-bg);
  display:flex;
  justify-content:center;
  padding:40px 20px;
}
.admin-check-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 8px 0 16px;
}

.admin-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid #d7d0c8;
  border-radius:999px;
  background:#fff;
  font-family:var(--font-ui);
  font-size:13px;
  color:var(--table-head-bg);
  cursor:pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-chip:hover{
  background:#f7f3ee;
  border-color:#b8aea3;
}

.admin-chip input[type="checkbox"]{
  accent-color: var(--table-head-bg);
  width:15px;
  height:15px;
  margin:0;
}
.admin-card{
  width:min(760px, 100%);
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:28px;
}

.admin-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
#adminSuggestionsTable td:last-child,
#adminRestaurantTable td:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-search{
  width:100%;
  height:46px;
  border-radius:12px;
  background:var(--search-bg);
  border:1px solid var(--search-stroke);
  padding:0 16px;
  font-family:var(--font-body);
  font-size:16px;
  color:var(--table-text);
  outline:none;
  margin: 8px 0 18px;
}

.admin-search::placeholder{
  color:var(--search-text);
}
.admin-card h2{
  margin:0 0 8px;
  font-family:var(--font-header);
  font-size:36px;
  color:var(--table-head-bg);
}
.hidden {
  display: none !important;
}

/* =========================
   ADMIN TABLES
========================= */
.admin-page {
  width: 100%;
  overflow-x: auto;
}

.admin-card {
  width: min(760px, 100%);
  min-width: 0;
}

#adminContent {
  width: 100%;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#adminSuggestionsTable,
#adminRestaurantTable {
  width: max-content;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  box-shadow: var(--shadow);
  border-radius: 18px;
  overflow: hidden;
}

#adminSuggestionsTable thead th,
#adminRestaurantTable thead th {
  background: var(--table-head-bg);
  color: var(--table-head-fg);
  white-space: nowrap;
  padding: 14px 16px;
  text-align: left;
}

#adminSuggestionsTable tbody td,
#adminRestaurantTable tbody td {
  background: #ffffff;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: top;
}

#adminSuggestionsTable td:last-child,
#adminRestaurantTable td:last-child {
  white-space: nowrap;
}
/* =========================
   FAQ PAGE
========================= */
.faq-page{
  min-height: calc(100vh - var(--header-h));
  background: var(--sidebar-bg);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:40px 20px;
}

.faq-card{
  width:min(860px, 100%);
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:28px;
}

.faq-card h2{
  margin:0 0 8px;
  font-family:var(--font-header);
  font-size:40px;
  color:var(--table-head-bg);
}

.faq-subtext{
  margin:0 0 24px;
  font-family:var(--font-body);
  font-size:16px;
  color:#444;
}

.faq-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.faq-item{
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:14px;
  overflow:hidden;
}

.faq-question{
  width:100%;
  border:none;
  background:#fff;
  cursor:pointer;
  padding:18px 20px;
  font-family:var(--font-ui);
  font-size:18px;
  color:var(--table-head-bg);
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  transition: background 0.2s ease;
}

.faq-question:hover{
  background:rgba(31,44,76,0.03);
}

.faq-item.active .faq-question{
  background:rgba(31,44,76,0.03);
}
.faq-answer-inner p,
.faq-answer-inner li {
  font-size: 15px;   /* or 14px if you want tighter */
  line-height: 1.6;
}
.faq-symbol{
  font-size:22px;
  line-height:1;
  flex:0 0 auto;
}
.faq-tight {
  margin-top: 6px;
}
.faq-answer-inner strong {
  color: var(--table-head-bg);
}
.faq-answer{
  display:none;
}

.faq-item.active .faq-answer{
  display:block;
}

.faq-answer-inner{
  padding:0 20px 18px;
  animation: faqFade 0.18s ease;
  color: #333
}
.faq-answer-inner li {
  color: inherit;
}
.faq-list-bullets li::marker {
  color: var(--table-head-bg);
}
.faq-answer p{
  margin:0;
  font-family:var(--font-body);
  font-size:15px;
  line-height:1.6;
  color:#333;
}
.faq-answer-inner p{
  margin-bottom: 12px;
  line-height: 1.6;
}

.faq-list-bullets{
  margin: 10px 0 16px 18px;
  padding-left: 10px;
}

.faq-list-bullets li{
  margin-bottom: 6px;
  line-height: 1.5;
}
.faq-list-bullets li::marker{
  color: var(--table-head-bg);
}
@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* DAISYUI table overrides */
#restaurantTable {
  background: var(--table-bg);
  color: var(--table-text);
}

#restaurantTable thead th {
  background: var(--table-head-bg) !important;
  color: var(--table-head-fg) !important;
  border-color: var(--line);
}

#restaurantTable tbody tr,
#restaurantTable tbody td {
  background: var(--table-bg) !important;
  color: var(--table-text) !important;
}

#restaurantTable tbody tr:hover td,
#restaurantTable tbody tr.hover td {
  background: rgba(31,44,76,.06) !important;
}

#restaurantTable tbody tr.active td {
  background: rgba(31,44,76,.08) !important;
}

#restaurantTable td,
#restaurantTable th {
  border-color: var(--line);
}

#restaurantTable.table{
  border:none !important;
  outline:none !important;
  box-shadow:var(--shadow);
}

#restaurantTable.table :where(th, td){
  border-color:var(--line);
}

#restaurantTable.table-zebra tbody tr:nth-child(even),
#restaurantTable.table-zebra tbody tr:nth-child(odd){
  background-image:none !important;
}
@media screen and (max-width: 768px) {
  :root{
    --header-h: 82px;
  }

  .topbar{
    padding: 0 16px;
  }

  .logo{
    font-size: 18px;
    gap: 6px;
    min-width: 0;
  }

  .logo-img{
    width: 28px;
    height: 28px;
  }

  .logo-text{
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    display: inline-block;
  }

  .desktop-actions{
    display: none;
  }

  .mobile-menu{
    display: block;
  }

  .app{
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - var(--header-h));
    overflow: visible;
  }

  #splitter{
    display: none;
  }

  #map{
    width: 100%;
    height: 28vh;
    min-height: 190px;
    flex: 0 0 auto;
  }

  .sidebar{
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    overflow: visible;
    padding: 14px 14px 22px;
    min-height: 0;
  }

  .search-wrap{
    width: 100%;
    margin-bottom: 14px;
  }

  .filter-bar{
    position: relative;
    z-index: 5000;
    width: 100%;
    margin: 0 0 18px;
  }

  .filter-btn,
  #toggleFilters{
    width: 180px;
    height: 46px;
    margin: 0 auto;
  }

  .filter-popover{
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(92vw, 380px) !important;
    max-height: 70dvh;
    height: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 99999;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-6px) !important;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .filter-popover.is-open{
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) !important;
  }

  .filter-body{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-actions{
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .table-wrap,
  .sidebar .table-wrap{
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    margin: 18px 0 0;
    padding: 0;
    border-radius: 0;
  }

  #restaurantTable{
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    box-shadow: none !important;
    border-radius: 0;
  }

  #restaurantTable thead{
    display: none;
  }

  #restaurantTable,
  #restaurantTable tbody,
  #restaurantTable tr,
  #restaurantTable td{
    display: block;
    width: 100%;
  }

  #restaurantTable tbody{
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  #restaurantTable tr{
    background: #fff !important;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px 16px;
    overflow: hidden;
  }

  #restaurantTable tbody tr.active{
    outline: none !important;
    background: #fff !important;
    border: 1.5px solid rgba(31,44,76,.18);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
  }

  #restaurantTable tbody tr.active td{
    background: transparent !important;
  }

  #restaurantTable tbody tr:hover{
    background: #fff !important;
  }

  #restaurantTable td{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    white-space: normal !important;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    font-size: 14px;
    background: transparent !important;
  }

  #restaurantTable td:last-child{
    border-bottom: none;
  }

  #restaurantTable td::before{
    content: attr(data-label);
    flex: 0 0 110px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    color: var(--table-head-bg);
    line-height: 1.4;
  }

  #restaurantTable td:first-child{
    display: block;
    padding-top: 0;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 20px;
    font-weight: 800;
    color: var(--table-text);
    background: transparent !important;
  }

  #restaurantTable td:first-child::before{
    display: none;
  }

  #restaurantTable td:nth-child(2){
    align-items: center;
  }

  #restaurantTable td .badge{
    margin-left: auto;
  }
}

.site-footer{
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 12px 12px;
  background: transparent;
}

.site-footer p{
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.3;
  color: rgba(31,44,76,0.42);
}
@media screen and (max-width: 768px) {
  .search-row{
    gap:8px;
    margin-bottom:6px;
  }

  .near-me-btn{
    height:46px;
    min-width:56px;
    padding:0 12px;
    font-size:13px;
  }

  .near-me-btn span{
    display:none;
  }

  .near-me-icon{
    width:18px;
    height:18px;
  }
}