:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #65717d;
  --line: #e6ded1;
  --sand: #f8f2e8;
  --blue: #2d6f95;
  --blue-dark: #164a66;
  --terracotta: #bd7654;
  --white: #fffaf2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

a {
  color: var(--blue-dark);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  color: white;
  background: var(--blue);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: white;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 1rem;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(rgba(255, 250, 242, 0.2), rgba(255, 250, 242, 0.92)), url("/assets/images/gallery-04.png") center/cover;
}

.login-panel {
  width: min(440px, 100%);
  padding: 2rem;
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.94);
  box-shadow: 0 18px 60px rgba(31, 41, 51, 0.16);
}

.login-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.02;
}

.admin-link {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  color: white;
  background: rgba(22, 74, 102, 0.92);
  text-decoration: none;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-rows: auto 1fr;
  color: white;
  background: linear-gradient(90deg, rgba(14, 44, 60, 0.72), rgba(14, 44, 60, 0.08)), url("/assets/images/gallery-01.png") center/cover;
}

nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 4rem);
}

nav a {
  color: white;
  margin-left: 1rem;
}

.hero-copy {
  align-self: end;
  width: min(780px, 100%);
  padding: clamp(2rem, 8vw, 5rem);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  line-height: 0.98;
}

.hero-copy p:last-child {
  max-width: 34rem;
  font-size: 1.2rem;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: var(--sand);
}

.gallery-item:first-child,
.gallery-item:nth-child(8) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.map-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand);
}

.map-wrap p {
  margin: 0;
  padding: 1rem;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.booking-form {
  position: sticky;
  top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calendar-controls button {
  width: 3rem;
  height: 3rem;
  padding: 0;
  font-size: 1.25rem;
}

.calendar-controls strong {
  text-align: center;
}

.month {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: white;
}

.month h3 {
  margin: 0 0 0.85rem;
  text-transform: capitalize;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.weekdays {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.days button,
.days .empty {
  min-height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  padding: 0;
}

.days .free {
  color: var(--ink);
  background: #eaf5ef;
}

.days .booked {
  color: #8a4d3b;
  background: #f4d8cf;
}

.alert {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  border-radius: 8px;
  padding: 1rem;
  font-weight: 700;
}

.alert.error {
  color: #8a1f11;
  background: #ffe2dd;
}

.alert.success {
  color: #14532d;
  background: #dcfce7;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox[hidden] {
  display: none;
}

.lightbox button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  font-size: 2rem;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .gallery,
  .calendar,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .gallery-item:first-child,
  .gallery-item:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
  }

  .booking-form {
    position: static;
  }

  .calendar-controls {
    gap: 0.5rem;
  }
}
