/* ============================================
   BOOKING SYSTEM — CSS
   Matching dark luxury theme
   ============================================ */

/* ---- Progress Steps ---- */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  padding: 1.5rem 0;
}

.booking-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  min-width: 80px;
}

.booking-progress-step .progress-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.booking-progress-step span {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.booking-progress-step.active .progress-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(155, 27, 48, 0.5);
}

.booking-progress-step.active span {
  color: var(--text);
  font-weight: 600;
}

.booking-progress-step.done .progress-num {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.booking-progress-step.done span {
  color: #22c55e;
}

.booking-progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  max-width: 80px;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
}

/* ---- Step Container ---- */
.booking-step {
  max-width: 900px;
  margin: 0 auto;
}

.booking-step-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.booking-step-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.current-apartment-heading {
  text-align: center;
  margin: -0.75rem 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

/* ---- Step 1: Apartment Selection ---- */
.booking-apartments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.booking-apt-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.booking-apt-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(155, 27, 48, 0.2);
}

.booking-apt-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-apt-card input[type="radio"]:checked ~ .booking-apt-check {
  opacity: 1;
}

.booking-apt-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(155, 27, 48, 0.3);
}

.booking-apt-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.booking-apt-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.booking-apt-card:hover .booking-apt-image img {
  transform: scale(1.05);
}

.booking-apt-info {
  padding: 1.25rem;
}

.booking-apt-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.booking-apt-price {
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.booking-apt-price strong {
  color: var(--accent-light);
  font-size: 1.1rem;
}

.booking-apt-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.booking-apt-features span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.booking-apt-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0;
  color: #22c55e;
  transition: var(--transition);
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 4px;
}

/* ---- Calendar ---- */

/* Two-column layout: main calendar + alt preview */
.booking-calendars-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
  max-width: 920px;
  margin: 2rem auto;
}

.booking-calendar-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0;
  max-width: 600px;
}

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

.calendar-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: capitalize;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
  background: transparent;
  cursor: pointer;
}

.calendar-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  border: 1px solid transparent;
}

.cal-day:hover:not(.cal-blocked):not(.cal-past):not(.cal-empty) {
  background: rgba(155, 27, 48, 0.2);
  border-color: var(--accent);
}

.cal-day.cal-empty {
  cursor: default;
}

.cal-day.cal-past {
  color: var(--text-dim);
  opacity: 0.4;
  cursor: not-allowed;
}

.cal-day.cal-blocked {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.5;
  cursor: pointer;
  background: rgba(239, 68, 68, 0.08);
}

.cal-day.cal-blocked[data-tooltip] {
  position: relative;
}

.cal-day.cal-blocked[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgba(10, 10, 12, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cal-day.cal-blocked[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.cal-day.cal-weekend {
  color: var(--gold-light);
}

.cal-day.cal-selected-start,
.cal-day.cal-selected-end {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  font-weight: 700;
  opacity: 1;
}

.cal-day.cal-in-range {
  background: rgba(155, 27, 48, 0.25);
  border-color: rgba(155, 27, 48, 0.3);
}

.cal-day .cal-price {
  position: absolute;
  bottom: 2px;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
}

.cal-day.cal-weekend .cal-price {
  color: var(--gold-dark);
}

/* Calendar legend */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-dot.available {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
}

.legend-dot.blocked {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.legend-dot.selected {
  background: var(--accent);
}

.legend-dot.weekend {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ---- Date Summary ---- */
.booking-date-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: 600px;
  margin: 1.5rem auto;
}

.date-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.date-summary-row span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.date-summary-row strong {
  color: var(--text);
}

.date-summary-row.total {
  border-bottom: none;
  padding-top: 0.75rem;
  font-size: 1.05rem;
}

.date-summary-row.total strong {
  color: var(--accent-light);
  font-size: 1.2rem;
}

/* ---- Packages ---- */
.booking-packages {
  max-width: 600px;
  margin: 2rem auto;
}

.booking-packages h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.optional-label {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.packages-select {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.package-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.package-option:hover {
  border-color: var(--accent);
}

.package-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(155, 27, 48, 0.08);
}

.package-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--accent);
}

.package-option-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.package-option-body strong {
  font-size: 0.95rem;
}

.package-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.package-price {
  font-size: 0.9rem;
  color: var(--accent-light);
  font-weight: 600;
}

/* ---- Guest Form ---- */
.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  margin: 2rem 0;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155, 27, 48, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ---- Summary Card ---- */
.booking-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  height: fit-content;
}

.booking-summary-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.summary-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-detail strong {
  color: var(--text);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 0.5rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--accent-dark);
  font-size: 1.1rem;
}

.summary-total strong {
  color: var(--accent-light);
  font-size: 1.3rem;
}

.summary-payment-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- Countdown Timer ---- */
.booking-countdown-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 10px;
  padding: 0.65rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #e8c84a;
}
.booking-countdown-bar strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: #f5d25a;
}
.booking-countdown-bar.countdown-urgent {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  animation: countdownPulse 1s ease-in-out infinite;
}
.booking-countdown-bar.countdown-urgent strong {
  color: #ef4444;
}
.booking-countdown-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #e8c84a;
  margin-bottom: 1rem;
  padding: 0.5rem 0.9rem;
  background: rgba(234, 179, 8, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(234, 179, 8, 0.25);
}
.booking-countdown-inline strong {
  font-variant-numeric: tabular-nums;
}
.booking-countdown-inline.countdown-urgent {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}
@keyframes countdownPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ---- Booking Actions ---- */
.booking-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.booking-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---- Status Screens ---- */
.booking-status {
  text-align: center;
  padding: 3rem 1rem;
}

.booking-status h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.booking-status p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.booking-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.booking-confirm-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .booking-form-grid {
    grid-template-columns: 1fr;
  }
  
  .booking-summary-card {
    position: static;
  }
  
  .booking-apartments {
    grid-template-columns: 1fr;
  }
  
  .booking-progress-step span {
    display: none;
  }
  
  .booking-progress-line {
    margin-bottom: 0;
  }
  
  .booking-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cal-day .cal-price {
    display: none;
  }
}

/* ---- Month/Year Selector ---- */
.calendar-month-picker {
  position: relative;
  cursor: pointer;
}
.calendar-month-picker h3 {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  user-select: none;
}
.calendar-month-picker h3::after {
  content: '';
  border: 5px solid transparent;
  border-top-color: var(--text-muted);
  margin-top: 3px;
}
.month-picker-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  z-index: 100;
  min-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.month-picker-dropdown.show {
  display: block;
}
.month-picker-year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.month-picker-year button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.month-picker-year button:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.month-picker-year span {
  font-weight: 600;
  font-size: 1.05rem;
}
.month-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.month-picker-grid button {
  padding: 8px 4px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}
.month-picker-grid button:hover:not(:disabled) {
  background: rgba(155, 27, 48, 0.15);
  border-color: var(--accent);
  color: var(--text);
}
.month-picker-grid button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.month-picker-grid button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---- Booking Package Cards ---- */
.booking-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.booking-pkg-card {
  background: #1a1520;
  border: 1px solid rgba(155,27,48,0.25);
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.booking-pkg-card:hover:not(.pkg-disabled) {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(155,27,48,0.15);
}
.booking-pkg-card.pkg-selected {
  border-color: var(--accent);
  background: rgba(155, 27, 48, 0.08);
  box-shadow: 0 0 20px rgba(155, 27, 48, 0.15);
}
.booking-pkg-card.pkg-featured-card {
  border: 2px solid #d4a853;
  background: linear-gradient(135deg, #1a1520 0%, #2a1a25 100%);
  box-shadow: 0 0 25px rgba(212,168,83,0.12);
}
.booking-pkg-card.pkg-featured-card:hover {
  border-color: #e8c170;
  box-shadow: 0 0 35px rgba(212,168,83,0.25);
}
.booking-pkg-card.pkg-featured-card.pkg-selected {
  border-color: #d4a853;
  box-shadow: 0 0 30px rgba(212,168,83,0.3);
}
.booking-pkg-card.pkg-featured-card .pkg-card-icon {
  color: #d4a853;
}
.booking-pkg-card.pkg-featured-card .pkg-card-price {
  color: #d4a853;
}
.booking-pkg-card.pkg-featured-card .pkg-card-list li i {
  color: #d4a853;
}
.pkg-badge-rec {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4a853, #b8912e);
  color: #1a1520;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.booking-pkg-card.pkg-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.booking-pkg-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.booking-pkg-card .pkg-card-icon {
  color: var(--accent-light);
  margin: 0 auto 0.4rem;
  width: 1.8rem;
  height: 1.8rem;
}
.booking-pkg-card .pkg-card-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #fff;
  line-height: 1.3;
}
.booking-pkg-card .pkg-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  text-align: left;
  flex: 1;
}
.booking-pkg-card .pkg-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #aaa;
  font-size: 0.78rem;
  line-height: 1.35;
}
.booking-pkg-card .pkg-card-list li:last-child {
  border-bottom: none;
}
.booking-pkg-card .pkg-card-list li i {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  color: #9B1B30;
  margin-top: 1px;
}
.booking-pkg-card .pkg-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex: 1;
  line-height: 1.4;
}
.booking-pkg-card .pkg-card-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-top: auto;
  padding-top: 0.5rem;
}
.booking-pkg-card .pkg-card-price small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}
.pkg-old-price {
  text-decoration: line-through;
  color: #666;
  font-size: 0.85rem;
  font-weight: 400;
}
.booking-pkg-card .pkg-card-days {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.booking-pkg-card .pkg-card-days label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pkg-days-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.pkg-day-btn {
  background: rgba(155,27,48,0.15);
  border: none;
  color: var(--accent-light);
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pkg-day-btn:hover {
  background: rgba(155,27,48,0.3);
}
.pkg-day-val {
  width: 40px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--bg-card);
  height: 36px;
  line-height: 36px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.pkg-days-total {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
}
.badge-soon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #d4af37, #c5981a);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.booking-pkg-card .pkg-card-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: #22c55e;
  opacity: 0;
  transition: var(--transition);
}
.booking-pkg-card.pkg-selected .pkg-card-check {
  opacity: 1;
}

/* ---- Invoice Toggle ---- */
.invoice-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.invoice-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.invoice-toggle span {
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.invoice-nip-field {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.invoice-nip-field.show {
  max-height: 80px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* ---- RODO ---- */
.rodo-section {
  margin: 1.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.rodo-section input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.rodo-section label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.rodo-section label a {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ---- Payment Methods ---- */
.payment-methods-wrap {
  text-align: center;
  margin: 1.5rem 0 0.5rem;
}
.payment-methods-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.payment-methods .pm-icon {
  height: 24px;
  width: auto;
  opacity: 0.65;
  transition: var(--transition);
  filter: grayscale(20%);
}
.payment-methods .pm-icon:hover {
  opacity: 1;
  filter: none;
}

/* ---- Order Bump ---- */
.order-bump {
  border: 2px dashed rgba(212,175,55,0.4);
  border-radius: 12px;
  background: rgba(212,175,55,0.04);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: var(--transition);
}
.order-bump:has(#orderBumpCheck:checked) {
  border-color: var(--gold);
  background: rgba(212,175,55,0.08);
  box-shadow: 0 0 20px rgba(212,175,55,0.08);
}
.order-bump-header {
  padding: 0.9rem 1.2rem;
  background: rgba(212,175,55,0.06);
  border-bottom: 1px solid rgba(212,175,55,0.12);
}
.order-bump-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
}
.order-bump-toggle input {
  display: none;
}
.order-bump-checkmark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(212,175,55,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  background: transparent;
}
.order-bump-toggle input:checked ~ .order-bump-checkmark {
  background: var(--gold);
  border-color: var(--gold);
}
.order-bump-toggle input:checked ~ .order-bump-checkmark::after {
  content: '✓';
  color: #000;
  font-size: 14px;
  font-weight: 700;
}
.order-bump-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}
.order-bump-body {
  padding: 1rem 1.2rem 1.2rem;
}
.order-bump-product {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.order-bump-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}
.order-bump-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.order-bump-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}
.order-bump-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.order-bump-price-tag {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}
.order-bump-price-tag small {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
}
.order-bump-qty {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.order-bump-qty-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.order-bump-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.order-bump-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.order-bump-qty-btn:hover {
  background: rgba(212,175,55,0.12);
  color: var(--gold);
}
.order-bump-qty-val {
  width: 36px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  line-height: 36px;
}
.order-bump-qty-total {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}

/* ---- Summary sub-detail ---- */
.summary-detail-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 400;
  display: block;
  margin-top: 1px;
}

/* ---- Admin blocked ---- */
.cal-day.cal-admin-blocked {
  background: rgba(155, 27, 48, 0.06);
  cursor: not-allowed;
  opacity: 0.5;
}
.cal-day .cal-blocked-label {
  position: absolute;
  bottom: 1px;
  font-size: 0.45rem;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---- Clickable apartment thumbnail ---- */
.apartment-image a {
  display: block;
  height: 100%;
}
.apartment-image a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.apartment-card:hover .apartment-image a img {
  transform: scale(1.08);
}

/* ---- Calendar day sizing for prices ---- */
.cal-day {
  flex-direction: column;
  padding-top: 4px;
  min-height: 48px;
}

/* ---- Alternative Apartment Mini Calendar Panel ---- */
.alt-calendar-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.alt-calendar-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  opacity: 0.45;
  filter: saturate(0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.alt-calendar-panel:hover .alt-calendar-inner {
  opacity: 1;
  filter: saturate(1);
}

/* Gradient overlay — fades out the bottom, invites hover */
.alt-calendar-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(7, 5, 7, 0.55) 50%,
    rgba(7, 5, 7, 0.9) 100%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
  border-radius: 0 0 var(--radius) var(--radius);
}

.alt-calendar-panel:hover .alt-calendar-fade-overlay {
  opacity: 0;
}

.alt-calendar-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.alt-calendar-header strong {
  color: var(--accent);
  font-size: 0.82rem;
}

.alt-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 4px;
}

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

.alt-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  position: relative;
}

.alt-cal-day:hover:not(.alt-cal-blocked):not(.alt-cal-empty):not(.alt-cal-past) {
  background: rgba(155, 27, 48, 0.25);
  border-color: var(--accent);
  transform: scale(1.15);
}

.alt-cal-day.alt-cal-empty {
  cursor: default;
}

.alt-cal-day.alt-cal-past {
  color: var(--text-dim);
  opacity: 0.3;
  cursor: default;
}

.alt-cal-day.alt-cal-blocked {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.4;
  cursor: default;
  background: rgba(239, 68, 68, 0.08);
}

.alt-cal-day.alt-cal-weekend {
  color: var(--gold-light);
}

.alt-cal-day.alt-cal-available {
  color: var(--text);
}

.alt-cal-day.alt-cal-selected-start,
.alt-cal-day.alt-cal-selected-end {
  background: rgba(155, 27, 48, 0.3);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.alt-cal-day.alt-cal-in-range {
  background: rgba(155, 27, 48, 0.2);
  border-color: rgba(155, 27, 48, 0.3);
}

.alt-calendar-switch-btn {
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.72rem !important;
  padding: 6px 8px !important;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alt-calendar-panel:hover .alt-calendar-switch-btn {
  opacity: 1;
  transform: translateY(0);
}

.alt-calendar-panel.has-selection .alt-calendar-switch-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Alternative Apartment Banner ---- */
.alt-apartment-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.10));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
  animation: altBannerSlideIn 0.35s ease-out;
}
.alt-apartment-banner-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
}
.alt-apartment-banner-text {
  flex: 1;
  min-width: 0;
}
.alt-apartment-banner-text strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary, #fff);
  margin-bottom: 2px;
}
.alt-apartment-banner-text p {
  font-size: 13px;
  color: var(--text-secondary, #ccc);
  margin: 0;
  line-height: 1.4;
}
.alt-apartment-banner .btn-sm {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 13px;
  padding: 8px 16px;
}
.cal-blocked {
  cursor: pointer !important;
}
@keyframes altBannerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive: calendars layout ---- */
@media (max-width: 800px) {
  .booking-calendars-layout {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  .alt-calendar-panel {
    order: 2;
  }
  .alt-calendar-inner {
    opacity: 0.55;
    filter: saturate(0.5);
  }
  .alt-calendar-fade-overlay {
    height: 40%;
  }
}
@media (max-width: 600px) {
  .alt-apartment-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
