:root {
  --bg: #0b0b0b;
  --fg: #f5f5f5;
  --muted: #bdbdbd;
  --card: #121212;
  --border: #2a2a2a;
  --danger: #ff4d4d;
  --ok: #2fff8f;
}

@font-face {
  font-family: "Vogue";
  src: url("/assets/Vogue-Regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Ethereal";
  src: url("/assets/EtherealDemo-Medium.otf") format("opentype");
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--fg);
}

a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: underline; }

.photo-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.photo-bg-grid {
  position: absolute;
  inset: -36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  transform: rotate(-2deg) scale(1.04);
  opacity: .18;
  pointer-events: none;
}
.photo-bg-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  filter: grayscale(1) contrast(1.08);
}
.photo-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(255,255,255,.09), rgba(0,0,0,0) 60%),
    radial-gradient(900px 420px at 82% 20%, rgba(255,255,255,.06), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,.40), rgba(0,0,0,.88));
}
@media (max-width: 700px) {
  .photo-bg-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; opacity: .22; transform: rotate(-2deg) scale(1.06); }
  .photo-bg-grid img { border-radius: 16px; }
}

.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,.4);
  position: sticky; top: 0; backdrop-filter: blur(8px);
}
.brand { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { display: block; height: 56px; max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .95; }
.nav a { opacity: .9; }
.nav a:hover { opacity: 1; }
.nav-links { display: flex; gap: 12px; align-items: center; }

.hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 16px;
  overflow: hidden;
  background: radial-gradient(1200px 300px at 20% 10%, rgba(255,255,255,.08), transparent 60%),
              radial-gradient(900px 250px at 80% 30%, rgba(255,255,255,.05), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.hero-inner { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
@media (max-width: 700px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-logo img { width: 86%; height: auto; filter: grayscale(1) contrast(1.05); opacity: .96; }

.hero-title { margin: 0; font-size: 26px; letter-spacing: .04em; }
.hero-sub { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }

.hero-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }

.fx-grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .12;
  transform: rotate(7deg);
  pointer-events: none;
  mask-image: radial-gradient(circle at 30% 10%, #000 15%, transparent 65%);
}

@media (max-width: 700px) {
  .hero { padding: 22px 14px; }
  .hero-title { font-size: 28px; }
  .fx-grid { animation: gridMove 10s linear infinite; }
  .tap-card { transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
  .tap-card:active { transform: scale(.985); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
  .tap-card.is-pressed { transform: scale(.985); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
  .btn { transition: transform 120ms ease, background 180ms ease; }
  .btn:active { transform: scale(.98); }
}

@keyframes gridMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 220px 0, 0 220px; }
}

.promo-slider {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}
.promo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: start; }
.promo-slide { aspect-ratio: 16 / 9; background: #000; }
.promo-slide a { display: block; width: 100%; height: 100%; }
.promo-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 700px) {
  .promo-slider { margin-left: -16px; margin-right: -16px; }
}

.promo-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 10px 12px;
  background: rgba(0,0,0,.35);
  border-top: 0;
}
.promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
}
.promo-dot.active { background: rgba(255,255,255,.9); }

.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-item {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
}
.gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  filter: grayscale(1) contrast(1.05);
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}
.gallery-item:hover img { transform: scale(1.02); border-color: rgba(255,255,255,.22); opacity: .96; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-item img { height: 138px; } }

.lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 22px 14px; z-index: 50; }
.lightbox.open { display: flex; }
.lightbox-bg { position: absolute; inset: 0; background: rgba(0,0,0,.74); backdrop-filter: blur(10px); z-index: 0; }
.lightbox-card { position: relative; z-index: 1; width: min(920px, 100%); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; overflow: hidden; background: rgba(18,18,18,.92); }
.lightbox-card img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; display: block; background: #000; }
.lightbox-card .muted { padding: 10px 12px; }
.lightbox-card .row { padding: 0 12px 12px; }

.cal {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.25);
}
.cal-title { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; color: rgba(255,255,255,.9); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.cal-dow { font-size: 11px; color: rgba(255,255,255,.55); text-align: center; }
.cal-day {
  position: relative;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}
.cal-day:hover { border-color: rgba(255,255,255,.22); }
.cal-day.muted { opacity: .35; cursor: default; }
.cal-day.selected { outline: 2px solid rgba(255,255,255,.9); }
.cal-day.booked { border-color: rgba(255,77,77,.35); background: rgba(255,77,77,.06); cursor: not-allowed; }
.cal-day.partial { border-color: rgba(255,77,77,.22); background: rgba(255,77,77,.03); }
.cal-x {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,77,77,.95);
  font-size: 28px;
  font-weight: 900;
  font-family: "Brush Script MT", "Segoe Script", "Comic Sans MS", cursive;
  transform: rotate(-12deg);
  text-shadow: 0 0 12px rgba(255,77,77,.25);
  pointer-events: none;
  z-index: 2;
}
.cal-x.half {
  font-size: 34px;
  transform: rotate(-18deg);
  opacity: .85;
}

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.card h2, .card h3 { margin: 0 0 10px; }
h2 { font-family: "Vogue", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif; font-weight: 400; }
.muted { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 12px; color: var(--muted);
}

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #111;
  color: var(--fg);
  cursor: pointer;
}
.btn:hover { background: #161616; }
.btn-primary { background: var(--fg); color: #0b0b0b; border-color: var(--fg); }
.btn-primary:hover { background: #e6e6e6; }
.btn-danger { border-color: rgba(255,77,77,.6); color: var(--danger); }
.icon-btn { width: 42px; height: 42px; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }

.error { color: var(--danger); font-size: 13px; }
.success { color: var(--ok); font-size: 13px; }

.table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); }
.table th, .table td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.table th { font-size: 12px; color: var(--muted); font-weight: 600; background: rgba(255,255,255,.03); }
.table tr:last-child td { border-bottom: 0; }

.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.slot {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f0f0f;
}
.slot[disabled] { opacity: .4; cursor: not-allowed; }
.slot.selected { outline: 2px solid var(--fg); }

.footer { padding: 24px 16px; color: var(--muted); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

.map-embed { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.25); }
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
@media (max-width: 700px) { .map-embed iframe { height: 200px; } }

@media print {
  body { background: #fff; color: #000; }
  .no-print { display: none !important; }
  .card, .table { border-color: #ddd; }
}
