/* ============ Kat Edit – kozmetický salón ============ */
:root {
    --ink: #1b1b1b;
    --ink-soft: #4a403c;
    --muted: #8a7a70;
    --ivory: #faf7f4;
    --cream: #f3ebe4;
    --blush: #e9d8cf;
    --gold: #b8977e;
    --gold-dark: #9c7b62;
    --line: #e7ddd5;
    --white: #fff;
    --ok: #4f7a5d;
    --warn: #c08a2e;
    --danger: #b0473f;
    --radius: 6px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Jost", "Segoe UI", Arial, sans-serif;
    --shadow: 0 10px 30px rgba(60, 40, 30, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--ivory); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h1:focus { outline: none; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container.narrow { width: min(820px, 92%); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 2rem; }
.mt-s { margin-top: .6rem; }
.right { text-align: right; }
.page-pad { padding: 5rem 0; }
.loading { color: var(--muted); padding: 2rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; color: var(--gold-dark); font-weight: 500; margin-bottom: .8rem; }
.lead { font-size: 1.15rem; max-width: 640px; }

/* ---------- tlačidlá ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.9em; border-radius: 40px; border: 1px solid transparent;
       font-family: var(--sans); font-size: .9rem; letter-spacing: .06em; cursor: pointer; transition: .2s; background: none; text-decoration: none; line-height: 1.2; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: .55em 1.2em; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--gold-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--blush); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-success { background: var(--ok); color: var(--white); }
.btn-success:hover { background: #3d6249; color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-outline-danger { border-color: var(--danger); color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: var(--white); }
.btn-link { color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.link-btn { background: none; border: none; padding: 0; color: var(--gold-dark); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--danger); }
.icon-btn { background: none; border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover:not(:disabled) { background: var(--cream); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ---------- hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 244, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 66px; width: auto; }
.brand-text { font-family: var(--serif); font-size: 1.35rem; font-style: italic; letter-spacing: .04em; color: var(--ink-soft);
              padding-left: 1rem; border-left: 1px solid var(--gold); line-height: 1.1; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a:not(.btn) { color: var(--ink); font-size: .92rem; letter-spacing: .05em; position: relative; }
.main-nav a:not(.btn).active::after, .main-nav a:not(.btn):hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.7rem; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; background: #3a2e29 url("../images/hero.jpg") center / cover no-repeat; color: var(--white); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,22,20,.72) 0%, rgba(27,22,20,.35) 60%, rgba(27,22,20,.1) 100%); }
.hero-content { position: relative; padding: 6rem 0; }
.hero .eyebrow { color: var(--blush); }
.hero h1 em { font-style: italic; color: var(--blush); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.page-hero { background: var(--cream); padding: 4.5rem 0 3.5rem; text-align: center; }
.page-hero.small { padding: 3.5rem 0 2.5rem; }
.page-hero .lead { margin: 0 auto; color: var(--ink-soft); }

/* ---------- sekcie ---------- */
.section { padding: 5.5rem 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li { padding: .35rem 0; }
.check-list i { color: var(--gold); margin-right: .5rem; }

.services-teaser { background: var(--white); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.service-card { background: var(--ivory); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: .25s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.service-card-img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.service-card-body { padding: 1.5rem 1.6rem 1.8rem; }
.service-card-body p { color: var(--ink-soft); font-size: .95rem; }
.service-card .more { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.step { text-align: center; padding: 1rem; }
.step span { display: inline-flex; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); align-items: center; justify-content: center;
             font-family: var(--serif); font-size: 1.5rem; color: var(--gold-dark); margin-bottom: 1rem; }
.step p { color: var(--ink-soft); }

.gallery-section { background: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--radius); }

.cta-band { background: var(--ink); color: var(--white); padding: 4rem 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band a:not(.btn) { color: var(--blush); }
.cta-band p { margin: 0; color: #d9cfc7; }

/* ---------- cenník ---------- */
.price-group { margin-bottom: 3.5rem; scroll-margin-top: 110px; }
.price-group h2 { border-bottom: 1px solid var(--gold); padding-bottom: .5rem; }
.price-row { display: flex; justify-content: space-between; gap: 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.price-info h3 { margin-bottom: .3rem; }
.price-info p { color: var(--ink-soft); margin-bottom: .4rem; font-size: .95rem; }
.duration { font-size: .85rem; color: var(--muted); }
.price-side { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; flex-shrink: 0; }
.price { font-family: var(--serif); font-size: 1.6rem; white-space: nowrap; }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item > i { font-size: 1.3rem; color: var(--gold); width: 46px; height: 46px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hours { border-collapse: collapse; margin-bottom: 1rem; }
.hours td { padding: .3rem 2rem .3rem 0; border-bottom: 1px solid var(--line); }
.map iframe, .map img { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius); object-fit: cover; }

/* ---------- rezervácia ---------- */
.booking-wrap { max-width: 980px; }
.booking-steps { display: flex; list-style: none; padding: 0; margin: 0 0 2.5rem; counter-reset: s; border-bottom: 1px solid var(--line); }
.booking-steps li { flex: 1; padding: 0 0 1rem; text-align: center; color: var(--muted); counter-increment: s; font-size: .92rem; position: relative; }
.booking-steps li::before { content: counter(s); display: inline-flex; width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; align-items: center; justify-content: center; margin-right: .5rem; font-size: .8rem; }
.booking-steps li.active { color: var(--ink); font-weight: 500; }
.booking-steps li.active::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -1px; height: 2px; background: var(--ink); }
.booking-steps li.done { color: var(--gold-dark); cursor: pointer; }
.step-title { margin-bottom: 1.5rem; }
.group-title { font-size: 1.15rem; color: var(--gold-dark); margin: 1.6rem 0 .8rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.choice { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; cursor: pointer;
          font-family: var(--sans); display: flex; flex-direction: column; gap: .2rem; transition: .15s; color: var(--ink); }
.choice strong { font-weight: 500; font-size: 1rem; }
.choice span { color: var(--muted); font-size: .88rem; }
.choice:hover, .choice.selected { border-color: var(--ink); box-shadow: var(--shadow); }
.selected-service { background: var(--cream); padding: .8rem 1.2rem; border-radius: var(--radius); }

.date-time { display: grid; grid-template-columns: minmax(300px, 1fr) 1fr; gap: 2.5rem; margin-top: 1.5rem; }
.month-cal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; position: relative; }
.month-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.month-cal-head strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.month-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month-cal-grid .dow { text-align: center; font-size: .75rem; text-transform: uppercase; color: var(--muted); padding: .3rem 0; letter-spacing: .08em; }
.month-cal-grid .day { aspect-ratio: 1; border: none; border-radius: 50%; background: none; font-family: var(--sans); font-size: .95rem; cursor: pointer; color: var(--ink); }
.month-cal-grid .day.available { background: var(--cream); font-weight: 500; }
.month-cal-grid .day.available:hover { background: var(--blush); }
.month-cal-grid .day.unavailable { color: #c9bdb4; cursor: default; }
.month-cal-grid .day.today { outline: 1px solid var(--gold); }
.month-cal-grid .day.selected { background: var(--ink); color: var(--white); }
.month-cal-loading { position: absolute; inset: 0; background: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; border-radius: var(--radius); color: var(--muted); }
.slots h3 { margin-bottom: 1rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.slot { padding: .65rem 0; border: 1px solid var(--line); background: var(--white); border-radius: 30px; cursor: pointer; font-family: var(--sans); font-size: .95rem; color: var(--ink); }
.slot:hover { border-color: var(--ink); }
.slot.selected { background: var(--ink); color: var(--white); border-color: var(--ink); }

.summary-box { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: flex-end; background: var(--cream); padding: 1.2rem 1.5rem; border-radius: var(--radius); margin-bottom: 2rem; }
.summary-box span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.summary-box strong { font-weight: 500; }
.booking-done { text-align: center; max-width: 620px; margin: 0 auto; padding: 2rem 0; }
.booking-done > i { font-size: 3.5rem; color: var(--gold); }

/* ---------- formuláre ---------- */
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--ink-soft); }
.form-row { margin-bottom: 1.1rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input:not([type=checkbox]):not([type=color]), select, textarea {
    font: inherit; font-weight: 400; font-size: .95rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; }
input[type=color] { width: 60px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; background: var(--white); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,151,126,.18); }
input:disabled, select:disabled, textarea:disabled { background: #f5f2ef; color: var(--muted); }
label.checkbox { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; cursor: pointer; }
label.checkbox input { margin-top: .3rem; accent-color: var(--ink); width: 16px; height: 16px; }
.validation-message { color: var(--danger); font-size: .82rem; }
.invalid { border-color: var(--danger) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-2.tight { gap: .6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.span-2 { grid-column: span 2; }

.alert { padding: .9rem 1.1rem; border-radius: var(--radius); margin: 1rem 0; font-size: .93rem; }
.alert-error { background: #f8e7e5; color: #7d2f29; }
.alert-success { background: #e6f0e8; color: #2f5a3b; }
.info-box { background: var(--cream); border-left: 3px solid var(--gold); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1rem; font-size: .92rem; }
.info-box i { color: var(--gold-dark); margin-right: .3rem; }

/* ---------- správa rezervácie ---------- */
.manage-card { background: var(--white); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.big-date { font-family: var(--serif); font-size: 1.7rem; margin-bottom: .3rem; }
.salon-msg { background: var(--cream); padding: 1rem 1.2rem; border-radius: var(--radius); margin: 1.2rem 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0 1.2rem; }

/* ---------- stavy ---------- */
.badge { display: inline-block; padding: .25em .8em; border-radius: 20px; font-size: .75rem; font-weight: 500; letter-spacing: .03em; background: #eee; color: var(--ink); }
.status-pending { background: #fbecd0; color: #7a5410; }
.status-proposed { background: #e3e6f6; color: #3c4682; }
.status-confirmed { background: #dcebe0; color: #2d5a3a; }
.status-rejected, .status-cancelled { background: #f1e1df; color: #8a3a33; }
.status-completed { background: #ebe7e4; color: #5e5650; }
.badge.blocked { background: repeating-linear-gradient(45deg, #ece7e3, #ece7e3 6px, #f6f3f0 6px, #f6f3f0 12px); color: var(--muted); }

/* ---------- pätička ---------- */
.site-footer { background: var(--ink); color: #d9cfc7; padding: 4rem 0 1.5rem; font-size: .93rem; }
.site-footer a { color: #d9cfc7; }
.site-footer a:hover { color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 1.3rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; }
.footer-logo { height: 110px; width: auto; margin-bottom: .5rem; }
.social { display: flex; flex-direction: column; gap: .5rem; }
.social i { margin-right: .4rem; color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #333; margin-top: 3rem; padding-top: 1.3rem; font-size: .82rem; color: #8f857f; }
.footer-bottom a { color: #8f857f; }

/* ---------- prihlásenie ---------- */
.login-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; background: var(--cream); }
.login-card { background: var(--white); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); width: min(420px, 100%); }
.login-logo { height: 110px; margin: 0 auto 1rem; }
.login-card h1 { font-size: 1.8rem; text-align: center; }

/* ============ ADMINISTRÁCIA ============ */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: #d9cfc7; padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100vh; }
.admin-brand img { height: 90px; margin: 0 auto; }
.admin-side nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.admin-side nav a { color: #d9cfc7; padding: .65rem .9rem; border-radius: var(--radius); font-size: .93rem; }
.admin-side nav a i { margin-right: .6rem; color: var(--gold); }
.admin-side nav a:hover, .admin-side nav a.active { background: #2c2725; color: var(--white); }
.admin-user { display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; border-top: 1px solid #333; padding-top: 1rem; }
.admin-user .link-btn { color: #d9cfc7; text-decoration: none; text-align: left; }
.admin-main { background: var(--ivory); min-width: 0; }
.admin-topbar { display: none; }
.admin-page { padding: 2rem 2.5rem 4rem; max-width: 1100px; }
.admin-page.wide { max-width: none; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-head h1 { font-size: 2rem; margin: 0; }
.admin-page h2 { font-size: 1.5rem; margin-top: 2rem; }
.panel { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.panel h2 { margin-top: 0; }
.narrow-panel { max-width: 460px; }
.narrow-panel .form label { margin-bottom: 1rem; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { background: var(--white); padding: 1.2rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--muted); font-size: .9rem; }
.stat span { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--ink); line-height: 1.1; }

.req-list { display: flex; flex-direction: column; gap: .7rem; }
.req { background: var(--white); border-radius: var(--radius); padding: 1rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; box-shadow: var(--shadow); border-left: 3px solid var(--warn); }
.req.past { opacity: .6; }
.req-main { display: flex; flex-direction: column; }
.req-main strong { font-weight: 500; font-size: 1.05rem; }
.req-date { font-weight: 500; color: var(--gold-dark); }
.req .note { font-size: .88rem; color: var(--ink-soft); margin-top: .3rem; }
.req-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }

.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th { text-align: left; font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover { background: var(--ivory); }
.table tr.inactive { opacity: .5; }
.hours-edit input[type=time] { max-width: 140px; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.search-bar { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.search-bar input:not([type=checkbox]) { max-width: 420px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: var(--white); padding: .9rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 300; cursor: pointer; animation: fade 4s forwards; }
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* ---------- modálne okno ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(27, 22, 20, .45); z-index: 200; }
.modal { position: fixed; z-index: 201; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white); border-radius: 10px; width: min(720px, 95vw); max-height: 92vh;
         display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.small { width: min(480px, 95vw); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.3rem 1.6rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0 0 .3rem; font-size: 1.6rem; }
.modal-body { padding: 1.3rem 1.6rem; overflow-y: auto; }
.modal-body .form label, .modal-body > label { margin-bottom: .2rem; }
.modal-foot { padding: 1rem 1.6rem; border-top: 1px solid var(--line); display: flex; gap: .6rem; flex-wrap: wrap; }
.confirm-box { background: #f8e7e5; padding: 1rem; border-radius: var(--radius); margin-top: 1rem; }
.confirm-box p { margin-bottom: .6rem; }

/* ---------- interný kalendár ---------- */
.cal-toolbar h1 { font-size: 1.6rem; margin-left: .5rem; }
.cal-nav, .cal-tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cal-tools input[type=date], .cal-tools select { width: auto; padding: .45rem .7rem; font-size: .88rem; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 30px; overflow: hidden; }
.seg button { border: none; background: none; padding: .45rem 1rem; cursor: pointer; font: inherit; font-size: .85rem; }
.seg button.on { background: var(--ink); color: var(--white); }
.cal-legend { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }

.week { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.week-head, .week-body { display: grid; grid-template-columns: 56px repeat(var(--days), minmax(130px, 1fr)); min-width: calc(56px + var(--days) * 130px); }
.week-head { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.day-head { padding: .6rem .5rem; text-align: center; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.day-head strong { font-weight: 500; font-size: .92rem; }
.day-head.today { background: var(--cream); }
.week-body { position: relative; }
.time-col { position: relative; }
.hour-label { position: absolute; right: 8px; font-size: .72rem; color: var(--muted); transform: translateY(-50%); }
.hour-label:first-child { transform: none; }
.day-col { position: relative; border-left: 1px solid var(--line); }
.day-col.today { background: #fdfaf7; }
.slot-cell { position: absolute; left: 0; right: 0; border-top: 1px dashed #f1ebe6; cursor: pointer; }
.slot-cell.hour { border-top: 1px solid var(--line); }
.slot-cell:hover { background: rgba(184,151,126,.12); }
.week.dragging .slot-cell:hover { background: rgba(184,151,126,.3); }
.closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, #f7f4f1, #f7f4f1 6px, #fbf9f7 6px, #fbf9f7 12px); pointer-events: none; }
.blocked-block { position: absolute; left: 2px; right: 2px; background: repeating-linear-gradient(45deg, #e6dfd9, #e6dfd9 6px, #efeae6 6px, #efeae6 12px);
                 border-radius: 4px; font-size: .75rem; color: var(--muted); padding: 4px 6px; pointer-events: none; overflow: hidden; z-index: 1; }
.ev { position: absolute; z-index: 2; border-radius: 5px; padding: 3px 7px; font-size: .78rem; line-height: 1.3; overflow: hidden; cursor: pointer;
      border-left: 4px solid rgba(0,0,0,.25); box-shadow: 0 2px 6px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.ev strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .ev-time { font-size: .7rem; opacity: .8; }
.ev .ev-svc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.ev .ev-icon { position: absolute; top: 4px; right: 5px; }
.ev[draggable=true] { cursor: grab; }
.ev:hover { box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 3; }
.week.dragging .ev { pointer-events: none; opacity: .75; }
.ev.status-pending { border-style: dashed; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 4; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

/* ---------- história zmien ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; margin-bottom: 1.2rem; }
.filter-bar label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: var(--muted); }
.filter-bar label.grow { flex: 1 1 240px; }
.filter-bar input, .filter-bar select { padding: .5rem .7rem; font-size: .9rem; }
.nowrap { white-space: nowrap; }
.log-table td { vertical-align: top; }
.log-details { white-space: pre-line; color: var(--ink-soft); font-size: .88rem; }
.log-badge { display: inline-block; padding: .2em .7em; border-radius: 20px; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.log-create { background: #e3e6f6; color: #3c4682; }
.log-ok { background: #dcebe0; color: #2d5a3a; }
.log-cancel { background: #f1e1df; color: #8a3a33; }
.log-move { background: #fbecd0; color: #7a5410; }
.log-edit { background: #ebe7e4; color: #5e5650; }
details.history { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: .8rem; }
details.history summary { cursor: pointer; font-size: .9rem; color: var(--gold-dark); }
.history-list { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-direction: column; gap: .7rem; }
.history-list li { border-left: 2px solid var(--line); padding-left: .8rem; }

/* ---------- poukážky, captcha, prehľad ---------- */
.input-with-btn { display: flex; gap: .5rem; align-items: stretch; }
.input-with-btn input { flex: 1; }
.voucher-ok { margin-top: .4rem; color: var(--ok); font-size: .9rem; }
.voucher-hint { align-self: end; padding-bottom: .6rem; }
.mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .03em; }
.captcha { margin: 1.2rem 0 1rem; }
.captcha label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--ink-soft); max-width: 340px; }
.captcha-input { max-width: 120px; }
.captcha-widget { min-height: 65px; }
.status-filter { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1rem; }
.status-filter .badge { border: none; cursor: pointer; font-family: var(--sans); font-size: .8rem; padding: .4em .9em; }
.status-filter .badge.off { background: #f3f0ed; color: var(--muted); text-decoration: line-through; }
.status-filter .count { opacity: .7; margin-left: .2em; }
.stat-row.four { grid-template-columns: repeat(4, 1fr); margin-bottom: 1.2rem; }
.filter-bar label.checkbox { flex-direction: row; align-items: center; padding-bottom: .55rem; }
@media (max-width: 900px) { .stat-row.four { grid-template-columns: 1fr 1fr; } }

.footer-admin { display: inline-flex; gap: 1.2rem; align-items: center; }
.footer-admin .link-btn { color: #8f857f; text-decoration: none; font-size: .82rem; }
.footer-admin .link-btn:hover { color: var(--white); }
.inline-form { display: inline; margin: 0; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fbecd0; padding: .8rem 1.2rem; z-index: 1000; box-shadow: 0 -2px 10px rgba(0,0,0,.1); }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ---------- responzívne ---------- */
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--ivory); flex-direction: column; padding: 1.5rem; gap: 1.2rem; border-bottom: 1px solid var(--line); }
    .site-header.open .main-nav { display: flex; }
    .two-col, .contact-grid, .date-time { grid-template-columns: 1fr; gap: 2.5rem; }
    .card-grid, .gallery { grid-template-columns: 1fr 1fr; }
    .steps-grid, .footer-grid, .stat-row { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 150; transform: translateX(-100%); transition: transform .25s; }
    .admin-shell.open .admin-side { transform: none; }
    .admin-topbar { display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; background: var(--white); border-bottom: 1px solid var(--line); }
    .admin-topbar img { height: 46px; }
    .admin-page { padding: 1.5rem 1rem 3rem; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .card-grid, .gallery { grid-template-columns: 1fr; }
    .brand { gap: .7rem; }
    .brand img { height: 54px; }
    .brand-text { font-size: 1.1rem; padding-left: .7rem; }
    .form-row.two, .grid-2 { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .price-row { flex-direction: column; gap: .8rem; }
    .price-side { flex-direction: row; align-items: center; justify-content: space-between; }
    .req { flex-direction: column; align-items: stretch; }
    .hero { min-height: 78vh; align-items: flex-end; background-image: url("../images/hero-mobile.jpg"); }
    .hero-overlay { background: linear-gradient(0deg, rgba(27,22,20,.8) 0%, rgba(27,22,20,.35) 65%, rgba(27,22,20,.1) 100%); }
    .hero-content { padding: 3rem 0; }
    .hero-actions .btn { flex: 1 1 100%; }
    .manage-card { padding: 1.5rem; }
    .booking-steps li { font-size: .8rem; }
}
