@font-face { font-family: Beiruti; src: url('/assets/Beiruti.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { font-family: Beiruti, system-ui, sans-serif; color: #152033; background: #4d4d50; font-size: 20px; --blue: #0f4ea6; --nav: #275fae; --sub: #3f71b7; --active: #07275b; --panel: #e8e9f0; --muted: #505c70; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
a { color: inherit; }
button, .button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #e8b945; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 2rem; line-height: 1.1; font-weight: 750; }
h2 { font-size: 1.45rem; line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 650; }
p { line-height: 1.5; }
.application { max-width: 1280px; min-height: 100vh; margin: 0 auto; background: #d7dae3; display: flex; flex-direction: column; }
.topbar { min-height: 104px; background: var(--blue); color: #fff; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #ffffff75; border-radius: 9px; font-size: 1.2rem; font-weight: 700; }
.brand strong { display: block; font-size: 1.45rem; line-height: 1.1; font-weight: 650; }
.brand-caption { display: block; font: 500 .6rem/1.4 system-ui, sans-serif; letter-spacing: .12em; margin-top: 6px; opacity: .8; }
.central-name { font-size: 1.2rem; font-weight: 650; }
.user-tools { display: flex; gap: 8px; align-items: center; }
.signed-in { max-width: 180px; text-align: right; margin-right: 10px; line-height: 1.15; }
.signed-in span { display: block; font-size: .75rem; color: #d8e5fb; }
.signed-in strong { font-weight: 650; font-size: 1rem; overflow-wrap: anywhere; }
.header-button { background: transparent; color: #fff; border: 1px solid #ffffff45; border-radius: 5px; padding: 8px 12px; min-height: 44px; white-space: nowrap; }
.header-button:hover { background: var(--active); }
.main-nav, .sub-nav { display: flex; align-items: stretch; padding: 0 20px; color: #fff; }
.main-nav { background: var(--nav); gap: 4px; }
.main-nav a { padding: 13px 24px; font-size: 1.15rem; font-weight: 500; text-decoration: none; min-height: 55px; display: flex; align-items: center; }
.main-nav a[aria-current=page] { background: var(--active); font-weight: 700; box-shadow: inset 0 -3px #9bbceb; }
.main-nav a:hover { background: var(--active); }
.sub-nav { background: var(--sub); min-height: 44px; padding-left: 30px; }
.sub-nav a { text-decoration: none; padding: 8px 14px; font-size: .95rem; background: #ffffff0d; }
.workspace { padding: 32px 28px; flex: 1; outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 26px; }
.eyebrow { font: 600 .65rem/1.5 system-ui, sans-serif; letter-spacing: .12em; color: var(--muted); margin-bottom: 7px; }
.today { font-size: .95rem; color: var(--muted); text-align: right; }
.overview-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.panel { background: var(--panel); border: 1px solid #b8bdcc; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 3px #16243a07; }
.panel-heading { padding: 22px 24px; border-bottom: 1px solid #c8ccda; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.panel-heading .eyebrow { font-size: .6rem; margin-bottom: 4px; }
.tag { font-size: .8rem; line-height: 1.2; border: 1px solid #aab9d1; border-radius: 5px; padding: 5px 9px; color: #34537f; background: #dce4f1; white-space: nowrap; }
.empty-state { padding: 30px 28px 34px; min-height: 306px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state p { max-width: 400px; color: var(--muted); margin-top: 9px; font-size: 1rem; }
.empty-state .availability { font-size: .85rem; margin-top: 14px; color: #5f6c82; }
.empty-icon { width: 56px; height: 56px; stroke: #5579ad; stroke-width: 1.6; margin-bottom: 16px; }
.empty-state .button { margin-top: 22px; }
.empty-state .text-link { margin-top: 20px; }
.empty-state.wide { min-height: 350px; padding: 60px 30px; }
.empty-state.wide p { max-width: 540px; }
.text-link { color: #164b92; text-underline-offset: 4px; font-weight: 600; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border-radius: 6px; border: 1px solid transparent; text-decoration: none; font-weight: 650; line-height: 1.2; }
.button.secondary { background: #f6f7fb; border-color: #aebace; color: #153e76; }
.button.secondary:hover { background: #e2e9f5; }
.button.primary { background: #0f4ea6; color: #fff; border-color: #0f4ea6; }
.button.primary:hover { background: #07275b; }
.app-footer { display: flex; justify-content: space-between; padding: 18px 28px; border-top: 1px solid #bfc4d0; color: #5b6577; font-size: .85rem; }
.account-grid { display: grid; grid-template-columns: 1fr 1.3fr; align-items: start; gap: 20px; }
.profile-list { margin: 0; padding: 10px 24px; }
.profile-list div { padding: 17px 0; border-bottom: 1px solid #c8ccda; }
.profile-list div:last-child { border: 0; }
.profile-list dt { color: var(--muted); font-size: .85rem; }
.profile-list dd { margin: 4px 0 0; font-weight: 650; overflow-wrap: anywhere; }
form { display: flex; flex-direction: column; gap: 9px; }
label { margin-top: 7px; font-weight: 600; }
input { min-height: 46px; width: 100%; padding: 8px 12px; border: 1px solid #98a7bd; border-radius: 5px; background: #fff; color: #152033; }
small { display: block; font-size: .8rem; line-height: 1.5; }
.password-form { padding: 20px 24px 26px; }
.password-form small { color: var(--muted); }
.password-form .button { align-self: flex-start; margin-top: 14px; }
.auth-screen { max-width: 480px; margin: 9vh auto 50px; padding: 0 20px; color: #fff; }
.auth-brand { font-weight: 750; font-size: 1.8rem; margin-bottom: 22px; }
.auth-brand span { display: block; font-size: 1rem; font-weight: 400; opacity: .8; }
#login-panel { background: var(--blue); border-radius: 12px; padding: 26px; }
#login-title { margin-bottom: 18px; }
#login-form small { color: #e0eafa; }
#login-button { min-height: 46px; margin-top: 14px; padding: 8px 16px; border: 1px solid #c4d3e8; border-radius: 5px; color: #153e76; background: #eef3fb; font-weight: 700; }
#setup-info { margin-bottom: 18px; }
#confirm-row label { display: block; margin-bottom: 9px; }
#confirm-row small { margin-top: 9px; }
.feedback { position: fixed; z-index: 10; bottom: 22px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 13px 22px; border: 1px solid #a8bddb; background: #07275b; color: #fff; box-shadow: 0 3px 16px #0003; border-radius: 8px; }
.feedback:empty { display: none; }
.skip-link { position: absolute; z-index: 20; left: 12px; top: -100px; padding: 12px; color: #fff; background: #07275b; }
.skip-link:focus { top: 12px; }
@media (max-width: 1050px) { .central-name { display: none; } .topbar { gap: 16px; } }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: 20px; gap: 20px; }
  .brand { flex: 1; }
  .user-tools { justify-content: flex-end; }
  .signed-in { display: none; }
  .main-nav { padding: 0 8px; gap: 0; flex-wrap: wrap; }
  .main-nav a { padding: 10px 16px; font-size: 1rem; min-height: 48px; }
  .sub-nav { padding-left: 10px; }
  .workspace { padding: 24px 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .today { text-align: left; }
  .overview-grid, .account-grid { grid-template-columns: 1fr; gap: 16px; }
  .empty-state { min-height: 265px; }
  .panel-heading { padding: 20px; }
  .app-footer { padding: 16px; }
}
@media (max-width: 420px) { .topbar { padding: 18px 16px; } .brand strong { font-size: 1.3rem; } .user-tools { width: 100%; } .main-nav a { padding: 10px 12px; } .auth-screen { margin-top: 5vh; } }

/* Quick bookings */
.editor-panel { margin-bottom: 22px; }
.tour-form { padding: 22px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label, .tour-filters label { display: block; margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.form-error { color: #98282f; font-weight: 600; }
.form-error:empty { display: none; }
select { width: 100%; min-height: 46px; padding: 8px 32px 8px 12px; font: inherit; color: #152033; background: #fff; border: 1px solid #98a7bd; border-radius: 5px; }
.tour-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; padding: 18px 24px; align-items: end; border-bottom: 1px solid #c8ccda; }
.tour-filters .button { margin-bottom: 0; }
.tour-filters > div, .form-grid > div { min-width: 0; }
input[type=date], input[type=datetime-local] { min-width: 0; max-width: 100%; }
.list-message { padding: 14px 24px; color: var(--muted); }
.list-message:empty { display: none; }
.tour-results { overflow-x: auto; }
.tour-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tour-table th { text-align: left; font-size: .85rem; padding: 12px 14px; background: #dce1eb; color: #34465f; border-bottom: 1px solid #bdc6d5; }
.tour-table td { padding: 16px 14px; vertical-align: top; border-bottom: 1px solid #ccd1dd; max-width: 260px; overflow-wrap: anywhere; }
.tour-table tr:last-child td { border-bottom: 0; }
.tour-table tbody tr:nth-child(even) { background: #ffffff38; }
.tour-table td:first-child { white-space: nowrap; font-weight: 650; }
.tour-row-actions .button { font-size: .85rem; padding: 7px 10px; margin: 0 4px 5px 0; min-height: 40px; }
.button.quiet-danger { background: transparent; color: #98282f; border-color: transparent; }
.button.quiet-danger:hover { background: #f0dce0; }
.button.danger { background: #992b34; color: #fff; }
.status-badge { justify-self: start; display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: .8rem; white-space: nowrap; }
.status-badge.planned { color: #164e3b; background: #d5e7dd; border: 1px solid #a9c9b9; }
.status-badge.cancelled { color: #793039; background: #eedce0; border: 1px solid #d2adb4; }
.pagination { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid #c8ccda; padding: 14px 24px; color: var(--muted); }
.pagination > div { display: flex; gap: 8px; }
.overview-tours { padding: 24px; min-height: 240px; }
.overview-tours > p { color: var(--muted); margin-bottom: 12px; }
.overview-tours h3 { margin-bottom: 12px; }
.overview-count { font-size: .9rem; }
.overview-tour { display: block; text-align: left; width: 100%; background: #ffffff50; color: #152033; border: 1px solid #bec9d9; border-radius: 6px; padding: 12px 14px; margin-top: 10px; }
.overview-tour:hover { background: #fff; }
.overview-tour strong, .overview-tour span { display: block; overflow-wrap: anywhere; }
.overview-tour span { color: var(--muted); font-size: .9rem; }
.panel-actions { padding: 0 24px 22px; }
dialog { max-width: min(560px, calc(100vw - 32px)); border: 1px solid #aebace; border-radius: 12px; padding: 28px; color: #152033; background: #e8e9f0; }
dialog::backdrop { background: #06152b88; }
dialog p { margin-top: 10px; overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; gap: 8px; }
  .tour-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; }
  .tour-form { padding: 18px; }
  .tour-table, .tour-table tbody, .tour-table tr, .tour-table td { display: block; }
  .tour-table thead { display: none; }
  .tour-table tr { padding: 12px 18px; border-bottom: 1px solid #b8c1d0; }
  .tour-table td { display: grid; grid-template-columns: 90px 1fr; gap: 12px; max-width: none; border: 0; padding: 5px 0; }
  .tour-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); }
  .tour-table td.tour-row-actions { display: flex; flex-wrap: wrap; padding-top: 10px; }
  .tour-row-actions::before { display: none; }
  .pagination { padding: 14px 18px; flex-wrap: wrap; }
}
