/* Nails by Gabi – arculat: grafit + arany + krém (a logó és a plakátok alapján) */
:root {
  --ink: #2f2e2c;
  --ink-2: #3c3a36;
  --ink-soft: #57534c;
  --gold: #b08a35;
  --gold-deep: #8c6a22;
  --gold-light: #e6cd88;
  --gold-grad: linear-gradient(135deg, #8a6a22 0%, #c9a24a 35%, #f1dc9c 52%, #c39b42 70%, #8f6d25 100%);
  --cream: #f6f0e6;
  --sand: #ecdfc8;
  --sand-2: #e3d2b3;
  --paper: #fffdf9;
  --line: #e6d9bf;
  --muted: #8a8170;
  --ok: #5f7d4e;
  --warn: #b7791f;
  --bad: #a3473f;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(60, 45, 20, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Lato", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(ellipse at 85% -10%, rgba(230, 205, 136, .25), transparent 55%),
                    radial-gradient(ellipse at -10% 110%, rgba(214, 190, 150, .25), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  font-variant-numeric: lining-nums;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-top: 28px; padding-bottom: 48px; }
a { color: var(--gold-deep); }
h1, h2, h3 { font-family: "Cinzel", Georgia, serif; font-weight: 600; letter-spacing: .03em; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
.script { font-family: "Great Vibes", cursive; font-size: 2.1rem; line-height: 1.1; font-weight: normal; }
.serif { font-family: "Cormorant Garamond", Georgia, serif; }
.datebox .d, .stat .n, .day h4 .dn, .hours, .total { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.gold { color: var(--gold); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.mt { margin-top: 1rem; }
.mt2 { margin-top: 2rem; }
.mb0 { margin-bottom: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap.wide { max-width: 1320px; }

/* ---------- fejléc ---------- */
.topbar { background: var(--ink); color: var(--gold-light); border-bottom: 2px solid transparent; border-image: var(--gold-grad) 1; position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { display: block; border-radius: 3px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: "Cinzel", serif; font-size: 1.1rem; letter-spacing: .12em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #a79c86; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .navlink {
  font-family: "Cinzel", serif; font-size: .82rem; letter-spacing: .08em; text-decoration: none;
  color: #d8c79c; padding: 8px 12px; border-radius: 4px; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .navlink:hover { color: #fff3cf; background: rgba(255, 255, 255, .05); }
.nav a.active { color: var(--ink); background: var(--gold-grad); }
.navbtn { display: none; }

@media (max-width: 1120px) { .is-admin .brand-sub { display: none; } }
@media (max-width: 1000px) {
  .navbtn { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; padding: 10px; background: none; border: 0; }
  .navbtn span { width: 24px; height: 2px; background: var(--gold-light); display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .brand-sub { display: none; }
}

/* ---------- lábléc ---------- */
.footer { background: var(--ink); color: #cbbd98; padding: 22px 0; margin-top: auto; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .script { font-size: 1.7rem; }

/* ---------- elemek ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card + .card { margin-top: 18px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head .script { color: var(--gold); font-size: 1.8rem; display: block; }

.ornament { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 10px 0 18px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* "ecsetvonás" kiemelés, mint a plakátokon */
.band { display: inline-block; padding: 6px 22px; background: linear-gradient(90deg, rgba(227, 210, 179, 0), var(--sand-2) 8%, var(--sand) 92%, rgba(227, 210, 179, 0)); font-family: "Cinzel", serif; letter-spacing: .05em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Cinzel", serif; font-size: .85rem; letter-spacing: .08em; text-decoration: none;
  padding: 10px 20px; border-radius: 4px; border: 1px solid var(--ink); cursor: pointer;
  background: var(--ink); color: var(--gold-light); transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:hover { box-shadow: 0 4px 14px rgba(47, 46, 44, .25); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold-grad); color: var(--ink); border-color: var(--gold-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--sand-2); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.danger { background: transparent; color: var(--bad); border-color: #d9b3ad; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: .75rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- űrlapok ---------- */
label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 4px; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--sand-2); border-radius: 6px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .2); }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: 14px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1 1 160px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; color: var(--ink); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--gold-deep); width: 17px; height: 17px; }
.field-error, .validation { color: var(--bad); font-size: .85rem; }
.auth { max-width: 460px; margin: 10px auto; }
.auth .logo-big { display: block; margin: 0 auto 10px; border-radius: 4px; box-shadow: var(--shadow); }

/* ---------- üzenetek ---------- */
.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; border: 1px solid; }
.flash.ok { background: #f1f5ec; border-color: #c7d6b9; color: #3e5531; }
.flash.err { background: #fbefed; border-color: #e5c1bb; color: #7d2f28; }
.flash.warn { background: #fdf5e6; border-color: #ecd3a3; color: #7a5212; }
.empty { padding: 18px; text-align: center; color: var(--muted); font-style: italic; }

/* ---------- jelvények ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; border: 1px solid; }
.st-pending, .us-pending { color: var(--warn); border-color: #ecd3a3; background: #fdf5e6; }
.st-approved, .us-approved { color: #4b6a3a; border-color: #c7d6b9; background: #f1f5ec; }
.st-rejected, .us-rejected, .us-disabled { color: var(--bad); border-color: #e5c1bb; background: #fbefed; }
.st-cancelled { color: var(--muted); border-color: var(--line); background: #f5f2ec; text-decoration: line-through; }

/* ---------- táblázat ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: "Cinzel", serif; font-size: .75rem; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid #f0e7d7; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- foglalási lista ---------- */
.blist { list-style: none; margin: 0; padding: 0; }
.blist li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid #f0e7d7; flex-wrap: wrap; }
.blist li:last-child { border-bottom: 0; }
.datebox { width: 64px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; flex: none; }
.datebox .m { background: var(--ink); color: var(--gold-light); font-family: "Cinzel", serif; font-size: .7rem; letter-spacing: .1em; padding: 2px 0; }
.datebox .d { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
.datebox .w { font-size: .7rem; color: var(--muted); padding-bottom: 3px; }
.blist .info { flex: 1 1 220px; }
.blist .time { font-weight: 700; }

/* ---------- nyitóoldal ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 18px 0 10px; }
.hero h1 { font-size: 2.3rem; line-height: 1.15; }
.hero .script { font-size: 3rem; color: var(--gold); margin-bottom: 6px; }
.hero p.lead { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; color: var(--ink-soft); margin: 0 0 22px; }
.hero-logo { background: var(--ink); border-radius: 6px; padding: 18px; box-shadow: 0 18px 40px rgba(47, 46, 44, .25); transform: rotate(-3deg); width: 190px; }
.hero-logo img { width: 100%; height: auto; display: block; }
.hero-art { position: relative; min-height: 340px; }
.hero-art .photo { position: absolute; border-radius: 8px; overflow: hidden; box-shadow: 0 18px 40px rgba(47, 46, 44, .2); border: 6px solid #fff; }
.hero-art .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art .p1 { width: 62%; height: 74%; right: 0; top: 0; transform: rotate(2deg); }
.hero-art .p2 { width: 52%; height: 50%; left: 4%; bottom: 0; transform: rotate(-4deg); }
.hero-art .hero-logo { position: absolute; left: 0; top: 4%; width: 130px; padding: 12px; z-index: 2; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero-art { min-height: 280px; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; box-shadow: var(--shadow); border: 4px solid #fff; }
.hours { width: 100%; border-collapse: collapse; font-family: "Cormorant Garamond", serif; font-size: 1.15rem; }
.hours td { padding: 4px 0; border-bottom: 1px dotted var(--sand-2); }
.hours td:last-child { text-align: right; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-grad); color: var(--ink); font-family: "Cinzel", serif; font-weight: 600; display: grid; place-items: center; }

/* ---------- foglalás: szolgáltatás választó ---------- */
.svc-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.svc { position: relative; display: block; cursor: pointer; font-weight: normal; margin: 0; }
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc .box { display: block; border: 1px solid var(--sand-2); border-radius: 8px; padding: 12px 14px 12px 42px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; height: 100%; }
.svc .box::before { content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border: 1px solid var(--sand-2); border-radius: 4px; background: #fff; }
.svc input:checked + .box { border-color: var(--gold); background: #fffaf0; box-shadow: 0 0 0 2px rgba(201, 162, 74, .25); }
.svc input:checked + .box::before { background: var(--gold-grad); border-color: var(--gold-deep); }
.svc input:checked + .box::after { content: "✓"; position: absolute; left: 18px; top: 11px; font-size: 14px; color: var(--ink); font-weight: 700; }
.svc input:focus-visible + .box { outline: 2px solid var(--gold); }
.svc .name { font-weight: 700; display: block; }
.svc .meta { font-size: .85rem; color: var(--muted); }
.total { font-family: "Cormorant Garamond", serif; font-size: 1.3rem; }

/* ---------- foglalás: heti időpontok ---------- */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.weeknav .label { font-family: "Cinzel", serif; letter-spacing: .05em; }
.slots { display: grid; grid-template-columns: repeat(var(--days, 6), minmax(0, 1fr)); gap: 10px; }
.slots.loading { opacity: .5; pointer-events: none; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 8px; min-height: 120px; }
.day.closed { background: repeating-linear-gradient(-45deg, #faf6ef, #faf6ef 6px, #f4eee3 6px, #f4eee3 12px); }
.day h4 { margin: 0 0 8px; font-family: "Cinzel", serif; font-size: .78rem; letter-spacing: .06em; text-align: center; color: var(--ink-soft); font-weight: 600; }
.day h4 .dn { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.4rem; color: var(--ink); letter-spacing: 0; }
.day .none { text-align: center; color: var(--muted); font-size: .8rem; font-style: italic; }
.slot { display: block; width: 100%; margin: 0 0 6px; padding: 7px 4px; border-radius: 5px; border: 1px solid var(--sand-2); background: var(--paper); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--ink); }
.slot:hover { border-color: var(--gold); background: #fffaf0; }
.slot.sel { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
@media (max-width: 900px) { .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.summary { border-left: 3px solid var(--gold); padding: 8px 14px; background: #fffaf0; border-radius: 0 6px 6px 0; }

/* ---------- admin naptár ---------- */
.cal { display: grid; grid-template-columns: 52px repeat(var(--days, 6), minmax(120px, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; min-width: 820px; }
.cal-head { background: var(--ink); color: var(--gold-light); font-family: "Cinzel", serif; font-size: .78rem; letter-spacing: .05em; text-align: center; padding: 8px 4px; }
.cal-head.today { background: var(--gold-grad); color: var(--ink); }
.cal-times { position: relative; border-right: 1px solid var(--line); }
.cal-times span { position: absolute; right: 6px; font-size: .72rem; color: var(--muted); transform: translateY(-50%); }
.cal-times span:first-child { transform: none; }
.cal-col { position: relative; border-right: 1px solid #f0e7d7; }
.cal-col:last-child { border-right: 0; }
.cal-hour { position: absolute; left: 0; right: 0; border-top: 1px solid #f3ecdf; }
.cal-closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, #faf6ef, #faf6ef 6px, #f2ebde 6px, #f2ebde 12px); }
.cal-break { font-size: 11px; color: #a39580; text-align: center; line-height: 1.6; overflow: hidden; }
.cal-block { position: absolute; left: 3px; right: 3px; background: #ece6dc; border: 1px dashed #c8bba5; border-radius: 4px; font-size: .72rem; color: var(--muted); padding: 2px 6px; overflow: hidden; }
.cal-ev { position: absolute; left: 3px; right: 3px; border-radius: 5px; padding: 3px 6px; font-size: .75rem; line-height: 1.25; overflow: hidden; text-decoration: none; color: var(--ink); border-left: 4px solid; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.cal-ev:hover { z-index: 3; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); overflow: visible; min-height: fit-content; }
.cal-ev b { display: block; }
.cal-ev.st-approved { background: #f6efdd; border-color: var(--gold); }
.cal-ev.st-pending { background: #fdf5e6; border-color: var(--warn); background-image: repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(183, 121, 31, .07) 5px, rgba(183, 121, 31, .07) 10px); }
.cal-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--bad); z-index: 4; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; border-left: 4px solid; }

.stat { text-align: center; }
.stat .n { font-family: "Cormorant Garamond", serif; font-size: 2.4rem; font-weight: 600; line-height: 1; }
.stat .l { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
details.inline-form summary { cursor: pointer; color: var(--gold-deep); font-size: .85rem; }
details.inline-form[open] { margin-top: 6px; }

/* ---------- Vendégkarton ---------- */
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.yesno { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.yesno .yes-text { flex: 1 1 220px; }
.yesno .yes-text:disabled { opacity: .45; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; cursor: pointer; }
.mt-s { margin-top: 8px; }
.mt0 { margin-top: 0; }
.static { padding: 8px 0; }
.pre { white-space: pre-line; }
.consent .check { margin-bottom: 12px; }
.consent-health { background: #fdf8ee; border: 1px solid #ecd9b0; border-radius: 6px; padding: 10px 12px; }
.privacy h2 { margin-top: 1.4em; }
.privacy p, .privacy li { line-height: 1.55; }

@media print {
  .topbar, .footer, .no-print, .flash, .navbtn { display: none !important; }
  body { background: #fff; }
  main.wrap { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; padding: 12px 14px; }
  .card + .card, .mt2 { margin-top: 10px; }
  input, textarea, select { border: 0 !important; border-bottom: 1px dotted #999 !important; background: transparent !important; }
  textarea { resize: none; }
}
