/* ==========================================================================
   GUIDE — "Our Guide to Visiting Israel" (guide.js). Colours and fonts from
   theme.css; headings in Cormorant like the neighbourhood names (Moli's call).
   ========================================================================== */
/* one column as wide as the screen: without this the hotel row would stretch the page sideways */
.details { grid-template-columns: minmax(0, 1fr); }
.g-intro, .g-block { width: min(100%, 440px); }
.details > .g-block { gap: 0; }

.g-ic { width: 20px; height: 20px; flex: none; }

/* the title */
.g-intro { text-align: center; padding: 26px 28px 0; }
.g-intro h1 { margin: 0; font-family: var(--body); font-weight: 500; font-size: 34px; line-height: 1.15; color: var(--ink); }
.g-rule { display: block; width: 40px; height: 1px; margin: 18px auto 0; background: var(--gold); }

/* a block's heading: a small round badge and the heading */
.g-head { padding: 0 24px; display: flex; align-items: center; gap: 12px; }
.g-badge { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); color: var(--green); }
.g-badge .g-ic { width: 19px; height: 19px; }
.g-head h2 { margin: 0; font-family: var(--body); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--ink); }
.g-sub { margin: 12px 24px 0; font-size: 17px; font-style: italic; line-height: 1.4; color: var(--ink-soft); }
.g-minor { margin: 28px 24px 0; font-family: var(--body); font-weight: 500; font-size: 21px; line-height: 1.25; color: var(--ink); }

/* ivory paper, like the cards above */
.g-paper { position: relative; margin: 14px 16px 0; background: var(--noise), var(--card); box-shadow: 0 10px 26px rgba(46, 60, 34, .14), 0 1px 2px rgba(0,0,0,.06); }
.g-flowers::after {
  content: ""; position: absolute; inset: 2px; pointer-events: none;
  background:
    url("../ivory/corner-tl.webp") left top / 70px auto no-repeat,
    url("../ivory/corner-br.webp") right bottom / 70px auto no-repeat;
}

/* Where to stay: a row of hotel cards to swipe */
.g-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 24px 18px; scrollbar-width: none; }
.g-row::-webkit-scrollbar { display: none; }
.g-hotel { flex: none; width: 76%; scroll-snap-align: center; display: flex; flex-direction: column; background: var(--noise), var(--card); box-shadow: 0 8px 20px rgba(46,60,34,.13); border-radius: 3px; overflow: hidden; }
.g-pic { aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--paper) 14px 28px); }
.g-pic { position: relative; flex: none; overflow: hidden; }
.g-pic img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.g-hotel-txt { padding: 14px 16px 16px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.g-hotel h3 { margin: 0; font-weight: 500; font-size: 21px; }
.g-city { margin-top: 2px; font-family: var(--caps); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); }
.g-code { display: inline-flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; padding: 6px 10px; border: 1px dashed var(--gold); border-radius: 6px; background: color-mix(in srgb, var(--gold) 8%, transparent); font-family: var(--caps); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.g-code b { font-family: var(--body); font-size: 17px; letter-spacing: .02em; text-transform: none; font-weight: 500; color: var(--green); }
.g-link { margin-top: auto; padding-top: 10px; font-family: var(--caps); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--green); text-underline-offset: 4px; }
.g-swipe { margin: -4px 0 0; text-align: center; font-size: 15px; font-style: italic; color: var(--ink-soft); }

/* Tel Aviv neighbourhoods */
.g-hoods { list-style: none; margin: 0; padding: 10px 18px 10px; counter-reset: h; }
.g-hoods li { counter-increment: h; position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.g-hoods li:last-child { border-bottom: 0; }
.g-hoods li::before { content: counter(h); position: absolute; left: 0; top: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--caps); font-size: 11px; color: var(--card); background: var(--green); }
.g-hoods b { font-weight: 500; font-size: 18.5px; }
.g-hoods p { margin: 3px 0 0; font-size: 16.5px; line-height: 1.35; color: var(--ink-soft); }

/* Recommendations: the Google Maps button */
.g-maps { margin: 14px 16px 0; display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 6px; background: var(--green); color: var(--card); text-decoration: none; box-shadow: 0 8px 20px rgba(46,60,34,.2); }
.g-maps-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--card) 14%, transparent); }
.g-maps b { display: block; font-family: var(--body); font-weight: 500; font-size: 21px; line-height: 1.2; }
.g-maps small { display: block; margin-top: 4px; font-size: 15.5px; font-style: italic; opacity: .85; }
.g-maps > .g-ic { width: 18px; height: 18px; opacity: .8; }

/* FAQ */
.g-faq { padding: 8px 22px 14px; }
.g-faq details { border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.g-faq details:last-child { border-bottom: 0; }
.g-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; font-size: 19px; cursor: pointer; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; font-size: 24px; line-height: .8; color: var(--gold); }
.g-faq details[open] summary::after { content: "–"; }
.g-faq p { margin: -4px 0 16px; font-size: 17px; line-height: 1.45; color: var(--ink-soft); }

/* Good to know: notes on the blush lining colour */
.g-facts { margin: 14px 16px 0; padding: 6px 18px; border-radius: 4px; background: var(--inside-3); }
.g-fact { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.g-fact:last-child { border-bottom: 0; }
.g-fact > .g-ic { width: 22px; height: 22px; margin-top: 2px; color: var(--green); }
.g-fact h3 { margin: 2px 0 0; font-family: var(--caps); font-weight: 400; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.g-fact p { margin: 5px 0 0; font-size: 17px; line-height: 1.4; }

/* Apps */
.g-apps { display: grid; gap: 10px; margin: 14px 16px 0; }
.g-app { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: var(--noise), var(--card); box-shadow: 0 6px 16px rgba(46,60,34,.1); color: inherit; text-decoration: none; }
.g-app i { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--card); background: var(--green); }
.g-app:nth-child(3n+2) i { background: var(--olive); }
.g-app:nth-child(3n) i { background: #b78a80; }
.g-app i .g-ic { width: 22px; height: 22px; }
.g-app b { display: block; font-weight: 500; font-size: 17.5px; line-height: 1.1; }
.g-app span span { display: block; margin-top: 3px; font-size: 15px; font-style: italic; line-height: 1.25; color: var(--ink-soft); }
.g-app em { display: block; margin-top: 8px; font-style: normal; font-family: var(--caps); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.g-app em a { display: inline-block; padding: 4px 0; color: var(--green); text-underline-offset: 3px; }

/* Hebrew: right to left */
[dir="rtl"] .g-hoods li { padding: 12px 36px 12px 0; }
[dir="rtl"] .g-hoods li::before { left: auto; right: 0; }
[dir="rtl"] .g-maps > .g-ic { transform: scaleX(-1); }

/* land below the fixed top bar when jumping here */
.g-intro, .g-block { scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }

/* Hebrew has no capitals: the small spaced-out labels need a real size instead */
:lang(he) .g-city, :lang(he) .g-code, :lang(he) .g-link, :lang(he) .g-fact h3, :lang(he) .g-app em { letter-spacing: 0; text-transform: none; }
:lang(he) .g-city { font-size: 14px; }
:lang(he) .g-code { font-size: 14px; }
:lang(he) .g-link { font-size: 14.5px; }
:lang(he) .g-fact h3 { font-size: 16px; font-weight: 500; }
:lang(he) .g-app em { font-size: 13px; }

/* the drawn ↗ after outside links */
.ext { display: inline-block; margin-inline-start: .35em; vertical-align: -.08em; }
.ext svg { display: block; }
[dir="rtl"] .ext svg { transform: scaleX(-1); }
.g-app span.ext { display: inline-block; margin-top: 0; }
