/* Dubai Now v2 — "the cool hour".
   The base is aqua-chilled (the page feels air-conditioned); heat tones are
   reserved for urgency. Temperature is semantic, not decorative. */
:root {
  --chill: #F2F7F7;        /* aqua-tinted base — the AC'd room */
  --ink: #0E3A43;          /* deep-sea ink, never plain black */
  --teal: #147D8A;         /* gulf teal — actions, links, selected */
  --teal-soft: #DDEEF0;
  --heat: #FF7A45;         /* apricot heat — urgency ONLY */
  --heat-soft: #FFEAE1;
  --gold: #F5B841;         /* sunset gold — picks highlight */
  --card: #FFFFFF;
  --muted: #5A7176;
  --line: #DFE9EA;
  --radius: 16px;
  --display: -apple-system, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--chill); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1 { font-family: var(--display); font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
h2 { font-family: var(--display); font-size: 1.25rem; font-weight: 750; letter-spacing: -.01em; margin: 0 0 .15rem; }
.sub { color: var(--muted); font-size: .9rem; margin: 0 0 .8rem; }

.top { padding: 1.2rem 1rem .6rem; }
.tag { color: var(--muted); margin: .25rem 0 .85rem; font-size: .95rem; }
.meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.chip { font-size: .8rem; padding: .3rem .65rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-family: var(--mono); }
.chip-stale { background: var(--heat-soft); color: #B4441F; }

.toggle { display: flex; gap: .25rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .2rem; }
.toggle button, .filters button {
  font: inherit; font-size: .9rem; border: 0; background: transparent; color: var(--muted);
  padding: .55rem .85rem; min-height: 44px; border-radius: 999px; cursor: pointer;
}
.toggle button.on { background: var(--teal); color: #fff; }
.filters { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem 1rem 1rem; position: sticky; top: 0; background: linear-gradient(var(--chill) 85%, transparent); z-index: 5; }
.filters button { border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.filters button.on { background: var(--teal); border-color: var(--teal); color: #fff; }

main { padding: 0 1rem 2rem; }
section { margin-bottom: 2rem; }
section.hide { display: none; }
.band h2 { color: var(--heat); }

/* ---- Our picks: horizontal photo rail, the page's hero ---- */
.rail { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .2rem .6rem; }
.pick {
  scroll-snap-align: start; flex: 0 0 min(78vw, 340px);
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: 0 6px 18px rgba(14, 58, 67, .06);
}
.pick .photo { height: 170px; }
.pick-star {
  position: absolute; margin: .6rem; background: var(--gold); color: var(--ink);
  font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px;
}

/* ---- Photos with a gradient fallback: never a broken image ---- */
.photo { position: relative; background: linear-gradient(135deg, var(--teal) 0%, #0E5560 100%); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .glyph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: .9;
}
.photo[data-beat="malls"]       { background: linear-gradient(135deg, var(--gold), var(--heat)); }
.photo[data-beat="events"]      { background: linear-gradient(135deg, #7C5CBF, var(--teal)); }
.photo[data-beat="dining"]      { background: linear-gradient(135deg, var(--heat), var(--gold)); }
.photo[data-beat="attractions"] { background: linear-gradient(135deg, var(--teal), #4FB3BF); }

/* ---- Coming up: ticket-stub date badges (the signature) ---- */
.stubs { display: grid; gap: .7rem; }
@media (min-width: 700px) { .stubs { grid-template-columns: 1fr 1fr; } }
.stub {
  display: flex; align-items: center; gap: .9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem .9rem .7rem .7rem; text-decoration: none; color: inherit;
}
.stub-date {
  flex: 0 0 62px; text-align: center; font-family: var(--mono);
  background: var(--teal-soft); border-radius: 10px; padding: .5rem 0;
  position: relative;
}
/* CSS-only perforation notches, like a torn ticket edge */
.stub-date::before, .stub-date::after {
  content: ""; position: absolute; left: -6px; width: 12px; height: 12px;
  background: var(--card); border-radius: 50%;
}
.stub-date::before { top: -6px; }
.stub-date::after { bottom: -6px; }
.stub-date .d { display: block; font-size: 1.45rem; font-weight: 700; line-height: 1.1; color: var(--teal); }
.stub-date .m { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stub-body h3 { margin: 0 0 .15rem; font-size: 1rem; }
.stub-body p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---- Beat cards ---- */
.cards { display: grid; gap: .9rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 12px rgba(14, 58, 67, .05);
}
.card .photo { height: 140px; }
.card-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .45rem; }
.card h3 { margin: 0; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .84rem; }
.pill { border-radius: 999px; padding: .2rem .55rem; background: var(--chill); color: var(--muted); }
.pill-ac { background: var(--teal-soft); color: var(--teal); }
.pill-when { background: var(--teal-soft); color: var(--teal); font-family: var(--mono); font-size: .78rem; }
.pill-hot { background: var(--heat-soft); color: #B4441F; font-family: var(--mono); font-size: .78rem; }
.pill-ok { background: #E4F3E8; color: #1E7A46; }
.price { font-weight: 650; color: var(--ink); }
.go {
  margin-top: .3rem; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center;
  background: var(--teal); color: #fff; text-decoration: none; padding: .5rem 1.05rem; border-radius: 999px; font-size: .92rem;
}
.go:hover { background: #0F6672; }
.src { font-size: .78rem; color: var(--muted); }
.empty, footer { padding: 1rem; color: var(--muted); font-size: .88rem; text-align: center; }

button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .card, .pick, .stub { animation: rise .4s ease both; animation-delay: calc(var(--i, 0) * 45ms); transition: transform .15s ease, box-shadow .15s ease; }
  .card:hover, .pick:hover, .stub:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(14, 58, 67, .1); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
