:root {
    --hl-ink: #10283a;
    --hl-muted: #587083;
    --hl-line: #d7e2ea;
    --hl-card: #ffffff;
    --hl-bg: #f2f7fa;
    --hl-accent: #e66a12;
    --hl-accent-dark: #8b2f08;
    --hl-accent-soft: #fff0df;
}

.hl-theme-holiday {
    --hl-accent: #b3132b;
    --hl-accent-dark: #07583c;
    --hl-accent-soft: #fff0f1;
}

.hl-page {
    max-width: 1480px;
    margin: 0 auto;
    padding: 18px 18px 44px;
    color: var(--hl-ink);
    background: var(--hl-bg);
    font-family: Arial, Helvetica, sans-serif;
}

.hl-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 24px 28px;
    overflow: hidden;
    color: #fff;
    border-radius: 18px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 24%),
        linear-gradient(135deg, var(--hl-accent-dark), var(--hl-accent));
    box-shadow: 0 12px 34px rgba(13, 52, 76, .18);
}

.hl-hero-small { padding-block: 18px; }
.hl-hero-icon { font-size: clamp(48px, 7vw, 82px); filter: drop-shadow(0 5px 8px rgba(0,0,0,.25)); }
.hl-hero h1 { margin: 2px 0 6px; color: #fff; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.05; }
.hl-hero p { margin: 0; color: rgba(255,255,255,.9); font-size: 16px; }
.hl-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px !important; font-weight: 800; }

.hl-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 18px;
    color: #fff !important;
    border: 0;
    border-radius: 10px;
    background: var(--hl-accent-dark);
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}
.hl-button:hover { filter: brightness(1.08); }
.hl-button:disabled { opacity: .55; cursor: not-allowed; }
.hl-button-bright { color: var(--hl-accent-dark) !important; background: #fff; white-space: nowrap; }
.hl-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.hl-toolbar,
.hl-admin-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 12px;
    padding: 12px 16px;
    color: var(--hl-muted);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    background: #fff;
}
.hl-season-help { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--hl-line); border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(15, 55, 79, .06); }
.hl-season-help > summary { padding: 14px 17px; color: var(--hl-accent-dark); background: var(--hl-accent-soft); cursor: pointer; font-size: 15px; font-weight: 900; }
.hl-season-help-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px; }
.hl-season-help-body > div { min-width: 0; }
.hl-season-help-body h2 { margin: 0 0 7px; color: var(--hl-ink); font-size: 16px; }
.hl-season-help-body p { margin: 6px 0 9px; color: var(--hl-muted); line-height: 1.45; }
.hl-season-help code { display: block; padding: 9px 10px; overflow-wrap: anywhere; color: #fff; border-radius: 7px; background: #18384c; font-family: Consolas, Monaco, monospace; font-size: 12px; }
.hl-season-label { display: block; margin-bottom: 4px; color: var(--hl-muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; }
.hl-season-help-body > div:first-child > strong { display: block; margin-bottom: 10px; color: var(--hl-accent-dark); font-size: 18px; }
.hl-season-note { grid-column: 1 / -1; padding: 12px 14px; color: #385365; border-left: 4px solid var(--hl-accent); background: #f6fafc; line-height: 1.45; }
.hl-toolbar strong, .hl-admin-summary strong { color: var(--hl-accent-dark); }

.hl-map-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(300px, .9fr); gap: 16px; }
.hl-map-card, .hl-list-card, .hl-info-grid article, .hl-form, .hl-login-card, .hl-admin-card {
    border: 1px solid var(--hl-line);
    border-radius: 16px;
    background: var(--hl-card);
    box-shadow: 0 7px 22px rgba(15, 55, 79, .08);
}
.hl-map-card { overflow: hidden; }
#holidayLightsMap { width: 100%; height: 590px; background: #dbe7ed; }
.hl-list-card { min-height: 590px; max-height: 590px; overflow: hidden; }
.hl-list-card > h2 { margin: 0; padding: 16px 18px; color: #fff; background: var(--hl-accent-dark); font-size: 18px; }
.hl-display-list { max-height: 535px; overflow-y: auto; padding: 10px; }
.hl-display-card { display: grid; grid-template-columns: 58px 1fr; gap: 10px; width: 100%; padding: 12px; color: var(--hl-ink); border: 0; border-bottom: 1px solid var(--hl-line); background: transparent; text-align: left; cursor: pointer; }
.hl-display-card:hover { background: var(--hl-accent-soft); }
.hl-display-card strong, .hl-display-card small { display: block; }
.hl-display-card small { margin-top: 4px; color: var(--hl-muted); }
.hl-list-marker { display: grid; place-items: center; width: 52px; min-height: 42px; font-size: 26px; }
.hl-list-photo { display: block; width: 52px; height: 42px; object-fit: cover; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 2px 7px rgba(0,0,0,.22); }
.hl-empty { padding: 42px 24px; color: var(--hl-muted); text-align: center; }
.hl-empty > span { display: block; margin-bottom: 12px; font-size: 54px; }
.hl-empty strong { display: block; color: var(--hl-ink); font-size: 18px; }

.hl-map-marker { background: transparent; border: 0; }
.hl-map-marker span { display: grid; place-items: center; width: 38px; height: 38px; font-size: 25px; border: 3px solid #fff; border-radius: 50% 50% 50% 10%; background: var(--hl-accent-dark); box-shadow: 0 4px 11px rgba(0,0,0,.35); transform: rotate(-45deg); }
.hl-map-marker i { display: block; font-style: normal; transform: rotate(45deg); }
.hl-popup h3 { margin: 0 0 8px; color: var(--hl-accent-dark); font-size: 18px; }
.hl-popup-photo { display: block; width: 100%; max-height: 185px; margin: 0 0 10px; object-fit: cover; border-radius: 8px; }
.hl-popup p { margin: 7px 0; line-height: 1.35; }
.hl-popup-note { color: var(--hl-muted); font-size: 12px; }
.hl-popup-directions { display: inline-block; margin-top: 5px; padding: 7px 10px; color: #fff !important; border-radius: 7px; background: var(--hl-accent-dark); text-decoration: none !important; font-weight: 700; }

.hl-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.hl-info-grid article { padding: 20px; }
.hl-info-grid h2 { margin-top: 0; color: var(--hl-accent-dark); font-size: 20px; }

.hl-notice { margin: 18px 0; padding: 14px 17px; border: 1px solid #e2b661; border-radius: 12px; background: #fff8df; }
.hl-notice-error { color: #7b1717; border-color: #e6a1a1; background: #fff0f0; }
.hl-notice-success { color: #145a3b; border-color: #88caaa; background: #effbf4; }
.hl-notice ul { margin-bottom: 0; }
.hl-success-panel { max-width: 760px; margin: 28px auto; padding: 40px; border: 1px solid #85c9a5; border-radius: 16px; background: #f2fff7; text-align: center; }
.hl-success-panel > div { margin: auto; display: grid; place-items: center; width: 66px; height: 66px; color: #fff; border-radius: 50%; background: #168553; font-size: 38px; }

.hl-form { max-width: 980px; margin: 20px auto; padding: 22px; }
.hl-form-section { padding: 6px 0 22px; border-bottom: 1px solid var(--hl-line); }
.hl-form-section:last-of-type { border-bottom: 0; }
.hl-form-section h2 { margin-bottom: 6px; color: var(--hl-accent-dark); }
.hl-form-section > p { margin-top: 0; color: var(--hl-muted); }
.hl-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hl-field { display: grid; gap: 6px; color: var(--hl-ink); font-weight: 700; }
.hl-field-wide { grid-column: 1 / -1; }
.hl-field input, .hl-field textarea, .hl-field select { box-sizing: border-box; width: 100%; padding: 11px 12px; color: var(--hl-ink); border: 1px solid #b9cbd7; border-radius: 8px; background: #fff; font: inherit; font-weight: 400; }
.hl-field input:focus, .hl-field textarea:focus, .hl-field select:focus { outline: 3px solid color-mix(in srgb, var(--hl-accent) 25%, transparent); border-color: var(--hl-accent); }
.hl-field small { color: var(--hl-muted); font-weight: 400; }
.hl-photo-field { padding: 14px; border: 1px dashed #aebfca; border-radius: 10px; background: #f7fafc; }
.hl-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; color: var(--hl-ink); }
.hl-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.hl-consent { padding: 14px; border-radius: 10px; background: var(--hl-accent-soft); font-weight: 700; }
.hl-submit-button { width: 100%; margin-top: 20px; font-size: 17px; }
.hl-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
#locationPicker { height: 390px; border: 1px solid var(--hl-line); border-radius: 12px; }
.hl-marker-status { margin: 10px 0; color: #8a3b19; font-weight: 700; }
.hl-marker-status.is-set { color: #14754b; }

.hl-login-card { max-width: 520px; margin: 28px auto; padding: 24px; }
.hl-login-card h2 { margin-top: 0; color: var(--hl-accent-dark); }
.hl-login-card .hl-field { margin-bottom: 14px; }
.hl-inline-form { margin: 0; }
.hl-admin-list { display: grid; gap: 14px; }
.hl-admin-card { overflow: hidden; border-left: 6px solid #8193a0; }
.hl-admin-card.status-pending { border-left-color: #e39a21; }
.hl-admin-card.status-approved { border-left-color: #168553; }
.hl-admin-card.status-hidden { border-left-color: #7b45a8; }
.hl-admin-card.status-archived { opacity: .75; }
.hl-admin-card > header { display: flex; justify-content: space-between; gap: 20px; padding: 18px; background: #f8fbfd; }
.hl-admin-card h2 { margin: 5px 0; font-size: 21px; }
.hl-admin-card p { margin: 0; color: var(--hl-muted); }
.hl-status { display: inline-block; padding: 3px 8px; color: #fff; border-radius: 20px; background: #738795; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.status-approved .hl-status { background: #168553; }
.status-pending .hl-status { background: #c87809; }
.hl-admin-actions form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.hl-action { padding: 7px 10px; color: var(--hl-ink); border: 1px solid #b7c8d2; border-radius: 7px; background: #fff; cursor: pointer; font-weight: 700; }
.hl-action.approve { color: #fff; border-color: #168553; background: #168553; }
.hl-action.hide, .hl-action.archive { color: #7b1717; }
.hl-admin-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 12px 18px; color: var(--hl-muted); font-size: 13px; }
.hl-admin-photo { display: flex; gap: 14px; align-items: center; padding: 0 18px 14px; color: var(--hl-muted); font-size: 13px; }
.hl-admin-photo img { display: block; width: 150px; height: 96px; object-fit: cover; border: 1px solid var(--hl-line); border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.hl-remove-photo { padding: 11px; color: #7b1717; border: 1px solid #e6b0b0; border-radius: 8px; background: #fff5f5; }
.hl-admin-card details { border-top: 1px solid var(--hl-line); }
.hl-admin-card summary { padding: 12px 18px; cursor: pointer; font-weight: 800; }
.hl-admin-edit { padding: 4px 18px 18px; }
.hl-admin-edit .hl-button { margin-top: 15px; }
.hl-admin-empty { border: 1px solid var(--hl-line); border-radius: 14px; background: #fff; }

@media (max-width: 900px) {
    .hl-map-layout, .hl-info-grid { grid-template-columns: 1fr; }
    .hl-season-help-body { grid-template-columns: 1fr; }
    .hl-season-note { grid-column: auto; }
    .hl-list-card { min-height: 0; max-height: none; }
    .hl-display-list { max-height: 430px; }
    #holidayLightsMap { height: 500px; }
}

@media (max-width: 650px) {
    .hl-page { padding: 10px 10px 32px; }
    .hl-hero { grid-template-columns: auto 1fr; padding: 18px; }
    .hl-hero-actions { grid-column: 1 / -1; justify-content: stretch; }
    .hl-hero-actions .hl-button { flex: 1 1 190px; }
    .hl-hero-icon { font-size: 48px; }
    .hl-field-grid { grid-template-columns: 1fr; }
    .hl-field-wide { grid-column: auto; }
    .hl-toolbar, .hl-admin-summary, .hl-admin-card > header { flex-direction: column; }
    .hl-admin-actions form { justify-content: flex-start; }
    #holidayLightsMap, #locationPicker { height: 430px; }
}
