:root {
  --ink: #241925;
  --muted: #6d5b66;
  --paper: #fff9f2;
  --rose: #d94f70;
  --teal: #158a8a;
  --sun: #f2b84b;
  --green: #5da86a;
  --line: rgba(36,25,37,.14);
  --shadow: 0 18px 54px rgba(62,38,37,.16);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 7px clamp(16px,4vw,54px); min-height: 58px; background: rgba(255,249,242,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); overflow: visible; }
.brand { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 0; cursor: pointer; font-weight: 950; color: var(--rose); font-size: clamp(22px,2.6vw,34px); line-height: 1; }
.brand img { width: 105px; height: 105px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 12px 24px rgba(0,0,0,.16); margin-block: -17px -24px; transform: none; }
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.user-greeting { color: var(--muted); font-weight: 900; }
.nav a, .admin-pill { text-decoration: none; padding: 10px 12px; border-radius: 999px; font-weight: 850; color: var(--muted); }
.nav a:hover { background: #fff; color: var(--ink); }
.admin-pill { background: var(--ink); color: #fff; font-size: 13px; cursor: pointer; border: 0; }
.hero { min-height: calc(100vh - 86px); display: grid; align-items: end; position: relative; overflow: hidden; padding: clamp(24px,5vw,74px); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,13,18,.78), rgba(20,13,18,.22) 58%, rgba(20,13,18,.05)); }
.hero-media { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr .8fr; gap: 10px; background: #211922; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-width: 0; }
.hero-copy { position: relative; z-index: 1; max-width: 720px; color: #fff; padding-bottom: min(8vh, 80px); }
.hero-copy p:not(.eyebrow) { font-size: clamp(21px, 2.6vw, 34px); line-height: 1.34; max-width: 760px; font-weight: 750; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0; font-weight: 950; color: var(--teal); font-size: 13px; }
.hero .eyebrow { color: #8ff0e3; }
h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: 0; }
h2 { font-size: clamp(30px, 4vw, 58px); }
h3 { font-size: clamp(28px,3vw,42px); }
.hero-actions, .contact-actions, .admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.button { border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; border-radius: 8px; padding: 12px 16px; font-weight: 900; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; min-height: 46px; }
.button.primary { background: var(--rose); border-color: var(--rose); color: #fff; }
.hero .button:not(.primary) { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.36); }
.section-head { max-width: 900px; margin-bottom: 24px; }
.section-head p, .contact p { color: var(--muted); line-height: 1.65; }
.attractions-full, .calendar-section, .contact { padding: clamp(34px,6vw,82px) clamp(16px,4vw,54px); }
.attraction-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px,4vw,52px); align-items: center; border-top: 1px solid var(--line); padding: clamp(24px,5vw,62px) 0; }
.attraction-band.reverse { grid-template-columns: .9fr 1.1fr; }
.band-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.band-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.band-gallery img:nth-child(2) { transform: translateY(22px); }
.band-copy p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.booking-layout { display: grid; grid-template-columns: minmax(360px, 620px) minmax(340px, 1fr); gap: clamp(18px,3vw,36px); align-items: start; }
.calendar-shell { background: #fff; border: 1px solid #111; box-shadow: 0 14px 42px rgba(62,38,37,.14); border-radius: 3px; overflow: hidden; }
.calendar-toolbar { display: grid; grid-template-columns: 46px 42px 1fr 42px 46px; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #111; background: #fff; }
.calendar-toolbar strong { text-align: center; font-size: clamp(20px,2.5vw,30px); }
.icon-button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 28px; line-height: 0; font-weight: 950; cursor: pointer; display: inline-grid; place-items: center; padding: 0 0 4px; text-align: center; }
.icon-button.year-button { width: 46px; font-size: 28px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.calendar-weekdays span { padding: 7px; text-align: center; color: #fff; font-weight: 900; border-bottom: 1px solid #111; background: #1459bd; font-size: 12px; }
.calendar-weekdays span:nth-child(6), .calendar-weekdays span:nth-child(7) { background: #0e4ba3; }
.day { min-height: 62px; border: 0; border-right: 1px solid #111; border-bottom: 1px solid #111; background: #fff; padding: 6px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.day:nth-child(7n) { border-right: 0; }
.day:nth-child(7n-1) { background: #e4e4e4; }
.day:nth-child(7n) { background: #d3d3d3; border-right: 0; }
.day.outside { color: #b2a5ab; background: #fff; }
.day:nth-child(7n-1).outside { background: #e4e4e4; color: #8f858b; }
.day:nth-child(7n).outside { background: #d3d3d3; color: #81777d; }
.day.today { outline: 3px solid rgba(21,138,138,.22); outline-offset: -5px; }
.day.selected { background: #ffe36e; box-shadow: inset 0 0 0 3px #d7a900; }
.day strong { font-size: 14px; align-self: center; }
.day small { color: #111; font-weight: 700; line-height: 1.12; white-space: pre-line; text-align: center; width: 100%; font-size: 10px; }
.day.pending { background: #eee; }
.day.booked { background: #dce8fb; }
.day:nth-child(7n-1).pending { background: #e9e9e9; }
.day:nth-child(7n).pending { background: #d8d8d8; }
.day:nth-child(7n-1).booked { background: #d7e2f3; }
.day:nth-child(7n).booked { background: #cbd9ee; }
.day.selected,
.day:nth-child(7n-1).selected,
.day:nth-child(7n).selected { background: #ffe36e; }
.day.past { opacity: .5; cursor: not-allowed; }
.calendar-note { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 800; background: #fffdfb; font-size: 13px; }
.calendar-admin-add { width: calc(100% - 24px); margin: 12px; justify-content: center; }
.dot { width: 12px; height: 12px; display: inline-block; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: #fff; border: 1px solid var(--line); }
.dot.pending { background: var(--sun); }
.dot.booked { background: var(--green); }
.booking-card { position: sticky; top: 104px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.animator-schedule h2 { font-size: 32px; }
.schedule-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.schedule-reset { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff0f1; color: #a82335; font-size: 26px; line-height: 1; font-weight: 950; cursor: pointer; }
.animator-days { display: grid; gap: 14px; }
.animator-day { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.animator-day h3 { font-size: 24px; }
.animator-booking { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fffdfb; }
.animator-booking p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; background: #fff; border-top: 1px solid var(--line); }
.contact-phone-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.modal { width: min(920px, calc(100vw - 28px)); border: 0; border-radius: 8px; padding: 0; box-shadow: var(--shadow); background: #fff; }
.modal::backdrop { background: rgba(24,16,22,.58); backdrop-filter: blur(4px); }
.modal.small { width: min(520px, calc(100vw - 28px)); }
.admin-modal { width: min(1180px, calc(100vw - 28px)); }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 24px; cursor: pointer; }
.form-card, .admin-panel { padding: clamp(22px,4vw,42px); }
.form-card { display: grid; gap: 14px; }
.form-card h2 { font-size: 32px; }
label { display: grid; gap: 7px; font-weight: 900; color: var(--ink); }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; background: #fffdfb; color: var(--ink); }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 12px; }
legend { font-weight: 900; padding: 0 8px; }
fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 800; }
fieldset input { width: auto; }
fieldset .attraction-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: start; }
fieldset .attraction-group { display: grid; align-content: start; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fffdfb; }
fieldset .attraction-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
fieldset .attraction-option.unavailable { color: #c32235; text-decoration: line-through; text-decoration-thickness: 2px; }
fieldset .attraction-option.unavailable input { cursor: not-allowed; }
fieldset .attraction-option.pending-option { color: #9a6a00; background: #fff3bf; border-radius: 6px; padding: 4px 6px; }
fieldset .attraction-option small { font-size: 11px; font-weight: 900; }
fieldset .animation-numbers { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 4px; align-items: center; }
fieldset .inline-number { display: grid; grid-template-columns: 78px minmax(0, 1fr); justify-content: start; gap: 8px; width: 100%; min-width: 0; }
fieldset .inline-number input { width: 78px; min-width: 0; padding: 8px 10px; text-align: center; }
fieldset .inline-number span { min-width: 0; overflow-wrap: anywhere; }
fieldset .inline-number input:disabled { opacity: .55; cursor: not-allowed; }
.attractions-modal { width: min(1180px, calc(100vw - 28px)); }
.muted { color: var(--muted); margin: 0; line-height: 1.5; }
.attraction-editor-list { display: grid; gap: 12px; }
.attraction-editor-row { position: relative; display: grid; grid-template-columns: 130px 1fr 90px 90px 1.2fr 1.2fr; gap: 10px; align-items: end; border: 1px solid var(--line); border-radius: 8px; padding: 34px 12px 12px; background: #fffdfb; }
.attraction-editor-row label { font-size: 13px; }
.row-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff0f1; color: #a82335; font-size: 20px; line-height: 1; font-weight: 950; cursor: pointer; }
.image-drop { grid-column: 1 / -1; border: 2px dashed rgba(21,138,138,.38); border-radius: 8px; padding: 14px; background: #f4fffd; color: var(--teal); display: grid; gap: 4px; text-align: center; cursor: pointer; }
.image-drop span { color: var(--muted); font-size: 13px; }
.image-drop.dragover, .image-drop.uploading { border-color: var(--teal); background: #e9fffb; }
.attraction-tooltip { position: fixed; z-index: 80; pointer-events: none; max-width: 300px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 10px; }
.attraction-tooltip strong { display: block; margin-bottom: 8px; }
.attraction-tooltip p { margin: 0 0 8px; color: var(--muted); }
.attraction-tooltip img { width: 76px; height: 64px; object-fit: cover; border-radius: 6px; margin: 3px; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-message { min-height: 22px; color: var(--teal); font-weight: 800; margin: 0; }
.admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 10px 14px; font-weight: 900; cursor: pointer; }
.admin-tabs button.active { background: var(--ink); color: #fff; }
.bookings-list, .admins-list { display: grid; gap: 12px; }
.booking-row { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 12px; background: #fffdfb; }
.booking-row.archived { background: #f7f2ec; opacity: .92; }
.booking-row h3 { margin: 0 0 8px; font-size: 20px; }
.booking-row p { margin: 4px 0; color: var(--muted); }
.booking-row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-content: start; max-width: 320px; }
.archive-section, .archive-year, .archive-month { border: 1px solid var(--line); border-radius: 8px; background: #fffdfb; overflow: hidden; }
.archive-section > summary, .archive-year > summary, .archive-month > summary { cursor: pointer; padding: 13px 14px; font-weight: 950; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.archive-section > summary { background: var(--paper); font-size: 20px; }
.archive-year > summary { background: #f8f8f8; }
.archive-month > summary { background: #fff; }
.archive-section summary span { min-width: 30px; min-height: 26px; padding: 4px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-align: center; font-size: 13px; }
.archive-years, .archive-months, .archive-bookings { display: grid; gap: 10px; padding: 10px; }
.archive-bookings { background: #f7f2ec; }
.mini { padding: 9px 11px; min-height: 38px; }
.danger { background: #fff0f1; color: #a82335; }
.stack-form { display: grid; gap: 10px; margin-top: 16px; }
.settings-phones { display: grid; gap: 10px; }
.phone-editor-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 34px 12px 12px; background: #fffdfb; }
.admin-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
@media (max-width: 980px) {
  .booking-layout, .attraction-band, .attraction-band.reverse, .contact { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .attraction-editor-row { grid-template-columns: 1fr; }
  fieldset .attraction-groups { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .brand img { width: 82px; height: 82px; margin-block: -14px -22px; transform: none; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .nav { width: 100%; justify-content: space-between; }
  .hero { min-height: 680px; }
  .hero-media { grid-template-columns: 1fr; }
  .hero-media img:nth-child(n+2) { display: none; }
  .band-gallery { grid-template-columns: 1fr; }
  .band-gallery img:nth-child(2) { transform: none; }
  .day { min-height: 52px; padding: 5px; }
  .calendar-toolbar { grid-template-columns: 36px 36px 1fr 36px 36px; gap: 5px; padding: 7px; }
  .icon-button, .icon-button.year-button { width: 34px; height: 34px; font-size: 22px; padding-bottom: 3px; }
  .calendar-toolbar strong { font-size: 18px; }
  .day small { display: none; }
  .form-grid, .admin-head, .booking-row { grid-template-columns: 1fr; display: grid; }
  .phone-editor-row { grid-template-columns: 1fr; }
  .contact-phone-list { justify-content: flex-start; }
  .booking-row-actions { justify-content: stretch; max-width: none; }
  .booking-row-actions .button { flex: 1; }
}
