
/* The Bristol - availability page */

.availability-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.hero {
  background: linear-gradient(135deg, #233542, #2f4352);
  border-bottom: 4px solid #ef7f23;
  padding: 0;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}

/*
  The source JPG has a lot of empty space around the actual Bristol mark.
  So instead of only making the <img> larger, this creates a viewport and
  zooms the artwork inside it.
*/
.brand-link {
  width: 300px;
  height: 88px;
  display: block;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.bristol-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 88px;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%) scale(2.35);
  transform-origin: center center;
  display: block;
}

.top-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}

.top-nav a {
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  padding: 9px 14px;
  border-radius: 999px;
}

.top-nav a:hover,
.top-nav a.active {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.5);
}

.availability-intro {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
}

.availability-intro h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.eyebrow,
.room-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
  color: #b66b28;
}

.availability-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.availability-controls label {
  display: grid;
  gap: 7px;
}

.availability-controls label span {
  font-size: .82rem;
  font-weight: 800;
}

.availability-controls input,
.availability-controls select {
  min-height: 42px;
  border: 1px solid #cad2d9;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  font: inherit;
}

.availability-status {
  min-height: 24px;
  margin: 4px 0 14px;
  color: #51606c;
  font-weight: 700;
}

.room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.room-panel {
  background: #fff;
  border: 1px solid #e3e8ec;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(22,37,48,.06);
  overflow: hidden;
}

.room-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 13px;
  border-bottom: 1px solid #edf0f2;
}

.room-panel-header h2 {
  margin: 3px 0 0;
  font-size: 1.2rem;
}

.room-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f8f5b;
  box-shadow: 0 0 0 4px rgba(47,143,91,.12);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.slot-button,
.slot-unavailable,
.slot-past {
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  text-align: center;
}

.slot-button {
  cursor: pointer;
  color: #1d5f3f;
  background: #edf8f2;
  border-color: #b8dfca;
}

.slot-unavailable {
  color: #8a3f3f;
  background: #fbefef;
  border-color: #eed0d0;
}

.slot-past {
  color: #818b93;
  background: #f4f6f7;
  border-color: #e1e6e9;
}

.availability-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #62717c;
  font-size: .9rem;
}

.availability-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.legend-swatch.available { background: #b8dfca; }
.legend-swatch.booked { background: #eed0d0; }
.legend-swatch.past { background: #e1e6e9; }

.button-secondary {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: #314a5b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero-inner { min-height: 92px; }

  .brand-link {
    width: 250px;
    height: 72px;
  }

  .bristol-logo {
    width: 250px;
    height: 72px;
    transform: translate(-50%, -50%) scale(2.25);
  }

  .availability-intro,
  .room-grid {
    grid-template-columns: 1fr;
  }

  .availability-controls {
    grid-template-columns: 1fr 1fr;
  }

  .availability-controls .button-secondary {
    grid-column: 1 / -1;
  }

  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .availability-shell,
  .hero-inner {
    width: min(100% - 20px, 1180px);
  }

  .hero-inner {
    min-height: 74px;
    gap: 10px;
  }

  .brand-link {
    width: 170px;
    height: 54px;
  }

  .bristol-logo {
    width: 170px;
    height: 54px;
    transform: translate(-50%, -50%) scale(2.1);
  }

  .top-nav a {
    padding: 7px 10px;
    font-size: .82rem;
  }

  .availability-controls {
    grid-template-columns: 1fr;
  }

  .availability-controls .button-secondary {
    grid-column: auto;
  }

  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
