/* Responsive */
@media (max-width: 1200px) {
  .prop-grid-layout {
    grid-template-columns: 1fr !important;
  }
  
  .prop-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .prop-hero-info {
    left: 20px;
    bottom: 180px;
  }
  
  .prop-title {
    font-size: 2.5rem !important;
  }
  
  .prop-price-badge {
    position: static;
    transform: none;
    margin: 20px;
    padding: 20px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .similar-grid {
    grid-template-columns: 1fr !important;
  }
  
  .prop-sidebar {
    grid-template-columns: 1fr !important;
  }
  
  .prop-content {
    padding: 50px 20px;
  }
  
  .similar-properties {
    padding: 50px 20px;
  }
}

/* Gallery Fullscreen Mode */
.gallery-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,12,0.98);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-fullscreen img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.gallery-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 3D Tour Modal */
.tour-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,12,0.98);
  z-index: 9999;
  display: none;
}

.tour-modal.active {
  display: block;
}

.tour-canvas {
  width: 100%;
  height: 100%;
}

/* Loading Animation */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Property Card Hover Effects */
.prop-card {
  cursor: pointer;
}

.prop-card-img {
  position: relative;
  overflow: hidden;
}

.prop-card-img img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.prop-card:hover .prop-card-img img {
  transform: scale(1.1);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Map Marker Animation */
.map-marker {
  animation: marker-pulse 2s ease-in-out infinite;
}

@keyframes marker-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: var(--ink-soft);
  border: 1px solid var(--gold);
  padding: 10px 15px;
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.tooltip.visible {
  opacity: 1;
}

/* Comparison Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(240,235,224,0.1);
}

.compare-table th {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  font-weight: 500;
}

.compare-table .highlight {
  background: rgba(201,168,76,0.05);
}

/* Filter Tags */
.filter-tag {
  display: inline-block;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(240,235,224,0.2);
  color: var(--cream);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

/* Save Button Animation */
.btn-save {
  transition: all 0.3s ease;
}

.btn-save.saved {
  animation: save-pulse 0.5s ease;
}

@keyframes save-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Price Range Slider */
.range-slider {
  position: relative;
  height: 6px;
  background: rgba(240,235,224,0.1);
  margin: 20px 0;
}

.range-slider .track {
  position: absolute;
  height: 100%;
  background: var(--gold);
}

.range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  -webkit-appearance: none;
  background: transparent;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .prop-nav {
    padding: 15px 20px;
  }
  
  .prop-nav-actions {
    gap: 10px;
  }
  
  .prop-btn {
    padding: 10px 15px;
    font-size: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .prop-nav,
  .prop-gallery-arrows,
  .prop-gallery-nav,
  .tour-3d-btn,
  .prop-sidebar {
    display: none !important;
  }
  
  .prop-hero {
    height: auto;
  }
  
  .prop-gallery-main {
    height: 300px;
  }
}
