:root {
  --navy: #0a3a4a;
  --teal: #0b6e85;
  --teal-dark: #08566a;
  --aqua: #e3f3f7;
  --sand: #f6f2ea;
  --line: #d6e2e7;
  --text: #17303b;
  --muted: #5c7480;
  --ok: #1d7a4d;
  --warn: #b45309;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(10, 58, 74, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: linear-gradient(180deg, var(--aqua) 0, #f5fafb 320px, #f5fafb 100%) no-repeat, #f5fafb;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px 64px; }
header.hero { padding: 36px 0 20px; }
header.hero h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--navy); letter-spacing: -.01em; }
header.hero p { margin: 0; color: var(--muted); }
.banner { background: #fff7e6; border: 1px solid #f1d49a; color: #7a4b00; padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; font-size: .92rem; }
.banner.ok { background: #e8f6ee; border-color: #b8e0c8; color: #165c3a; }
.banner.err { background: #fdecea; border-color: #f2b8b5; color: var(--danger); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card.locked { opacity: .45; pointer-events: none; }
.card h2 { margin: 0 0 14px; font-size: 1.1rem; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .9rem; font-weight: 600; flex: none; }

.tours { display: grid; gap: 10px; }
.tour { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; }
.tour:hover { border-color: #9cc7d2; }
.tour.sel { border-color: var(--teal); background: var(--aqua); }
.tour b { display: block; font-size: 1.05rem; color: var(--navy); }
.tour span { color: var(--muted); font-size: .92rem; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { text-transform: capitalize; font-size: 1.05rem; }
.icon-btn { border: 1px solid var(--line); background: #fff; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.1rem; color: var(--navy); }
.icon-btn:hover:not(:disabled) { background: var(--aqua); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: .78rem; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.day { height: 48px; border: 1px solid transparent; border-radius: 10px; background: transparent; font: inherit; color: #9aaab2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.day.avail { background: #d9f2e0; color: #14532d; border-color: #9fd8b0; cursor: pointer; font-weight: 700; }
.day.avail:hover { border-color: #2f9e57; }
.day.sel, .day.avail.sel { background: #2f9e57; color: #fff; border-color: #2f9e57; }
.day.today { outline: 2px dashed #9cc7d2; outline-offset: -3px; }
.day small { font-size: .62rem; font-weight: 500; opacity: .85; }

.slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.slot { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 16px; cursor: pointer; font: inherit; text-align: left; min-width: 150px; }
.slot b { font-size: 1.15rem; display: block; color: var(--navy); }
.slot span { font-size: .85rem; color: var(--muted); }
.slot:hover:not(:disabled) { border-color: var(--teal); }
.slot.sel { border-color: var(--teal); background: var(--aqua); }
.slot:disabled { opacity: .5; cursor: default; background: #f6f8f9; }
.slot .low { color: var(--warn); font-weight: 600; }

.cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cat:last-of-type { border-bottom: 0; }
.cat .info b { display: block; }
.cat .info span { color: var(--muted); font-size: .88rem; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--navy); }
.stepper button:hover:not(:disabled) { background: var(--aqua); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 36px; text-align: center; font-weight: 700; font-size: 1.1rem; }

.summary { background: var(--sand); border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary .disc { color: var(--ok); }
.summary .total { border-top: 1px solid #e0d9c8; margin-top: 8px; padding-top: 10px; font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.hint { color: var(--teal-dark); font-size: .9rem; margin-top: 8px; }

label { display: block; font-weight: 600; font-size: .92rem; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b9ccd3; border-radius: 10px; background: #fff; color: var(--text);
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid #9cd0dd; outline-offset: 1px; }
.grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--teal); color: #fff; font: inherit; font-weight: 600; padding: 12px 20px; border-radius: 12px; cursor: pointer; }
.btn:hover:not(:disabled) { background: var(--teal-dark); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; padding: 15px; font-size: 1.05rem; margin-top: 18px; }
.btn.ghost { background: #fff; color: var(--teal-dark); border: 1px solid #9cc7d2; }
.btn.ghost:hover:not(:disabled) { background: var(--aqua); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: .88rem; border-radius: 9px; }
.error { color: var(--danger); margin-top: 10px; font-weight: 600; }
.muted { color: var(--muted); }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 20px 0; }

/* hvala / demo strani */
.center { max-width: 520px; margin: 40px auto; }
.big-code { font-size: 1.8rem; letter-spacing: .15em; font-weight: 800; color: var(--navy); background: var(--aqua); border-radius: 12px; padding: 10px 18px; display: inline-block; margin: 6px 0 12px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* admin */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 16px 16px 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.topbar h1 { margin: 0; font-size: 1.4rem; color: var(--navy); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 600; color: var(--navy); }
.tab.sel { background: var(--teal); color: #fff; border-color: var(--teal); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.toolbar > div { min-width: 150px; }
.toolbar label { margin-top: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.badge.confirmed { background: #dff3e8; color: #165c3a; }
.badge.pending { background: #fff1d6; color: #7a4b00; }
.badge.cancelled, .badge.refunded, .badge.expired, .badge.failed { background: #eceff1; color: #53656e; }
.badge.needs_refund { background: #fdecea; color: var(--danger); }
.badge.active { background: #dff3e8; color: #165c3a; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-row, .disc-row { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; margin-bottom: 8px; }
.disc-row { grid-template-columns: 1fr 1fr auto; max-width: 420px; }
@media (max-width: 700px) { .cat-row { grid-template-columns: 1fr 1fr; } }
.cat-row label, .disc-row label { margin: 0 0 2px; font-size: .78rem; color: var(--muted); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-weight: 500; border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; cursor: pointer; }
.days input { width: auto; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* jezik in opozorila */
.lang { display: flex; justify-content: flex-end; gap: 0; padding-top: 14px; }
.lang button { border: 1px solid var(--line); background: #fff; padding: 6px 14px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.lang button:first-child { border-radius: 9px 0 0 9px; }
.lang button:last-child { border-radius: 0 9px 9px 0; border-left: 0; }
.lang button.sel { background: var(--teal); color: #fff; border-color: var(--teal); }
.problems { list-style: none; margin: 10px 0 0; padding: 0; }
.problems li { color: var(--warn); font-size: .92rem; padding: 2px 0 2px 22px; position: relative; }
.problems li::before { content: "!"; position: absolute; left: 4px; font-weight: 800; }
.cat-row2 { display: grid; gap: 8px 10px; grid-template-columns: repeat(4, 1fr); margin-bottom: 8px; align-items: end; }
.cat-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fbfdfe; }
.cat-box .flags { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cat-box .flags label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; font-size: .88rem; }
.cat-box .flags input { width: auto; }
@media (max-width: 700px) { .cat-row2 { grid-template-columns: 1fr 1fr; } }

/* admin: koledar terminov */
.cal-nav { display: flex; align-items: center; gap: 12px; }
.acal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 560px; }
.acal .dow { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 700; padding: 2px 0; }
.aday { height: 46px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; position: relative; }
.aday small { font-size: .62rem; font-weight: 500; opacity: .75; }
.aday.free { background: #d9f2e0; border-color: #9fd8b0; }
.aday.req { background: #ffd9a8; border-color: #f0a84a; }
.aday.appr { background: #fff1b8; border-color: #e6cc5a; }
.aday.conf { background: #bfdcf5; border-color: #7fb4e0; }
.aday.done { background: #e3e6e8; border-color: #c6ccd0; color: #53656e; }
.aday.canc { background: #f6f6f6; color: #9aaab2; text-decoration: line-through; }
.aday.inr { box-shadow: inset 0 0 0 2px #1b7f99; }
.aday.edge { box-shadow: inset 0 0 0 3px #0b5c73; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin: 12px 0; }
.legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15); }
.lg.free { background: #d9f2e0; } .lg.req { background: #ffd9a8; } .lg.appr { background: #fff1b8; } .lg.conf { background: #bfdcf5; } .lg.done { background: #e3e6e8; } .lg.canc { background: #f6f6f6; }
.range-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-weight: 600; color: var(--navy); }
.badge.requested { background: #ffe6c2; color: #7a4300; }
.badge.approved { background: #fff1d6; color: #7a4b00; }
.badge.done { background: #e3e6e8; color: #3d4a50; }

/* admin: urejevalnik e-pošt */
.ed-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #f6fafb; }
.ed-bar button { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 10px; font: inherit; cursor: pointer; min-width: 34px; }
.ed-bar button:hover { border-color: var(--teal); }
.ed-bar input[type=color] { width: 36px; height: 30px; padding: 1px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.ed-bar select { width: auto; padding: 5px 8px; }
.editor { min-height: 220px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; padding: 12px; background: #fff; line-height: 1.5; overflow-wrap: anywhere; }
.editor:focus { outline: 2px solid #9cc7d2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 3px 11px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--navy); }
.chip:hover { border-color: var(--teal); background: var(--aqua); }
.preview { margin-top: 16px; }
.preview iframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 10px; background: #f2f6f8; margin-top: 6px; }
.logo-prev { max-height: 60px; max-width: 260px; display: block; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
