:root {
  --radius: 8px;
  --background: #fff;
  --foreground: #1f1f1f;
  --card: #fff;
  --primary: #c8102e;
  --primary-dark: #a9161b;
  --secondary: #f5f5f5;
  --muted: #f3f3f3;
  --muted-foreground: #6f6f6f;
  --border: #e3e3e3;
  --topbar: #161616;
  --topbar-foreground: #f3f3f3;
  --search-panel: #f7f7f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: Montserrat, Inter, system-ui, sans-serif; font-weight: 800; margin: 0; }
.container { width: min(100% - 32px, 1280px); margin: 0 auto; }
.topbar { background: var(--topbar); color: var(--topbar-foreground); font-size: 12px; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 8px 0; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.86); }
.topbar a:hover { color: var(--primary); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.langs { display: flex; gap: 12px; align-items: center; }
.langs a { opacity: .72; }
.langs a.active, .langs a:hover { opacity: 1; font-weight: 700; }
.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 16px 0; }
.logo img { height: 32px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; justify-content: center; flex: 1; }
.nav a { padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.nav a:hover, .nav a.active { background: var(--primary-dark); color: #fff; }
.book-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 800; }
.book-btn:hover { background: var(--primary-dark); }
.hero { position: relative; min-height: 420px; height: 60vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.45), rgba(0,0,0,.22)); }
.hero-content { position: relative; z-index: 1; }
.eyebrow { display: inline-block; color: var(--primary); font-size: 12px; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; max-width: 760px; }
.hero p { max-width: 600px; color: rgba(255,255,255,.86); font-size: 18px; line-height: 1.6; margin: 16px 0 0; }
.search-band { margin-top: -60px; position: relative; z-index: 3; background: var(--search-panel); }
.search-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 36px rgba(0,0,0,.16); padding: 16px; display: grid; grid-template-columns: 1fr 200px 220px auto; gap: 12px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--foreground); padding: 12px 13px; font: inherit; font-size: 14px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid rgba(200,16,46,.22); border-color: var(--primary); }
.button { border: 0; border-radius: 6px; background: var(--primary); color: #fff; padding: 12px 18px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button:hover { background: var(--primary-dark); }
.button.secondary { background: #fff; color: var(--muted-foreground); border: 1px solid var(--border); }
.button.secondary:hover { color: var(--primary); border-color: var(--primary); }
.category-strip { background: var(--secondary); border-bottom: 1px solid var(--border); }
.category-list { padding: 24px 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; background: #fff; font-size: 13px; font-weight: 800; }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.section { padding: 64px 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; gap: 24px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 4px; }
.text-link { color: var(--primary); font-weight: 800; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.event-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,.12); }
.event-image { aspect-ratio: 4 / 3; background: var(--muted); position: relative; overflow: hidden; }
.event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-card:hover .event-image img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.event-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.event-body h3 { font-size: 19px; line-height: 1.18; margin-bottom: 8px; }
.event-card:hover h3 { color: var(--primary); }
.subtitle { color: var(--muted-foreground); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.meta-list { margin-top: auto; color: var(--muted-foreground); font-size: 13px; display: grid; gap: 7px; }
.price-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; }
.price { color: var(--primary); font-size: 24px; font-weight: 900; }
.calendar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: sticky; top: 96px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.calendar-head h3 { font-size: 16px; }
.calendar-controls { display: flex; align-items: center; gap: 8px; }
.icon-btn { border: 0; background: transparent; border-radius: 5px; padding: 6px; cursor: pointer; }
.icon-btn:hover { background: var(--muted); }
.month-label { min-width: 130px; text-align: center; font-size: 14px; font-weight: 800; text-transform: capitalize; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.weekday { color: var(--muted-foreground); font-size: 10px; font-weight: 900; text-transform: uppercase; margin-bottom: 4px; }
.day { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-size: 12px; position: relative; }
.day.muted { opacity: .3; }
.day.has-event { background: rgba(200,16,46,.1); color: var(--primary); font-weight: 900; }
.day.has-event::after { content: ""; width: 4px; height: 4px; background: var(--primary); border-radius: 50%; position: absolute; bottom: 6px; }
.category-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; font-weight: 800; }
.category-card::before { content: ""; display: block; width: 48px; height: 4px; background: var(--primary); margin: 0 auto 16px; transition: width .25s ease; }
.category-card:hover { border-color: var(--primary); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.category-card:hover::before { width: 80px; }
.page-hero { background: var(--topbar); color: var(--topbar-foreground); padding: 48px 0; }
.detail-hero { position: relative; min-height: 360px; height: 50vh; background: var(--topbar); color: #fff; display: flex; align-items: end; overflow: hidden; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,22,22,.95), rgba(22,22,22,.6), transparent); }
.detail-hero-content { position: relative; z-index: 1; padding-bottom: 40px; }
.detail-hero h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.08; max-width: 820px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
.meta-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.meta-tile { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; }
.meta-icon { width: 40px; height: 40px; border-radius: 999px; background: rgba(200,16,46,.1); color: var(--primary); display: grid; place-items: center; flex: 0 0 auto; }
.meta-label { font-size: 10px; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .08em; }
.meta-value { font-size: 14px; font-weight: 800; }
.content { line-height: 1.72; }
.content section { margin-top: 32px; }
.content h2 { font-size: 26px; margin-bottom: 12px; }
.highlight-box { background: rgba(245,245,245,.72); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 20px; }
.price-box { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 24px; }
.price-box .price { color: #fff; font-size: 44px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.gallery button { border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--muted); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.active { display: flex; }
.lightbox img { max-height: 86vh; max-width: 86vw; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; width: 44px; height: 44px; font-size: 28px; cursor: pointer; }
.lightbox .close { top: 24px; right: 24px; }
.lightbox .prev { left: 24px; }
.lightbox .next { right: 24px; }
.footer { background: var(--topbar); color: var(--topbar-foreground); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0; }
.footer p, .footer li { color: rgba(255,255,255,.72); font-size: 14px; }
.footer ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--secondary); border: 1px solid var(--border); }
.admin-shell { background: #f7f7f7; min-height: 100vh; }
.admin-bar { background: #151515; color: #fff; padding: 12px 0; }
.admin-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-main { padding: 32px 0 64px; }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.admin-grid { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.admin-nav { display: grid; gap: 8px; align-self: start; }
.admin-nav a { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font-weight: 800; }
.admin-nav a.active, .admin-nav a:hover { border-color: var(--primary); color: var(--primary); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.toolbar button { border: 1px solid var(--border); background: #fff; border-radius: 5px; padding: 7px 10px; font-weight: 800; cursor: pointer; }
.editor { min-height: 150px; border: 1px solid var(--border); border-radius: 6px; padding: 12px; background: #fff; line-height: 1.6; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tab-button { border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 9px 14px; font-weight: 800; cursor: pointer; }
.tab-button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.form-field { display: grid; gap: 7px; margin-bottom: 14px; }
.form-field label { font-size: 13px; font-weight: 800; }
.checkbox-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

@media (max-width: 980px) {
  .nav { display: none; }
  .book-btn { margin-left: auto; }
  .search-panel, .layout, .detail-layout, .admin-grid { grid-template-columns: 1fr; }
  .calendar { position: static; }
  .category-cards { grid-template-columns: repeat(2, 1fr); }
  .meta-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .header-inner { gap: 12px; }
  .book-btn { display: none; }
  .grid, .footer-grid, .two, .form-row, .gallery { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .category-cards { grid-template-columns: 1fr; }
  .section-head { display: block; }
}
