/* =========================================================
   AAAF Moldova Park — Plan your visit
   Loaded only on /{lang}/plan, so plain element/class names are safe here.
   Tokens come from style.css, shared components from pages.css.
   ========================================================= */

/* The hero sits tight on top of the quick-info tiles */
.page-hero{padding-bottom:34px}

/* ---------- Quick info tiles ---------- */
.plan-quick{padding:0 0 32px;background:var(--cream)}
.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.quick-tile{display:flex;flex-direction:column;gap:4px;padding:20px 22px;border-radius:18px;background:#fff;border:1px solid var(--line)}
.quick-ic{display:grid;place-items:center;width:42px;height:42px;margin-bottom:10px;border-radius:13px;background:var(--cream);color:var(--green)}
.quick-ic .i{width:20px;height:20px}
.quick-tile strong{font-size:21px;font-weight:800;line-height:1.15;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.quick-tile>span:last-child{font-size:13.5px;line-height:1.4;color:var(--muted)}

/* ---------- Sticky section menu (anchors only, no JS) ---------- */
.plan-nav{position:sticky;top:84px;z-index:20;background:rgba(244,239,230,.95);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.plan-nav ul{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.plan-nav ul::-webkit-scrollbar{display:none}
.plan-nav a{display:block;padding:15px 14px;border-bottom:2px solid transparent;font-size:14px;font-weight:600;white-space:nowrap;color:var(--ink-2);transition:color .2s,border-color .2s}
.plan-nav a:hover{color:var(--green);border-bottom-color:var(--green)}
.plan-section,#accessibility{scroll-margin-top:152px}

/* ---------- White panels around tables and lists ---------- */
.panel{overflow:hidden;border-radius:20px;background:#fff;border:1px solid var(--line)}
.table-wrap.panel{overflow-x:auto;overflow-y:hidden}
.panel-pad{padding:30px}
.block-title{font-size:20px;font-weight:800;letter-spacing:-.02em}
.block-sub{margin-top:4px;margin-bottom:16px;font-size:14.5px}
.block-actions{margin-top:22px}
.note-line{display:flex;align-items:flex-start;gap:10px;margin-top:18px;font-size:14px;line-height:1.5;color:var(--muted)}
.note-line .i{flex:none;width:17px;height:17px;margin-top:3px;color:var(--green)}

/* ---------- Tables ---------- */
.data-table .cell-sub{display:block;margin-top:3px;font-size:13px;font-weight:500;color:var(--muted)}
.data-table .cell-time{font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.data-table th.cell-price,.data-table td.cell-price{text-align:right;white-space:nowrap}
.data-table td.cell-price{font-size:19px;font-weight:800;letter-spacing:-.02em}
.data-table td.cell-free{color:#1C7C45}
.data-table .cell-ic{display:inline-grid;place-items:center;width:34px;height:34px;margin-right:12px;border-radius:10px;background:var(--cream);color:var(--green);vertical-align:middle}
.data-table .cell-ic .i{width:17px;height:17px}
.data-table .row-accent{background:#EDF3EC}
.data-table .row-accent td{border-bottom:0}
.addons{margin-top:52px}

/* ---------- Getting here ---------- */
.way-ic{display:grid;place-items:center;width:52px;height:52px;margin-bottom:22px;border-radius:15px;background:var(--green);color:var(--sand)}
.way-ic .i{width:23px;height:23px}
.way h3{font-size:21px}
.card p.way-meta{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px;font-weight:700;color:var(--green)}
.way-meta .i{width:16px;height:16px}

.near{display:grid;grid-template-columns:.95fr 1.05fr;margin-top:20px;overflow:hidden;border-radius:22px;background:#fff;border:1px solid var(--line)}
.near-media{aspect-ratio:16/10;margin:0}
.near-media img{width:100%;height:100%;object-fit:cover;filter:saturate(.9) contrast(1.04)}
.near-body{display:flex;flex-direction:column;justify-content:center;padding:38px}
.near-body h3{font-size:30px;font-weight:800;letter-spacing:-.035em}
.near-meta{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px;font-weight:700;color:var(--green)}
.near-meta .i{width:17px;height:17px}
.near-body>p:last-child{margin-top:16px;font-size:15.5px;line-height:1.6;color:var(--ink-2)}

/* ---------- Parking ---------- */
/* The photo and the list panel share one row height, so the panel starts level
   with the top of the image instead of floating in the middle of it. */
#parking .split{align-items:stretch}
@media (min-width:1101px){
  /* No fixed ratio here: the photo simply takes the height of the list panel.
     (A min-height plus an aspect-ratio would blow the width out on phones.) */
  #parking .split-media{aspect-ratio:auto;min-height:320px}
}

/* ---------- Transfer & accessibility ---------- */
.plan-duo{align-items:stretch}
.plan-duo>.panel{display:flex;flex-direction:column}
.plan-duo .block-actions{margin-top:auto;padding-top:22px}
.access-list li{display:flex;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}
.access-list li:last-child{border-bottom:0}
.access-list li:first-child{padding-top:4px}
.access-ic{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:13px;background:var(--cream);color:var(--green)}
.access-ic .i{width:21px;height:21px}
.access-list strong{display:block;font-size:16px;font-weight:800;letter-spacing:-.01em}
.access-list em{display:block;margin-top:2px;font-size:13.5px;font-style:normal;line-height:1.45;color:var(--muted)}

/* ---------- Park rules ---------- */
.rules-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.rule{display:flex;align-items:center;gap:15px;padding:20px;border-radius:18px;background:#fff;border:1px solid var(--line);font-size:15px;font-weight:600;line-height:1.35}
.rule-ic{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:var(--cream);color:var(--green)}
.rule-ic .i{width:20px;height:20px}

/* ---------- FAQ ---------- */
.faq-narrow{max-width:880px;margin-inline:auto}
.faq summary:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:10px}

/* ---------- Closing CTA band: keep it clear of the cream contact block ---------- */
.cta-band{padding-top:var(--section)}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:22px;align-items:start}
.contact-card .contact-list{margin-top:18px}
.contact-list li{display:flex;align-items:flex-start;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}
.contact-list li:last-child{padding-bottom:0;border-bottom:0}
.contact-ic{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:13px;background:var(--cream);color:var(--green)}
.contact-ic .i{width:20px;height:20px}
.contact-list em{display:block;margin-bottom:2px;font-size:11.5px;font-weight:700;font-style:normal;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.contact-list a{font-size:16px;font-weight:700;line-height:1.45}
.contact-list a:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}
.contact-list li>span:last-child{font-size:15.5px;font-weight:600;line-height:1.45}
.form-card .block-title{margin-bottom:20px}
.form-row label.form-check{font-size:14.5px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink-2)}
.address-line{margin-top:22px;font-size:14.5px;font-weight:600;color:var(--ink-2)}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1100px){
  .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .near{grid-template-columns:1fr}
  .near-media{aspect-ratio:16/7}
  .contact-grid{grid-template-columns:1fr}
  #parking .split-media{aspect-ratio:16/10}
}
@media (max-width:860px){
  /* 44px tap targets without moving anything on screen */
  .faq summary{padding:5px 0;margin:-5px 0}
  /* the section menu scrolls sideways — fade the right edge so that reads */
  .plan-nav::after{content:"";position:absolute;top:0;right:0;width:38px;height:100%;background:linear-gradient(90deg,rgba(244,239,230,0),rgba(244,239,230,.95));pointer-events:none}
  .page-hero{padding-bottom:28px}
  .plan-quick{padding-bottom:24px}
  .quick-grid{grid-template-columns:1fr;gap:10px}
  .quick-tile{flex-direction:row;align-items:center;flex-wrap:wrap;gap:4px 14px;padding:16px 18px}
  .quick-ic{margin-bottom:0}
  .quick-tile strong{font-size:19px}
  .quick-tile>span:last-child{flex:1 0 100%;padding-left:56px;margin-top:-2px}
  .plan-nav{top:68px}
  .plan-nav ul{margin:0 calc(var(--gutter) * -1);padding:0 var(--gutter)}
  .plan-nav a{padding:13px 11px;font-size:13.5px}
  .plan-section,#accessibility{scroll-margin-top:118px}
  .table-wide .data-table{min-width:600px}
  /* Scroll shadows: the wide tables slide sideways, so show there is more to see */
  .table-wrap.table-wide{
    background-image:
      linear-gradient(to right,#fff,rgba(255,255,255,0)),
      linear-gradient(to left,#fff,rgba(255,255,255,0)),
      linear-gradient(to right,rgba(21,24,22,.14),rgba(21,24,22,0)),
      linear-gradient(to left,rgba(21,24,22,.14),rgba(21,24,22,0));
    background-position:left center,right center,left center,right center;
    background-repeat:no-repeat;
    background-size:26px 100%,26px 100%,14px 100%,14px 100%;
    background-attachment:local,local,scroll,scroll;
  }
  .panel-pad{padding:22px}
  .data-table th,.data-table td{padding:13px 14px}
  .data-table td.cell-price{font-size:17px}
  .addons{margin-top:36px}
  .rules-grid{grid-template-columns:1fr}
  .near-body{padding:24px}
  .near-body h3{font-size:26px}
  .near-media{aspect-ratio:16/9}
  .way-ic{width:46px;height:46px;margin-bottom:16px}
}
