/* Home · closing: the nursery full screen, a booking card floating over it (see visit.js). */
.visit { --g: clamp(20px, 3.4vw, 48px); position: relative; z-index: 3; isolation: isolate; overflow: hidden; color: #f6f6f2; background: #1d2a22; }
.visit__photo { position: absolute; inset: 0; z-index: -1; }
.visit__photo img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 42% 50%; transform: scale(1.12); will-change: transform; }
.visit__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,12,.72) 0%, rgba(10,14,12,.45) 42%, rgba(10,14,12,.12) 70%), linear-gradient(0deg, rgba(10,14,12,.55) 0%, rgba(10,14,12,0) 45%); }
[dir="rtl"] .visit__photo::after { background: linear-gradient(270deg, rgba(10,14,12,.72) 0%, rgba(10,14,12,.45) 42%, rgba(10,14,12,.12) 70%), linear-gradient(0deg, rgba(10,14,12,.55) 0%, rgba(10,14,12,0) 45%); }
.visit__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: clamp(32px, 6vw, 120px); align-items: end; min-block-size: 100vh; box-sizing: border-box; padding: clamp(80px, 14vh, 150px) var(--g) clamp(48px, 9vh, 96px); }

/* left: the place */
.visit__copy { display: grid; gap: 22px; max-inline-size: 36em; }
.visit__status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin: 0; padding: 8px 14px 8px 12px; border-radius: 99px; background: rgba(246,246,242,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 14px/1 var(--font-text); }
.visit__status i { inline-size: 8px; block-size: 8px; border-radius: 50%; background: #6fd39a; animation: live 2s ease-out infinite; }
.visit__status.is-closed i { background: #e7a37f; animation: none; }
.visit__h { margin: 0; font: 400 clamp(52px, 6.6vw, 112px)/.98 var(--font-serif); font-variation-settings: "opsz" 72; letter-spacing: -.035em; }
:lang(ar) .visit__h { line-height: 1.2; letter-spacing: 0; }
.visit__lede { margin: 0; max-inline-size: 30em; font: 400 18px/1.55 var(--font-text); color: rgba(246,246,242,.85); }
.visit__facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; font: 400 16px/1.4 var(--font-text); color: rgba(246,246,242,.9); }
.visit__facts li { display: flex; align-items: center; gap: 12px; }
.visit svg { inline-size: 20px; block-size: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.visit__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 6px; }
.visit__acts a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 99px; color: #f6f6f2; text-decoration: none; font: 500 15px/1 var(--font-text); box-shadow: inset 0 0 0 1px rgba(246,246,242,.4); transition: background-color .25s, color .25s, box-shadow .25s; }
.visit__acts a:hover { background: #f6f6f2; color: var(--encre); box-shadow: none; }
.visit__acts a:focus-visible { outline: 2px solid #f6f6f2; outline-offset: 3px; }

/* right: the booking card */
.visit__card { align-self: center; color: var(--encre); background: #fbfbf8; border-radius: 22px; padding: clamp(22px, 2.4vw, 32px); box-shadow: 0 40px 90px -40px rgba(0,0,0,.6); }
.vc { display: grid; gap: 18px; }
.vc__t { margin: 0; font: 400 30px/1.1 var(--font-serif); letter-spacing: -.02em; outline: none; }
.vc__p { margin: -8px 0 0; font: 400 15px/1.5 var(--font-text); color: color-mix(in oklab, var(--encre) 72%, #fff); }
.vc__f { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.vc__f legend, .vc__lab { padding: 0; margin-block-end: 10px; font: 500 14px/1.2 var(--font-text); }
.vc__lab { margin: 0; }
.vc__f legend i { font-style: normal; font-weight: 400; opacity: .55; }
.vc__days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.vc__day, .vc__slot { position: relative; }
.vc__day input, .vc__slot input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.vc__day span { display: grid; justify-items: center; gap: 4px; padding: 10px 0 11px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(18,20,18,.14); transition: background-color .2s, color .2s, box-shadow .2s; }
.vc__day small { font: 500 12px/1 var(--font-text); opacity: .6; text-transform: lowercase; }
.vc__day b { font: 400 22px/1 var(--font-serif); }
.vc__day:hover span { box-shadow: inset 0 0 0 1px rgba(18,20,18,.45); }
.vc__day input:checked + span { background: var(--zellige); color: #f6f6f2; box-shadow: none; }
.vc__day input:checked + span small { opacity: .8; }
.vc__slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc__slot span { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(18,20,18,.14); transition: background-color .2s, box-shadow .2s; }
.vc__slot b { font: 500 15px/1.2 var(--font-text); } .vc__slot small { font: 400 13px/1 var(--font-text); opacity: .6; }
.vc__slot:hover span { box-shadow: inset 0 0 0 1px rgba(18,20,18,.45); }
.vc__slot input:checked + span { background: color-mix(in oklab, var(--menthe) 70%, #fff); box-shadow: inset 0 0 0 1.5px var(--zellige); }
.vc__slot input:disabled + span { opacity: .4; cursor: not-allowed; }
.vc__day input:focus-visible + span, .vc__slot input:focus-visible + span { outline: 2px solid var(--zellige); outline-offset: 2px; }
.vc .choices { gap: 6px; } .vc .choice span { padding: 9px 13px; font-size: 14px; }
.vc__tel { display: flex; align-items: stretch; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(18,20,18,.2); background: #fff; }
.vc__tel span { display: grid; place-items: center; padding-inline: 14px; border-inline-end: 1px solid rgba(18,20,18,.12); font: 500 15px/1 var(--font-text); opacity: .7; direction: ltr; }
.vc__tel .input { border: 0; box-shadow: none !important; background: transparent; }
.vc__tel:focus-within { box-shadow: inset 0 0 0 1.5px var(--zellige), 0 0 0 3px rgba(14,74,58,.15); }
.vc__tel:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 1.5px #b4532f; }
.vc__go { margin-block-start: 2px; }
.vc__note { margin: -8px 0 0; text-align: center; font: 400 13px/1.3 var(--font-text); opacity: .6; }
/* confirmation */
.vc--ok { justify-items: start; }
.vc__tick { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 50%; background: var(--zellige); color: #f6f6f2; animation: tick .6s cubic-bezier(.16,1,.3,1); }
.vc__tick svg { inline-size: 24px; block-size: 24px; stroke-width: 2; }
@keyframes tick { from { transform: scale(.4); opacity: 0; } }
.vc--ok .vc__p { margin: 0; font-size: 16px; }
.vc__code { margin: -6px 0 0; font: 500 13px/1 var(--font-text); opacity: .55; letter-spacing: .02em; }
.vc__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.vc__more { display: flex; gap: 20px; font: 500 14px/1 var(--font-text); }
.vc__more a { color: var(--encre); }

/* arrival */
@media (prefers-reduced-motion: no-preference) {
  .visit .visit__copy > *, .visit .visit__card { opacity: 0; translate: 0 30px; transition: opacity .9s ease, translate 1.2s cubic-bezier(.16,1,.3,1); }
  .visit.is-in .visit__copy > *, .visit.is-in .visit__card { opacity: 1; translate: 0 0; }
  .visit.is-in .visit__copy > :nth-child(2) { transition-delay: .06s; } .visit.is-in .visit__copy > :nth-child(3) { transition-delay: .12s; }
  .visit.is-in .visit__copy > :nth-child(4) { transition-delay: .18s; } .visit.is-in .visit__copy > :nth-child(5) { transition-delay: .24s; }
  .visit.is-in .visit__card { transition-delay: .2s; }
}

/* phones: the photo on top with the words on it, the card overlapping it below */
@media (max-width: 900px) {
  .visit { background: var(--chaux); color: #f6f6f2; }
  .visit__photo { inset: 0 0 auto; block-size: 640px; }
  .visit__in { grid-template-columns: 1fr; min-block-size: 0; gap: 28px; padding: 120px var(--g) 56px; }
  .visit__copy { min-block-size: 440px; align-content: end; }
  .visit__h { font-size: clamp(44px, 12vw, 64px); }
  .vc__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the card is light: its text is dark (the section's white text must not leak in) */
.visit__card, .visit__card .vc__day span, .visit__card .vc__slot span, .visit__card b, .visit__card small { color: var(--encre); }
.visit__card .vc__day input:checked + span, .visit__card .vc__day input:checked + span b, .visit__card .vc__day input:checked + span small { color: #f6f6f2; }
.visit__card .choice input:checked + span { color: #f6f6f2; }
.visit__card .b--z { color: #f6f6f2; }
/* opening status: a quiet second line under the hours, no badge */
.visit__facts li { align-items: flex-start; }
.visit__facts li svg { margin-block-start: 1px; }
.visit__facts span { display: grid; gap: 3px; }
.visit__now { font: italic 400 16px/1.35 var(--font-serif); color: rgba(246,246,242,.7); }
:lang(ar) .visit__now { font-style: normal; font-family: var(--font-text); font-size: 14px; }
/* the aisle photo: vanishing point centred, a lighter veil (only where the words sit), warm not muddy */
.visit__photo img { object-position: 50% 60%; }
.visit__photo::after { background: linear-gradient(90deg, rgba(14,18,14,.62) 0%, rgba(14,18,14,.34) 34%, rgba(14,18,14,0) 58%), linear-gradient(0deg, rgba(14,18,14,.5) 0%, rgba(14,18,14,0) 40%), linear-gradient(180deg, rgba(14,18,14,.18) 0%, rgba(14,18,14,0) 25%); }
[dir="rtl"] .visit__photo::after { background: linear-gradient(270deg, rgba(14,18,14,.62) 0%, rgba(14,18,14,.34) 34%, rgba(14,18,14,0) 58%), linear-gradient(0deg, rgba(14,18,14,.5) 0%, rgba(14,18,14,0) 40%), linear-gradient(180deg, rgba(14,18,14,.18) 0%, rgba(14,18,14,0) 25%); }
@media (max-width: 900px) { .visit__photo img { object-position: 62% 60%; } .visit__photo::after { background: linear-gradient(0deg, rgba(14,18,14,.75) 0%, rgba(14,18,14,.35) 55%, rgba(14,18,14,.15) 100%); } }

/* from the journal: the section sits on the page's light ground; the photo is a framed picture that opens out (visit.js) */
.visit { background: var(--chaux); }
.visit .visit__copy > *, .visit .visit__card { transition: none; }
.visit.has-open .visit__copy > *, .visit.has-open .visit__card { opacity: var(--show, 0); translate: 0 calc((1 - var(--show, 0)) * 28px); }
.visit.has-open .visit__card { translate: 0 calc((1 - var(--show, 0)) * 44px); }
.visit.has-open:not(.is-open) .visit__card { pointer-events: none; }
.visit__photo { will-change: clip-path; }
@media (prefers-reduced-motion: reduce) { .visit .visit__copy > *, .visit .visit__card { opacity: 1; translate: none; } }
