/* ==========================================================================
   SHORT TERM STAY ACCOMMODATION - LIGHTBOX & MODAL STYLES
   ========================================================================== */

/* --- Modal Overlay Base --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* --- Booking Modal Box --- */
.booking-modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .booking-modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 32px;
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  color: #FFFFFF;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-text h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.modal-header-text p {
  color: #D8E2DC;
  font-size: 0.88rem;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Modal Price Calculator Strip */
.price-estimate-strip {
  background: #F4EFEA;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border: 1px solid rgba(27, 67, 50, 0.1);
}

.price-estimate-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5C6764;
}

.price-estimate-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1B4332;
}

/* Agreement Box */
.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: #374151;
  cursor: pointer;
}

.agreement-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #1B4332;
  cursor: pointer;
}

/* --- Booking Success Screen --- */
.booking-success-view {
  display: none;
  text-align: center;
  padding: 36px 20px;
}

.booking-success-view.active {
  display: block;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  background: #EBF3EE;
  color: #1B4332;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 20px;
  border: 2px solid #52B788;
}

.booking-success-view h3 {
  font-size: 1.7rem;
  color: #1B4332;
  margin-bottom: 8px;
}

.booking-success-view .success-lead {
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 24px;
  line-height: 1.6;
}

.booking-receipt-card {
  background: #FAF7F2;
  border-radius: 16px;
  padding: 20px 24px;
  text-align: left;
  margin-bottom: 24px;
  border: 1px solid rgba(27, 67, 50, 0.1);
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.receipt-header strong {
  color: #1B4332;
  font-size: 0.95rem;
}

.receipt-ref {
  background: #E0A938;
  color: #1B4332;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 99px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}

.receipt-row span:first-child {
  color: #6B7280;
}

.receipt-row span:last-child {
  font-weight: 600;
  color: #111827;
}

/* ==========================================================================
   IMAGE LIGHTBOX VIEWER
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 13, 0.96);
  backdrop-filter: blur(12px);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  color: #FFFFFF;
  z-index: 10;
}

.lightbox-counter {
  font-size: 0.95rem;
  font-weight: 600;
  color: #D8E2DC;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.lightbox-stage {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 60px;
  overflow: hidden;
}

.lightbox-img {
  max-width: 90%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  transition: transform 0.2s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #FFFFFF;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  z-index: 20;
}

.lightbox-nav-btn:hover {
  background: var(--color-accent);
  color: #1B4332;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  text-align: center;
  padding: 16px 24px;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.4);
}

.lightbox-caption h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.lightbox-caption p {
  color: #D8E2DC;
  font-size: 0.88rem;
}

/* ==========================================================================
   VIDEO MODAL
   ========================================================================== */
.video-modal-card {
  background: #000;
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
}

.video-modal-card video {
  width: 100%;
  max-height: 75vh;
  display: block;
}

@media (max-width: 640px) {
  .modal-body {
    padding: 20px;
  }
  .modal-header {
    padding: 18px 20px;
  }
  .lightbox-stage {
    padding: 10px;
  }
  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
