@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-light: #ecfdf5;
  --wood: #a16207;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --radius: 16px;
  --radius-sm: 8px;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  /* BUG-009 FIXED: padding-bottom only on mobile via @media below */
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

/* =====================
   TOAST NOTIFICATION (BUG-004 fix)
   ===================== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: #1f2937;
  color: white;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Header & Welcome Block */
.header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.logo span {
  color: var(--text-primary);
  font-weight: 500;
}

.contacts-header {
  display: flex;
  gap: 12px;
}

.btn-contact {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
}

.btn-phone {
  background-color: var(--accent-light);
  color: var(--accent);
}

.btn-phone:hover {
  background-color: #d1fae5;
}

/* Header mobile adaptation overrides */
@media (max-width: 576px) {
  .logo span {
    display: none; /* Hide "| Валерий" to save space on mobile */
  }
  .logo {
    font-size: 1.05rem;
    white-space: nowrap;
  }
  .btn-contact {
    padding: 6px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  /* For very narrow screens, simplify logo further and keep phone button clean */
  .logo {
    font-size: 0.95rem;
  }
  .btn-contact {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
}

/* Main Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* Master Welcome Banner */
.welcome-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .welcome-card {
    flex-direction: row;
    align-items: center;
    padding: 30px;
  }
}

.master-avatar-wrapper {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.master-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BUG-011 FIXED: Stylized initial instead of emoji */
.master-initial {
  background: linear-gradient(135deg, var(--accent) 0%, #047857 100%);
  color: white;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  border-color: var(--accent);
  letter-spacing: -1px;
}

/* Real photo avatar */
.master-photo {
  object-fit: cover;
  object-position: top center;
  border-color: var(--accent);
}

.welcome-text {
  flex-grow: 1;
}

.welcome-tag {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.welcome-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.welcome-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.welcome-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-icon {
  color: var(--accent);
  font-weight: bold;
}



/* Interactive Room Visualizer */
.visualizer-section {
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.section-header {
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.visualizer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .visualizer-container {
    flex-direction: row;
  }
}

.room-preview {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .room-preview {
    flex: 1.2;
    height: 400px;
  }
}

.room-wall {
  flex: 3;
  width: 100%;
  background-color: #f3f4f6;
  position: relative;
  transition: background-color 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.room-door-frame {
  position: absolute;
  width: 110px;
  height: 230px;
  bottom: 0;
  background-color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 0 0 5px rgba(0, 0, 0, 0.05);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .room-door-frame {
    width: 130px;
    height: 280px;
  }
}

/* BUG-010 FIXED: Added transition for opacity fade effect */
.room-door-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.room-floor {
  flex: 1;
  width: 100%;
  background-color: #e5e7eb;
  transition: background-color 0.4s ease;
  box-shadow: inset 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.visualizer-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .visualizer-controls {
    flex: 1;
    justify-content: center;
  }
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.color-option:hover {
  transform: scale(1.08);
  border-color: var(--text-muted);
}

.color-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg-secondary), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wall-white { background-color: #f9fafb; }
.wall-gray { background-color: #e5e7eb; }
.wall-beige { background-color: #eae0d5; }
.wall-cream { background-color: #f5ebe0; }
.wall-greige { background-color: #d5cfc6; }
.wall-blue { background-color: #b9cbd9; }
.wall-sage { background-color: #c7d3c4; }
.wall-graphite { background-color: #4b5563; }

.floor-1 { background-color: #e5c185; }
.floor-2 { background-color: #a78b5e; }
.floor-3 { background-color: #453b2f; }
.floor-4 { background-color: #d1d5db; }

/* Catalog Section */
.catalog-section {
  margin-bottom: 24px;
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  outline: none;
  background-color: var(--bg-secondary);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filters-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filters-wrapper::-webkit-scrollbar {
  display: none;
}

.filter-tag {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tag:hover {
  background-color: var(--bg-primary);
  border-color: var(--text-muted);
}

.filter-tag.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Door Card */
.door-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.door-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* BUG-012 FIXED: Skeleton shimmer animation while image loads */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.door-img-wrapper {
  background-color: #f3f4f6;
  height: 240px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.door-img-wrapper.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.door-img-card {
  height: 90%;
  object-fit: contain;
  transition: var(--transition);
}

.door-card:hover .door-img-card {
  transform: scale(1.03);
}

.door-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.door-card-badge.best-price {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.door-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.door-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.door-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.door-tag-pill {
  font-size: 0.7rem;
  background-color: #f3f4f6;
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.door-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Door card color swatches (BUG-006 fix) */
.door-color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.door-swatch-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.door-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.door-swatch:hover {
  transform: scale(1.15);
}

.door-swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px white, 0 0 0 3px var(--accent);
}

/* BUG-005 FIXED: Clearer price layout */
.door-pricing {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-bottom: 14px;
}

.price-row-kit {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.price-kit-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.price-kit-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* Door Card Buttons */
.door-actions {
  display: flex;
  gap: 8px;
}

.btn-card {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
}

.btn-try-visualizer {
  background-color: var(--bg-primary);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}

.btn-try-visualizer:hover {
  background-color: #f3f4f6;
  border-color: var(--text-muted);
}

.btn-select-door {
  background-color: var(--accent);
  color: white;
}

.btn-select-door:hover {
  background-color: var(--accent-hover);
}

/* Calculator Section */
.calc-section {
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-select, .calc-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 0.9rem;
  background-color: var(--bg-secondary);
  font-family: var(--font-body);
  transition: var(--transition);
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.calc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background-color: var(--bg-secondary);
  transition: var(--transition);
}

.calc-checkbox-label:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.calc-checkbox-label:has(.calc-checkbox:checked) {
  border-color: var(--accent);
  background-color: var(--accent-light);
  font-weight: 500;
}

.calc-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Calculator Receipt */
.calc-result {
  background-color: #f0fdf4; /* Soft emerald-50 tint */
  border-radius: var(--radius);
  border: 1.5px solid #a7f3d0; /* emerald-200 */
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.04);
}

.receipt-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1.5px solid #a7f3d0;
  padding-bottom: 8px;
  color: #065f46; /* Dark emerald */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #1f2937; /* Dark gray for high contrast */
  margin-bottom: 8px;
  line-height: 1.4;
}

.receipt-item-highlight {
  color: #047857 !important; /* Dark emerald highlight */
  font-weight: 600;
}

.receipt-total {
  margin-top: 16px;
  border-top: 1.5px dashed #a7f3d0;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.total-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: #065f46;
}

.total-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.receipt-note {
  font-size: 0.75rem;
  color: #374151; /* Readable dark grey */
  margin-top: 10px;
  line-height: 1.45;
}

.btn-copy-receipt {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-copy-receipt:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

/* Fast Order Section */
.order-section {
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.order-form {
  max-width: 650px;
  margin: 16px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-submit-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: none;
}

.btn-submit-order:hover {
  transform: translateY(-1px);
}

.btn-call {
  background-color: var(--bg-secondary);
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-call:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
}

.btn-max {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
}

.btn-max:hover {
  filter: brightness(1.08);
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .button-row {
    flex-direction: row;
  }
  .btn-submit-order {
    flex: 1;
  }
}

/* Info Guide Section */
.guide-section {
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .guide-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Footer Section */
.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.footer p {
  margin-bottom: 4px;
}

/* Lightbox Image Zoom Viewer */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-out;
  padding: 20px;
}

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

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
}

.image-lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  color: white;
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-heading);
}

.lightbox-hint {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Add zoom cursor to hoverable door images */
.door-img-card, .room-door-img {
  cursor: zoom-in;
}


