:root {
  --primary-color: #007bff;
  --hover-color: #0056b3;
  --selected-color: #28a745;
  --occupied-color: #dc3545;
  --today-color: #ffc107;
  --font-color: #333;
  --bg-color: #f8f9fa;
  --container-bg: #ffffff;
}
body {
  font-family: -apple-system, BlinkMacSystem-Font, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: transparent;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.container {
  width: 100%;
  max-width: 700px;
}
.booking-engine { 
  background-color: var(--container-bg);
  border: 1px solid #ddd; 
  border-radius: 8px; 
  padding: 20px; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}
.calendar-container { padding: 10px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-header button { background-color: var(--primary-color); color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; }
.calendar-header button:hover { background-color: var(--hover-color); }
#monthYear { font-size: 20px; font-weight: bold; color: var(--font-color); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-day, .weekday {
  text-align: center;
  border-radius: 4px;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  aspect-ratio: 1 / 1;
}
.weekday { font-weight: bold; color: var(--font-color); }
.calendar-day {
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  border: 1px solid transparent;
  color: #333 !important;
}
.calendar-day:not(.empty):not(.occupied):hover { background-color: #e9ecef; border-color: var(--primary-color); }
.calendar-day.occupied { background-color: var(--occupied-color); color: white !important; text-decoration: line-through; cursor: not-allowed; }
.calendar-day.selected { background-color: var(--selected-color); color: white !important; }
.calendar-day.today { background-color: var(--today-color); color: white !important; font-weight: bold; }
.calendar-day.empty { cursor: default; background-color: transparent !important; border-color: transparent !important; }
.price-summary { margin-top: 20px; padding: 15px; background-color: var(--bg-color); border-radius: 5px; border: 1px solid #dee2e6; }
.price-summary h3 { margin-top: 0; color: var(--font-color); }
.price-summary p { margin: 5px 0; font-size: 16px; display: flex; justify-content: space-between; }
.price-summary .total { font-weight: bold; font-size: 20px; color: var(--selected-color); border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; }
#priceLoader { text-align: center; padding: 20px; font-style: italic; color: #6c757d; }
.booking-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid #ddd; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--font-color); }
.form-group input { width: 100%; padding: 10px; border-radius: 4px; border: 1px solid #ccc; box-sizing: border-box; }
#submitBooking { width: 100%; padding: 12px; background-color: var(--selected-color); color: white; border: none; border-radius: 5px; font-size: 18px; cursor: pointer; transition: background-color 0.3s; }
#submitBooking:hover { background-color: #218838; }
#submitBooking:disabled { background-color: #ccc; cursor: not-allowed; }
.booking-message { margin-top: 15px; padding: 15px; border-radius: 5px; text-align: center; font-weight: bold; }
.booking-message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.booking-message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Estilos para la nueva lista de propiedades */
.property-list {
  display: grid;
  gap: 20px;
}

.property-card {
  background-color: var(--container-bg);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: var(--font-color);
  transition: box-shadow 0.3s, transform 0.3s;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.property-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.propiedad-nombre {
    margin-top: -10px;
    margin-bottom: 20px;
    color: #6c757d;
}

.error {
    color: #dc3545;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}
