/* Luxury Real Estate - Apple-Quality Design with 3D House Viewer */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection for form inputs */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body {
  font-family: 'SF Pro Display', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 300;
}

/* DISABLE CLICKABLE ELEMENTS */
.room-btn, .calendar-nav, .time-slot, 
.form-group input, .form-group textarea, .confirm-btn {
  pointer-events: none !important;
  cursor: default !important;
  opacity: 0.7 !important;
  position: relative;
}

/* Only microphone button should be clickable */
.mic-button {
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

/* Status indicators */
.voice-first-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
  z-index: 1000;
  animation: voiceIndicatorPulse 2s ease-in-out infinite;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  max-width: 200px;
  word-wrap: break-word;
  text-align: center;
}

@keyframes voiceIndicatorPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6); }
}

/* Screen Management */
.screen {
  min-height: 100vh;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen.hidden {
  display: none;
}

/* ENHANCED: Seamless Agent Transition Animation */
.agent-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.95) 50%, rgba(45, 45, 45, 0.95) 100%);
  backdrop-filter: blur(30px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.agent-transition-overlay.active {
  opacity: 1;
}

.agent-transition-content {
  text-align: center;
  color: white;
  animation: agentTransitionPulse 2s ease-in-out;
  max-width: 90%;
}

.agent-avatar {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: agentAvatarFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(255, 215, 0, 0.3));
}

.agent-name {
  font-size: 2.5rem;
  font-weight: 200;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.agent-role {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.transition-message {
  font-size: 1.1rem;
  opacity: 0.8;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Mobile optimization for agent transitions */
@media (max-width: 768px) {
  .agent-avatar {
    font-size: 3rem;
    margin-bottom: 15px;
  }
  
  .agent-name {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .agent-role {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .transition-message {
    font-size: 1rem;
  }
}

@keyframes agentTransitionPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes agentAvatarFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* Property Screen - COMPLETELY REDESIGNED */
.header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  color: white;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="luxury" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,215,0,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23luxury)"/></svg>');
  opacity: 0.3;
}

.header h1 {
  font-size: 2rem;
  font-weight: 200;
  margin-bottom: 20px;
  text-shadow: 0 8px 16px rgba(0,0,0,0.5);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.property-address {
  font-size: 1.6rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.main-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 40px;
  min-height: 80vh;
  max-width: 2000px;
  margin: 0 auto;
  position: relative;
}

/* ENHANCED: Hero 3D House Viewer */
.house-viewer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 30px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 215, 0, 0.2);
  animation: houseViewerGlow 4s ease-in-out infinite;
  backdrop-filter: blur(20px);
}

@keyframes houseViewerGlow {
  0%, 100% { 
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
    border-color: rgba(255, 215, 0, 0.2);
  }
  50% { 
    box-shadow: 0 40px 80px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.4);
  }
}

#house-canvas {
  width: 100%;
  height: 900px;
  display: block;
}

.viewer-controls {
  position: absolute;
  top: 30px;
  left: 30px;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(26,26,26,0.8) 100%);
  color: white;
  padding: 25px;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  min-width: 300px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.viewer-controls h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.room-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.room-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  letter-spacing: 0.02em;
}

.room-btn.active {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-color: #ffd700;
  transform: scale(1.08);
  opacity: 1 !important;
  box-shadow: 0 12px 25px rgba(255, 215, 0, 0.4);
  color: #000;
}

/* ENHANCED: Manual controls styling */
.manual-controls {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.manual-controls h4 {
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.manual-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
}

.manual-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

  .manual-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.4;
    margin: 0;
  }

  /* Mobile-specific manual controls */
  @media (max-width: 768px) {
    .manual-controls {
      margin-top: 20px;
      padding-top: 15px;
    }
    
    .manual-controls h4 {
      font-size: 0.9rem;
      margin-bottom: 12px;
    }
    
    .manual-btn {
      padding: 12px 16px;
      font-size: 0.85rem;
    }
    
    .manual-hint {
      font-size: 0.7rem;
    }
  }

/* ENHANCED: Luxury Property Info Sidebar */
.property-info {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 30px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  padding: 40px;
  height: fit-content;
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.property-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

.price-tag {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  padding: 35px;
  border-radius: 25px;
  text-align: center;
  margin-bottom: 35px;
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.price-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.8s ease;
}

.price-tag:hover::before {
  left: 100%;
}

.price-tag .price {
  font-size: 3.5rem;
  font-weight: 200;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.spec-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.spec-item:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.spec-number {
  font-size: 2.5rem;
  font-weight: 200;
  color: #ffd700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.spec-label {
  font-size: 0.95rem;
  opacity: 0.8;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* removed .room-details and .room-description */

/* ENHANCED: Luxury Appointment Screen */
.appointment-header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  color: white;
  position: relative;
}

.appointment-header h1 {
  font-size: 1.8rem;
  font-weight: 200;
  margin-bottom: 15px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.appointment-header p {
  font-size: 1.4rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.appointment-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 50px;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 80vh;
}

.calendar-section, .contact-form-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 30px;
  padding: 40px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
}

.calendar-section h3, .contact-form-section h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #ffd700;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}

.calendar {
  margin-bottom: 30px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 0 10px;
}

.calendar-header h4 {
  font-size: 1.4rem;
  font-weight: 400;
  color: #ffd700;
  letter-spacing: 0.02em;
}

.calendar-nav {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  letter-spacing: 0.02em;
}

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

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: default;
  min-height: 35px;
}

.calendar-day.header {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  color: #ffd700;
  font-weight: 600;
  border-color: rgba(255, 215, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  padding: 4px;
  min-height: auto;
  aspect-ratio: auto;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  border-color: #ffd700;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.calendar-day.disabled {
  opacity: 0.2;
  background: rgba(255,255,255,0.02);
  color: rgba(255, 255, 255, 0.4);
}

.calendar-day.today {
  border: 2px solid #ffd700;
  font-weight: bold;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  color: #ffd700;
}

.calendar-day.weekend {
  color: #ff6b6b;
}

/* Handle class combinations */
.calendar-day.disabled.weekend {
  color: rgba(255, 107, 107, 0.4);
}

.calendar-day.today.disabled {
  opacity: 0.6;
  color: rgba(255, 215, 0, 0.7);
}

.calendar-day.selected.disabled {
  opacity: 0.8;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
  color: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.time-slots h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #ffd700;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.time-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.time-slot {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 215, 0, 0.1);
  color: white;
  padding: 12px 8px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-align: center;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.time-slot:hover::before {
  left: 100%;
}

.time-slot.selected {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  border-color: #ffd700;
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

.form-group label {
  font-size: 1rem;
  font-weight: 500;
  color: #ffd700;
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: white;
  padding: 18px 20px;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 300;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  letter-spacing: 0.01em;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.appointment-summary {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
}

.appointment-summary h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #ffd700;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.summary-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.summary-item .label {
  font-weight: 500;
  color: #ffd700;
  letter-spacing: 0.02em;
}

.confirm-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  border: none;
  padding: 20px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.confirm-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.confirm-btn:hover::before {
  left: 100%;
}

/* ENHANCED: Prominent Microphone Button */
.mic-button {
  position: fixed !important;
  bottom: 50px !important;
  right: 50px !important;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  box-shadow: 0 20px 50px rgba(255, 215, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: micButtonPulse 2s ease-in-out infinite;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes micButtonPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.5);
  }
  50% { 
    transform: scale(1.08); 
    box-shadow: 0 25px 60px rgba(255, 215, 0, 0.7);
  }
}

.mic-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mic-button:hover::before {
  opacity: 1;
}

.mic-button.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  box-shadow: 0 25px 60px rgba(255, 107, 107, 0.6);
  animation: pulse 2s infinite;
  transform: scale(1.1);
}

@keyframes pulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    transform: scale(1.1);
  }
  70% { 
    box-shadow: 0 0 0 30px rgba(255, 107, 107, 0);
    transform: scale(1.1);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    transform: scale(1.1);
  }
}

.mic-icon, .pause-icon {
  width: 45px;
  height: 45px;
  fill: #000;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
  transition: all 0.3s ease;
  animation: micIconFloat 3s ease-in-out infinite;
}

.mic-button:hover .mic-icon,
.mic-button:hover .pause-icon {
  transform: scale(1.15);
  animation: micIconPulse 1s ease-in-out infinite;
}

@keyframes micIconFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

@keyframes micIconPulse {
  0%, 100% { transform: scale(1.15); }
  50% { transform: scale(1.25); }
}

/* ENHANCED: Prominent Status Bar */
.status-bar {
  position: fixed !important;
  bottom: 180px !important;
  right: 50px !important;
  background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(26,26,26,0.9) 100%);
  color: white;
  padding: 20px 30px;
  border-radius: 35px;
  backdrop-filter: blur(25px);
  z-index: 999;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  font-weight: 500;
  font-size: 1.1rem;
  max-width: 350px;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.status-bar::before {
  content: '';
  margin-right: 10px;
  font-size: 1.4rem;
}

/* ENHANCED: Luxury Success Screen */
.success-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
}

.success-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 35px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  max-width: 700px;
  width: 100%;
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.success-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

.check-icon {
  width: 100px;
  height: 100px;
  fill: #ffd700;
  margin-bottom: 40px;
  filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.4));
  animation: checkIconPulse 2s ease-in-out infinite;
}

@keyframes checkIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.success-card h2 {
  color: #ffd700;
  margin-bottom: 25px;
  font-size: 2.8rem;
  font-weight: 200;
  letter-spacing: -0.02em;
}

.success-card p {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.2rem;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ENHANCED: Luxury Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
  backdrop-filter: blur(30px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  padding: 20px;
}

.loading-content {
  text-align: center;
  color: white;
  max-width: 90%;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-top: 3px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 25px;
}

.loading-error {
  font-size: 3rem;
  margin-bottom: 25px;
  animation: pulse 2s ease-in-out infinite;
}

.loading-text {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Mobile optimization for loading overlay */
@media (max-width: 768px) {
  .loading-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
  }
  
  .loading-error {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .loading-text {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .loading-subtitle {
    font-size: 0.9rem;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* MOBILE-FIRST RESPONSIVE DESIGN */

/* Base mobile styles (up to 480px) */
.main-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
  min-height: 80vh;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

#house-canvas {
  width: 100%;
  height: 500px; /* Minimum usable height on mobile */
  display: block;
}

.header h1, .appointment-header h1 {
  font-size: 1.4rem;
  font-weight: 200;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.property-address, .appointment-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Enhanced mobile microphone - larger and better positioned */
.mic-button {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 85px; /* Larger on mobile for better touch target */
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  box-shadow: 0 20px 50px rgba(255, 215, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: micButtonPulse 2s ease-in-out infinite;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.mic-icon, .pause-icon {
  width: 40px; /* Larger icons for mobile */
  height: 40px;
  fill: #000;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
  transition: all 0.3s ease;
}

/* Enhanced mobile status bar - better positioned and sized */
.status-bar {
  position: fixed !important;
  bottom: 140px !important; /* Proper spacing from mic button */
  right: 30px !important;
  background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(26,26,26,0.9) 100%);
  color: white;
  padding: 18px 25px;
  border-radius: 30px;
  backdrop-filter: blur(25px);
  z-index: 999;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  font-weight: 500;
  font-size: 1rem; /* Minimum readable size */
  max-width: 320px; /* Better width for mobile */
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Mobile-optimized viewer controls */
.viewer-controls {
  position: relative;
  top: auto;
  left: auto;
  margin: 20px;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(26,26,26,0.8) 100%);
  color: white;
  padding: 25px;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  min-width: auto;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Mobile-optimized room buttons */
.room-focus {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 12px;
  margin-bottom: 25px;
}

.room-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 15px 12px; /* Better padding for mobile */
  border-radius: 20px;
  font-size: 0.9rem; /* Minimum readable size */
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  letter-spacing: 0.02em;
  text-align: center;
  min-height: 50px; /* Minimum touch target */
}

/* Mobile-optimized property info */
.property-info {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 25px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  padding: 30px;
  height: fit-content;
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.price-tag .price {
  font-size: 2.8rem; /* Better size for mobile */
  font-weight: 200;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.spec-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.spec-number {
  font-size: 2rem; /* Better size for mobile */
  font-weight: 200;
  color: #ffd700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

/* Mobile-optimized appointment screen */
.appointment-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  padding: 25px;
  max-width: 100%;
  margin: 0 auto;
  min-height: 80vh;
}

.calendar-section, .contact-form-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 25px;
  padding: 30px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
}

/* Mobile-optimized calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 25px;
}

  .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    font-size: 0.9rem; /* Minimum readable size */
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: default;
    min-height: 40px; /* Minimum touch target */
  }
  
  .calendar-day.header {
    font-size: 0.65rem;
    padding: 2px;
    min-height: 30px;
  }
  
  .calendar-grid {
    gap: 3px;
  }
  
  .calendar-day {
    font-size: 0.8rem;
    min-height: 30px;
    border-radius: 6px;
  }
  
  .time-options {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 6px;
    max-height: 250px;
  }
  
  .time-slot {
    padding: 10px 6px;
    font-size: 0.8rem;
    min-height: 40px;
  }

/* Mobile-optimized time slots */
.time-slot {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 215, 0, 0.1);
  color: white;
  padding: 18px 20px;
  border-radius: 20px;
  font-size: 1rem; /* Minimum readable size */
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-align: center;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  min-height: 50px; /* Minimum touch target */
}

/* Mobile-optimized form inputs */
.form-group input,
.form-group textarea {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: white;
  padding: 18px 20px;
  border-radius: 15px;
  font-size: 1rem; /* Minimum readable size */
  font-weight: 300;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  letter-spacing: 0.01em;
  min-height: 50px; /* Minimum touch target */
}

/* Mobile-optimized voice indicator */
.voice-first-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 0.9rem; /* Minimum readable size */
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
  z-index: 1000;
  animation: voiceIndicatorPulse 2s ease-in-out infinite;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  max-width: 200px; /* Prevent overflow */
}

/* Tablet styles (481px - 768px) */
@media (min-width: 481px) {
  .main-container {
    padding: 25px;
    gap: 25px;
  }
  
  #house-canvas {
    height: 600px;
  }
  
  .header h1, .appointment-header h1 {
    font-size: 1.6rem;
  }
  
  .property-address, .appointment-header p {
    font-size: 1.3rem;
  }
  
  .mic-button {
    width: 90px;
    height: 90px;
    bottom: 35px;
    right: 35px;
  }
  
  .mic-icon, .pause-icon {
    width: 42px;
    height: 42px;
  }
  
  .status-bar {
    bottom: 150px;
    right: 35px;
    padding: 20px 28px;
    font-size: 1.05rem;
    max-width: 350px;
  }
  
  .room-focus {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
  }
  
  .appointment-container {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
    gap: 30px;
    padding: 30px;
  }
}

/* Small desktop styles (769px - 1024px) */
@media (min-width: 769px) {
  .main-container {
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
  }
  
  #house-canvas {
    height: 700px;
  }
  
  .header h1, .appointment-header h1 {
    font-size: 1.9rem;
  }
  
  .property-address, .appointment-header p {
    font-size: 1.4rem;
  }
  
  .mic-button {
    width: 95px;
    height: 95px;
    bottom: 40px;
    right: 40px;
  }
  
  .mic-icon, .pause-icon {
    width: 44px;
    height: 44px;
  }
  
  .status-bar {
    bottom: 160px;
    right: 40px;
    padding: 22px 30px;
    font-size: 1.1rem;
    max-width: 380px;
  }
  
  .viewer-controls {
    position: absolute;
    top: 30px;
    left: 30px;
    margin: 0;
    min-width: 300px;
  }
  
  .room-focus {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .room-btn {
    width: auto;
    min-width: 120px;
  }
}

/* Large desktop styles (1025px+) */
@media (min-width: 1025px) {
  .main-container {
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: 40px;
    max-width: 2000px;
  }
  
  #house-canvas {
    height: 900px;
  }
  
  .header h1, .appointment-header h1 {
    font-size: 2rem;
  }
  
  .property-address, .appointment-header p {
    font-size: 1.6rem;
  }
  
  .mic-button {
    width: 100px;
    height: 100px;
    bottom: 50px;
    right: 50px;
  }
  
  .mic-icon, .pause-icon {
    width: 45px;
    height: 45px;
  }
  
  .status-bar {
    bottom: 180px;
    right: 50px;
    padding: 20px 30px;
    font-size: 1.1rem;
    max-width: 350px;
  }
  
  .price-tag .price {
    font-size: 3.5rem;
  }
  
  .spec-number {
    font-size: 2.5rem;
  }
  
  .appointment-container {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px;
    max-width: 1600px;
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .header, .appointment-header {
    padding: 20px;
  }
  
  .header h1, .appointment-header h1 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .property-address, .appointment-header p {
    font-size: 1rem;
  }
  
  #house-canvas {
    height: 300px;
  }
  
  .mic-button {
    width: 70px;
    height: 70px;
    bottom: 20px;
    right: 20px;
  }
  
  .mic-icon, .pause-icon {
    width: 35px;
    height: 35px;
  }
  
  .status-bar {
    bottom: 100px;
    right: 20px;
    padding: 12px 18px;
    font-size: 0.9rem;
    max-width: 250px;
  }
} 

/* ===================== */
/* Minimalist UI overrides*/
/* Non-destructive: appended at end; only overrides visuals */
/* ===================== */

:root {
  --surface-0: #0e0e0e;
  --surface-1: #141414;
  --surface-2: #1a1a1a;
  --text-0: #ffffff;
  --text-1: #cfcfcf;
  --accent: #d1b97f; /* restrained gold */
}

/* Typography: remove gradients/shadows on headings */
.header h1,
.appointment-header h1,
.price-tag .price,
.room-details h3,
.appointment-summary h4,
.viewer-controls h3 {
  -webkit-text-fill-color: unset;
  background: none !important;
  text-shadow: none !important;
}

.property-address,
.appointment-header p {
  text-shadow: none !important;
}

/* Layout: reduce oversized paddings and fixed heights */
#house-canvas {
  /* Allow much taller canvas on large screens without exceeding viewport */
  height: clamp(900px, 92vh, 1300px) !important;
}

/* Bigger screens: trim vertical padding to reclaim height without layout shift */
@media (min-width: 1025px) {
  .main-container {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  /* Nudge mic slightly up to avoid overlap with taller canvas */
  .mic-button {
    bottom: 40px !important;
  }
}

.main-container {
  gap: 28px !important;
  padding: 28px !important;
}

.property-info {
  padding: 28px !important;
}

.viewer-controls {
  background: var(--surface-1) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35) !important;
}

/* Price: remove big gold slab; use subtle card */
.price-tag {
  background: var(--surface-2) !important;
  color: var(--text-0) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25) !important;
}
.price-tag::before { display: none !important; }

/* Reduce ornamentation around viewer */
.house-viewer {
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35) !important;
  animation: none !important;
}

/* Buttons: calmer look */
.room-btn {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
.room-btn.active {
  background: #e7d9a2 !important;
  border-color: #e7d9a2 !important;
}

/* Mic: remove neon pulse; refine */
.mic-button {
  animation: none !important;
  background: #e7d9a2 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35) !important;
}
.mic-button.active {
  animation: none !important;
  transform: none !important;
  background: #ef6b64 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35) !important;
}
.mic-icon, .pause-icon {
  animation: none !important;
}

/* Status bar: integrate without emoji, calmer visuals */
.status-bar {
  box-shadow: 0 10px 24px rgba(0,0,0,0.35) !important;
}

/* Agent transition: shorter and less intrusive */
.agent-transition-overlay {
  backdrop-filter: none !important;
  background: rgba(0,0,0,0.6) !important;
}
.agent-transition-content {
  animation: none !important;
}
.agent-avatar { animation: none !important; }

/* Loading overlay: calmer */
.loading-overlay {
  backdrop-filter: none !important;
}

/* Reduce motion for those who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Voice-first hint styling */
.voice-hint {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--text-1);
}

/* ============================= */
/* RESPONSIVENESS FIXES (SAFE)   */
/* ============================= */

/* 1) Canvas: make height viewport-fluid across sizes (avoid fixed 900px min) */
#house-canvas {
  height: clamp(60vh, 85vh, 95vh) !important;
}
@media (max-height: 820px) {
  #house-canvas { height: 70vh !important; }
}
@media (max-height: 700px) {
  #house-canvas { height: 65vh !important; }
}

/* 2) Mic button: responsive sizing so it doesn’t overlap content on smaller viewports */
.mic-button { width: 120px !important; height: 120px !important; }
.mic-icon, .pause-icon { width: 56px !important; height: 56px !important; }

@media (max-width: 1024px), (max-height: 820px) {
  .mic-button { width: 100px !important; height: 100px !important; bottom: 32px !important; }
  .mic-icon, .pause-icon { width: 52px !important; height: 52px !important; }
}

@media (max-width: 480px), (max-height: 680px) {
  .mic-button { width: 84px !important; height: 84px !important; bottom: 24px !important; }
  .mic-icon, .pause-icon { width: 44px !important; height: 44px !important; }
}

/* 3) Reclaim vertical space earlier on medium/short screens */
@media (min-width: 769px) and (max-width: 1024px), (max-height: 900px) {
  .main-container { padding-top: 16px !important; padding-bottom: 16px !important; }
}

/* Mic button: enlarge by at least 50% and add pre-click wave hint */
.mic-button {
  width: 150px !important;
  height: 150px !important;
}

.mic-icon, .pause-icon {
  width: 68px !important;
  height: 68px !important;
}

/* Pre-click wave animation until first interaction */
.mic-button:not(.active):not(.has-interacted)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(231, 217, 162, 0.6);
  transform: scale(1);
  opacity: 0;
  animation: micWave 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes micWave {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}