:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-2: #111827;
  --panel: rgba(17, 24, 39, 0.92);
  --panel-2: rgba(15, 23, 42, 0.96);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --accent-soft: rgba(125, 211, 252, 0.14);
  --success: #9cc7ff;
  --warning: #dfe7f2;
  --danger: #fda4af;
  --border: rgba(148, 163, 184, 0.22);
  --shadow: rgba(15, 23, 42, 0.45);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top, #172033 0%, var(--bg) 38%, #050b12 100%);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.hero {
  padding: 72px 18px 48px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.12), rgba(56, 189, 248, 0.06));
  border-bottom: 1px solid var(--border);
}
.hero__content {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.hero__text {
  max-width: 620px;
}

.hero__media img {
  width: 100%;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0 0 12px;
}
.hero__copy { font-size: 1.08rem; color: var(--muted); max-width: 680px; }
.hero__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.owner-controls {
  display: block;
}
.owner-controls.hidden,
.owner-access-box.hidden {
  display: none;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
  font-weight: 600;
  color: var(--muted);
}
.checkbox-row input {
  width: 18px;
  height: 18px;
}
.button--primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #03141d; box-shadow: 0 10px 20px rgba(42, 141, 255, 0.35); }
.button--secondary { border-color: var(--border); background: rgba(255,255,255,0.04); }
.button--small { padding: 10px 14px; font-size: 0.9rem; }
.owner-access-box {
  margin-top: 12px;
}
main { max-width: 1180px; margin: 0 auto; padding: 16px; }
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.card {
  background: linear-gradient(180deg, rgba(17, 29, 40, 0.96), rgba(12, 22, 33, 0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 30px var(--shadow);
}
.grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; margin-bottom: 24px; }
.booking-form label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; font-weight: 600; }
.booking-form input, .booking-form select, .booking-form textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.message { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(156, 199, 255, 0.12); color: #eaf4ff; display: none; }
.message.error { background: rgba(253, 164, 175, 0.12); color: #ffe4e6; display: block; }
.message.success { display: block; }
.price-summary { margin: 12px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(125, 211, 252, 0.28); color: var(--text); font-weight: 700; }
.availability-summary { padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); margin-bottom: 12px; }
.calendar-shell { border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: rgba(255,255,255,0.03); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; }
.calendar-nav { border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; cursor: pointer; }
.calendar-nav:hover { border-color: rgba(125, 211, 252, 0.7); background: rgba(125, 211, 252, 0.08); }
.calendar-month { font-size: 1rem; flex: 1; text-align: center; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-weekdays { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.calendar-day { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,0.05); color: var(--text); font: inherit; cursor: pointer; }
.calendar-day--clickable:hover { border-color: rgba(125, 211, 252, 0.7); background: rgba(125, 211, 252, 0.08); }
.calendar-day--muted { color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.02); cursor: default; }
.calendar-day--selected { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #03141d; font-weight: 700; }
.calendar-day--booked { background: rgba(255, 126, 136, 0.18); color: #ffdbe0; border-color: rgba(255,126,136,0.3); cursor: not-allowed; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.legend-swatch--available { background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.legend-swatch--selected { background: var(--accent); }
.legend-swatch--booked { background: rgba(255,92,92,0.2); border: 1px solid rgba(255,92,92,0.3); }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.spec-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

.booking-list { display: grid; gap: 10px; }
.booking-item { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.subtle { color: var(--muted); }
footer { padding: 24px; text-align: center; color: var(--muted); }
@media (max-width: 900px) {
  .grid, .info-strip { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 14px 36px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.15;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  main {
    padding: 12px;
  }

  .card {
    padding: 14px;
  }

  .info-strip {
    gap: 12px;
  }

  .calendar-weekdays {
    font-size: 0.72rem;
    gap: 6px;
  }

  .calendar-day {
    min-height: 40px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .calendar-legend {
    flex-direction: column;
    gap: 6px;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    font-size: 16px;
  }
}
