:root {
    --navy: #062c55;
    --blue: #07579a;
    --bright-blue: #0875c1;
    --teal: #00a6a6;
    --gold: #f6b923;
    --ink: #10263d;
    --muted: #617286;
    --line: #dce6ee;
    --wash: #f3f8fb;
    --white: #fff;
    --danger: #a13f3f;
    --shadow: 0 22px 60px rgba(6, 44, 85, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.muted { color: var(--muted); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
    color: white; background: linear-gradient(145deg, var(--blue), var(--navy));
    border-bottom: 4px solid var(--gold); box-shadow: 0 8px 20px rgba(7, 87, 154, .2);
    font: 800 15px/1 Georgia, serif; letter-spacing: .06em;
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { color: var(--navy); font-size: 15px; }
.brand-copy small { color: var(--muted); font-size: 12px; }
.site-header, .dashboard-header {
    min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.public-nav, .dashboard-nav, .dashboard-account { display: flex; align-items: center; gap: 20px; }
.public-nav > a:not(.button), .dashboard-nav > a { color: #41576c; font-size: 13px; font-weight: 700; }
.public-nav > a:hover, .dashboard-nav > a:hover { color: var(--blue); }
.dashboard-header-shell { background: white; border-bottom: 1px solid var(--line); }
.dashboard-header { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.dashboard-account { gap: 10px; }
.avatar { display: grid; place-items: center; width: 39px; height: 39px; color: white; background: linear-gradient(145deg, var(--teal), var(--blue)); border-radius: 11px; font-size: 12px; font-weight: 850; }
.account-copy { display: grid; gap: 2px; margin-right: 4px; }
.account-copy strong { font-size: 12px; }
.account-copy small { color: var(--muted); font-size: 12px; letter-spacing: .08em; }

.button {
    min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 0 22px; border: 1px solid transparent; border-radius: 10px; font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.button-small { min-height: 39px; padding: 0 16px; border-radius: 9px; font-size: 12px; }
.button-primary { color: white; background: linear-gradient(135deg, var(--bright-blue), var(--blue)); box-shadow: 0 10px 24px rgba(7, 87, 154, .2); }
.button-ghost { color: var(--blue); background: white; border-color: #cbdce8; }
.button-light { color: var(--navy); background: white; }
.button-danger { color: var(--danger); background: white; border-color: #e7bcbc; }
.text-link { color: var(--blue); font-weight: 750; }
.inline-form { display: inline; margin: 0; }

.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 13px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #8ee2e0; }
.hero { min-height: 650px; display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 75px; padding-block: 60px 85px; }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(52px, 5.4vw, 76px); line-height: .99; letter-spacing: -.055em; }
.hero h1 span { display: block; color: var(--bright-blue); }
.hero-lede { max-width: 580px; margin: 27px 0 31px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; color: #63788b; font-size: 12px; font-weight: 650; }
.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; inset: 20px -30px 0 15px; z-index: -1; border-radius: 48% 52% 45% 55%; background: linear-gradient(145deg, #e3f5f7, #e8f2fb); transform: rotate(-5deg); }
.booking-preview { width: min(380px, 85%); padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.preview-image { position: relative; height: 190px; overflow: hidden; border-radius: 16px; background: linear-gradient(#cae7f2 0 58%, #c8ae87 58%); }
.preview-image::before { content: ""; position: absolute; inset: 16px 18px 75px; background: linear-gradient(135deg, #dff4fa, #82c1dc); border: 8px solid #f4f0e8; }
.preview-image::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 28px; height: 26px; border-radius: 50%; background: #f4e0b5; border-bottom: 7px solid #825a35; }
.status-pill, .code-pill { display: inline-flex; width: max-content; padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.status-pill { color: #14705e; background: #e3f7f0; }
.code-pill { color: var(--blue); background: #e9f3f9; }
.booking-preview h2 { margin: 17px 0 6px; color: var(--navy); font-size: 20px; }
.booking-preview p { margin: 0; color: var(--muted); font-size: 12px; }
.preview-date { display: flex; justify-content: space-between; margin-top: 17px; padding: 13px; border-radius: 11px; background: var(--wash); font-size: 12px; font-weight: 750; }

.feature-section { padding: 95px 0; background: var(--wash); }
.section-heading { max-width: 680px; margin: 0 auto 45px; text-align: center; }
.section-heading h2, .facility-strip h2, .cta-section h2 { margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 47px); line-height: 1.1; letter-spacing: -.04em; }
.section-heading > p:last-child { color: var(--muted); }
.feature-grid, .facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .facility-card, .panel {
    padding: 28px; background: white; border: 1px solid #e0e9ef; border-radius: 16px; box-shadow: 0 10px 30px rgba(6, 44, 85, .05);
}
.feature-card h3, .facility-card h3, .panel h2, .panel h3 { color: var(--navy); }
.feature-card p, .facility-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.feature-number { color: #dbe7ee; font-size: 36px; font-weight: 900; }
.facility-strip { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; align-items: center; padding-block: 95px; }
.facility-tags { display: flex; flex-wrap: wrap; gap: 11px; }
.facility-tags span, .facility-tags a { padding: 14px 18px; color: var(--blue); background: #edf6fb; border: 1px solid #d8eaf4; border-radius: 10px; font-size: 12px; font-weight: 750; }
.cta-section { color: white; background: linear-gradient(120deg, var(--navy), var(--blue)); }
.cta-inner { min-height: 250px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-section h2 { color: white; }
.site-footer { min-height: 110px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(370px, .85fr) minmax(520px, 1.15fr); }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 45px 55px; color: white; background: linear-gradient(150deg, #05294d 0%, #075b96 65%, #008c9d 120%); }
.auth-story .brand-mark { color: var(--navy); background: white; }
.auth-story .brand-copy strong { color: white; }
.auth-story .brand-copy small { color: #b9d6e8; }
.auth-story-copy { position: relative; z-index: 2; }
.auth-story-copy h2 { margin: 0; font-size: clamp(45px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.auth-story-copy > p:last-child { max-width: 430px; color: #c7deeb; line-height: 1.7; }
.auth-quote { color: #b8d5e6; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 20px; font-size: 12px; }
.auth-panel { display: grid; place-items: center; padding: 55px 38px; background: #fbfdfe; }
.auth-card { width: min(470px, 100%); }
.auth-card h1 { margin: 0; color: var(--navy); font-size: clamp(36px, 4vw, 49px); letter-spacing: -.045em; }
.auth-description { margin: 14px 0 30px; color: var(--muted); line-height: 1.6; }
.auth-form, .settings-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: grid; gap: 7px; color: #294258; font-size: 13px; font-weight: 750; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: white; border: 1px solid #cedce6; border-radius: 9px; outline: 0;
}
.form-field textarea { min-height: 92px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--bright-blue); box-shadow: 0 0 0 4px rgba(8, 117, 193, .1); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 15px; color: #3e5669; font-size: 12px; }
.checkbox-row label { display: flex; align-items: center; gap: 6px; }
.auth-submit { width: 100%; }
.auth-switch { margin: 2px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch a { color: var(--blue); font-weight: 800; }
.dev-quick-login { margin-top: 24px; padding: 16px; border: 1px dashed #9ab8cc; border-radius: 12px; background: #f1f7fa; }
.dev-quick-login-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dev-quick-login-heading span { padding: 4px 7px; color: #765200; background: #fff0bd; border-radius: 5px; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.dev-quick-login-heading small { color: var(--muted); font-size: 13px; }
.dev-quick-login-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dev-quick-login-actions form { min-width: 0; }
.dev-quick-login-actions button { width: 100%; padding: 11px 12px; color: var(--navy); text-align: left; background: white; border: 1px solid #cbdce8; border-radius: 9px; }
.dev-quick-login-actions button:hover { border-color: var(--bright-blue); box-shadow: 0 6px 16px rgba(7, 87, 154, .1); }
.dev-quick-login-actions strong, .dev-quick-login-actions small { display: block; overflow-wrap: anywhere; }
.dev-quick-login-actions small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.message { margin: 0 0 16px; padding: 12px 14px; border: 1px solid; border-radius: 9px; font-size: 12px; }
.message-error { color: #922f2f; background: #fff1f1; border-color: #efc5c5; }
.message-success { color: #12614e; background: #e8f8f2; border-color: #bce9da; }

.app-shell { min-height: 100vh; background: #f3f7fa; }
.page-main { width: min(1180px, calc(100% - 48px)); margin-inline: auto; padding: 45px 0 75px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 45px); letter-spacing: -.045em; }
.page-heading p:last-child { margin: 8px 0 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { display: flex; gap: 14px; align-items: center; padding: 21px; background: white; border: 1px solid #e0e9ef; border-radius: 14px; }
.stat-icon { display: grid; place-items: center; width: 45px; height: 45px; color: var(--blue); background: #e8f3fa; border-radius: 12px; font-weight: 850; }
.stat-card strong { display: block; color: var(--navy); font-size: 21px; }
.stat-card small { color: var(--muted); font-size: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card { min-height: 150px; display: grid; align-content: space-between; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.quick-card h3 { margin: 0; color: var(--navy); }
.quick-card p { color: var(--muted); font-size: 12px; }

.catalogue-heading { max-width: 720px; margin-bottom: 35px; }
.catalogue-heading h1 { margin: 0; color: var(--navy); font-size: clamp(42px, 6vw, 65px); letter-spacing: -.055em; }
.catalogue-heading > p:last-child { color: var(--muted); line-height: 1.6; }
.facility-card { display: grid; gap: 12px; }
.facility-card-top, .facility-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.facility-card-top > span:last-child { color: #278072; font-size: 12px; font-weight: 750; }
.facility-card h3 { margin: 0; font-size: 18px; }
.search-form { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 13px; margin-bottom: 22px; }
.search-form .search-wide { grid-column: span 2; }
.search-actions, .page-actions, .detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.search-actions { align-self: end; }
.favorite-mark { color: #bd7b00; font-size: 17px; line-height: 1; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.tag-list > span, .tag-removable {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px;
    color: #31546c; background: #edf5f9; border: 1px solid #d5e5ef; border-radius: 99px;
    font-size: 12px; font-weight: 750;
}
.tag-removable button { padding: 0; color: var(--danger); background: none; border: 0; font-weight: 900; }
.facility-card dl { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 0; padding-top: 12px; border-top: 1px solid #e8eef2; }
.facility-card dt { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.facility-card dd { margin: 2px 0 0; font-size: 12px; font-weight: 700; }
.facility-detail-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; margin-bottom: 20px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.detail-meta span { padding: 9px 12px; background: var(--wash); border-radius: 8px; color: #40596d; font-size: 13px; }
.detail-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; }
.catalog-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 18px 0; }
.resource-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.resource-list > * { display: flex; justify-content: space-between; gap: 12px; padding: 10px; background: var(--wash); border-radius: 8px; font-size: 13px; }
.price-display { align-self: start; padding: 18px 22px; color: white; background: linear-gradient(135deg, var(--bright-blue), var(--navy)); border-radius: 13px; text-align: right; }
.price-display strong { display: block; font-size: 24px; }
.price-display small { color: #c9e1ef; }
.availability-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 18px; }
.schedule-note { padding: 12px 14px; color: #355268; background: #edf5f9; border-radius: 9px; font-size: 12px; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 20px; }
.slot-option input { position: absolute; opacity: 0; pointer-events: none; }
.slot-option span { display: block; padding: 10px 13px; color: var(--blue); background: white; border: 1px solid #bad2e1; border-radius: 8px; font-size: 12px; font-weight: 750; cursor: pointer; }
.slot-option input:checked + span { color: white; background: var(--blue); border-color: var(--blue); }
.booking-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; }
.booking-steps > * { padding: 10px 12px; color: var(--muted); background: #eaf0f4; border-radius: 8px; font-size: 13px; text-align: center; }
.booking-steps .active { color: white; background: var(--blue); }
.reservation-banner { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; padding: 15px 18px; color: #164f43; background: #e1f5ef; border: 1px solid #a8decf; border-radius: 11px; }
.reservation-banner div { display: grid; gap: 3px; }
.reservation-banner span { font-size: 13px; }
.hold-countdown { white-space: nowrap; color: var(--navy); }
.resource-choice { display: grid; grid-template-columns: minmax(160px, 1fr) auto 120px; gap: 14px; align-items: end; padding: 13px 0; border-bottom: 1px solid var(--line); }
.resource-choice > div { display: grid; gap: 3px; }
.resource-choice small { color: var(--muted); }
.compact-quantity input { max-width: 110px; }

.booking-list { display: grid; gap: 11px; }
.booking-row { display: flex; justify-content: space-between; gap: 22px; padding: 20px 22px; background: white; border: 1px solid #dfe8ee; border-radius: 13px; }
.booking-row h3 { margin: 7px 0 4px; color: var(--navy); }
.booking-row p { margin: 0; color: var(--muted); font-size: 13px; }
.booking-side { display: flex; align-items: center; gap: 13px; }
.booking-side strong { color: var(--navy); }

.admin-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
.admin-sidebar { align-self: start; display: grid; gap: 5px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.admin-sidebar a { display: grid; gap: 3px; padding: 12px; border-radius: 8px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #eaf3f8; }
.admin-sidebar strong { color: var(--navy); font-size: 12px; }
.admin-sidebar span { color: var(--muted); font-size: 12px; }
.admin-content { display: grid; gap: 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.compact-form { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); align-items: end; gap: 10px; }
.compact-form .form-field-wide { grid-column: span 2; }
.media-admin-list { display: grid; gap: 9px; margin-top: 14px; }
.media-admin-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px; background: var(--wash); border-radius: 8px; font-size: 13px; }
.catalog-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.definition-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.definition-create { display: grid; gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.schedule-list { display: grid; gap: 7px; margin-bottom: 17px; }
.schedule-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px; background: var(--wash); border-radius: 8px; font-size: 12px; }
.schedule-item strong { color: var(--navy); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #e4ebf0; font-size: 13px; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
td small { display: block; margin-top: 3px; color: var(--muted); }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.table-actions button { padding: 7px 9px; color: var(--blue); background: #eef5f9; border: 0; border-radius: 6px; font-size: 12px; font-weight: 750; }
.site-announcement { margin-top: 18px; padding: 12px 16px; color: var(--navy); background: #fff5d4; border: 1px solid #f1d982; border-radius: 10px; font-size: 12px; font-weight: 700; }
.notification-list { display: grid; gap: 12px; }
.notification-item { display: flex; justify-content: space-between; gap: 24px; }
.notification-item.unread { border-left: 4px solid var(--teal); }
.notification-item h2 { margin: 0 0 8px; }
.notification-item small { color: var(--muted); }
.content-copy { white-space: pre-line; line-height: 1.65; }
.stack-actions { display: grid; align-content: start; gap: 8px; min-width: max-content; }
.narrow-panel { width: min(760px, 100%); }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-copy { display: grid; justify-items: center; }
    .hero-visual { min-height: 440px; }
    .feature-grid, .facility-grid { grid-template-columns: 1fr 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-story { min-height: 285px; }
    .auth-quote { display: none; }
    .availability-layout, .admin-layout, .catalog-admin-grid { grid-template-columns: 1fr; }
    .search-form { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
    .admin-sidebar { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
    .container, .page-main, .dashboard-header { width: min(100% - 30px, 1180px); }
    .public-nav > a:not(.button), .dashboard-nav { display: none; }
    .brand-copy small, .account-copy { display: none; }
    .hero h1 { font-size: 47px; }
    .feature-grid, .facility-grid, .stat-grid, .quick-grid, .admin-grid, .field-row, .search-form, .compact-form, .catalog-detail-grid, .resource-choice { grid-template-columns: 1fr; }
    .reservation-banner { align-items: flex-start; flex-direction: column; }
    .search-form .search-wide, .compact-form .form-field-wide { grid-column: auto; }
    .facility-strip, .facility-detail-head { grid-template-columns: 1fr; }
    .cta-inner, .page-heading, .booking-row, .booking-side, .notification-item { align-items: flex-start; flex-direction: column; }
    .auth-story { min-height: 230px; padding: 28px 24px; }
    .auth-story-copy h2 { font-size: 37px; }
    .auth-story-copy > p { display: none; }
    .auth-panel { padding: 45px 21px; }
    .admin-sidebar { grid-template-columns: 1fr; }
}
.progress-track { width: 100%; height: .65rem; overflow: hidden; border-radius: 999px; background: #dce4ec; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width .15s ease; }
.notification-count {
    display: inline-flex;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .32rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}
.pre-wrap { white-space: pre-wrap; }
