/* Carpodrom MST — culorile siglei: verde #68C04A pe negru.
   Layout: o coloană centrată, secțiuni pe toată lățimea, grilaj de standuri ca element central. */
:root {
  --bg: #090b09;
  --bg-alt: #0f130f;
  --surface: #141914;
  --surface-2: #1c231c;
  --line: #2a352a;
  --text: #eef4ea;
  --muted: #9dab99;
  --copper: #68c04a;
  --copper-hi: #8fd673;
  --copper-ink: #071205;
  --ok: #7cc062;
  --ok-bg: #16261a;
  --warn: #e3b84f;
  --warn-bg: #2d2713;
  --bad: #e5776a;
  --bad-bg: #321a17;
  --info-bg: #142019;
  --mine: #5cb3ee;

  --font-display: "Oswald", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 6px;
  --gutter: 16px;

  --header-bg: rgba(9, 11, 9, .96);
  --ok-ink: #071205;
  --ok-hi: #9bd884;
  --ok-line: #335c33;
  --ok-hover: #21402a;
  --ok-glow: rgba(104, 192, 74, .3);
  --warn-line: #5a4a1e;
  --bad-line: #5a2e26;
  --mine-bg: #142a3d;
  --mine-line: #2f6f9e;
  --copper-glow: rgba(104, 192, 74, .25);
  --copper-glow-soft: rgba(104, 192, 74, .14);
  --sel-bg: rgba(104, 192, 74, .28);
  --row-hover: rgba(255, 255, 255, .02);
  color-scheme: dark;
}

/* Tema deschisă: aleasă din butonul din antet, păstrată în browser. */
:root[data-theme="light"] {
  --bg: #f4f7f1;
  --bg-alt: #e9efe4;
  --surface: #ffffff;
  --surface-2: #e3eadd;
  --line: #cbd7c4;
  --text: #111711;
  --muted: #566252;
  --copper: #68c04a;
  --copper-hi: #2e7a1b;
  --copper-ink: #071205;
  --ok: #2c7a26;
  --ok-bg: #e1f2da;
  --warn: #8a6410;
  --warn-bg: #fbf0d3;
  --bad: #b23a2b;
  --bad-bg: #fbe3df;
  --info-bg: #e7f1e2;
  --mine: #1d6da6;
  --header-bg: rgba(244, 247, 241, .96);
  --ok-ink: #071205;
  --ok-hi: #245f1f;
  --ok-line: #a6d098;
  --ok-hover: #cce8c1;
  --ok-glow: rgba(46, 122, 27, .25);
  --warn-line: #e3c97f;
  --bad-line: #e5a99f;
  --mine-bg: #d6e9f8;
  --mine-line: #8dbfe3;
  --copper-glow: rgba(104, 192, 74, .3);
  --copper-glow-soft: rgba(104, 192, 74, .14);
  --sel-bg: rgba(104, 192, 74, .3);
  --row-hover: rgba(0, 0, 0, .025);
  color-scheme: light;
}
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius); padding: 4px 10px; font: inherit; font-size: .9rem; cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--copper); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-hi); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-bottom: .6em; }
.selectable { user-select: all; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--copper); color: var(--copper-ink); padding: 8px 12px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 720px; }
.section { padding-block: clamp(40px, 7vw, 80px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }

/* ---------- Antet ---------- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--copper); color: var(--copper); font: 600 .8rem var(--font-display); letter-spacing: .08em; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .06em; }
.main-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.main-nav a:not(.btn), .link-btn { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 6px 0; }
.main-nav a:not(.btn):hover, .main-nav a.is-active, .link-btn:hover { color: var(--text); }
.main-nav a.is-active { box-shadow: inset 0 -2px 0 var(--copper); }
.nav-sep { width: 1px; height: 20px; background: var(--line); }
.link-btn { background: none; border: 0; font: inherit; cursor: pointer; }
form.inline { display: inline; margin: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font: inherit; padding: 6px 12px; border-radius: var(--radius); cursor: pointer; }

.sub-nav { border-top: 1px solid var(--line); background: var(--bg-alt); }
.sub-row { display: flex; gap: 4px 20px; overflow-x: auto; scrollbar-width: thin; }
.sub-row a { color: var(--muted); text-decoration: none; padding: 10px 0; white-space: nowrap; font-size: .95rem; }
.sub-row a:hover, .sub-row a.is-active { color: var(--text); }
.sub-row a.is-active { box-shadow: inset 0 -2px 0 var(--copper); }
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 99px; background: var(--copper); color: var(--copper-ink); font-size: .75rem; font-weight: 700; text-align: center; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn), .link-btn { padding: 10px 0; text-align: left; }
  .main-nav .btn { margin-top: 8px; }
  .nav-sep { width: auto; height: 1px; margin: 6px 0; }
  .site-header { position: relative; }
}

/* ---------- Butoane și formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--copper); color: var(--copper-ink);
  border: 1px solid var(--copper); border-radius: var(--radius); padding: 11px 20px; font: 600 1rem var(--font-body);
  text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--copper-hi); border-color: var(--copper-hi); color: var(--copper-ink); }
.btn-ghost { background: transparent; color: var(--copper-hi); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--copper-hi); }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); color: var(--text); border-color: var(--bad); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); }
.btn-ok:hover { background: var(--ok-hi); border-color: var(--ok-hi); color: var(--ok-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); }
.form { display: grid; gap: 6px; }
.form label { font-weight: 600; margin-top: 10px; }
.form label:first-of-type { margin-top: 0; }
.form .btn { margin-top: 18px; justify-self: start; }
input, select, textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; font: inherit; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--copper); outline: none; box-shadow: 0 0 0 3px var(--copper-glow); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--copper); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin-top: 14px; }
.check input { margin-top: 5px; flex: none; }
.hint { color: var(--muted); font-size: .875rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.form-row > div { display: grid; gap: 6px; min-width: 0; }
.form-row label { margin-top: 0; }

.flashes { display: grid; gap: 8px; padding-top: 20px; }
.flash { border-radius: var(--radius); padding: 12px 16px; border: 1px solid var(--line); background: var(--info-bg); margin-bottom: 12px; }
.flashes .flash { margin-bottom: 0; }
.flash-success { background: var(--ok-bg); border-color: var(--ok-line); }
.flash-error { background: var(--bad-bg); border-color: var(--bad-line); }
.flash-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.copy-row { display: flex; gap: 8px; margin-top: 8px; }
.copy-row input { font-family: var(--font-mono); font-size: .8rem; }

/* ---------- Prima pagină ---------- */
.hero { padding-block: clamp(48px, 9vw, 110px); border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 80% at 80% 0%, var(--copper-glow-soft), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); margin-bottom: .3em; }
.hero .lead { margin-bottom: 28px; }
.hero-facts { margin: 0; display: grid; gap: 0; border-left: 1px solid var(--line); }
.hero-facts div { padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line); }
.hero-facts div:last-child { border-bottom: 0; }
.hero-facts dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin: 0; font: 500 1.5rem var(--font-mono); color: var(--copper-hi); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-facts { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-facts div { padding: 12px 8px 0 0; border-bottom: 0; }
  .hero-facts dd { font-size: 1.05rem; }
}

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--copper); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 500 .85rem var(--font-mono); color: var(--copper); margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 20px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.price-annual { border-color: var(--copper); }
.price-label { font-weight: 600; margin-bottom: 6px; }
.price-value { font: 500 1.7rem var(--font-mono); color: var(--copper-hi); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.price p:last-child { margin: 0; }
@media (max-width: 900px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .prices { grid-template-columns: 1fr; } }

.gallery { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery p { margin: 6px 0 0; }

.baits { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: end; justify-content: space-between; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); background: linear-gradient(135deg, var(--surface), var(--bg)); }
.baits > div { max-width: 56ch; }
.baits p:last-child { margin: 0; }
.baits-contact { color: var(--muted); }
.baits-contact strong { color: var(--copper-hi); font-weight: 600; }

.contact-list { margin: 20px 0; display: grid; gap: 14px; }
.contact-list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.1rem; }

/* ---------- Standuri ---------- */
.stand-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.stand > a, .stand > div { display: flex; flex-direction: column; gap: 2px; min-height: 92px; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; height: 100%; }
.stand-no { font: 600 1.5rem var(--font-mono); line-height: 1.1; }
.stand-state { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.stand-who { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.stand-free > a, .stand-free > div { border-color: var(--ok-line); background: var(--ok-bg); }
.stand-free .stand-state { color: var(--ok); }
.stand-free > a:hover { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-glow); }
.stand-busy > div, .stand-busy > a { background: var(--surface-2); color: var(--muted); }
.stand-mine > div, .stand-mine > a { border-color: var(--mine-line); background: var(--mine-bg); }
.stand-mine .stand-state { color: var(--mine); }
.stand-blocked > div, .stand-blocked > a { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 8px, var(--bad-bg) 8px, var(--bad-bg) 16px); border-color: var(--bad-line); }
.stand-blocked .stand-state { color: var(--bad); }
.stand-grid-mini { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.stand-grid-mini .stand > div { min-height: 0; padding: 8px 0; align-items: center; }
.stand-grid-mini .stand-no { font-size: 1rem; color: var(--copper-hi); }
@media (max-width: 760px) { .stand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stand-grid-mini { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.legend span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }
.lg-free { background: var(--ok-bg); border-color: var(--ok-line) !important; }
.lg-busy { background: var(--surface-2); }
.lg-mine { background: var(--mine-bg); border-color: var(--mine-line) !important; }
.lg-blocked { background: var(--bad-bg); border-color: var(--bad-line) !important; }

/* ---------- Tabele ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--bg-alt); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--row-hover); }
td.num, th.num { text-align: right; }
td .actions { gap: 6px; }
.row-muted td { color: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .8rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill-active, .pill-paid { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pill-pending, .pill-unpaid, .pill-expiring { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pill-rejected, .pill-suspended, .pill-cancelled, .pill-expired { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.pill-role { background: var(--surface-2); color: var(--copper-hi); border-color: var(--line); }

/* ---------- Panouri ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); }
a.stat:hover { border-color: var(--copper); }
.stat-label { font-size: .85rem; color: var(--muted); }
.stat-value { font: 500 1.8rem var(--font-mono); color: var(--copper-hi); }
.stat-attn { border-color: var(--copper); }
.block { margin-bottom: 36px; }
.block > h2 { font-size: 1.3rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.filters > div { display: grid; gap: 4px; min-width: 0; flex: 1 1 150px; }
.filters label { font-size: .8rem; color: var(--muted); }
.filters .btn { flex: none; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
details.inline-form summary { cursor: pointer; color: var(--copper-hi); font-size: .9rem; }
details.inline-form[open] summary { margin-bottom: 8px; }
details.inline-form form { display: grid; gap: 6px; min-width: 220px; }
.audit-details { font: .8rem/1.5 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; max-width: 46ch; }

.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.cal { border-collapse: separate; border-spacing: 0; font-size: .85rem; }
.cal th, .cal td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; }
.cal th { padding: 6px 4px; min-width: 44px; }
.cal th.stand-col { position: sticky; left: 0; background: var(--bg-alt); z-index: 1; min-width: 64px; }
.cal td { height: 34px; min-width: 44px; }
.cal td a, .cal td span { display: block; height: 100%; line-height: 34px; text-decoration: none; color: inherit; }
.cal .c-free { --day: var(--ok-bg); }
.cal .c-free a:hover { background: var(--ok-hover); }
.cal .c-busy { --day: var(--surface-2); color: var(--muted); }
.cal .c-mine { --day: var(--mine-bg); color: var(--mine); }
.cal .c-blocked { --day: var(--bad-bg); color: var(--bad); }
.cal .weekend { color: var(--copper-hi); }

/* ---------- Subsol ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; margin-top: 40px; background: var(--bg-alt); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: start; }
.footer-name { font-family: var(--font-display); letter-spacing: .06em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Ocupare: 14 zile / lună / an ---------- */
.occ-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabs .tab { padding: 8px 16px; color: var(--muted); text-decoration: none; border-right: 1px solid var(--line); }
.tabs .tab:last-child { border-right: 0; }
.tabs .tab:hover { color: var(--text); background: var(--surface); }
.tabs .tab.is-active { background: var(--copper); color: var(--copper-ink); font-weight: 600; }
.occ-title { margin: 12px 0 14px; }
.lg-some { background: var(--warn-bg); border-color: var(--warn-line) !important; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.year-grid .month { padding: 14px; }
.year-grid .month h3 { margin: 0 0 8px; font-size: 1rem; }
.year-grid .month h3 a { color: var(--text); text-decoration: none; }
.year-grid .month h3 a:hover { color: var(--copper-hi); }
.ycal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-size: .8rem; }
.ycal th { color: var(--muted); font-weight: 400; padding: 2px 0; text-align: center; }
.ycal td { padding: 0; text-align: center; border-radius: 4px; }
.ycal td a { display: block; line-height: 28px; color: inherit; text-decoration: none; border-radius: 4px; border: 1px solid transparent; }
.ycal td a:hover, .ycal td a:focus-visible { border-color: var(--copper); }
.ycal .y-free { --day: var(--ok-bg); }
.ycal .y-some { --day: var(--warn-bg); color: var(--warn); }
.ycal .y-full { --day: var(--surface-2); color: var(--muted); }
.ycal .y-blocked { --day: var(--bad-bg); color: var(--bad); }
.ycal .y-past { opacity: .45; }
.ycal .y-today a { border-color: var(--copper-hi); font-weight: 700; }
.ycal .y-mine { --day: var(--mine-bg); }
.ycal .y-mine a, .ycal .y-mine span { box-shadow: inset 0 -3px 0 var(--mine); color: var(--mine); font-weight: 700; }

/* ---------- Contact: administratori ---------- */
.contact-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; }
.contact-people .card h3 { margin: 0 0 4px; }
.contact-people .card p { margin: 4px 0; }
.check-list { display: grid; gap: 8px; margin: 8px 0; }
.check-list label { display: flex; gap: 10px; align-items: center; font-weight: 400; }

/* ---------- Calendare pe luni: selecție, rezervare, concursuri ---------- */
.year-grid-few { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.year-grid-few .ycal td a, .year-grid-few .ycal td span, .year-grid-few .ycal td button { line-height: 38px; font-size: .95rem; }
.ycal td span, .ycal td button { display: block; line-height: 28px; border-radius: 4px; border: 1px solid transparent; }
.ycal td button { width: 100%; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ycal td button:hover, .ycal td button:focus-visible { border-color: var(--copper); outline: none; }
.ycal .y-sel { outline: 2px solid var(--copper-hi); outline-offset: -2px; }
.ycal .y-sel a, .ycal .y-sel button, .ycal .y-sel span { background: var(--sel-bg); color: var(--text); font-weight: 700; }
.ycal .y-first button { background: var(--copper); color: var(--copper-ink); font-weight: 700; }
.pill-contest { background: var(--copper-glow-soft); color: var(--copper-hi); border: 1px solid var(--copper); }
.contest-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.contest-list .card { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; }
.contest-date { font-family: var(--font-display); color: var(--copper-hi); text-align: center; min-width: 76px; line-height: 1.1; }
.contest-date strong { display: block; font-size: 2rem; }
.contest-list h3 { margin: 0; }
.contest-list p { margin: 2px 0; }

/* Galerie: grilă tip zidărie (miniaturi), legendă la trecerea mouse-ului. */
.pgrid-month { font-size: 1.1rem; margin: 28px 0 0; color: var(--muted); letter-spacing: .08em; }
.pgrid { list-style: none; padding: 0; margin: 14px 0 0; columns: 3 260px; column-gap: 12px; }
.pgrid li { break-inside: avoid; margin-bottom: 12px; }
.pgrid-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.pgrid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.pgrid-item:hover img, .pgrid-item:focus-visible img { transform: scale(1.04); filter: brightness(1.06); }
.pgrid-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: .9rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.pgrid-item:hover .pgrid-cap, .pgrid-item:focus-visible .pgrid-cap { opacity: 1; transform: none; }
@media (hover: none) { .pgrid-cap { opacity: 1; transform: none; } }
.pgrid-row { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pgrid-row li { margin: 0; }
.pgrid-row .pgrid-item { aspect-ratio: 4 / 3 !important; }
.pgrid-row .pgrid-cap { display: none; }

/* Vizualizatorul pe tot ecranul: mereu închis la culoare, indiferent de temă. */
.lb-lock, .lb-lock body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 7, 6, .95); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; animation: lb-in .2s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; max-width: 92vw; max-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0 16px; }
.lb-fig img { max-width: 92vw; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; }
.lb-fig img.is-loaded { opacity: 1; }
.lb-cap { color: #e9e1d7; text-align: center; margin-top: 12px; font-size: .95rem; max-width: 70ch; min-height: 1.4em; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #bfb3a6; font: 500 .9rem var(--font-mono); }
.lb-btn { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 50%; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(104, 192, 74, .45); border-color: #68c04a; }
.lb-close { font-size: 1.1rem; width: 40px; height: 40px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb-fig { padding-bottom: 70px; } .lb-fig img { max-height: calc(100dvh - 190px); } }

/* Pagina Lacul: cardurile standurilor. */
.lake-facts { align-self: start; }
.stand-cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.stand-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.stand-cover { display: block; aspect-ratio: 4 / 3; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); position: relative; }
.stand-cover img { width: 100%; height: 100%; object-fit: cover; }
.stand-cover-empty { display: grid; place-items: center; background: var(--surface-2); color: var(--line); font: 600 4rem var(--font-mono); }
.stand-cover-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem; padding: 3px 9px; border-radius: 999px; }
.stand-card-body { padding: 14px 16px 16px; }
.stand-card-body h3 { margin-bottom: .4em; }
.stand-card-body .prose p:last-child, .stand-card-body .prose ul:last-child { margin-bottom: 0; }
/* Administrare → Standuri */
.stand-admin-photos { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stand-admin-photos li { display: flex; flex-direction: column; gap: 6px; }
.stand-admin-photos .pgrid-item { aspect-ratio: 4 / 3; }
.stand-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.stand-pick a { min-width: 44px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-family: var(--font-mono); }
.stand-pick a.has-info { border-color: var(--ok-line); background: var(--ok-bg); }
.stand-pick a.is-active { background: var(--copper); color: var(--copper-ink); border-color: var(--copper); }
.teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.teaser p { margin: 0; }
.inline-toggle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 4px; }

/* Zile de sosire / plecare: colțul de sus-stânga = dimineața (partida care se termină), restul = partida care începe. */
.ycal td[data-day], .cal td { background: linear-gradient(135deg, var(--am, var(--day)) 0 50%, var(--day) 50% 100%); }
.ycal .am-free, .cal .c-am-free { --am: var(--ok-bg); }
.ycal .am-some { --am: var(--warn-bg); }
.ycal .am-full, .cal .c-am-busy { --am: var(--surface-2); }
.ycal .am-blocked, .cal .c-am-blocked { --am: var(--bad-bg); }
.ycal .am-mine, .cal .c-am-mine { --am: var(--mine-bg); }
.lg-half { background: linear-gradient(135deg, var(--mine-bg) 0 50%, var(--ok-bg) 50% 100%); border-color: var(--mine-line) !important; }

/* Clipuri video în galerie */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pgrid-video { aspect-ratio: 16 / 9; background: #000; }
.pgrid-video video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pgrid-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .85); color: #fff; font-size: 1.3rem; padding-left: 4px; transition: background .2s, transform .2s; }
.pgrid-video:hover .pgrid-play, .pgrid-video:focus-visible .pgrid-play { background: rgba(104, 192, 74, .9); transform: scale(1.08); }
.lb-video { max-width: 92vw; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); border-radius: 4px; background: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb-fig img[hidden], .lb-video[hidden] { display: none; }

/* Sigla și titlurile în stilul siglei (Oswald, majuscule). */
h1, h2 { text-transform: uppercase; letter-spacing: .03em; }
.brand img { border-radius: 50%; background: #f2f6ef; padding: 2px; box-shadow: 0 0 0 1px rgba(104, 192, 74, .5); }
.brand-name { text-transform: uppercase; }
.hero-logo { width: min(320px, 70vw); height: auto; justify-self: center; border-radius: 50%; background: #f2f6ef; padding: 12px; box-shadow: 0 0 0 4px rgba(104, 192, 74, .35), 0 18px 50px rgba(0, 0, 0, .45); }
.hero-side { display: grid; gap: 24px; justify-items: center; }
.hero-side .hero-facts { width: 100%; }
/* Mai multe lacuri, avansul. */
.lake-tabs { margin: 0 0 16px; }
.flash-info { background: var(--info-bg); border-color: var(--line); }
.pay-box { border: 1px solid var(--copper); background: var(--copper-glow-soft); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.pay-details { font: 500 .95rem var(--font-mono); white-space: pre-wrap; margin: 0; color: var(--text); }
.row-current td { background: var(--copper-glow-soft); }
