body { font-family: system-ui, Arial; margin: 0; background:#0b0c10; color:#eaeaea; }
.container { max-width: 1280px; margin: 0 auto; padding: 24px; }
.filters { display:flex; gap:10px; flex-wrap:wrap; margin: 16px 0 22px; }
select, button, .reset { padding:10px 12px; border-radius:10px; border:1px solid #2a2f3d; background:#11131a; color:#eaeaea; }
button { background:#e5b94a; color:#111; font-weight:700; cursor:pointer; }
.reset { text-decoration:none; display:inline-flex; align-items:center; }
.grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
.card { background:#12141a; border:1px solid #1f2330; border-radius:14px; padding:14px; }
.meta { opacity:.85; margin-top:6px; }
.slug { opacity:.6; margin-top:10px; font-size:12px; }
.empty { opacity: .85; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.card { display:block; }
.card:hover { transform: translateY(-2px); }

/* Make clickable cards look like cards (not default links) */
a.card,
a.card:visited,
a.card:hover,
a.card:active {
  color: inherit;
  text-decoration: none;
}

/* Ensure anchor cards behave like blocks */
a.card {
  display: block;
}

/* =========================
   Index page map layout
========================= */

.map-toggle {
  background: #11131a;
  color: #eaeaea;
  font-weight: 700;
}

.results-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  align-items: start;
}

/* When the map is visible, make results slightly wider cards */
.results-wrap.with-map .grid {
  grid-template-columns: repeat(2, 1fr);
}

.results-wrap.map-hidden {
  grid-template-columns: 1fr;
}

.results-wrap.map-hidden .map-panel {
  display: none;
}

.results-wrap.map-hidden .grid {
  grid-template-columns: repeat(3, 1fr);
}

.map-panel {
  position: sticky;
  top: 18px;
}

.results-map {
  width: 100%;
  height: 640px;
  border: 1px solid #1f2330;
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .results-map { height: 520px; }
}

@media (max-width: 900px) {
  .results-wrap { grid-template-columns: 1fr; }
  .map-panel { position: relative; top: auto; }
  .results-map { height: 360px; }
  .results-wrap.with-map .grid,
  .results-wrap.map-hidden .grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Restaurant detail page
========================= */

.back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  opacity: .85;
  text-decoration: none;
  color: inherit;
}
.back:hover { opacity: 1; }

.detail-title {
  margin: 6px 0 4px;
}

.detail-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}

.detail-card h3 {
  margin-top: 0;
}

.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #1f2330;
}
.kv:last-child {
  border-bottom: 0;
}

.label {
  opacity: .7;
}
.value {
  font-weight: 600;
}

.map-wrapper {
  border-radius: 14px;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 420px;
  border: 1px solid #1f2330;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  #map {
    height: 360px;
  }
}

/* Restaurant description */
.description-card {
  margin-top: 14px;
}

.restaurant-description {
  margin: 0;
  line-height: 1.6;
  opacity: 0.95;
}
.results-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 12px;
}

.results-search{
  display:flex;
  align-items:center;
  gap:10px;
  background:#11131a;
  border:1px solid #2a2f3d;
  border-radius:12px;
  padding:10px 12px;
  min-width: 260px;
}

.results-search input{
  border:0;
  outline:none;
  background:transparent;
  color:#eaeaea;
  width: 220px;
}

.search-icon{ opacity:.7; }

.results-count{
  opacity:.85;
  white-space:nowrap;
}

.results-sort select{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #2a2f3d;
  background:#11131a;
  color:#eaeaea;
}

.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

@media (max-width: 900px){
  .results-toolbar{
    flex-wrap:wrap;
    justify-content:flex-start;
  }
  .results-search{ width: 100%; }
  .results-search input{ width: 100%; }
}
