/* ===================================================================
   سيارات الأعراس — التنسيق العام (من اليمين لليسار)
   =================================================================== */
:root {
  --ink: #1C1B1F;
  --muted: #5E5A63;
  --ground: #FAF7F2;
  --ground-admin: #F6F3EE;
  --card: #FFFFFF;
  --line: #E7E1D8;
  --line-strong: #D9D2C7;
  --soft: #F0EBE3;
  --emerald: #0E5A4A;
  --emerald-dark: #0A4236;
  --emerald-tint: #E6F0EC;
  --night: #13241F;
  --night-2: #224039;
  --gold: #E2C987;
  --gold-text: #8A6A26;
  --ph: #EFEAE2;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
}
a { color: var(--emerald); }
a:hover { color: var(--emerald-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.ltr { direction: ltr; unicode-bidi: embed; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.display { font-family: 'Amiri', serif; font-weight: 700; }
[hidden] { display: none !important; }

/* ---------- الأزرار ---------- */
.btn {
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; text-decoration: none; cursor: pointer; background: var(--card);
}
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-dark); color: #fff; }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { color: #fff; background: #0b1714; }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: var(--card); font-weight: 500; }
.btn-danger { background: #A3242E; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 56px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- الحقول ---------- */
label.field, .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: #fff; font-size: 15px; font-weight: 400;
}
textarea.input { min-height: 80px; resize: vertical; }
.admin .input { min-height: 44px; font-size: 14px; }
.input::placeholder { color: #7A737E; }
.help { font-size: 12px; color: var(--muted); font-weight: 400; }
.err { font-size: 12px; color: #A3242E; font-weight: 500; }
.check { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--emerald); }
.chip-check { padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.upload {
  min-height: 96px; border: 1.5px dashed #C9C0B3; border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 13px; color: #3F3A44; cursor: pointer; text-align: center; background: #fff;
}
.upload input[type=file] { width: 100%; font-size: 12px; }

/* ---------- البطاقات ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h2 { font-size: 17px; font-weight: 600; }
.admin .card h2 { font-size: 15px; }
.badge { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.st-new { background: #E8F0FC; color: #1D4F9E; }
.st-review { background: #FFF3D6; color: #7A4E00; }
.st-alt { background: #F1EAFA; color: #5B3391; }
.st-confirmed { background: var(--emerald-tint); color: var(--emerald); }
.st-rejected { background: #FBE9EA; color: #A3242E; }
.st-cancelled { background: #EEECEF; color: #4F4A54; }
.st-done { background: #EEECEF; color: #4F4A54; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tag-green { background: var(--emerald-tint); color: var(--emerald); }
.tag-gray { background: #EEECEF; color: #3F3A44; }
.tag-gold { background: #F6EFE3; color: #6E5119; }
.note { font-size: 13px; border-radius: 10px; padding: 10px 12px; background: #F7F3EC; color: #3F3A44; }
.note-warn { background: #FFF3D6; color: #5E3E00; }
.note-bad { background: #FBE9EA; color: #7E1A22; }
.note-ok { background: var(--emerald-tint); color: #0A4236; }
.flash { max-width: 1120px; margin: 12px auto 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.admin .flash { margin: 0 0 16px; max-width: none; }
.flash-ok { background: var(--emerald-tint); color: #0A4236; }
.flash-err { background: #FBE9EA; color: #7E1A22; }
.ph { background: var(--ph); color: #6F6873; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- واجهة الزائر ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.back { min-height: 44px; display: flex; align-items: center; text-decoration: none; font-weight: 500; font-size: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--emerald); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { font-family: 'Amiri', serif; font-size: 20px; font-weight: 700; }
.brand-tag { font-size: 12px; color: var(--muted); }
.hero { padding: 28px 0 8px; }
.eyebrow { margin: 0 0 6px; color: var(--gold-text); font-size: 13px; font-weight: 600; }
.hero h1 { font-family: 'Amiri', serif; font-size: 34px; }
.hero p { color: var(--muted); max-width: 560px; margin: 10px 0 0; }
.search-card { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; border-radius: 18px; }
.search-card .btn { grid-column: 1 / -1; }
.section { padding: 28px 0 8px; }
.section h2 { font-size: 20px; font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); display: inline-flex; align-items: center; font-weight: 500; font-size: 14px; text-decoration: none; }
.chip.is-on { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.car-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); }
.car-card:hover { color: var(--ink); border-color: var(--line-strong); }
.car-media { position: relative; aspect-ratio: 16 / 10; }
.car-media .ph { height: 100%; }
.car-media .tag-cat { position: absolute; top: 10px; right: 10px; background: #fff; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.car-media .tag-av { position: absolute; top: 10px; left: 10px; color: #fff; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.av-yes { background: var(--emerald); }
.av-no { background: #A3242E; }
.car-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.car-body h3 { font-size: 17px; font-weight: 600; }
.car-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--soft); padding-top: 10px; margin-top: auto; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--ink); }
.cat-card .go { color: var(--emerald); font-weight: 600; font-size: 13px; margin-top: auto; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.num { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--emerald-tint); color: var(--emerald); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: #fff; }
.footer-in { padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line-strong); border-radius: 16px; }

/* تفاصيل السيارة */
.detail { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 16px; padding-bottom: 32px; }
.detail-media { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.detail-main { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; }
.detail-main .ph { height: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.thumbs a { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: block; }
.detail-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.specs div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.specs dt { font-size: 12px; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--soft); }
.lines > div:last-child { border-bottom: 0; }
.svc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.svc li { display: flex; gap: 10px; align-items: center; }
.svc .dot { width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex: none; }
.dot-ok { background: var(--emerald-tint); color: var(--emerald); }
.dot-no { background: #EEECEF; color: var(--muted); }
.calendar { flex: 1 1 100%; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-nav a, .cal-nav span.disabled { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.cal-nav span.disabled { color: #B8B2BB; }
.cal-month { min-width: 130px; text-align: center; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { font-size: 12px; color: var(--muted); text-align: center; }
.cal-day { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.cal-day.is-booked { background: #F2EEEA; border-color: #F2EEEA; color: #6F6873; text-decoration: line-through; }
.cal-day.is-past { color: #B8B2BB; border-color: var(--soft); }
.cal-day.is-empty { border: 0; background: transparent; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); display: inline-block; }
.cta-bar { position: sticky; bottom: 0; flex: 1 1 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cta-bar .btn { flex: 1 1 200px; }

/* نموذج الحجز */
.booking { padding-top: 16px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.booking .card { border-radius: 18px; display: flex; flex-direction: column; gap: 12px; }
.booking h2 { display: flex; align-items: center; gap: 8px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: #F1ECE4; border-radius: 14px; padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { min-height: 44px; border-radius: 10px; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: #fff; border-color: var(--emerald); color: var(--emerald); }
.seg input:focus-visible + span { outline: 2px solid var(--emerald); outline-offset: 2px; }
.picked { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.picked .thumb { width: 88px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; }
.picked .thumb .ph { height: 100%; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opt { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; }
.opt input { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; accent-color: var(--emerald); }
.opt:has(input:checked) { border-color: var(--emerald); }
.opt .media { aspect-ratio: 16 / 9; }
.opt .media .ph { height: 100%; }
.opt .body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.opt-cat { min-height: 64px; padding: 10px 12px; justify-content: center; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: #3F3A44; cursor: pointer; min-width: 56px; position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch .c { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); box-shadow: 0 0 0 2px #fff, 0 0 0 4px transparent; }
.swatch input:checked + .c { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--emerald); }
.swatch input:focus-visible + .c { outline: 2px solid var(--emerald); outline-offset: 4px; }
.summary { background: var(--night); color: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.summary dl { margin: 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #2C3F39; font-size: 14px; }
.summary dt { color: #B9CCC5; flex: none; }
.summary dd { margin: 0; text-align: left; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary .total strong { font-size: 22px; color: var(--gold); }
.summary .xs { color: #B9CCC5; }
.errors { background: #FBE9EA; color: #7E1A22; border-radius: 12px; padding: 12px 16px; }
.errors ul { margin: 6px 0 0; padding-inline-start: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* صفحة الإرسال */
.done-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.done-icon { width: 64px; height: 64px; border-radius: 999px; background: var(--emerald-tint); color: var(--emerald); display: flex; align-items: center; justify-content: center; }
.refbox { margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px; display: flex; gap: 8px; align-items: center; }
.track { list-style: none; margin: 0; padding: 0; }
.track li { display: flex; gap: 12px; }
.track .rail { display: flex; flex-direction: column; align-items: center; }
.track .node { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--line-strong); background: #fff; display: flex; align-items: center; justify-content: center; }
.track .node.done { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.track .node.now { border-color: var(--emerald); }
.track .node.now::after { content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--emerald); }
.track .bar { width: 2px; flex: 1; min-height: 22px; background: var(--line); }
.track .bar.done { background: var(--emerald); }
.track .txt { padding-bottom: 14px; }
.chat-bg { background: #EFEAE2; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { align-self: flex-start; max-width: 100%; background: #DCF3E2; color: #13241F; border-radius: 14px 14px 4px 14px; padding: 12px 14px; font-size: 14px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- لوحة التحكم ---------- */
body.admin { background: var(--ground-admin); font-size: 14px; }
.admin-shell { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.side { flex: 1 1 220px; background: var(--night); color: #D5E2DD; padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.side-brand { padding: 0 10px 18px; display: flex; flex-direction: column; line-height: 1.3; }
.side-brand .brand-name { color: #fff; }
.side-sub { font-size: 12px; color: #A9BDB6; }
.side-link { min-height: 44px; padding: 0 12px; border-radius: 10px; color: #D5E2DD; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; }
.side-link:hover { color: #fff; background: #1B312A; }
.side-link.is-active { background: var(--night-2); color: #fff; font-weight: 500; }
.pill-gold { font-size: 12px; background: var(--gold); color: var(--night); border-radius: 999px; padding: 0 8px; font-weight: 600; }
.side-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid #2C3F39; font-size: 13px; color: #A9BDB6; display: flex; flex-direction: column; gap: 6px; }
.side-foot a, .side-foot .linklike { color: #D5E2DD; text-align: right; }
.side-foot form { margin: 0; }
.admin-main { flex: 999 1 560px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 600; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.tab.is-on { background: var(--night); color: #fff; border-color: var(--night); }
.tab .n { font-size: 12px; opacity: .85; }
.table-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; text-align: right; }
.tbl th { background: var(--ground); color: #4F4A54; font-size: 12px; font-weight: 600; padding: 12px; white-space: nowrap; }
.tbl td { padding: 12px; border-top: 1px solid var(--soft); vertical-align: middle; }
.tbl th:first-child, .tbl td:first-child { padding-right: 16px; }
.tbl tr.is-new td { background: #FCFBF8; }
.tone-ok { color: var(--emerald); font-weight: 500; }
.tone-warn { color: #8A5A00; font-weight: 500; }
.tone-bad { color: #A3242E; font-weight: 500; }
.two-col { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.two-col > .main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.two-col > .aside { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.kv { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.alert-box { background: #FFF8E6; border: 1px solid #EBCB7E; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; color: #4A3500; }
.alert-box.ok { background: #EEF6F2; border-color: #9CC7B7; color: #0A4236; }
.alert-box.bad { background: #FBE9EA; border-color: #E4A5AA; color: #6E161D; }
.alert-box h2 { display: flex; align-items: center; gap: 8px; }
.actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.act { position: relative; }
.act input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.act span { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-weight: 600; background: #fff; }
.act input:checked + span { border-color: var(--emerald); background: var(--emerald-tint); color: var(--emerald); }
.act.alt input:checked + span { border-color: #6B3FA0; background: #F1EAFA; color: #5B3391; }
.act.bad input:checked + span { border-color: #A3242E; background: #FBE9EA; color: #A3242E; }
.act input:focus-visible + span { outline: 2px solid var(--emerald); outline-offset: 2px; }
.reply { width: 100%; min-height: 200px; border-radius: 12px; border: 1px solid #BFE3C9; background: #EFFAF2; padding: 12px; font-size: 14px; line-height: 1.75; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.log li { display: flex; gap: 12px; }
.log time { flex: none; width: 130px; color: var(--muted); }
.gantt { min-width: 1060px; }
.gantt-row { display: grid; grid-template-columns: 190px repeat(14, minmax(0, 1fr)); grid-template-rows: 60px; border-bottom: 1px solid var(--soft); }
.gantt-head { grid-template-rows: auto; background: var(--ground); border-bottom: 1px solid var(--line); }
.gantt-name { grid-row: 1; grid-column: 1; padding: 8px 16px; display: flex; flex-direction: column; justify-content: center; line-height: 1.35; }
.gantt-cell { grid-row: 1; border-right: 1px solid var(--soft); }
.gantt-cell.wk { background: #FAF7F2; }
.gantt-hd { padding: 8px 0; text-align: center; border-right: 1px solid var(--soft); }
.gantt-hd.wk { background: #F3EEE6; }
.gantt-hd.today { box-shadow: inset 0 -3px 0 var(--emerald); }
.ev { grid-row: 1; z-index: 1; margin: 10px 4px; border-radius: 8px; font-size: 12px; font-weight: 600; display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; text-decoration: none; border: 1.5px solid; }
.ev-confirmed { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.ev-confirmed:hover { color: #fff; }
.ev-pending { background: #FFF3D6; color: #6E4A00; border-color: #B7791F; border-style: dashed; }
.ev-alt { background: #F1EAFA; color: #4E2A80; border-color: #6B3FA0; border-style: dashed; }
.ev-blocked { background: #ECEAEE; color: #3F3A44; border-color: #A8A2AD; }
.thumb-sm { width: 64px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; }
.thumb-sm .ph { height: 100%; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; }
.gallery-edit { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-edit figure { margin: 0; width: 120px; display: flex; flex-direction: column; gap: 4px; }
.gallery-edit img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.inline-form { display: inline; margin: 0; }

@media (max-width: 520px) {
  .hero h1 { font-size: 28px; }
  .admin-main { padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .booking .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
