/* HOST CALENDAR CSS */

/* Summary Cards (Reusing and extending from bookings for consistency) */
.calendar-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.summary-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.summary-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.summary-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Property Dropdown Custom Styling */
.property-selector-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  transition: all 0.2s;
}

.property-selector-btn:hover, .property-selector-btn:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(18, 94, 64, 0.1);
}

.property-selector-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.property-selector-menu {
  width: 320px;
  padding: 12px;
  border: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 16px;
}

.property-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.property-item:hover {
  background: rgba(18, 94, 64, 0.05);
}

.property-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.property-item .prop-name {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.property-item .prop-loc {
  font-size: 0.75rem;
  color: #888;
}

/* Calendar Container */
.calendar-container {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.calendar-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.calendar-nav-btn {
  background: #f8faf9;
  border: 1px solid #eee;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-nav-btn:hover {
  background: var(--primary-green);
  color: #fff;
  border-color: var(--primary-green);
}

.btn-today {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-dark);
  transition: all 0.2s;
}

.btn-today:hover {
  background: #f8faf9;
  border-color: #ccc;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #888;
  padding-bottom: 12px;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  padding: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.calendar-day:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-2px);
  z-index: 10;
}

.calendar-day.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.calendar-day.empty:hover {
  box-shadow: none;
  transform: none;
}

.day-number {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: auto;
}

.day-price {
  font-size: 0.7rem;
  color: #888;
  font-weight: 600;
  text-align: right;
  margin-top: 4px;
}

/* Status Colors */
.status-available {
  background: rgba(222, 247, 236, 0.4);
  border-color: #def7ec;
}
.status-available .status-indicator {
  background: #03543f; /* Green */
}

.status-booked {
  background: rgba(253, 232, 232, 0.4);
  border-color: #fde8e8;
}
.status-booked .status-indicator {
  background: #9b1c1c; /* Red */
}
.status-booked .day-number {
  color: #9b1c1c;
}

.status-pending {
  background: rgba(253, 246, 178, 0.4);
  border-color: #fdf6b2;
}
.status-pending .status-indicator {
  background: #d97706; /* Orange */
}

.status-blocked {
  background: #f5f5f5;
  border-color: #e5e5e5;
}
.status-blocked .status-indicator {
  background: #6b7280; /* Grey */
}
.status-blocked .day-number {
  color: #888;
}

.status-maintenance {
  background: #f5f5f5;
  border-color: #e5e5e5;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 20px);
}
.status-maintenance .status-indicator {
  background: #4b5563; /* Dark Grey */
}

.calendar-day.is-today {
  border: 2px solid #1e429f; /* Blue */
}
.calendar-day.is-today .day-number {
  color: #1e429f;
}

.calendar-day.selected {
  background: rgba(203, 162, 88, 0.15); /* Light Gold */
  border-color: var(--primary-gold);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  right: 12px;
}

.booking-label {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255,255,255,0.8);
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  color: #333;
}

/* Legend */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.lc-available { background: #03543f; }
.lc-booked { background: #9b1c1c; }
.lc-pending { background: #d97706; }
.lc-blocked { background: #6b7280; }
.lc-today { border: 2px solid #1e429f; background: transparent; }

/* Side Panels */
.side-panel {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  margin-bottom: 24px;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

/* Custom Modal */
.modal-header-custom {
  background: var(--host-bg);
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.action-btn-custom:hover {
  background: rgba(18, 94, 64, 0.05);
  border-color: var(--primary-green);
}

.action-btn-custom i {
  font-size: 1.2rem;
}

.action-danger:hover {
  background: rgba(220, 53, 69, 0.05);
  border-color: #dc3545;
  color: #dc3545;
}
