:root {
  --paper: #f6f2ea;
  --paper-2: #efe9dd;
  --card: #fffdf9;
  --ink: #1d2a33;
  --ink-2: #2b3b46;
  --text: #2a2f33;
  --muted: #646a6e;
  --line: #e2dacb;
  --brass: #9c7434;
  --brass-soft: #c9a66b;
  --open: #2f7d4f;
  --closed: #a5432f;
  --alert: #c0392b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 42, 51, .06), 0 12px 32px -12px rgba(29, 42, 51, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--ink); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
button.btn { font-family: inherit; cursor: pointer; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* No phone available right now (app.js sets body.phones-off): email is the highlighted button, Sună an outline */
body.phones-off .btn.btn-call, body.phones-off .site-header .btn[data-call] { border-color: var(--ink); background: transparent; color: var(--ink); }
body.phones-off .btn.btn-call:hover, body.phones-off .site-header .btn[data-call]:hover { background: var(--ink); color: #fff; }
body.phones-off .btn.btn-mail { border-color: var(--ink); background: var(--ink); color: #fff; }
body.phones-off .btn.btn-mail:hover { background: var(--ink-2); }

/* Header: hidden at the top of the page, slides in once the hero buttons are gone */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(246, 242, 234, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.past-hero .site-header { transform: none; visibility: visible; transition: transform .3s ease; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  margin-right: auto;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand em,
.footer-brand em { font-style: normal; font-weight: 600; }

.header-nav { display: flex; gap: 4px; }
.header-share { display: none; }
.header-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .2s;
}
.header-nav a:hover { background: var(--paper-2); }

/* Hero */
/* Hero fills the first screen; type and spacing scale with the viewport (the smaller of width and height) */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 6vh, 88px) 0;
}
.hero > .wrap { width: 100%; }
.hero-text { position: relative; z-index: 1; }
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  align-items: center;
  gap: 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before { content: ""; width: 32px; height: 1.5px; background: currentColor; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, min(6.4vw, 9vh), 88px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero h1 em { font-style: normal; font-weight: 600; }
.lead {
  max-width: 30em;
  margin: 24px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}
.status[hidden] { display: none; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status.is-open .status-dot { background: var(--open); box-shadow: 0 0 0 4px rgba(47, 125, 79, .16); animation: pulse 2.4s ease-in-out infinite; }
.status.is-closed .status-dot { background: var(--closed); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 125, 79, 0); } }
/* Within 30 minutes of closing or opening: orange */
.status.is-closing .status-dot,
.status.is-opening .status-dot { background: #c96f12; box-shadow: 0 0 0 4px rgba(201, 111, 18, .18); animation: pulse-soon 2.4s ease-in-out infinite; }
@keyframes pulse-soon { 50% { box-shadow: 0 0 0 7px rgba(201, 111, 18, 0); } }
.chime { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.chime[hidden] { display: none; }
.chime input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.chime-note { font-weight: 400; color: var(--muted); }

/* Notice set from /liliac */
.notice {
  --n: var(--alert);
  --n-bg: #fdf1ed;
  --n-line: #efc9bf;
  --n-glow: rgba(165, 40, 20, .35);
  padding: 16px 20px 18px;
  border: 1px solid var(--n-line);
  border-left: 4px solid var(--n);
  border-radius: 4px 14px 14px 4px;
  background: var(--n-bg);
  box-shadow: 0 1px 2px rgba(29, 42, 51, .06), 0 12px 32px -12px var(--n-glow);
}
/* Levels set in /liliac: important (red, default), atentie (orange), info (brown) */
.notice-atentie { --n: #c96f12; --n-bg: #fdf4e7; --n-line: #f1d5ae; --n-glow: rgba(201, 111, 18, .35); }
.notice-info { --n: var(--brass); --n-bg: var(--card); --n-line: var(--line); --n-glow: rgba(29, 42, 51, .18); }
.notices { display: grid; gap: 12px; max-width: 32em; margin: 28px 0 0; }
.notices:empty { display: none; }
.notice p { margin: 0; }
.notice-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--n);
}
.notice-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--n); box-shadow: 0 0 0 4px var(--n-line); }
.notice-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.notice-title { margin-bottom: 4px !important; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.notice-text a { color: var(--n); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.notices:not(:empty) + .status { margin-top: 16px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 4vh, 36px); }

/* Scroll hint: a mouse and an arrow, centered under the hero, pulsing between full and half opacity.
   .is-gone (app.js): hidden for the rest of the visit, keeping its space so nothing jumps. */
.scroll-hint {
  position: relative;
  z-index: 1;
  align-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: clamp(20px, 5vh, 48px);
  padding: 6px 10px;
  color: var(--brass);
  text-decoration: none;
  border-radius: 12px;
  animation: breathe 2.4s ease-in-out infinite;
  transition: visibility .4s;
}
.scroll-hint.is-gone { visibility: hidden; opacity: 0; animation: none; transition: opacity .4s, visibility .4s; }
.scroll-hint:hover, .scroll-hint:focus-visible { color: var(--ink); }
.scroll-hint svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scroll-hint .mouse { width: 28px; height: 42px; }
.scroll-hint .arrow { width: 24px; height: 24px; animation: nudge 1.6s ease-in-out infinite; }
.scroll-hint .wheel { animation: wheel 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .5; } }
@keyframes nudge { 50% { transform: translateY(5px); } }
@keyframes wheel { 50% { transform: translateY(5px); } }

/* Photo: the right part of the hero up to the screen edge, faded into the paper on its left */
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  margin: 0;
  /* left fade x bottom fade */
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .35) 22%, #000 48%), linear-gradient(to bottom, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .35) 22%, #000 48%), linear-gradient(to bottom, #000 72%, transparent);
  mask-composite: intersect;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

/* Detail panels */
.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 1fr) minmax(250px, .8fr);
  grid-template-areas: "hours contact addr"; /* same row: the cards share one height */
  gap: 24px;
}
.panel-hours { grid-area: hours; }
.panel-contact { grid-area: contact; }
.panel-addr { grid-area: addr; }

.panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.panel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--brass);
}
.panel-icon svg { width: 22px; height: 22px; }
.panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}

.panel h2 .month {
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1.5px solid var(--line);
  font-weight: 400;
  color: var(--muted);
}
.panel h2 .month:empty { display: none; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th,
.hours td { padding: 9px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.hours td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours td.num { width: 2.2em; padding-right: 6px; text-align: left; color: var(--muted); }
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: var(--muted); }
.hours .special-day td:last-child { color: var(--brass); font-weight: 600; }
/* Today: a highlighted row of its own, then "Următoarele zile" */
.hours .today th,
.hours .today td { padding: 12px 14px; border-bottom: 0; background: var(--paper-2); font-weight: 600; color: var(--ink); }
.hours .today th { border-radius: 12px 0 0 12px; }
.hours .today td { border-radius: 0 12px 12px 0; }
.hours .today.closed td { color: var(--closed); }
.hours .today.special-day td { color: var(--brass); }
.today-tag {
  margin-right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brass);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.hours .next-days td {
  padding: 18px 0 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.day-note { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }


.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.big-link {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
}
.big-link:hover { color: var(--brass); }
.mail-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration-color: var(--brass-soft);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.panel-ink {
  border-color: var(--ink);
  background: var(--ink);
  color: #e9edf0;
}
.panel-ink h2 { color: #fff; }
.panel-ink .panel-icon { background: rgba(255, 255, 255, .08); color: var(--brass-soft); }
.panel-ink address { font-style: normal; font-size: 19px; line-height: 1.65; color: #fff; }
.panel-actions { display: grid; gap: 10px; margin-bottom: 24px; }
/* Pill buttons like the rest of the page, light on the dark card */
.btn-light { min-height: 48px; padding: 0 18px; border-color: rgba(255, 255, 255, .45); background: transparent; color: #fff; font-size: 15px; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
/* "Navighează cu" only when the card is wide enough */
.panel-addr { container: addr / inline-size; }
@container addr (max-width: 300px) { .nav-prefix { display: none; } }

/* Map: a rounded card as wide as the cards above */
.map-section { margin-bottom: 72px; }
.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.map-frame iframe { display: block; width: 100%; height: clamp(320px, 55vh, 560px); border: 0; }
.map-frame { position: relative; }
.map-full {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(29, 42, 51, .3);
  cursor: pointer;
}
.map-full[hidden] { display: none; }
.map-full svg { width: 18px; height: 18px; }
.map-full:hover { background: var(--ink-2); }
.map-bar { display: none; }

/* Full screen: the card becomes the whole window, the bar on top (bottom on phones) leads back */
html.map-open, html.map-open body { overflow: hidden; }
.map-frame.is-full {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}
.map-frame.is-full iframe { flex: 1; height: auto; min-height: 0; }
.map-frame.is-full .map-full { display: none; }
.map-frame.is-full .map-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 8px max(16px, env(safe-area-inset-left)) 8px max(16px, env(safe-area-inset-right));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.map-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.map-back svg { width: 20px; height: 20px; }
.map-back:hover { background: var(--ink-2); }
.map-bar-title { margin: 0; min-width: 0; font-family: var(--serif); font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-bar-title em { font-style: normal; font-weight: 600; }
.map-bar-title span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
@media (max-width: 639px) {
  .map-frame.is-full .map-bar {
    order: 2;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: var(--ink);
  }
  .map-frame.is-full .map-back { flex: 1; justify-content: center; background: var(--brass); }
  .map-frame.is-full .map-bar-title { display: none; }
  .map-full span { display: none; }
  .map-full { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
}
.details { padding: 0 0 24px; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d1d6; font-size: 14px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.footer-brand { font-family: var(--serif); font-size: 18px; color: #fff; }
.footer-brand,
.footer-meta,
.footer-copy { margin: 0; }
.footer-meta a { color: #fff; text-decoration: none; }

/* Availability of a phone number */
.avail { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.avail:empty { display: none; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.avail.is-open::before { background: var(--open); }
.avail.is-closed::before { background: var(--closed); }
.panel-ink .avail { color: rgba(255, 255, 255, .7); }

/* Pop-ups ("Sună", "Navigare GPS"): centered box on desktop; on phones a sheet resting on the bottom bar */
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(29, 42, 51, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.scrim[hidden] { display: none; }
.sheet {
  position: fixed;
  inset: 0;
  z-index: 58;
  width: min(440px, calc(100% - 32px));
  height: fit-content;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(29, 42, 51, .35);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); }
.sheet-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.sheet-sub { margin: 0; font-size: 14px; color: var(--muted); }
.sheet .addr-row { margin-bottom: 18px; }
.dir-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dir-choices .btn { gap: 10px; }
.call-list { margin: 0; padding: 0; list-style: none; }
.call-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.call-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.call-info { display: grid; gap: 2px; min-width: 0; }
.call-number { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.call-list .btn { min-height: 48px; padding: 0 22px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 70;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}
.toast[hidden] { display: none; }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Tablet */
@media (max-width: 959px) {
  .header-nav { display: none; }
  .header-share {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .header-share[hidden] { display: none; }
  .header-share svg { width: 18px; height: 18px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "lead" "notice" "status" "chime" "actions";
    align-items: center;
    gap: 0 clamp(16px, 4vw, 32px);
  }
  .hero-text { display: contents; }
  .hero-text > * { position: relative; z-index: 1; } /* text above the photo */
  .hero { --h1: clamp(32px, min(8.5vw, 7vh), 64px); }
  .hero h1 { grid-area: title; font-size: var(--h1); }
  .lead { grid-area: lead; }
  .notices { grid-area: notice; max-width: none; }
  .status { grid-area: status; justify-self: start; }
  .chime { grid-area: chime; }
  .hero-actions { grid-area: actions; }
  /* Same background photo as on desktop: the top of the hero, faded to the left and to the bottom */
  .hero-media {
    width: 100%;
    bottom: auto;
    height: min(78%, 560px);
    /* lighter than on desktop: the text runs over it */
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .55) 100%), linear-gradient(to bottom, #000 30%, transparent);
    mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .55) 100%), linear-gradient(to bottom, #000 30%, transparent);
  }
  .hero-media img { object-position: 78% center; }
  .eyebrow { display: none; }
  .hero-actions > .btn-share { display: none; } /* in the header instead */
  .details { padding-top: 0; }
}

/* Cards: 3 in a row only from 1100px; below, Program | Contact and the address full width */
@media (max-width: 1099px) {
  .details-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "hours contact" "addr addr";
  }
  .panel-addr .panel-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 759px) {
  .details-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hours" "contact" "addr"; }
}

/* Phone */
@media (max-width: 639px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-footer { display: none; } /* the phone bar and the cards already carry everything in it */
  .map-section { margin-bottom: 24px; }
  body:has(.bar-status:not([hidden])) { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 18px; }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand { min-width: 0; font-size: clamp(14px, 4.6vw, 18px); }
  .site-header .btn-small { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; padding: 0 14px; gap: 8px; font-size: 15px; }
  .details { padding: 8px 0 48px; }
  .details-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hours" "contact" "addr"; gap: 16px; }
  .panel { padding: 24px; }
  .panel-addr .panel-actions { grid-template-columns: 1fr; }
  .big-link { font-size: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }

  .mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(29, 42, 51, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .past-contact .mobile-bar { transform: none; visibility: visible; transition: transform .3s ease; }
  .site-header { transform: translateY(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  .past-title .site-header { transform: none; visibility: visible; transition: transform .3s ease; }
  .bar-status {
    grid-column: 1 / -1;
    margin: -2px 0 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(165, 67, 47, .22);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
  }
  .bar-status[hidden] { display: none; }
  .mobile-bar > a,
  .mobile-bar > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-bar > a[data-call] { background: var(--brass); }
  body.phones-off .mobile-bar > a[data-call] { background: none; }
  body.phones-off .mobile-bar > a[href^="mailto:"] { background: var(--brass); }
  .mobile-bar > button { width: 100%; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
  .mobile-bar svg { width: 20px; height: 20px; }
  .sheet {
    top: auto;
    bottom: var(--bar-h, 0px);
    width: 100%;
    max-width: none;
    max-height: calc(100% - var(--bar-h, 0px) - 24px);
    margin: 0;
    padding: 20px 20px 22px;
    border-radius: 22px 22px 0 0;
  }
  .call-number { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Google Maps / Waze icons in the directions buttons */
.app-icon { width: 20px; height: 20px; flex: none; }

/* Address with a round "Distribuie adresa" button beside it */
.addr-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn[hidden] { display: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.icon-btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.panel-head .icon-btn { margin-left: auto; }
