/* style_booking.css */

.booking-hero {
  padding: 4rem 1rem 2rem;
  background-color: #f8f9fa;
  text-align: center;
}

.booking-hero h1 {
  font-size: 2.2rem;
  color: #1c1c1c;
  margin-bottom: 0.5rem;
}

.booking-hero p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.map-section {
  padding: 2rem 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.map-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Map Container */
.map-container {
  flex: 1;
  position: relative;
  background: #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  /* Optional bounding force if the image gets too large */
  min-height: 400px; 
}

.base-map {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* SVG Overlay */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none; /* Let SVG itself handle events */
}

/* Interactive SVG Polygons */
.map-overlay .plot {
  pointer-events: visibleFill; 
  fill: rgba(0, 169, 135, 0.1); /* Subtle green tint */
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 3;
  transition: all 0.25s ease;
  cursor: pointer;
}

.map-overlay .plot:hover {
  fill: rgba(0, 169, 135, 0.4);
  stroke: #ffffff;
}

.map-overlay .plot.active {
  fill: rgba(255, 204, 0, 0.4);
  stroke: #ffcc00;
  stroke-width: 4;
}

.map-overlay .plot.taken {
  fill: rgba(231, 76, 60, 0.3);
  stroke: rgba(231, 76, 60, 0.5);
  cursor: not-allowed;
}

/* SIDE PANEL */
.details-panel {
  width: 380px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: sticky;
  top: 80px; /* Sticks to the top when scrolling */
}

.panel-empty h3 {
  color: #ccc;
  font-size: 1.4rem;
  text-align: center;
  margin-top: 40px;
}
.panel-empty p {
  color: #aaa;
  text-align: center;
}

.panel-content.hidden {
  display: none;
}

.panel-content h2 {
  font-size: 1.8rem;
  margin: 0 0 10px 0;
  color: #111;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.status-badge.available {
  background: #e6f6ee;
  color: #00a987;
}

.status-badge.booked {
  background: #fdf2f2;
  color: #e74c3c;
}

/* Info List */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.info-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
  padding-bottom: 12px;
}
.info-item .lbl {
  color: #666;
}
.info-item .val {
  font-weight: 600;
  color: #222;
  text-align: right;
  max-width: 60%;
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-book {
  padding: 14px;
  font-size: 1.05rem;
  border-radius: 8px;
}
.btn-book[disabled] {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 980px) {
  .map-layout {
    flex-direction: column;
  }
  .details-panel {
    width: 100%;
    position: static;
  }
}
