/* ============================================================
   Livasta Host Dashboard — Calendar Page Styles (V2 Redesign)
   Clean, minimal, premium calendar with soft teal palette
   ============================================================ */

/* ---------- Calendar Layout ---------- */
.calendar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .calendar-layout {
    grid-template-columns: 280px 1fr;
  }
}

/* ---------- Property Sidebar ---------- */
.property-sidebar {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(220, 232, 223, 0.7);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.property-sidebar .sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--sage);
  background: linear-gradient(135deg, rgba(22, 51, 44, 0.02), rgba(220, 232, 223, 0.15));
}

.property-sidebar .sidebar-title {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--pine);
}

.property-sidebar-list {
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* On mobile the property picker becomes a compact horizontal strip so the
   calendar isn't buried under a tall vertical list, and the layout is reordered
   so the CALENDAR comes right after the picker (property detail drops to the
   bottom) — the calendar is the point of this page. */
@media (max-width: 1023px) {
  .property-sidebar-list {
    display: flex;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 10px;
    padding-bottom: 6px;
  }
  .property-sidebar-item { min-width: 210px; flex-shrink: 0; }

  /* Unwrap the sidebar column so its children reorder around the calendar. */
  .calendar-layout { min-width: 0; }
  .calendar-layout > div:first-child { display: contents; }
  .property-sidebar   { order: 1; margin-bottom: 16px; min-width: 0; }
  .calendar-main      { order: 2; min-width: 0; }
  .cal-property-detail { order: 3; margin-top: 20px; min-width: 0; }
}

.property-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(220, 232, 223, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.property-sidebar-item:hover {
  background: rgba(220, 232, 223, 0.2);
}

.property-sidebar-item.active {
  background: linear-gradient(90deg, rgba(22, 51, 44, 0.06), rgba(22, 51, 44, 0.02));
  border-left: 3px solid var(--pine);
}

.property-sidebar-item img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-sidebar-item .prop-info {
  flex: 1;
  min-width: 0;
}

.property-sidebar-item .prop-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-sidebar-item .prop-location {
  font-size: 11px;
  color: var(--muted);
}

.property-sidebar-item .prop-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--pine);
  white-space: nowrap;
}

/* ---------- Calendar Main Area ---------- */
.calendar-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;   /* let the calendar shrink to the screen instead of overflowing */
}
.calendar-main > * { min-width: 0; }

/* ---------- Quick Base Price Bar ---------- */
.cal-base-price-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0, 122, 122, 0.04), rgba(22, 51, 44, 0.06));
  border: 1px solid rgba(0, 122, 122, 0.12);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.cal-base-price-bar .bp-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cal-base-price-bar .bp-inline-input {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-md);
  padding: 0 10px;
  transition: 0.15s;
}

.cal-base-price-bar .bp-inline-input:focus-within {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(0, 122, 122, 0.1);
}

.cal-base-price-bar .bp-inline-input input {
  border: none;
  outline: none;
  background: transparent;
  width: 70px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.cal-base-price-bar .bp-inline-input .bp-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.cal-base-price-bar .bp-save-btn {
  padding: 8px 18px;
  background: var(--pine);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}


.bp-percent-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bp-percent-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(212, 167, 44, 0.12);
  border: 1px solid rgba(212, 167, 44, 0.24);
  color: #8A641A;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.bp-percent-chip.holiday {
  background: rgba(200, 90, 53, 0.1);
  border-color: rgba(200, 90, 53, 0.22);
  color: #A64727;
}

.bp-live-hint {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

.cal-base-price-bar .bp-save-btn:hover {
  background: var(--pine-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 122, 0.2);
}

.cal-base-price-bar .bp-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Filter Pills Row ---------- */
.cal-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cal-filter-pill {
  padding: 6px 14px;
  border: 1.5px solid var(--sage);
  border-radius: 20px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cal-filter-pill:hover {
  border-color: var(--pine);
  color: var(--pine);
  background: rgba(0, 122, 122, 0.04);
}

.cal-filter-pill.active {
  background: var(--pine);
  color: white;
  border-color: var(--pine);
  box-shadow: 0 2px 8px rgba(0, 122, 122, 0.2);
}

.cal-filter-pill .pill-count {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  margin-left: 4px;
  background: rgba(0, 0, 0, 0.1);
  color: inherit;
}

.cal-filter-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- Calendar Card ---------- */
.calendar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(220, 232, 223, 0.7);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  user-select: none;
}

@media (min-width: 640px) {
  .calendar-card { padding: 28px; }
}

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

.calendar-nav .cal-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: var(--white);
  cursor: pointer;
}

.calendar-nav .cal-btn:hover {
  border-color: var(--pine);
  background: rgba(0, 122, 122, 0.06);
  transform: scale(1.08);
}

.calendar-nav .cal-label {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--pine);
}

/* Weekday header */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  background: linear-gradient(135deg, #0D3B36, #164B44);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.cal-weekday {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 0;
}

/* Calendar grid */
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border: 1px solid rgba(220, 232, 223, 0.6);
  border-top: none;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  background: var(--white);
}

/* ---------- Calendar Day Cell ---------- */
.cal-day {
  min-height: 72px;
  border-right: 1px solid rgba(220, 232, 223, 0.5);
  border-bottom: 1px solid rgba(220, 232, 223, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.1s ease;
  position: relative;
  background: var(--white);
  color: var(--ink);
}

.cal-day:nth-child(7n) { border-right: none; }

@media (max-width: 520px) {
  .cal-day { min-height: 58px; font-size: 13px; gap: 2px; padding: 2px; }
  /* Tiny cells can't fit the price pill + label — keep just the day number and
     the price so the grid stays clean and tappable. */
  .cal-day .day-price-badge,
  .cal-day .holiday-name-label { display: none; }
  .cal-day .day-price { font-size: 9px; }
  .cal-day .day-number { font-size: 12.5px; }
}

.cal-day:hover:not(.disabled):not(.booked):not(.blocked):not(.empty):not(.selected) {
  background: rgba(0, 122, 122, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(0, 122, 122, 0.22);
  z-index: 1;
}

.cal-day .day-number {
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
  color: #2D3A3E;
}

.cal-day .day-price {
  font-size: 10px;
  font-weight: 600;
  color: #5B8A72;
}

/* Weekend price color — warm amber */
.cal-day.weekend:not(.selected):not(.booked):not(.blocked) .day-price {
  color: #C88A2B;
}

.cal-day .day-price.custom {
  color: var(--pine);
  font-weight: 800;
}

.day-price-badge {
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 8px);
  min-height: 15px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-price-badge.base {
  background: rgba(91, 138, 114, 0.12);
  color: #4D755F;
}

.day-price-badge.weekend {
  background: rgba(212, 167, 44, 0.16);
  color: #9A6C16;
}

.day-price-badge.holiday {
  background: rgba(235, 111, 74, 0.14);
  color: #B85331;
}

.day-price-badge.fixed {
  background: rgba(0, 122, 122, 0.12);
  color: #007A7A;
}

.holiday-name-label {
  font-size: 10px;
  color: #B85331;
  font-weight: 700;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}

@media (max-width: 520px) {
  .cal-day .day-price { font-size: 9px; }
  .cal-day .day-number { font-size: 12px; }
}

/* Today */
.cal-day.today {
  background: rgba(0, 122, 122, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(0, 122, 122, 0.3);
}

.cal-day.today .day-number {
  background: var(--pine);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Booked — shown as "blocked" with diagonal stripes + teal accent */
.cal-day.booked {
  background: repeating-linear-gradient(
    -45deg,
    rgba(0, 122, 122, 0.06),
    rgba(0, 122, 122, 0.06) 3px,
    rgba(0, 122, 122, 0.12) 3px,
    rgba(0, 122, 122, 0.12) 6px
  );
  cursor: pointer;
}

.cal-day.booked .day-number {
  color: var(--pine);
  font-weight: 800;
}

.cal-day.booked .day-price { display: none; }

/* Shared status pill (Booked / Blocked) shown at the bottom of the cell. */
.cal-day.booked::after,
.cal-day.blocked::after {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
  padding: 0 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.cal-day.booked::after {
  content: 'Booked';
  background: rgba(0, 122, 122, 0.14);
  color: var(--pine);
}

.cal-day.booked:hover {
  background: repeating-linear-gradient(
    -45deg,
    rgba(0, 122, 122, 0.1),
    rgba(0, 122, 122, 0.1) 3px,
    rgba(0, 122, 122, 0.18) 3px,
    rgba(0, 122, 122, 0.18) 6px
  );
}

/* Turnover (check-in/out) */
.cal-day.turnover {
  background: rgba(212, 167, 44, 0.1);
  cursor: pointer;
}

.cal-day.turnover .day-number { color: #9A7A1F; }
.cal-day.turnover .day-price { display: none; }

/* Blocked (host-blocked) — unique rose theme so it stands out at a glance */
.cal-day.blocked {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(225, 29, 72, 0.05),
      rgba(225, 29, 72, 0.05) 5px,
      rgba(225, 29, 72, 0.12) 5px,
      rgba(225, 29, 72, 0.12) 10px
    );
  box-shadow: inset 0 0 0 1.5px rgba(225, 29, 72, 0.28);
  cursor: pointer;
}

.cal-day.blocked .day-number {
  color: #be123c;
  text-decoration: line-through;
  text-decoration-color: rgba(190, 18, 60, 0.55);
  text-decoration-thickness: 2px;
}
.cal-day.blocked .day-price { display: none; }

.cal-day.blocked::after {
  content: 'Blocked';
  background: #e11d48;
  color: #fff;
  box-shadow: 0 1px 4px rgba(225, 29, 72, 0.4);
}

.cal-day.blocked:hover {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(225, 29, 72, 0.09),
      rgba(225, 29, 72, 0.09) 5px,
      rgba(225, 29, 72, 0.17) 5px,
      rgba(225, 29, 72, 0.17) 10px
    );
  box-shadow: inset 0 0 0 1.5px rgba(225, 29, 72, 0.45);
}

@media (max-width: 520px) {
  .cal-day.booked::after,
  .cal-day.blocked::after { font-size: 7.5px; padding: 0 5px; bottom: 4px; }
}

/* Past / disabled */
.cal-day.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* Holiday cell subtle highlight */
.cal-day.holiday:not(.booked):not(.blocked):not(.selected) {
  background: rgba(235, 111, 74, 0.04);
}

.cal-day.holiday:not(.booked):not(.blocked):not(.selected) .day-number {
  color: #C85A35;
}

/* Weekend cell subtle tint */
.cal-day.weekend:not(.booked):not(.blocked):not(.selected):not(.holiday) {
  background: rgba(212, 167, 44, 0.03);
}

/* ---------- Selected & Range States ---------- */
.cal-day.selected {
  background: var(--pine) !important;
  color: #fff;
  z-index: 2;
}

.cal-day.selected .day-number { color: #fff !important; background: none !important; }

.cal-day.selected .day-price {
  color: rgba(255, 255, 255, 0.7);
}

.cal-day.selected.range-start {
  border-radius: 12px 4px 4px 12px;
}

.cal-day.selected.range-end {
  border-radius: 4px 12px 12px 4px;
}

.cal-day.selected.in-range {
  background: rgba(22, 51, 44, 0.82) !important;
}

/* Preview (drag hover) */
.cal-day.preview {
  background: rgba(0, 122, 122, 0.1) !important;
  border-color: rgba(0, 122, 122, 0.2);
  border-style: dashed;
}

.cal-day.preview.range-start {
  border-radius: 12px 4px 4px 12px;
  background: rgba(0, 122, 122, 0.16) !important;
}

.cal-day.preview.range-end {
  border-radius: 4px 12px 12px 4px;
  background: rgba(0, 122, 122, 0.16) !important;
}

.cal-day.empty {
  cursor: default;
  pointer-events: none;
  background: var(--canvas);
}

/* Dimmed (filtered out) */
.cal-day.dimmed {
  opacity: 0.12 !important;
  pointer-events: none !important;
}

/* Holiday marker */
.holiday-marker {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 9px;
  line-height: 1;
}

/* ---------- Calendar Legend ---------- */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 232, 223, 0.7);
  font-size: 12px;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cal-legend-dot.booked-dot { background: var(--pine); }
.cal-legend-dot.available-dot { background: #5B8A72; }
.cal-legend-dot.holiday-dot { background: #C85A35; }
.cal-legend-dot.selected-dot { background: #164B44; }
.cal-legend-dot.blocked-dot { background: #e11d48; }
.cal-legend-dot.weekend-dot { background: #C88A2B; }

/* ---------- Pricing Panel ---------- */
.pricing-panel {
  background: linear-gradient(145deg, #FFFFFF 0%, #F7FBF8 48%, #FFF8EF 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 167, 44, 0.2);
  padding: 24px;
  box-shadow: 0 14px 36px rgba(22, 51, 44, 0.08);
}

@media (min-width: 640px) {
  .pricing-panel { padding: 28px; }
}

.pricing-panel .pricing-title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  color: #123D37;
  margin-bottom: 16px;
}

.pricing-panel .pricing-title::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #007A7A, #D4A72C, #EB6F4A);
}

/* Quick price suggestions */
.quick-price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.quick-price-btn {
  padding: 10px 6px;
  border: 1px solid var(--sage);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.quick-price-btn:hover {
  border-color: var(--pine);
  color: var(--pine);
  background: rgba(0, 122, 122, 0.03);
  transform: translateY(-1px);
}

.quick-price-btn .qp-icon { font-size: 15px; }
.quick-price-btn .qp-label { font-size: 9px; font-weight: 500; }

/* Availability action buttons */
.availability-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.availability-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.availability-action:hover {
  border-color: var(--pine);
  color: var(--pine);
  transform: translateY(-1px);
}

.availability-action.active {
  border-color: var(--pine);
  background: rgba(0, 122, 122, 0.08);
  color: var(--pine);
  box-shadow: 0 6px 18px rgba(0, 122, 122, 0.08);
}

.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.availability-dot.open { background: #5B8A72; }
.availability-dot.blocked { background: #e11d48; }

.calendar-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.date-settings-grid {
  display: grid;
  grid-template-columns: 1fr;   /* single column by default (mobile-safe) */
  gap: 14px;
}
@media (min-width: 768px) {
  .date-settings-grid {
    /* two shrinkable columns on wider screens — no forced 260px min */
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.date-setting-card {
  border-radius: 16px;
  border: 1px solid rgba(220, 232, 223, 0.9);
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(22, 51, 44, 0.05);
}

.price-card {
  border-color: rgba(0, 122, 122, 0.18);
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(234,248,244,0.72));
}

.holiday-card {
  border-color: rgba(235, 111, 74, 0.2);
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,245,238,0.8));
}

.setting-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.setting-help {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6D7C74;
}

.setting-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(0, 122, 122, 0.1);
  color: #006A67;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.price-field-shell {
  position: relative;
}

.price-currency {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 800;
  color: #007A7A;
  z-index: 1;
}

.price-field-shell .price-input {
  padding-left: 38px;
}

.holiday-toggle {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.holiday-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.holiday-toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #DDE7E1;
  transition: background 0.18s ease;
}

.holiday-toggle span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s ease;
}

.holiday-toggle input:checked + span {
  background: #EB6F4A;
}

.holiday-toggle input:checked + span::after {
  transform: translateX(20px);
}

.holiday-name-section {
  margin-top: 10px;
}

.holiday-name-input {
  padding: 10px 14px;
  font-size: 13px;
}

/* Price input */
.price-input-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.price-input-wrapper { flex: 1; }

.price-input {
  width: 100%;
  border: 2px solid var(--sage);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--pine);
  outline: none;
  transition: all 0.2s ease;
  background: var(--canvas);
}

.price-input:focus {
  border-color: var(--pine);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 122, 122, 0.08);
}

/* Selected dates info chip */
.selected-dates-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(0, 122, 122, 0.04), rgba(0, 122, 122, 0.08));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 122, 122, 0.1);
  animation: slideUp 0.25s ease;
  margin-bottom: 16px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dates-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--pine);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.dates-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dates-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.dates-range {
  font-size: 13px;
  font-weight: 600;
  color: var(--pine);
}

/* Pricing summary */
.pricing-summary {
  padding: 14px;
  background: var(--canvas);
  border-radius: var(--radius-md);
  margin-top: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: var(--ink);
}

.summary-row.sub {
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(220, 232, 223, 0.7);
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.summary-row.total {
  font-weight: 700;
  font-size: 15px;
  color: var(--pine);
}

.summary-total { font-weight: 700; }

/* ---------- Property Detail Panel ---------- */
.cal-property-detail {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(220, 232, 223, 0.7);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cal-property-detail .cpd-hero {
  position: relative;
  height: 180px;
}

.cal-property-detail .cpd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cal-property-detail .cpd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.cal-property-detail .cpd-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  color: white;
}

.cal-property-detail .cpd-hero-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
}

.cal-property-detail .cpd-hero-location {
  font-size: 12px;
  opacity: 0.9;
}

.cal-property-detail .cpd-body { padding: 18px 20px; }

.cal-property-detail .cpd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.cal-property-detail .cpd-stat {
  text-align: center;
  padding: 12px 10px;
  background: var(--canvas);
  border-radius: var(--radius-md);
  border: 1px solid rgba(220, 232, 223, 0.3);
}

.cal-property-detail .cpd-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--pine);
}

.cal-property-detail .cpd-stat-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

/* Upcoming bookings list */
.cal-bookings-list { margin-top: 12px; }

.cal-booking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(220, 232, 223, 0.5);
  transition: all 0.15s ease;
}

.cal-booking-item:last-child { border-bottom: none; }

.cal-booking-item .cbi-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.cal-booking-item .cbi-info { flex: 1; min-width: 0; }
.cal-booking-item .cbi-name { font-size: 12px; font-weight: 600; }
.cal-booking-item .cbi-dates { font-size: 11px; color: var(--muted); }
.cal-booking-item .cbi-amount { font-size: 12px; font-weight: 700; color: var(--pine); }

/* ---------- Booking Detail Popup ---------- */
.cal-booking-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 55;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 28px;
  min-width: min(320px, calc(100vw - 32px));
  max-width: min(400px, calc(100vw - 24px));
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cal-booking-popup.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cal-booking-popup .popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cal-booking-popup .popup-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--pine);
}

.cal-booking-popup .popup-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
}

.cal-booking-popup .popup-close:hover {
  background: rgba(220, 232, 223, 0.5);
  transform: rotate(90deg);
}

.cal-booking-popup .popup-guest {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(220, 232, 223, 0.5);
}

.cal-booking-popup .popup-guest img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.cal-booking-popup .popup-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cal-booking-popup .pd-item {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--canvas);
  border-radius: var(--radius-md);
}

.cal-booking-popup .pd-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cal-booking-popup .pd-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 3px;
}

/* ---------- Hover Tooltip ---------- */
.cal-hover-tooltip {
  border: 1px solid rgba(220, 232, 223, 0.8);
  border-radius: 14px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.12);
  background: white;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.12s ease, transform 0.12s ease;
  position: absolute;
  z-index: 9999;
  padding: 12px 16px;
  max-width: 260px;
}

.cal-hover-tooltip.visible {
  opacity: 1;
  transform: scale(1);
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #EEF3F0;
  padding-bottom: 8px;
}

.tooltip-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--pine);
}

.tooltip-guest-name {
  font-size: 13px;
  font-weight: 700;
  color: #1E2D34;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5E727A;
  margin-bottom: 3px;
}

.tooltip-row span.val {
  font-weight: 600;
  color: #1E2D34;
}

.tooltip-holiday {
  font-size: 12px;
  font-weight: 700;
  color: #C85A35;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Filter action bar ---------- */
.cal-action-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.cal-action-strip .action-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.cal-action-strip .action-btn:hover {
  border-color: var(--pine);
  color: var(--pine);
}

.cal-action-strip .action-btn.danger {
  border-color: #DC2626;
  color: #DC2626;
}

.cal-action-strip .action-btn.danger:hover {
  background: #FEF2F2;
}

/* ---------- Form label ---------- */
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}


/* ---------- Calendar responsive refinements ---------- */
@media (max-width: 1023px) {
  .property-sidebar-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .property-sidebar-item {
    border-bottom: none;
    border-right: 1px solid rgba(220, 232, 223, 0.5);
  }

  .cal-property-detail {
    display: none;
  }
}

@media (max-width: 760px) {
  .cal-base-price-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .cal-base-price-bar .bp-percent-summary,
  .cal-base-price-bar .bp-live-hint,
  .cal-base-price-bar .bp-save-btn {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .cal-base-price-bar .bp-save-btn {
    width: 100%;
    min-height: 40px;
  }

  .calendar-card,
  .pricing-panel {
    padding: 16px;
  }

  .calendar-nav {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .view-mode-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .view-mode-toggle select {
    flex: 1;
  }

  .cal-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .cal-filter-pill {
    flex: 0 0 auto;
  }

  .quick-price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .date-settings-grid {
    grid-template-columns: 1fr;
  }

  .calendar-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cal-weekday {
    font-size: 9px;
    padding: 9px 0;
    letter-spacing: 0.05em;
  }

  .cal-days {
    min-width: 100%;
  }

  .cal-day {
    min-height: 58px;
    padding: 4px 2px;
  }

  .cal-day .day-price small {
    display: none;
  }

  .availability-action-row,
  .quick-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-price-badge {
    max-width: 92%;
    min-height: 13px;
    padding: 0 4px;
    font-size: 7px;
  }

  .selected-dates-info {
    align-items: flex-start;
  }

  .dates-range {
    line-height: 1.35;
  }
}
