/* v1.9.40 Timeline Calendar Rendering Fix */
.stayfinder-timeline-wrap,
.anywhere-stays-timeline-wrap,
.stayfinder-timeline-calendar-wrap,
.anywhere-timeline-calendar-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}

.stayfinder-timeline-calendar,
.anywhere-stays-timeline-calendar,
.anywhere-timeline-calendar {
  width: 100%;
  max-width: none;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.stayfinder-timeline-calendar th,
.stayfinder-timeline-calendar td,
.anywhere-stays-timeline-calendar th,
.anywhere-stays-timeline-calendar td,
.anywhere-timeline-calendar th,
.anywhere-timeline-calendar td {
  box-sizing: border-box;
  vertical-align: middle;
  white-space: nowrap;
  padding: 8px 10px;
  min-width: 44px;
  height: 42px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  line-height: 1.2;
}

.stayfinder-timeline-calendar thead th,
.anywhere-stays-timeline-calendar thead th,
.anywhere-timeline-calendar thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
  color: #111827;
  font-weight: 700;
  text-align: center;
}

.stayfinder-timeline-calendar .stayfinder-timeline-row-label,
.stayfinder-timeline-calendar .timeline-row-label,
.anywhere-stays-timeline-calendar .stayfinder-timeline-row-label,
.anywhere-stays-timeline-calendar .timeline-row-label,
.anywhere-timeline-calendar .stayfinder-timeline-row-label,
.anywhere-timeline-calendar .timeline-row-label {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  min-width: 220px;
  width: 220px;
  max-width: 260px;
  text-align: left;
  font-weight: 700;
  color: #111827;
  box-shadow: 1px 0 0 #e5e7eb;
}

.stayfinder-timeline-calendar thead .stayfinder-timeline-row-label,
.stayfinder-timeline-calendar thead .timeline-row-label,
.anywhere-stays-timeline-calendar thead .stayfinder-timeline-row-label,
.anywhere-stays-timeline-calendar thead .timeline-row-label,
.anywhere-timeline-calendar thead .stayfinder-timeline-row-label,
.anywhere-timeline-calendar thead .timeline-row-label {
  z-index: 5;
  background: #f8fafc;
}

.stayfinder-timeline-calendar .is-booked,
.stayfinder-timeline-calendar .booked,
.stayfinder-timeline-calendar .unavailable,
.anywhere-stays-timeline-calendar .is-booked,
.anywhere-stays-timeline-calendar .booked,
.anywhere-stays-timeline-calendar .unavailable,
.anywhere-timeline-calendar .is-booked,
.anywhere-timeline-calendar .booked,
.anywhere-timeline-calendar .unavailable {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}

.stayfinder-timeline-calendar .is-open,
.stayfinder-timeline-calendar .available,
.stayfinder-timeline-calendar .open,
.anywhere-stays-timeline-calendar .is-open,
.anywhere-stays-timeline-calendar .available,
.anywhere-stays-timeline-calendar .open,
.anywhere-timeline-calendar .is-open,
.anywhere-timeline-calendar .available,
.anywhere-timeline-calendar .open {
  background: #ecfdf5;
  color: #065f46;
}

.stayfinder-timeline-calendar .is-past,
.stayfinder-timeline-calendar .past,
.anywhere-stays-timeline-calendar .is-past,
.anywhere-stays-timeline-calendar .past,
.anywhere-timeline-calendar .is-past,
.anywhere-timeline-calendar .past {
  background: #f3f4f6;
  color: #9ca3af;
}

.stayfinder-timeline-legend,
.anywhere-stays-timeline-legend,
.anywhere-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 12px 0 18px;
  font-size: 13px;
  color: #374151;
}

.stayfinder-timeline-legend span,
.anywhere-stays-timeline-legend span,
.anywhere-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stayfinder-timeline-legend span::before,
.anywhere-stays-timeline-legend span::before,
.anywhere-timeline-legend span::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  background: #e5e7eb;
}

.stayfinder-timeline-legend .available::before,
.stayfinder-timeline-legend .open::before,
.anywhere-stays-timeline-legend .available::before,
.anywhere-stays-timeline-legend .open::before,
.anywhere-timeline-legend .available::before,
.anywhere-timeline-legend .open::before {
  background: #10b981;
}

.stayfinder-timeline-legend .booked::before,
.stayfinder-timeline-legend .unavailable::before,
.anywhere-stays-timeline-legend .booked::before,
.anywhere-stays-timeline-legend .unavailable::before,
.anywhere-timeline-legend .booked::before,
.anywhere-timeline-legend .unavailable::before {
  background: #ef4444;
}

.stayfinder-timeline-toolbar,
.anywhere-stays-timeline-toolbar,
.anywhere-timeline-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}

.stayfinder-timeline-toolbar a,
.stayfinder-timeline-toolbar button,
.anywhere-stays-timeline-toolbar a,
.anywhere-stays-timeline-toolbar button,
.anywhere-timeline-toolbar a,
.anywhere-timeline-toolbar button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 768px) {
  .stayfinder-timeline-calendar,
  .anywhere-stays-timeline-calendar,
  .anywhere-timeline-calendar {
    min-width: 760px;
  }

  .stayfinder-timeline-calendar .stayfinder-timeline-row-label,
  .stayfinder-timeline-calendar .timeline-row-label,
  .anywhere-stays-timeline-calendar .stayfinder-timeline-row-label,
  .anywhere-stays-timeline-calendar .timeline-row-label,
  .anywhere-timeline-calendar .stayfinder-timeline-row-label,
  .anywhere-timeline-calendar .timeline-row-label {
    min-width: 160px;
    width: 160px;
  }
}




/* Booking Timeline Calendar: one fixed date track per day; bookings are an
 * absolute overlay inside the date track, never auto-placed grid items. */
.anywhere-timeline-controls { display:flex; flex-wrap:wrap; gap:12px 14px; align-items:flex-end; margin:0 0 18px; padding:16px; background:#f8fafc; border:1px solid #e5e7eb; border-radius:16px; }
.anywhere-timeline-controls label { display:flex; flex-direction:column; gap:6px; min-width:135px; margin:0 !important; font-size:12px; font-weight:400; }
.anywhere-timeline-controls label:has([name="timeline_property_id"]),
.anywhere-timeline-controls label:has([name="timeline_accommodation_id"]) { flex:1 1 220px; max-width:340px; }
.anywhere-timeline-controls select,.anywhere-timeline-controls input { min-height:40px; border:1px solid #d1d5db; border-radius:10px; padding:8px 10px; font-size:12px; }
.anywhere-timeline-controls select { width:100%; max-width:100%; }
.anywhere-timeline-summary { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 12px; }
.anywhere-timeline-summary span { display:inline-flex; align-items:center; gap:6px; background:#f8fafc; border:1px solid #e5e7eb; border-radius:999px; padding:8px 12px; font-size:12px; font-weight:400; color:#334155; }
.anywhere-timeline-summary span.is-warning { background:#fee2e2; border-color:#fecaca; color:#991b1b; }
.anywhere-timeline-summary strong { font-weight:400; }
.anywhere-timeline-legend i { width:16px; height:10px; border-radius:999px; display:inline-block; border:1px solid rgba(0,0,0,.12); }
.anywhere-timeline-empty { padding:18px; border:1px dashed #cbd5e1; border-radius:16px; background:#f8fafc; }

.anywhere-timeline-wrap {
  --anywhere-timeline-left-width:310px;
  --anywhere-timeline-day-width:50px;
  --anywhere-timeline-track-width:calc(var(--anywhere-timeline-days) * var(--anywhere-timeline-day-width));
  position:relative; isolation:isolate; box-sizing:border-box;
  width:100%; max-width:100%; min-width:0; max-height:72vh; overflow:auto;
  -webkit-overflow-scrolling:touch; border:1px solid #e5e7eb; border-radius:18px; background:#fff;
}
.anywhere-timeline-wrap .anywhere-timeline-grid {
  position:relative; box-sizing:content-box;
  width:calc(var(--anywhere-timeline-left-width) + var(--anywhere-timeline-track-width)) !important;
  min-width:0 !important; max-width:none !important; padding:0 !important; margin:0 !important;
}
.anywhere-timeline-grid > .anywhere-timeline-header,
.anywhere-timeline-grid > .anywhere-timeline-row {
  display:grid !important; grid-template-rows:var(--anywhere-timeline-row-height);
  grid-auto-flow:row; gap:0 !important; width:100% !important; min-width:0 !important; max-width:none !important;
  box-sizing:border-box; padding:0 !important; margin:0 !important; border:0 !important;
}
.anywhere-timeline-grid > .anywhere-timeline-header {
  --anywhere-timeline-row-height:46px;
  grid-template-columns:var(--anywhere-timeline-left-width) repeat(var(--anywhere-timeline-days), var(--anywhere-timeline-day-width));
  position:sticky !important; top:0; z-index:10; background:#0f172a; color:#fff;
}
.anywhere-timeline-grid > .anywhere-timeline-row {
  --anywhere-timeline-row-height:72px;
  grid-template-columns:var(--anywhere-timeline-left-width) var(--anywhere-timeline-track-width);
  position:relative; isolation:isolate;
}
.anywhere-timeline-grid > .anywhere-timeline-row--type { --anywhere-timeline-row-height:44px; }
.anywhere-timeline-grid .anywhere-timeline-corner,
.anywhere-timeline-grid .anywhere-timeline-label,
.anywhere-timeline-grid .anywhere-timeline-day,
.anywhere-timeline-grid .anywhere-timeline-cell {
  box-sizing:border-box !important; min-width:0 !important; max-width:none !important;
  width:100% !important; height:var(--anywhere-timeline-row-height) !important; min-height:0 !important;
  margin:0 !important; border:0 !important; border-right:1px solid #e2e8f0 !important; border-bottom:1px solid #e2e8f0 !important;
}
.anywhere-timeline-grid .anywhere-timeline-corner,
.anywhere-timeline-grid .anywhere-timeline-label {
  position:sticky !important; left:0; z-index:5;
  display:flex !important; flex-direction:column; justify-content:center; align-items:flex-start;
  padding:8px 12px !important; gap:4px; overflow:hidden; text-align:left;
  font-size:11.5px; line-height:1.2; font-weight:400; background:#fff;
}
.anywhere-timeline-grid .anywhere-timeline-corner { background:#0f172a; color:#fff; z-index:11; }
.anywhere-timeline-grid .anywhere-timeline-day {
  display:flex !important; flex-direction:column; justify-content:center; align-items:center; gap:1px;
  padding:4px 2px !important; font-size:10.5px; font-weight:400; line-height:1.05;
  text-align:center; background:#0f172a; color:#fff;
}
.anywhere-timeline-grid .anywhere-timeline-day-number { display:block; font-size:11px; line-height:1.05; color:#fff !important; }
.anywhere-timeline-grid .anywhere-timeline-weekday,.anywhere-timeline-grid .anywhere-timeline-day small { display:block; font-size:10px; line-height:1.05; color:#cbd5e1 !important; }
.anywhere-timeline-grid .anywhere-timeline-unit-name { display:block; width:100%; font-size:12px; line-height:1.25; font-weight:600; color:#172033; white-space:normal; overflow-wrap:anywhere; max-height:2.5em; overflow:hidden; }
.anywhere-timeline-grid .anywhere-timeline-property-name,.anywhere-timeline-grid .anywhere-timeline-accommodation-name { display:block; margin:0 !important; width:100%; font-size:10.5px; line-height:1.2; font-weight:400; color:#64748b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.anywhere-timeline-grid .anywhere-timeline-row--room .anywhere-timeline-label { padding-left:20px !important; }
.anywhere-timeline-grid .anywhere-timeline-track {
  position:relative !important; display:grid !important;
  grid-template-columns:repeat(var(--anywhere-timeline-days), var(--anywhere-timeline-day-width));
  grid-template-rows:var(--anywhere-timeline-row-height); gap:0 !important;
  width:var(--anywhere-timeline-track-width) !important; min-width:0 !important; max-width:none !important;
  box-sizing:border-box; padding:0 !important; margin:0 !important; border:0 !important; background:transparent !important;
}
.anywhere-timeline-grid .anywhere-timeline-cell { padding:0 !important; background:#fff !important; }
.anywhere-timeline-grid .anywhere-timeline-cell:nth-child(even) { background:#fbfdff !important; }
.anywhere-timeline-grid .anywhere-timeline-row--type .anywhere-timeline-label,
.anywhere-timeline-grid .anywhere-timeline-row--type .anywhere-timeline-cell { background:#edf2f7 !important; }
.anywhere-timeline-grid .anywhere-timeline-row--type .anywhere-timeline-unit-name { font-weight:700; }
.anywhere-timeline-grid .anywhere-timeline-bars {
  position:absolute !important; inset:0 !important; display:block !important;
  width:auto !important; height:auto !important; min-width:0 !important; min-height:0 !important; max-width:none !important;
  padding:0 !important; margin:0 !important; border:0 !important; background:transparent !important;
  box-shadow:none !important; pointer-events:none !important; z-index:2;
}
.anywhere-timeline-grid .anywhere-timeline-bar {
  position:absolute !important; top:calc((var(--anywhere-timeline-row-height) - 30px) / 2) !important;
  display:block !important; height:30px !important; min-width:0 !important; max-width:100% !important;
  box-sizing:border-box !important; margin:0 !important; padding:5px 8px !important;
  border-radius:999px; border:1px solid rgba(0,0,0,.12); background:#475569; color:#fff;
  font-size:11px; line-height:18px; font-weight:400; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
  pointer-events:auto !important; box-shadow:0 8px 18px rgba(15,23,42,.15); text-decoration:none !important;
}
.anywhere-timeline-grid .anywhere-timeline-bar span { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:inherit !important; }
.anywhere-timeline-type-booking:hover { transform:translateY(-1px); box-shadow:0 12px 24px rgba(15,23,42,.22) !important; }
.anywhere-timeline-status-pending,.anywhere-timeline-status-pending_approval { background:#f59e0b !important; color:#111827 !important; border-color:#d97706 !important; }
.anywhere-timeline-status-approved { background:#2563eb !important; color:#fff !important; border-color:#1d4ed8 !important; }
.anywhere-timeline-status-awaiting_payment { background:#facc15 !important; color:#111827 !important; border-color:#ca8a04 !important; }
.anywhere-timeline-status-confirmed,.anywhere-timeline-status-paid,.anywhere-timeline-status-deposit_paid,.anywhere-timeline-status-checked_in { background:#16a34a !important; color:#fff !important; border-color:#15803d !important; }
.anywhere-timeline-status-completed { background:#0f766e !important; color:#fff !important; border-color:#0f766e !important; }
.anywhere-timeline-status-cancelled,.anywhere-timeline-status-declined,.anywhere-timeline-status-expired { background:#dc2626 !important; color:#fff !important; border-color:#b91c1c !important; }
.anywhere-timeline-status-blocked,.anywhere-timeline-status-maintenance,.anywhere-timeline-status-owner_block { background:#475569 !important; color:#fff !important; border-color:#334155 !important; }
.anywhere-timeline-status-overdue { background:#f97316 !important; color:#fff !important; border-color:#c2410c !important; }
.anywhere-timeline-payment-unpaid.anywhere-timeline-status-awaiting_payment { box-shadow:0 0 0 2px rgba(250,204,21,.35),0 8px 18px rgba(15,23,42,.15) !important; }
@media(max-width:768px) {
  .anywhere-timeline-wrap { --anywhere-timeline-left-width:245px; --anywhere-timeline-day-width:48px; max-height:68vh; }
}
.anywhere-timeline-review { margin:18px 0; padding:16px; border:1px solid #dce3eb; border-radius:14px; background:#fff; }
.anywhere-timeline-review h4 { margin:0 0 12px; font-size:17px; }
.anywhere-timeline-review-count { display:inline-flex; min-width:23px; height:23px; align-items:center; justify-content:center; padding:0 6px; border-radius:12px; background:#ffedd5; color:#92400e; font-size:12px; }
.anywhere-timeline-review-list { display:grid; gap:8px; }
.anywhere-timeline-review-item { display:flex; gap:14px; justify-content:space-between; align-items:center; padding:12px; border:1px solid #edf0f4; border-radius:10px; }
.anywhere-timeline-review-item div { display:grid; gap:4px; min-width:0; }
.anywhere-timeline-review-item span { font-size:12px; color:#475569; }
.anywhere-timeline-review-item a { flex-shrink:0; font-weight:600; }
@media(max-width:620px){ .anywhere-timeline-review-item { align-items:flex-start; flex-direction:column; gap:7px; } }

