:root {
  --navy: #073d68;
  --navy-deep: #052f50;
  --blue: #0874b9;
  --blue-light: #eaf5fb;
  --red: #d7192d;
  --ink: #17354d;
  --muted: #667b8b;
  --line: #d8e5ed;
  --surface: #ffffff;
  --background: #f3f7fa;
  --success: #19724f;
  --warning: #9a6412;
  --danger: #a62a32;
  --shadow: 0 18px 48px rgba(14, 53, 80, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-deep); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); margin-bottom: .65rem; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin-bottom: .65rem; }
h3 { font-size: 1.1rem; margin-bottom: .45rem; }
code { border-radius: 6px; background: #edf3f7; padding: 2px 6px; color: var(--navy); font-size: .9em; }
[hidden] { display: none !important; }

.button, button.button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.button:hover { background: #05649f; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(8, 116, 185, .18); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.button.secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.button.secondary:hover { background: var(--blue-light); }
.button.primary { background: var(--blue); }
.button.danger { background: var(--danger); }
.button.small { min-height: 39px; padding: 8px 12px; font-size: .86rem; }
.button.wide { width: 100%; }
.button.white { color: var(--navy); background: #fff; }
.button.white:hover { color: var(--navy); background: #f2f8fc; }
.button.ghost-light { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.button.ghost-light:hover { background: rgba(255,255,255,.1); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(8, 116, 185, .25);
  outline-offset: 2px;
}

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.kicker { margin: 0 0 .55rem; color: var(--blue); font-size: .73rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.kicker.light { color: #8ed4ff; }
.flash { max-width: 1160px; margin: 18px auto; border-radius: 10px; padding: 12px 15px; font-weight: 650; }
.flash.success { border: 1px solid #b7dfcf; color: #145e43; background: #ebf8f2; }
.flash.info { border: 1px solid #bad8e9; color: var(--navy); background: #edf7fc; }
.form-errors { margin-bottom: 18px; border: 1px solid #efbec3; border-radius: 11px; padding: 13px 15px; color: #8c222d; background: #fff1f2; }
.form-errors ul { margin: 8px 0 0; padding-left: 20px; }

/* Administration */
.site-header { position: relative; z-index: 1000; min-height: 76px; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--navy-deep); font-size: 1.3rem; font-weight: 850; }
.brand img { width: 102px; height: auto; display: block; }
.brand span { border-left: 1px solid var(--line); padding-left: 14px; }
.admin-navigation { display: flex; align-items: center; gap: 22px; font-size: .91rem; font-weight: 700; }
.admin-navigation a { color: var(--navy); }
.admin-navigation form { margin: 0; }
.nav-logout { min-height: auto; border: 0; padding: 0; color: var(--blue); background: transparent; font-weight: 700; cursor: pointer; }
.admin-shell { width: min(1180px, calc(100% - 40px)); margin: 42px auto 80px; }
.page-head { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.page-head h1 { margin-bottom: 7px; }
.page-head p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.event-list { display: grid; gap: 14px; }
.event-card { min-height: 145px; padding: 22px; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 22px; }
.event-date-block { width: 70px; height: 82px; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: var(--navy); }
.event-date-block strong { font-size: 2rem; line-height: 1; }
.event-date-block span { margin-top: 5px; color: #a8dcfa; font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.event-card-copy h2 { margin: 8px 0 5px; }
.event-card-copy p { margin: 0; color: var(--muted); }
.event-card-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 9px; color: var(--navy); background: var(--blue-light); font-size: .71rem; font-weight: 800; }
.badge.green { color: #126044; background: #e5f5ed; }
.badge.muted { color: #6f7d87; background: #edf1f3; }
.badge.soft { color: #4e6574; background: #f1f5f7; }
.empty-state { max-width: 760px; margin: 8vh auto; padding: 46px 34px; text-align: center; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); font-size: 2rem; }
.empty-state p { max-width: 520px; margin: 0 auto 22px; color: var(--muted); }
.editor-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); align-items: start; gap: 22px; }
.editor-grid.single { grid-template-columns: minmax(0, 820px); }
.form-card, .places-card, .settings-card { padding: 26px; }
.aligned-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; align-items: start; }
.aligned-form > label, .stack-form label { margin: 0; display: grid; grid-template-rows: auto 46px auto; align-content: start; gap: 7px; color: var(--navy-deep); font-size: .88rem; font-weight: 720; }
.aligned-form > label:has(textarea) { grid-template-rows: auto auto; }
.aligned-form .span-2 { grid-column: 1 / -1; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #bfd0dc; border-radius: 9px; padding: 10px 12px; color: var(--ink); background: #fff; }
textarea { min-height: 105px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #95b4c7; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
label small { color: var(--muted); font-size: .76rem; font-weight: 450; }
.stack-form { display: grid; gap: 16px; }
.language-box, .kind-selector { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.language-box legend, .kind-selector legend { padding: 0 6px; color: var(--navy-deep); font-size: .88rem; font-weight: 800; }
.check-choice, .kind-selector label, .toggle-choice { min-height: 64px !important; border: 1px solid var(--line); border-radius: 10px; padding: 11px; display: flex !important; grid-template-rows: none !important; align-items: center; gap: 10px !important; background: #fbfdfe; cursor: pointer; }
.check-choice input, .kind-selector input, .toggle-choice input, .check-line input { width: 19px; min-height: 19px; flex: 0 0 auto; accent-color: var(--blue); }
.check-choice span, .kind-selector span, .toggle-choice span { display: grid; gap: 2px; }
.check-choice small, .kind-selector small, .toggle-choice small { display: block; }
.form-actions { display: flex; gap: 9px; margin-top: 3px; }
.danger-zone { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.danger-zone p { color: var(--muted); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2 { margin-bottom: 0; }
.public-link-box { margin-bottom: 18px; border: 1px solid #b9d9ea; border-radius: 11px; padding: 11px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; background: #edf8fd; font-size: .78rem; }
.public-link-box span { color: var(--muted); font-weight: 750; }
.public-link-box a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; color: var(--navy); background: #fff; font-size: .75rem; font-weight: 750; cursor: pointer; }
.place-admin-list { display: grid; gap: 9px; }
.place-admin-item { border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.place-number { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); font-weight: 850; }
.place-number.hotel { background: #d88a17; }
.item-meta { margin: 0 0 4px; color: var(--blue); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.place-admin-item h3 { margin-bottom: 3px; }
.place-admin-item p { margin: 0; color: var(--muted); font-size: .84rem; }
.text-link { font-size: .84rem; font-weight: 750; }
.empty-inline { border: 1px dashed #b9cdda; border-radius: 11px; padding: 24px; color: var(--muted); text-align: center; }
.empty-inline p { margin: 0; }
.place-editor { max-width: 900px; }
.kind-selector { margin-bottom: 3px; }
.check-line { min-height: auto !important; grid-template-rows: auto !important; display: flex !important; align-items: center; gap: 8px !important; }
.address-search-label { position: relative; }
.address-search-label input { padding-right: 145px; }
.inline-button { position: absolute; right: 5px; top: 31px; min-height: 36px; padding: 7px 11px; font-size: .78rem; }
.map-editor { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: #f7fbfd; }
.map-editor-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-editor-head strong, .map-editor-head small { display: block; }
.map-editor-head small, #coordinate-readout { color: var(--muted); font-size: .76rem; }
#admin-map { height: 390px; border: 1px solid var(--line); border-radius: 10px; background: #e9f1f5; }
.success-text { color: var(--success) !important; }
.error-text { color: var(--danger) !important; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.settings-card h2 { margin-bottom: 18px; }
.check-list, .api-results { display: grid; gap: 8px; }
.check-row { min-height: 45px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; background: #fbfdfe; }
.check-row > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 900; }
.check-row.ok > span { background: var(--success); }
.check-row.bad > span { background: var(--danger); }
.check-row small { display: block; margin-top: 3px; color: var(--danger); }
.status-large { border-radius: 10px; padding: 12px; font-weight: 800; }
.status-large.ok { color: var(--success); background: #e9f7f0; }
.status-large.bad { color: var(--danger); background: #fff0f1; }
.api-results { margin-top: 18px; }
.simple-list { display: grid; }
.simple-list > div { border-bottom: 1px solid var(--line); padding: 13px 0; display: flex; justify-content: space-between; gap: 14px; }
.simple-list span { color: var(--muted); font-size: .82rem; }

/* Login and installation */
.auth-background { min-height: 100vh; background: linear-gradient(120deg, #eaf3f8 0, #f7fafc 55%, #eef5f9 100%); }
.auth-background .site-header { display: none; }
.auth-background .admin-shell { width: min(1050px, calc(100% - 36px)); margin: 6vh auto; }
.auth-layout { min-height: 650px; border-radius: 22px; display: grid; grid-template-columns: .95fr 1.05fr; overflow: hidden; background: #fff; box-shadow: 0 28px 75px rgba(10, 53, 82, .18); }
.auth-layout.compact { min-height: 580px; }
.auth-brand-panel { position: relative; padding: 52px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: linear-gradient(145deg, var(--navy-deep), #075a91); overflow: hidden; }
.auth-brand-panel:after { content: ""; position: absolute; right: -90px; bottom: -130px; width: 300px; height: 300px; border: 30px solid rgba(255,255,255,.07); border-radius: 50%; }
.auth-brand-panel:before { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 100%; background: var(--red); }
.auth-brand-panel img { position: relative; z-index: 1; width: 178px; margin-bottom: 50px; padding: 12px; background: #fff; }
.auth-brand-panel h1 { position: relative; z-index: 1; color: #fff; font-size: clamp(2.35rem, 4vw, 3.5rem); }
.auth-brand-panel p { position: relative; z-index: 1; max-width: 430px; color: #d7e9f4; }
.auth-form-panel { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-form-panel h2 { font-size: 2rem; }
.security-hint { margin: 18px 0 0; color: var(--muted); font-size: .78rem; }

/* Public participant view */
.public-page { background: #fff; }
.public-shell { width: 100%; margin: 0; }
.public-shell > .flash { width: min(1160px, calc(100% - 40px)); }
.public-header { border-bottom: 1px solid var(--line); background: #fff; }
.public-header-inner { width: min(1160px, calc(100% - 40px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; gap: 15px; }
.public-header img { width: 108px; }
.public-product { border-left: 1px solid var(--line); padding-left: 15px; color: var(--navy-deep); font-size: 1.25rem; font-weight: 850; }
.language-switch { margin-left: auto; display: flex; gap: 6px; }
.language-switch a { width: 39px; height: 34px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--navy); background: #fff; font-size: .76rem; font-weight: 850; }
.language-switch a.active { border-color: var(--blue); color: #fff; background: var(--blue); }
.event-hero { position: relative; width: min(1160px, calc(100% - 40px)); margin: 26px auto 16px; border-radius: 20px; padding: 34px 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; color: #fff; background: linear-gradient(112deg, var(--navy-deep) 0%, #075a91 68%, #0874b9 100%); box-shadow: 0 22px 55px rgba(7, 61, 104, .18); overflow: hidden; }
.event-hero-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--red); }
.event-hero h1 { color: #fff; }
.event-hero-copy > p:last-child { max-width: 720px; margin-bottom: 0; color: #dcecf5; font-size: 1.03rem; }
.event-hero-facts { min-width: 255px; display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 9px; align-self: center; }
.event-hero-facts > div { border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 13px; background: rgba(255,255,255,.08); }
.event-hero-facts span { display: block; margin-bottom: 4px; color: #a9d9f4; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.event-hero-facts strong { font-size: .86rem; line-height: 1.45; }
.day-switcher { position: sticky; top: 0; z-index: 900; width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 10px 0 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.day-button { min-width: 165px; min-height: 60px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; display: grid; gap: 2px; text-align: left; color: var(--navy); background: #fff; cursor: pointer; }
.day-button small { color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.day-button strong { font-size: .86rem; }
.day-button.active { border-color: var(--blue); color: #fff; background: var(--blue); box-shadow: 0 9px 20px rgba(8, 116, 185, .18); }
.day-button.active small { color: #d9f0fc; }
.next-panel { width: min(1160px, calc(100% - 40px)); margin: 4px auto 12px; border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 17px; align-items: center; color: #fff; background: var(--navy-deep); }
.next-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--red); font-size: 1.4rem; font-weight: 800; }
.next-panel h2 { margin: 0 0 3px; color: #fff; font-size: 1.45rem; }
.next-panel p { margin: 0; color: #cde4f1; }
.next-buttons { display: flex; gap: 7px; }
.download-bar { width: min(1160px, calc(100% - 40px)); margin: 0 auto 22px; display: flex; justify-content: flex-end; gap: 16px; }
.download-link { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: .82rem; font-weight: 750; }
.download-link span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); }
.participant-layout { width: min(1160px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: 22px; align-items: start; }
.section-title { margin-bottom: 15px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.section-title h2 { margin: 0; }
.section-title > p { max-width: 380px; margin: 0; color: var(--muted); font-size: .86rem; text-align: right; }
.schedule-card { position: relative; display: grid; grid-template-columns: 57px 36px minmax(0, 1fr); gap: 11px; padding-bottom: 18px; }
.schedule-card:before { content: ""; position: absolute; left: 74px; top: 34px; bottom: -1px; width: 2px; background: var(--line); }
.schedule-card:last-of-type:before { display: none; }
.schedule-time { padding-top: 4px; text-align: right; }
.schedule-time strong, .schedule-time span { display: block; }
.schedule-time strong { color: var(--navy); font-size: 1rem; }
.schedule-time span { color: var(--muted); font-size: .72rem; }
.timeline-marker { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); font-weight: 850; box-shadow: 0 5px 12px rgba(8, 116, 185, .2); }
.schedule-copy { border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; background: #fff; box-shadow: 0 8px 22px rgba(11, 57, 87, .055); }
.schedule-copy h3 { font-size: 1.2rem; }
.place-address { margin: 0; color: var(--muted); }
.participant-note { margin: 11px 0 0; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; padding: 8px 10px; color: #405e71; background: #f1f7fa; font-size: .86rem; }
.place-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 14px; }
.place-actions a, .text-button { min-height: auto; border: 0; padding: 0; color: var(--blue); background: transparent; font-size: .78rem; font-weight: 800; cursor: pointer; }
.empty-schedule { border: 1px dashed #b8cedb; border-radius: 13px; padding: 28px; color: var(--muted); text-align: center; }
.route-planner { position: sticky; top: 84px; padding: 18px; box-shadow: 0 15px 36px rgba(11, 57, 87, .09); }
.route-heading h2 { margin-bottom: 5px; }
.route-heading > p:last-child { margin-bottom: 15px; color: var(--muted); font-size: .83rem; }
.service-warning { margin-bottom: 13px; border: 1px solid #eed4a8; border-radius: 9px; padding: 9px 11px; color: #81530c; background: #fff8e9; font-size: .78rem; }
.route-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.route-fields label { display: grid; grid-template-rows: auto 44px; gap: 5px; color: var(--navy); font-size: .73rem; font-weight: 750; }
.route-fields select { min-height: 44px; padding: 8px 9px; font-size: .84rem; }
.route-fields .button { min-height: 44px; font-size: .84rem; }
.custom-address { margin-top: 11px; border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: #f5fafc; }
.custom-address-title { margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; }
.custom-address-title strong { color: var(--navy); font-size: .82rem; }
.custom-address-title small { color: var(--muted); font-size: .68rem; }
.address-grid { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr) 86px; gap: 8px; }
.address-grid label { display: grid; grid-template-rows: auto 42px; gap: 4px; color: var(--navy); font-size: .69rem; font-weight: 750; }
.address-grid input { min-height: 42px; padding: 8px; font-size: .82rem; }
.address-grid .city { grid-column: 2 / 4; }
.address-grid .street { grid-column: 1 / 3; }
.suggestion-list { position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 5px); max-height: 180px; overflow: auto; border: 1px solid #afcbdc; border-radius: 9px; padding: 4px; display: grid; gap: 2px; background: #fff; box-shadow: 0 15px 30px rgba(7, 61, 104, .16); }
.suggestion-list button { min-height: 36px; border: 0; border-radius: 6px; padding: 7px 9px; color: var(--ink); background: #fff; font-size: .77rem; text-align: left; cursor: pointer; }
.suggestion-list button:hover { background: var(--blue-light); }
.address-feedback { min-height: 18px; margin: 7px 0 0; color: var(--muted); font-size: .72rem; }
.address-feedback.success { color: var(--success); }
.address-feedback.error { color: var(--danger); }
.route-status { margin: 12px 0 10px; border-radius: 9px; padding: 9px 11px; color: var(--muted); background: #f1f5f7; font-size: .78rem; }
.route-status.success { color: var(--success); background: #e8f7ef; }
.route-status.error { color: var(--danger); background: #fff0f1; }
.route-status.loading { color: var(--navy); background: var(--blue-light); }
.route-facts { margin-bottom: 9px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.route-facts > div { border: 1px solid var(--line); border-radius: 8px; padding: 7px; background: #fbfdfe; }
.route-facts span, .route-facts strong { display: block; }
.route-facts span { color: var(--muted); font-size: .63rem; text-transform: uppercase; letter-spacing: .05em; }
.route-facts strong { margin-top: 2px; color: var(--navy); font-size: .78rem; }
.route-result-actions { margin-bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.route-result-actions .button { min-height: 40px; padding: 8px; font-size: .75rem; }
#public-map { height: 390px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #eaf1f5; }
.google-number { width: 34px; height: 34px; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); font-size: .8rem; font-weight: 900; box-shadow: 0 5px 13px rgba(0,0,0,.25); }
.google-number.hotel { background: #d88a17; }
.google-user-marker { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; display: block; background: #16825d; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.map-message { min-height: 100%; padding: 24px; display: grid; place-items: center; color: var(--muted); text-align: center; background: #eef5f9; }
.hotel-section { width: min(1160px, calc(100% - 40px)); margin: 42px auto 0; }
.hotel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hotel-card { padding: 17px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; box-shadow: 0 8px 22px rgba(11, 57, 87, .055); }
.hotel-marker { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #d88a17; font-weight: 900; }
.hotel-card p { margin-bottom: 7px; color: var(--muted); }
.hotel-card small { color: #4e6777; }
.public-footer { width: min(1160px, calc(100% - 40px)); margin: 48px auto 0; border-top: 1px solid var(--line); padding: 24px 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.public-footer img { width: 92px; opacity: .8; }
.public-footer p { max-width: 650px; margin: 0; color: var(--muted); font-size: .76rem; text-align: right; }
.public-footer nav { margin-top: 8px; display: flex; justify-content: flex-end; gap: 14px; font-size: .76rem; }
.public-footer nav a { color: var(--blue); font-weight: 700; }
.unavailable-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(130deg, #edf5f9, #f9fbfc); }
.unavailable-card { width: min(680px, calc(100% - 36px)); margin: 10vh auto; border: 1px solid var(--line); border-radius: 20px; padding: 40px; background: #fff; box-shadow: var(--shadow); }
.unavailable-card img { width: 142px; margin-bottom: 32px; }

@media (max-width: 980px) {
  .editor-grid, .settings-grid, .participant-layout { grid-template-columns: 1fr; }
  .route-column { order: -1; }
  .route-planner { position: static; }
  .event-hero { grid-template-columns: 1fr; }
  .event-hero-facts { min-width: 0; }
  .auth-layout { grid-template-columns: .85fr 1.15fr; }
  .auth-brand-panel, .auth-form-panel { padding: 38px; }
  #public-map { height: 430px; }
}

@media (max-width: 740px) {
  .header-inner { width: calc(100% - 28px); min-height: 68px; align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .brand img { width: 90px; }
  .brand span { font-size: 1.05rem; }
  .admin-navigation { width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 2px; white-space: nowrap; }
  .admin-shell { width: calc(100% - 26px); margin: 24px auto 50px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 15px; }
  .page-head > .button { width: 100%; }
  .event-card { grid-template-columns: 61px minmax(0, 1fr); padding: 16px; gap: 14px; }
  .event-date-block { width: 58px; height: 69px; }
  .event-date-block strong { font-size: 1.65rem; }
  .event-card-actions { grid-column: 1 / -1; }
  .event-card-actions .button { flex: 1; }
  .form-card, .places-card, .settings-card { padding: 18px; }
  .public-link-box { grid-template-columns: 1fr auto; }
  .public-link-box span { grid-column: 1 / -1; }
  .auth-background .admin-shell { width: calc(100% - 24px); margin: 18px auto; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 300px; padding: 30px; }
  .auth-brand-panel img { width: 150px; margin-bottom: 28px; }
  .auth-brand-panel h1 { font-size: 2.25rem; }
  .auth-form-panel { padding: 28px; }
  .public-header-inner, .event-hero, .day-switcher, .next-panel, .download-bar, .participant-layout, .hotel-section, .public-footer { width: calc(100% - 26px); }
  .public-header-inner { min-height: 66px; }
  .public-header img { width: 90px; }
  .public-product { font-size: 1.05rem; }
  .event-hero { margin-top: 13px; padding: 24px 20px; }
  .event-hero-facts { grid-template-columns: 1fr 1fr; }
  .day-switcher { margin-right: 0; width: calc(100% - 13px); }
  .day-button { min-width: 145px; }
  .next-panel { grid-template-columns: 42px minmax(0, 1fr); padding: 15px; gap: 11px; }
  .next-icon { width: 40px; height: 40px; }
  .next-panel h2 { font-size: 1.15rem; }
  .next-buttons { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .next-buttons .button { min-height: 42px; padding: 9px; font-size: .76rem; }
  .download-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .download-link { border: 1px solid var(--line); border-radius: 9px; padding: 8px; justify-content: center; font-size: .73rem; }
  .section-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .section-title > p { text-align: left; }
  .schedule-card { grid-template-columns: 49px 30px minmax(0, 1fr); gap: 8px; }
  .schedule-card:before { left: 62px; }
  .timeline-marker { width: 30px; height: 30px; }
  .schedule-copy { padding: 13px; }
  .schedule-copy h3 { font-size: 1.05rem; }
  .route-planner { padding: 14px; }
  .route-fields { grid-template-columns: 1fr; }
  .route-fields .button { width: 100%; }
  #public-map { height: 350px; }
  .hotel-grid { grid-template-columns: 1fr; }
  .public-footer { align-items: flex-start; flex-direction: column; }
  .public-footer p { text-align: left; }
  .public-footer nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .aligned-form { grid-template-columns: 1fr; }
  .aligned-form .span-2 { grid-column: 1; }
  .language-box, .kind-selector { grid-template-columns: 1fr; }
  .address-search-label input { padding-right: 12px; }
  .inline-button { position: static; margin-top: 3px; width: 100%; }
  #admin-map { height: 320px; }
  .place-admin-item { grid-template-columns: 36px minmax(0,1fr); }
  .place-admin-item .text-link { grid-column: 2; }
  .event-hero-facts { grid-template-columns: 1fr; }
  .download-bar { grid-template-columns: 1fr; }
  .address-grid { grid-template-columns: 78px minmax(0,1fr) 78px; gap: 6px; }
  .route-facts { grid-template-columns: 1fr 1fr 1fr; }
  .route-result-actions { grid-template-columns: 1fr; }
  .schedule-card { grid-template-columns: 44px 27px minmax(0, 1fr); }
  .schedule-card:before { left: 56px; }
  .timeline-marker { width: 27px; height: 27px; font-size: .72rem; }
  .schedule-time strong { font-size: .88rem; }
  .schedule-copy { padding: 11px; }
  .place-actions { gap: 10px; }
}

@media print {
  .public-header, .day-switcher, .next-buttons, .download-bar, .route-fields, .custom-address, .route-status, .route-result-actions, .place-actions { display: none !important; }
  .event-hero, .next-panel, .schedule-copy, .route-planner, .hotel-card { box-shadow: none; break-inside: avoid; }
  .participant-layout { grid-template-columns: 1fr 1fr; }
  .route-column { order: initial; }
}
