:root {
  --bg: #FAF6EE;
  --surface: #FFFFFF;
  --surface-2: #F4EEE3;
  --ink: #2A2420;
  --muted: #857A6B;
  --faint: #A99E8D;
  --line: #E7DECF;
  --accent: #B85C38;
  --accent-tint: #F3E3D9;
  --accent-ink: #7C3A20;
  --olive: #566042;
  --olive-tint: #E9EDDD;
  color-scheme: light;
  --radius: 14px;
  --radius-sm: 10px;
  --font-serif: "Fraunces", "Amiri", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="ar"] {
  --font-serif: "Amiri", "Fraunces", serif;
  --font-sans: "Tajawal", system-ui, sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17130F;
  --surface: #221C16;
  --surface-2: #2A231C;
  --ink: #F0E9DB;
  --muted: #B3A893;
  --faint: #8C806D;
  --line: #38312A;
  --accent: #D2724A;
  --accent-tint: #3A211A;
  --accent-ink: #EBA77F;
  --olive: #A8BB83;
  --olive-tint: #2B331F;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--ink); }

/* Header */
.site-header {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  background: var(--surface); position: sticky; top: 0; z-index: 500;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.logo { font-family: var(--font-serif); font-size: 22px; font-weight: 500; }
.tagline { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--muted); margin-top: 2px; }
.search { flex: 1; }
.search input {
  width: 100%; padding: 10px 16px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans);
}
.search input::placeholder { color: var(--faint); }
.lang { display: flex; gap: 4px; margin: 0; }
.lang button {
  font-family: var(--font-sans); font-size: 13px; padding: 5px 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--muted);
}
.lang button.active { color: var(--ink); border-color: var(--ink); }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .15s, border-color .15s; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }

.container { max-width: 1040px; margin: 0 auto; padding: 24px 22px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; margin-bottom: 12px; }

/* Deals — fixed-ratio scrollable strip */
.deals { margin-bottom: 30px; }
.deal-strip {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth; direction: ltr; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
}
.deal-strip::-webkit-scrollbar { display: none; }
.deal-strip.dragging { cursor: grabbing; user-select: none; }
.deal-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.deal-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: background .2s, width .2s; }
.deal-dots button:hover { background: var(--muted); }
.deal-dots button[aria-current="true"] { background: var(--accent); width: 26px; }
.deal {
  position: relative; flex: 0 0 calc(100% - 112px); scroll-snap-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.deal img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.deal:only-child { flex: 0 0 100%; }
.deal-tag {
  position: absolute; top: 10px; inset-inline-start: 10px;
  font-size: 11px; background: var(--surface); color: var(--muted);
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.filters select {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; background: var(--surface); color: var(--ink); font-family: var(--font-sans); cursor: pointer;
}
.open-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); padding: 9px 4px; }

/* Results — editorial list + map */
.results { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.place-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.place-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: border-color .15s; }
.place-card:hover { border-color: var(--accent); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.place-card .name { font-family: var(--font-serif); font-size: 20px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 7px 0 0; font-size: 13px; color: var(--muted); }
.tag::after { content: "·"; margin-inline-start: 8px; color: var(--faint); }
.tag:last-child::after { content: ""; margin: 0; }
.badge { font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.badge-open { color: var(--olive); background: var(--olive-tint); }
.badge-featured { color: var(--accent-ink); background: var(--accent-tint); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.meta { font-size: 13px; color: var(--faint); }
.links { display: flex; gap: 14px; font-size: 16px; color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }

.map { height: 520px; border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 92px; overflow: hidden; }
.place-map { height: 200px; isolation: isolate; }
.leaflet-container { direction: ltr; }
html[data-theme="dark"] .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(0.90) contrast(0.9); }
.leaflet-div-icon.rc-pin { background: transparent; border: 0; }
.rc-pin span {
  display: block; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}

/* Place page */
.place-header { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.place-header h1 { font-size: 30px; margin: 8px 0 0; line-height: 1.1; }
.back { font-size: 13px; color: var(--muted); }
.place-header .tags { margin-top: 12px; }
.bio { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--muted); max-width: 56ch; margin: 14px 0 0; line-height: 1.5; }
.address { font-size: 13px; color: var(--faint); margin: 10px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { font-size: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: var(--surface); display: inline-flex; align-items: center; gap: 7px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: color .15s, border-color .15s; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.stamp { font-size: 12px; color: var(--faint); margin-top: 16px; }

.place-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
.menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.menu-section { margin-bottom: 26px; }
.menu-section:last-child { margin-bottom: 0; }
.menu-section h2 { font-size: 20px; margin: 0 0 12px; }
.menu-item { padding: 8px 0; }
.menu-item-line { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-size: 15px; color: var(--ink); }
.leader { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.item-price { font-size: 15px; color: var(--muted); white-space: nowrap; }
.item-desc { font-size: 13px; color: var(--faint); margin-top: 2px; }
.info { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-rows { padding: 2px 18px; }
.info-row { font-size: 13px; color: var(--muted); padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.info-row:last-child { border-bottom: none; }

.nearby { margin-top: 32px; }
.nearby-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.nearby-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.nearby-card .name { font-family: var(--font-serif); font-size: 16px; font-weight: 500; }

.site-footer { display: flex; gap: 20px; justify-content: center; padding: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); margin-top: 40px; }
.page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; max-width: 720px; }
.page h1 { font-size: 28px; margin: 0 0 16px; }
.page p { color: var(--muted); line-height: 1.7; margin: 0 0 14px; max-width: 62ch; }
.page p:last-child { margin-bottom: 0; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: 14px; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--accent); }
.cta { display: inline-block; margin-top: 22px; background: var(--accent); color: #fff; border-radius: 999px; padding: 11px 22px; font-size: 14px; transition: opacity .15s; }
.cta:hover { opacity: .9; }
.report { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 18px; max-width: 520px; }
.report summary { cursor: pointer; color: var(--faint); font-size: 13px; display: inline-flex; align-items: center; gap: 7px; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report summary:hover { color: var(--accent); }
.report form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.report select, .report textarea { font-family: var(--font-sans); font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%; }
.report textarea { min-height: 84px; resize: vertical; }
.report button { align-self: flex-start; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 9px 20px; font-size: 14px; cursor: pointer; transition: opacity .15s; }
.report button:hover { opacity: .9; }
.report .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.report-thanks { color: var(--olive); background: var(--olive-tint); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; margin: 0 0 24px; max-width: 520px; }

@media (max-width: 760px) {
  .results, .place-body { grid-template-columns: 1fr; gap: 22px; }
  .map { position: static; height: 320px; }
  .info { position: static; }
  .deal-strip { gap: 10px; }
  .deal { flex: 0 0 calc(100% - 60px); }
  .site-header { gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .container { padding: 20px 16px; }
}
