/* ==========================================================================
   MODALS - BOOKING MODAL & VIDEO TOUR POPUP - VERO STUDIO NAILS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

body.modal-open {
  overflow: hidden;
}

.modal-window {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-gold-medium);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.15);
  transform: scale(0.92) translateY(20px);
  transition: all var(--transition-base);
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.modal-backdrop.is-open .modal-window {
  transform: scale(1) translateY(0);
}

/* ==========================================================================
   LUXURY INTERACTIVE BOOKING CALENDAR & SLOT SELECTOR
   ========================================================================== */
.vsn-booking-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
  padding: 0 10px;
}

.vsn-booking-stepper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 2px;
  background: rgba(212, 175, 55, 0.2);
  z-index: 1;
}

.vsn-step-pill {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f1016;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.vsn-step-pill.is-active {
  border-color: #D4AF37;
  color: #FFF;
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.vsn-step-pill .step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  color: #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.vsn-step-pill.is-active .step-num {
  background: #D4AF37;
  color: #0c0d12;
}

/* Calendar Card Container */
.vsn-cal-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

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

.vsn-cal-month-title {
  font-family: var(--font-serif-luxury, 'Cinzel', serif);
  font-size: 1.15rem;
  color: var(--gold-champagne, #F3E5AB);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.vsn-cal-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #FFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vsn-cal-nav-btn:hover {
  background: #D4AF37;
  color: #0c0d12;
  border-color: #D4AF37;
  transform: scale(1.08);
}

.vsn-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vsn-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.vsn-cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.vsn-cal-day .day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-top: 2px;
}

.vsn-cal-day.is-available {
  border-color: rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.04);
}

.vsn-cal-day.is-available:hover {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.vsn-cal-day.is-available .day-dot {
  background: #4ade80;
}

.vsn-cal-day.is-selected {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%) !important;
  color: #0c0d12 !important;
  font-weight: 700;
  border-color: #FFF !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5) !important;
  transform: scale(1.05);
}

.vsn-cal-day.is-selected .day-dot {
  background: #0c0d12 !important;
}

.vsn-cal-day.is-full {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.15);
}

.vsn-cal-day.is-full .day-dot {
  background: #f87171;
}

.vsn-cal-day.is-closed {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
}

.vsn-cal-day.is-past {
  opacity: 0.2;
  cursor: not-allowed;
  background: transparent;
}

.vsn-cal-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vsn-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vsn-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Slots Section */
.vsn-slots-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.vsn-slots-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.vsn-slots-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-champagne, #F3E5AB);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vsn-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.vsn-slot-btn {
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-white);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.vsn-slot-btn:hover:not(.is-occupied) {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.vsn-slot-btn.is-selected {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%) !important;
  color: #0c0d12 !important;
  font-weight: 700 !important;
  border-color: #FFF !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45) !important;
}

.vsn-slot-btn.is-occupied {
  opacity: 0.38;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  text-decoration: line-through;
  font-size: 0.8rem;
}

.vsn-slot-btn.is-occupied::after {
  content: "Pris";
  display: block;
  font-size: 0.65rem;
  color: #f87171;
  text-decoration: none;
  margin-top: 1px;
}

/* Selected Summary Card */
.vsn-selected-summary {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vsn-selected-summary-text {
  font-size: 0.88rem;
  color: #FFF;
}

.vsn-selected-summary-price {
  font-family: var(--font-serif-luxury, 'Cinzel', serif);
  font-size: 1.2rem;
  color: #D4AF37;
  font-weight: 700;
  white-space: nowrap;
}

/* Progressive Benevolence & Courtesy Banner (3 chances) */
.vsn-benevolence-banner {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  transition: all 0.3s ease;
  animation: fadeInDown 0.3s ease;
}

.vsn-benevolence-banner.tier-0 {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #86efac;
}

.vsn-benevolence-banner.tier-1 {
  background: rgba(251, 191, 36, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.vsn-benevolence-banner.tier-2 {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fdba74;
}

.vsn-benevolence-banner.tier-3 {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.vsn-benevolence-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.vsn-benevolence-content strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}


.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #0c0d12;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.modal-badge {
  display: inline-block;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.85rem;
  color: var(--text-white);
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Video Tour Modal specifics */
.video-modal-window {
  max-width: 900px;
  padding: var(--space-md);
  background: #000;
}

.video-modal-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   LOCATION SELECTOR & HOME VISIT DETAILS (MODAL)
   ========================================================================== */
.vsn-modal-location-group {
  margin-bottom: 16px;
}

.vsn-location-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.vsn-loc-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--text-white, #FFF);
  transition: all 0.25s ease;
  user-select: none;
}

.vsn-loc-btn i, .vsn-loc-btn svg {
  width: 22px;
  height: 22px;
  color: var(--gold-champagne, #F3E5AB);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.vsn-loc-btn:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.vsn-loc-btn.is-active {
  border-color: #D4AF37;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.vsn-loc-btn.is-active i, .vsn-loc-btn.is-active svg {
  color: #FFF;
  transform: scale(1.1);
}

.vsn-loc-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vsn-loc-info strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vsn-loc-info small {
  font-size: 0.74rem;
  color: var(--text-muted, #9E9E9E);
  line-height: 1.2;
}

.vsn-loc-btn.is-active .vsn-loc-info small {
  color: #F3E5AB;
}

.vsn-home-details-box {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .vsn-location-toggle-grid {
    grid-template-columns: 1fr;
  }
}

