:root {
    --sky: #4A90D9;
    --sky-deep: #0066CC;
    --navy: #0B1A2A;
    --navy-mid: #0066CC;
    --navy-dark: #061220;
    --yellow: #0052A3;
    --yellow-hover: #d4c000;
    --orange: #f0a33a;
    --teal: #3db8c9;
    --text: #1a2332;
    --muted: #757575;
    --border: #d8dee8;
    --border-soft: #e8edf4;
    --surface: #ffffff;
    --canvas: #F4F6F9;
    --white: #ffffff;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    --radius: 2px;
    --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.admin-body {
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.4;
    color: var(--text);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }

.admin-shell {
    display: grid;
    grid-template-columns: 208px 1fr;
    min-height: 100vh;
}

.admin-nav {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #0B1A2A;
    color: #dbe4f3;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: auto;
    border-right: 1px solid #061633;
}

.brand-block {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 4px 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 2px;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 13px;
    color: #0B1A2A;
    background: var(--yellow);
}
.brand-block strong {
    display: block;
    font-size: 13px;
    letter-spacing: 0.01em;
    color: #fff;
    font-weight: 600;
}
.brand-block span {
    display: block;
    color: #8fa0bd;
    font-size: 10px;
    margin-top: 1px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.brand-locale {
    margin-top: 8px;
}
.locale-switcher { display:inline-flex; align-items:center; gap:6px; font-size:12px; }
.locale-switcher .locale-link { color:rgba(232,238,244,.55); text-decoration:none; opacity:.7; }
.locale-switcher .locale-link.is-active { opacity:1; font-weight:700; text-decoration:none; color:rgba(232,238,244,.9); }
.locale-sep { opacity:.4; color:rgba(232,238,244,.35); }

.nav-section-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7083a3;
    padding: 0 8px 4px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius);
    color: #c5d2e8;
    font-weight: 500;
    font-size: 12.5px;
    transition: background .12s ease, color .12s ease;
}
.nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
}
.nav-links a.active {
    background: rgba(232, 210, 0, 0.12);
    color: #fff;
    box-shadow: inset 2px 0 0 var(--yellow);
}
.nav-ico {
    width: 14px;
    opacity: 0.85;
    font-size: 11px;
    text-align: center;
}

.nav-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-user {
    padding: 4px 8px 8px;
}
.nav-user strong { display: block; font-size: 12px; color: #fff; font-weight: 600; }
.nav-user span { color: #8fa0bd; font-size: 11px; }

.admin-main {
    padding: 16px 20px 28px;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin: 0 0 2px;
}
.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.page-sub {
    margin: 3px 0 0;
    color: var(--muted);
    max-width: 64ch;
    line-height: 1.4;
    font-size: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: var(--radius);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background: var(--yellow);
    color: #111;
    border: 1px solid #c9b400;
}
.btn-primary:hover { background: var(--yellow-hover); color: #111; }
.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: #f3f6fb; color: var(--navy); }
.btn-danger {
    background: #fff;
    color: var(--danger);
    border: 1px solid #f0b4ae;
}
.btn-danger:hover { background: #fff5f4; }
.btn-ghost {
    background: transparent;
    color: #dbe4f3;
    border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }
.btn-sm { padding: 3px 8px; font-size: 11.5px; }
.btn-link {
    background: transparent;
    border: 0;
    color: var(--navy-mid);
    padding: 0;
    font-weight: 600;
    font-size: 12px;
}
.btn-link:hover { text-decoration: underline; }

.flash {
    border-radius: var(--radius);
    padding: 7px 10px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 12px;
}
.flash-success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.flash-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 12px 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    min-height: 0;
}
.stat-card .label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.stat-card .value {
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    margin: 4px 0 2px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.stat-card .meta { color: var(--muted); font-size: 11.5px; }
.stat-card.accent {
    background: #0B1A2A;
    color: #fff;
    border-color: #0B1A2A;
}
.stat-card.accent .label,
.stat-card.accent .meta { color: #9eb0cd; }
.stat-card.accent .value { color: #fff; }

.panel-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 10px;
}
.panel {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 12px 14px;
}
.panel h2 {
    margin: 0 0 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.panel-head h2 { margin: 0; }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.toolbar .count {
    color: var(--muted);
    font-size: 11.5px;
}

.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}
.filter-bar .field {
    min-width: 0;
}
.filter-bar .field-grow {
    flex: 1 1 180px;
}
.filter-bar .field-sm {
    flex: 0 1 110px;
}
.filter-bar .field-md {
    flex: 0 1 140px;
}
.filter-bar .filter-actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
    padding-bottom: 0;
}
@media (max-width: 1100px) {
    .filter-bar {
        flex-wrap: wrap;
    }
    .filter-bar .field-grow,
    .filter-bar .field-sm,
    .filter-bar .field-md {
        flex: 1 1 140px;
    }
}

.table-wrap { overflow: auto; }
table.data {
    width: 100%;
    border-collapse: collapse;
}
table.data th,
table.data td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
    font-size: 12.5px;
}
table.data th {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    background: #f7f9fc;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.data tbody tr:hover td { background: #f5f8fc; }
table.data td strong { font-weight: 600; }
table.data .actions {
    text-align: right;
    white-space: nowrap;
}
table.data .actions a + a { margin-left: 8px; }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 11.5px; }

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
    padding: 1px 6px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.badge-ok { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.badge-warn { background: #fffaeb; color: #93370d; border-color: #fedf89; }
.badge-bad { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.badge-info { background: #eff4ff; color: #3538cd; border-color: #c7d7fe; }

.xml-viewer {
    margin: 0;
    max-height: 70vh;
    overflow: auto;
    padding: 12px 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.45;
    white-space: pre;
    tab-size: 2;
}

.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 14px 16px;
    max-width: 920px;
}
.form-section {
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border-soft);
}
.form-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.form-section-title {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-section-help {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 11.5px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
}
.field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #334155;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #c5cedd;
    background: #fff;
    border-radius: var(--radius);
    padding: 5px 8px;
    outline: none;
    font-size: 12.5px;
    line-height: 1.3;
    min-height: 28px;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.field textarea { min-height: 64px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #3b82c4;
    box-shadow: 0 0 0 2px rgba(59, 130, 196, 0.15);
    outline: none;
}
.field .error {
    color: var(--danger);
    font-size: 11px;
    margin-top: 3px;
}
.field .hint {
    margin: 3px 0 0;
    font-size: 11px;
    color: var(--muted);
}
.form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
}
.check-row input[type="checkbox"] {
    accent-color: var(--navy-mid);
    width: 13px;
    height: 13px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 10px;
}
.kv {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 4px 10px;
    margin: 0;
}
.kv dt {
    color: var(--muted);
    font-size: 11.5px;
    padding: 3px 0;
}
.kv dd {
    margin: 0;
    font-weight: 500;
    font-size: 12.5px;
    padding: 3px 0;
    word-break: break-word;
}

.list-row {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-soft);
}
.list-row:last-child { border-bottom: 0; }
.list-row strong { font-size: 12.5px; font-weight: 600; }

.pagination { margin-top: 10px; }
.pagination nav { display: flex; gap: 4px; flex-wrap: wrap; }
.pagination a,
.pagination span {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--navy);
}
.pagination a:hover { background: #f3f6fb; text-decoration: none; }
.pagination .active span {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.empty {
    padding: 16px 8px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

/* Login — matches booking hero / search panel */
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: var(--font);
    color: var(--text);
    background:
        linear-gradient(180deg, #b9e0f5 0%, #8fcceb 55%, #0066CC 100%);
    position: relative;
    overflow: hidden;
}
.login-body::before,
.login-body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.35;
}
.login-body::before {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    top: -60px;
    left: -40px;
}
.login-body::after {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(11, 47, 107, 0.2) 0%, transparent 70%);
    bottom: -80px;
    right: -40px;
}
.login-card {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    background: #0B1A2A;
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: 0 12px 32px rgba(7, 31, 72, 0.28);
    color: #fff;
    animation: rise .35s ease both;
}
.login-card h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 6px;
    color: #fff;
}
.login-card .lede {
    color: #c9d7ef;
    margin: 0 0 16px;
    line-height: 1.4;
    font-size: 12.5px;
}
.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 13px;
}
.login-card .field label {
    color: #d7e6ff;
}
.login-card .field label .req { color: #ffd84d; }
.login-card .field input {
    background: #fff;
    color: var(--text);
    border: 1px solid #c9d4e4;
}
.login-card .field .error {
    color: #ffb4a8;
}
.login-card .check-row {
    color: #d7e6ff;
    font-size: 12px;
}
.login-card .check-row input[type="checkbox"] {
    accent-color: var(--yellow);
}
.login-card .btn-primary {
    width: 100%;
    margin-top: 4px;
    padding: 7px 10px;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-grid,
    .detail-grid,
    .form-grid,
    .form-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav {
        position: relative;
        height: auto;
    }
    .admin-main { padding: 12px 12px 24px; }
}

