:root {
  --bg: #fff8f4;
  --surface: #ffffff;
  --surface-soft: #fff1eb;
  --text: #2a1e1b;
  --muted: #755f59;
  --primary: #b9385c;
  --primary-dark: #842440;
  --accent: #ef8a62;
  --line: #ead6ce;
  --success: #2f7d62;
  --shadow: 0 18px 50px rgba(91, 43, 48, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: radial-gradient(circle at top right, rgba(239,138,98,.18), transparent 34%), linear-gradient(180deg,#fffaf7 0%,var(--bg) 100%); min-height: 100vh; }
a { color: inherit; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(255,250,247,.88); border-bottom: 1px solid rgba(234,214,206,.9); }
.nav { width: min(1160px,calc(100% - 32px)); margin: 0 auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; letter-spacing: -.03em; font-size: 1.25rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg,var(--primary),var(--accent)); color: white; box-shadow: 0 8px 24px rgba(185,56,92,.28); }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--primary); }
.container { width: min(1160px,calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 72px 0 34px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--surface-soft); color: var(--primary-dark); font-weight: 800; font-size: .85rem; border: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.5rem,6vw,5.2rem); letter-spacing: -.06em; line-height: .98; margin: 18px 0 20px; max-width: 820px; }
.hero p { font-size: 1.13rem; line-height: 1.75; color: var(--muted); max-width: 700px; }
.hero-actions,.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg,var(--primary),#d95d75); box-shadow: 0 12px 28px rgba(185,56,92,.28); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-small { padding: 9px 12px; font-size: .9rem; border-radius: 11px; }
.hero-card { background: linear-gradient(155deg,#fff,#fff3ed); border: 1px solid var(--line); border-radius: 32px; padding: 26px; box-shadow: var(--shadow); }
.mini-label,.hero-card .mini-label { color: var(--muted); font-weight: 750; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-card h3 { font-size: 1.7rem; margin: 10px 0; }
.hero-card ul { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.ad-slot { min-height: 112px; border: 1px dashed #caaea4; border-radius: 18px; background: rgba(255,255,255,.72); display: grid; place-items: center; color: #96786e; text-align: center; padding: 18px; margin: 16px 0 34px; }
.ad-slot strong { display: block; color: #6e5148; margin-bottom: 4px; }
.tool-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; margin: 30px 0 46px; }
.tool-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tool-tab { border: 0; background: #fffaf7; padding: 18px; font-weight: 850; color: var(--muted); }
.tool-tab.active { background: white; color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); }
.tool-panel { display: none; padding: 28px; }
.tool-panel.active { display: block; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.panel-heading h2 { margin: 0 0 8px; font-size: clamp(1.7rem,4vw,2.6rem); letter-spacing: -.04em; }
.panel-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 800; font-size: .92rem; }
.field select,.field input,.field textarea { width: 100%; border: 1px solid var(--line); background: #fffdfa; color: var(--text); border-radius: 13px; padding: 12px 13px; outline: none; }
.field select:focus,.field input:focus,.field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(185,56,92,.12); }
.field-full { grid-column: 1 / -1; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; background: #fffdfa; color: var(--muted); font-weight: 750; }
.check-pill input:checked + span { background: var(--surface-soft); border-color: rgba(185,56,92,.35); color: var(--primary-dark); }
.result-card { margin-top: 24px; border: 1px solid rgba(185,56,92,.22); background: linear-gradient(145deg,#fff7f3,#fff); border-radius: 22px; padding: 24px; min-height: 180px; }
.result-card.empty { display: grid; place-items: center; text-align: center; color: var(--muted); border-style: dashed; }
.result-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.result-card h3 { font-size: 1.7rem; margin: 0 0 8px; }
.result-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.badge { border-radius: 999px; padding: 7px 10px; font-size: .8rem; font-weight: 800; background: white; border: 1px solid var(--line); color: var(--muted); }
.favorite-button { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 9px 11px; font-size: 1.15rem; }
.favorite-button.saved { color: #b9385c; background: #fff0f4; }
.section { padding: 48px 0; }
.section-header { max-width: 760px; margin-bottom: 24px; }
.section-header h2 { font-size: clamp(2rem,4vw,3.3rem); margin: 0 0 12px; letter-spacing: -.04em; }
.section-header p { color: var(--muted); line-height: 1.7; }
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.info-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.info-card h3 { margin: 10px 0 8px; }
.info-card p { color: var(--muted); line-height: 1.65; margin: 0; }
.icon-bubble { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-soft); }
.favorites-list { display: grid; gap: 10px; }
.favorite-item { display: flex; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; }
.favorite-item strong { display: block; }
.favorite-item span { color: var(--muted); font-size: .88rem; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 50px; color: var(--muted); margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.footer-links a { text-decoration: none; font-weight: 700; }
.page-shell { padding: 52px 0; }
.page-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.page-card h1 { margin-top: 0; font-size: clamp(2rem,5vw,3.5rem); letter-spacing: -.045em; }
.page-card h2 { margin-top: 30px; }
.page-card p,.page-card li { color: var(--muted); line-height: 1.75; }
.notice { padding: 13px 14px; background: #fff5df; color: #72540d; border: 1px solid #efdcae; border-radius: 13px; }
.success { padding: 13px 14px; background: #ecf8f3; color: var(--success); border: 1px solid #bfe7d7; border-radius: 13px; }
.error { padding: 13px 14px; background: #fff0f1; color: #9a2d3a; border: 1px solid #efc2c7; border-radius: 13px; }
.hidden { display: none !important; }
.announcement { border-radius: 0; text-align: center; position: relative; z-index: 40; }
.going-out-options { margin-top: 22px; background: linear-gradient(145deg,#fff7f3,#fff); border: 1px solid rgba(185,56,92,.22); border-radius: 20px; padding: 22px; }
.going-out-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.going-out-heading h3 { margin: 5px 0 6px; font-size: 1.4rem; }
.going-out-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.local-form-grid { grid-template-columns: repeat(4,1fr); }
.local-status { margin-top: 18px; }
.local-source-note { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 18px 0 0; }
.event-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 18px; }
.event-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #fffdfa; overflow: hidden; min-height: 100%; }
.event-card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-soft); }
.event-card-placeholder { display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.event-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.event-card h3 { margin: 0 0 12px; font-size: 1.2rem; line-height: 1.25; }
.event-card p { color: var(--muted); margin: 0 0 9px; line-height: 1.5; }
.event-card .actions-row { margin-top: auto; padding-top: 8px; }
.fallback-search-card { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 16px; padding: 18px; background: #fffdfa; }
.fallback-search-card p { color: var(--muted); margin-bottom: 0; }
.admin-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.admin-sidebar { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fffdfa; height: fit-content; }
.admin-sidebar button { width: 100%; text-align: left; border: 0; border-radius: 11px; padding: 11px 12px; background: transparent; font-weight: 800; color: var(--muted); }
.admin-sidebar button.active { background: var(--surface-soft); color: var(--primary-dark); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th,td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } .form-grid { grid-template-columns: 1fr 1fr; } .local-form-grid { grid-template-columns: repeat(2,1fr); } .card-grid { grid-template-columns: 1fr 1fr; } .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .nav-links a:not(.keep-mobile) { display: none; } .hero h1 { font-size: 3.1rem; } .tool-panel { padding: 20px; } .form-grid,.local-form-grid,.event-grid,.card-grid,.footer-grid { grid-template-columns: 1fr; } .footer-links { justify-content: flex-start; } .panel-heading,.result-top { flex-direction: column; } .tool-tab { padding: 15px 8px; font-size: .92rem; } .going-out-options { padding: 18px; } }
