/* styles.css */
body {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem; /* padding for sides on mobile */
}
header {
  position: relative;
}
.hero-image {
  width: 100%;
  display: block;
}
.map-image {
  width: 100%;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}
nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 90%;
}
nav button {
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
nav button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
.slideshow-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden;
  margin: 0 auto;
}
.slide-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
  align-self: center;
  justify-self: center;
  transition: opacity 0.4s ease-in-out;
}
.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.slide-prev {
  left: 10px;
}
.slide-next {
  right: 10px;
}
.slide-prev:hover,
.slide-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
.dots {
  display: flex;
  justify-content: center;
  margin-top: 0.6rem;
  gap: 0.5rem;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.dot.active {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.2);
}
.slideshow {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.calendar-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

#calendar-controls button {
  width: 120px;   /* 4x wider than tall */
  height: 30px;
  font-size: 1.2rem;
  border-radius: 6px;
}
#monthLabel {
  display: inline-block;
  width: 200px;   /* fixed width */
  text-align: center;
  font-weight: bold;
}

#calRange {
  display: inline-block;
  width: 220px; /* fixed width for month label */
  text-align: center;
  font-weight: bold;
}

/* Day cells */
.calendar td {
  width: 14%;
  height: 2.5rem;
  text-align: center;
  border-radius: 4px;
  position: relative;
  font-size: 0.9rem;
}

/* Solid green */
.day-free {
  background: #4CAF50; /* green */
  color: white;
}

/* Solid red */
.day-solid-red {
  background: #E53935; /* red */
  color: white;
}

/* Split diagonally green/red */
.day-split-checkin {
  background: linear-gradient(to bottom right, #4CAF50 50%, #E53935 50%);
  color: white;
}
.day-split-checkout {
  background: linear-gradient(to bottom right, #E53935 50%, #4CAF50 50%);
  color: white;
}

/* Greyed past days */
.day-past {
  background: #ccc;
  color: #666;
}

.calendar-pair {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.calendar {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
}

.calendar table {
  width: 100%;
  border-collapse: collapse;
}

.calendar th {
  font-weight: bold;
  padding: 0.3rem;
}

.calendar td {
  width: 14%;
  height: 2rem;
  text-align: center;
  border-radius: 4px;
}

.day-occupied {
  background: #f5c0c0;
}

.btn-back {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #4CAF50;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
}
.btn-back:hover {
  background-color: #45a049;
}
