/* Tennis Royal Iași — pagina „Rezervă teren” (publică). Mobile-first. */
.page-courts { background: var(--ivory); }
.courts-page { padding: calc(72px + env(safe-area-inset-top, 0px) + clamp(32px, 6vw, 64px)) 0 clamp(48px, 8vw, 96px); }
.courts-page h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 14px 0 12px; }
.courts-page h1 em { font-style: italic; color: var(--clay); }
.courts-page .sec-lead { margin-bottom: 28px; }

/* cele 2 terenuri, văzute de sus, pe „gazon” verde închis, ca într-o bază sportivă */
.courts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 28px); max-width: 640px; margin: 0 auto 28px;
  padding: clamp(14px, 3vw, 26px); border-radius: 14px;
  background: radial-gradient(120% 120% at 30% 0%, var(--forest) 0%, var(--royal) 60%, var(--royal) 100%);
  box-shadow: inset 0 0 0 1px rgba(150,120,63,.35), 0 18px 40px rgba(15,42,33,.18); }
.court { display: grid; justify-items: center; gap: 6px; padding: 10px 8px 12px; border: 2px solid transparent; border-radius: 12px; background: rgba(255,255,255,.03);
  color: var(--white); cursor: pointer; font: inherit; transition: transform .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease); }
.court:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); }
.court:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.court[aria-pressed="true"] { border-color: var(--brass); background: rgba(150,120,63,.12); box-shadow: 0 0 0 4px rgba(150,120,63,.18); }
.court[aria-pressed="false"] .court-svg { filter: saturate(.75) brightness(.9); }
.court-svg { width: 100%; max-width: 210px; height: auto; border-radius: 10px; box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.court-badge circle { fill: rgba(15,42,33,.82); stroke: var(--brass); stroke-width: 1.5; }
.court-badge text { fill: var(--white); font: 600 20px var(--serif); }
.court-name { font-family: var(--serif); font-size: 1.25rem; margin-top: 4px; }
.court-sub { font-size: .78rem; color: rgba(255,255,255,.7); letter-spacing: .06em; text-transform: uppercase; }

/* calendarul terenului */
.court-cal { background: var(--white); border: 1px solid var(--stone); border-radius: 10px; padding: clamp(14px, 3vw, 22px); }
.cc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cc-head h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.cc-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-btn { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--white); font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; }
.cc-btn:hover { background: var(--ivory); }
.cc-btn:disabled { opacity: .4; cursor: not-allowed; }
.cc-today { font-size: .88rem; }
.cc-range { font-weight: 600; margin-left: 6px; font-size: .95rem; }
.cc-days { display: none; gap: 4px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.cc-days button { flex: 1 1 0; min-width: 0; padding: 0; min-height: 52px; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--white); font: 600 .76rem var(--sans); color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; line-height: 1.2; }
.cc-days button b { font-size: 1.05rem; color: var(--ink); }
.cc-days button[aria-selected="true"] { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.cc-days button[aria-selected="true"] b { color: var(--white); }
.cc-wrap { border: 1px solid var(--stone); border-radius: 8px; overflow: auto; max-height: 70vh; }
.cc-grid { --h: 44px; display: grid; grid-template-columns: 50px repeat(var(--cols, 7), minmax(92px, 1fr)); min-width: 100%; position: relative; }
.cc-colhead { position: sticky; top: 0; z-index: 3; background: var(--white); border-bottom: 1px solid var(--stone); text-align: center; padding: 8px 4px; font-size: .78rem; color: var(--ink-soft); }
.cc-colhead b { display: block; font-size: 1.05rem; color: var(--ink); }
.cc-colhead.today b { color: var(--clay); }
.cc-corner { position: sticky; top: 0; left: 0; z-index: 4; background: var(--white); border-bottom: 1px solid var(--stone); }
.cc-hours { position: sticky; left: 0; z-index: 2; background: var(--white); border-right: 1px solid var(--stone); }
.cc-hours span { display: block; height: var(--h); font-size: .7rem; color: var(--ink-soft); text-align: right; padding: 0 6px; transform: translateY(-.6em); }
.cc-col { position: relative; border-right: 1px solid var(--stone);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--h) - 1px), var(--stone) calc(var(--h) - 1px), var(--stone) var(--h)); }
.cc-col.today { background-color: var(--paper); }
.cc-past { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(135deg, rgba(0,0,0,.03) 0 6px, transparent 6px 12px); pointer-events: none; }
.cc-busy { position: absolute; left: 3px; right: 3px; z-index: 1; border-radius: 6px; padding: 3px 6px; overflow: hidden;
  background: linear-gradient(180deg, var(--clay), var(--clay-deep)); color: var(--white); font-size: .74rem; font-weight: 600; line-height: 1.25; box-shadow: 0 2px 6px rgba(163,73,42,.25); }
.cc-busy small { display: block; font-weight: 500; opacity: .85; }
.cc-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--clay); z-index: 2; }
.cc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; font-size: .84rem; color: var(--ink-soft); }
.cc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cc-legend i { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-free { background: var(--white); border: 1px solid var(--line); }
.lg-busy { background: var(--clay); }
.cc-live { margin-left: auto; font-size: .78rem; }
.cc-cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(18px, 4vw, 28px); border-radius: 10px; background: var(--green-900); color: var(--white); }
.cc-cta h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 6px; }
.cc-cta p { color: rgba(255,255,255,.8); }
.cc-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-cta .btn-outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.cc-cta .btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }

@media (max-width: 699px) {
  .cc-days { display: flex; }
  .cc-grid { grid-template-columns: 46px 1fr; }
  .cc-colhead, .cc-corner { display: none; }
  .cc-live { margin-left: 0; }
}

/* ---------- Închirieri (06/11/2026): în așteptare (gri), selecția ta (verde), formularul de cerere ---------- */
.cc-col { cursor: pointer; }
.cc-busy.cc-hold { background: repeating-linear-gradient(135deg, var(--stone) 0 6px, color-mix(in srgb, var(--ink) 14%, var(--ivory)) 6px 12px); color: var(--ink); border: 1px dashed var(--ink-mute); cursor: not-allowed; }
.cc-busy { cursor: not-allowed; }
.cc-sel { position: absolute; left: 3px; right: 3px; z-index: 2; border-radius: 6px; padding: 3px 6px; background: var(--forest); color: var(--ivory); font: 600 .78rem var(--sans); box-shadow: 0 0 0 2px var(--ivory), 0 6px 14px rgba(15,42,33,.3); pointer-events: none; overflow: hidden; }
.cc-sel small { display: block; font-weight: 500; opacity: .9; }
.cc-sel.bad { background: var(--clay-deep); }
.lg-hold { background: repeating-linear-gradient(135deg, var(--stone) 0 3px, color-mix(in srgb, var(--ink) 18%, var(--ivory)) 3px 6px); border: 1px dashed var(--ink-mute); }
.lg-sel { background: var(--forest); }
.cc-hint { margin: 8px 0 0; font-size: .9rem; color: var(--ink-soft); }
.cc-hint.warn { color: var(--clay-deep); font-weight: 600; }
.cc-book { margin-top: 22px; background: var(--white); border: 1px solid var(--stone); border-top: 4px solid var(--forest); border-radius: 10px; padding: clamp(16px, 3vw, 26px); }
.cc-book form, #cb-fields { display: grid; gap: 14px; }
.cb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cb-head h2 { margin: 4px 0 0; font-size: clamp(1.6rem, 4vw, 2rem); }
.cb-when { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.cb-dur { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cb-dur button { min-height: 46px; border: 0; background: var(--white); font: 600 .9rem var(--sans); color: var(--ink-soft); cursor: pointer; }
.cb-dur button + button { border-left: 1px solid var(--line); }
.cb-dur button[aria-pressed="true"] { background: var(--royal); color: var(--ivory); }
.cb-dur button:disabled { opacity: .35; cursor: not-allowed; }
.cb-price { margin: 0; font-weight: 600; color: var(--forest); }

/* ore în care terenul nu se închiriază: 01:00–07:00 și 23:00–24:00 (23/11/2026) */
.cc-closed { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--ink) 7%, transparent); pointer-events: none; }
