/* ── Booking Calendar ─────────────────────────────────────── */

.hostpn-booking-calendar-wrapper {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  color: #333;
  font-family: inherit;
  max-width: 600px;
  margin: 20px auto;
}

/* Room selector */
.hostpn-booking-room-selector {
  margin-bottom: 16px;
}

.hostpn-booking-room-selector label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.hostpn-booking-room-selector select {
  background: #fafafa;
  border: 1px solid #ccc;
  color: #333;
  border-radius: 4px;
  padding: 8px 12px;
  width: 100%;
  font-size: 14px;
}

.hostpn-booking-room-selector select:focus {
  border-color: #4a90d9;
  outline: none;
}

/* Navigation */
.hostpn-booking-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hostpn-booking-nav-prev,
.hostpn-booking-nav-next {
  background: none;
  border: 1px solid #ccc;
  color: #555;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.hostpn-booking-nav-prev:hover,
.hostpn-booking-nav-next:hover {
  background: #f0f0f0;
}

.hostpn-booking-nav-title {
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
  color: #333;
}

.hostpn-booking-settings-link {
  display: flex;
  align-items: center;
  color: #999;
  text-decoration: none;
  margin-left: 8px;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.hostpn-booking-settings-link:hover {
  color: #555;
  background: #f0f0f0;
}

.hostpn-booking-settings-link .material-icons-outlined {
  font-size: 20px;
}

/* Calendar grid */
.hostpn-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.hostpn-cal-day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  padding: 4px 0;
}

.hostpn-cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.hostpn-cal-cell {
  position: relative;
  min-height: 52px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.hostpn-cal-empty {
  background: transparent;
}

.hostpn-cal-day-num {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.hostpn-cal-price {
  font-size: 10px;
  color: #43a047;
  margin-top: 2px;
}

/* Day states */
.hostpn-cal-available {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  cursor: pointer;
}

.hostpn-cal-available:hover {
  background: #c8e6c9;
}

.hostpn-cal-booked {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  color: #c62828;
}

.hostpn-cal-booked .hostpn-cal-day-num {
  color: #c62828;
}

.hostpn-cal-blocked {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  color: #999;
}

.hostpn-cal-blocked .hostpn-cal-day-num {
  color: #999;
}

.hostpn-cal-past {
  background: #fafafa;
  border: 1px solid #eee;
  color: #bbb;
}

.hostpn-cal-past .hostpn-cal-day-num {
  color: #bbb;
}

/* Selection range */
.hostpn-cal-range-start,
.hostpn-cal-range-end {
  background: #e3f2fd !important;
  border-color: #4a90d9 !important;
}

.hostpn-cal-range-start .hostpn-cal-day-num,
.hostpn-cal-range-end .hostpn-cal-day-num {
  color: #1565c0 !important;
  font-weight: 700;
}

.hostpn-cal-in-range {
  background: #e8eaf6 !important;
  border-color: #9fa8da !important;
}

/* Loading spinner */
.hostpn-booking-calendar-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

/* Info & Legend */
.hostpn-booking-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: #777;
}

.hostpn-booking-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: #777;
}

.hostpn-booking-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hostpn-cal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hostpn-cal-dot-available {
  background: #4caf50;
}

.hostpn-cal-dot-booked {
  background: #e57373;
}

.hostpn-cal-dot-blocked {
  background: #bdbdbd;
}

/* Summary */
.hostpn-booking-selection-summary {
  margin-top: 20px;
  padding: 16px;
  background: #f5f7fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.hostpn-booking-selection-summary h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #333;
}

.hostpn-booking-summary-details p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}

.hostpn-booking-total-line {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
  font-size: 16px !important;
  color: #2e7d32;
  font-weight: 600;
}

/* Form */
.hostpn-booking-form {
  margin-top: 20px;
  padding: 20px;
  background: #f5f7fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.hostpn-booking-form h4 {
  margin: 0 0 16px;
  font-size: 16px;
  color: #333;
}

.hostpn-booking-form-row {
  margin-bottom: 12px;
}

.hostpn-booking-form-row label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.hostpn-booking-form-row input,
.hostpn-booking-form-row textarea {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.hostpn-booking-form-row input:focus,
.hostpn-booking-form-row textarea:focus {
  border-color: #4a90d9;
  outline: none;
}

.hostpn-booking-form-actions {
  margin-top: 16px;
  text-align: right;
}

.hostpn-booking-submit-btn {
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}

.hostpn-booking-submit-btn:hover {
  background: #3a7ec5;
}

.hostpn-booking-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Messages */
.hostpn-booking-form-message {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
}

.hostpn-msg-success {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
}

.hostpn-msg-error {
  background: #ffebee;
  border: 1px solid #e57373;
  color: #c62828;
}

.hostpn-booking-error {
  text-align: center;
  color: #c62828;
  padding: 20px;
}

/* ── Price-edit mode ── */

/* Edit toggle button */
.hostpn-booking-edit-prices-btn {
  background: none;
  border: 1px solid #ccc;
  color: #555;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-left: 8px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hostpn-booking-edit-prices-btn:hover {
  background: #f0f0f0;
}

.hostpn-booking-edit-prices-btn .material-icons-outlined {
  font-size: 20px;
}

.hostpn-booking-edit-prices-btn.active {
  background: #e3f2fd;
  border-color: #4a90d9;
  color: #1565c0;
}

/* Seasonal price cells */
.hostpn-cal-seasonal {
  background: #fff3e0;
  border: 1px solid #ffcc80;
  cursor: pointer;
}

.hostpn-cal-seasonal:hover {
  background: #ffe0b2;
}

.hostpn-cal-seasonal .hostpn-cal-price {
  color: #e65100;
  font-weight: 600;
}

.hostpn-cal-base-price {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  cursor: pointer;
}

.hostpn-cal-base-price:hover {
  background: #eeeeee;
}

/* Price selection range */
.hostpn-cal-price-select-start,
.hostpn-cal-price-select-end {
  background: #e3f2fd !important;
  border-color: #4a90d9 !important;
}

.hostpn-cal-price-select-start .hostpn-cal-day-num,
.hostpn-cal-price-select-end .hostpn-cal-day-num {
  color: #1565c0 !important;
  font-weight: 700;
}

.hostpn-cal-price-in-range {
  background: #e8eaf6 !important;
  border-color: #9fa8da !important;
}

/* Price assignment panel */
.hostpn-booking-price-panel {
  margin-top: 12px;
  padding: 12px;
  background: #f5f7fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.hostpn-booking-price-panel-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #333;
}

.hostpn-booking-price-panel-row label {
  font-weight: 600;
}

/* Seasonal info popup */
.hostpn-cal-seasonal-info {
  font-size: 12px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hostpn-cal-seasonal-edit-btn,
.hostpn-cal-seasonal-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  color: #999;
  line-height: 1;
}

.hostpn-cal-seasonal-edit-btn:hover {
  color: #4a90d9;
  background: #e3f2fd;
}

.hostpn-cal-seasonal-delete-btn:hover {
  color: #c62828;
  background: #ffebee;
}

/* Responsive */
@media (max-width: 480px) {
  .hostpn-booking-calendar-wrapper {
    padding: 12px;
  }

  .hostpn-cal-cell {
    min-height: 40px;
    padding: 2px;
  }

  .hostpn-cal-day-num {
    font-size: 12px;
  }

  .hostpn-cal-price {
    font-size: 8px;
  }

  .hostpn-booking-info {
    flex-direction: column;
    gap: 4px;
  }

  .hostpn-booking-legend {
    flex-direction: column;
    gap: 4px;
  }
}
