/* ========== LOCATION PAGES RESPONSIVE STYLES ========== */

/* Header Layout Fix - Logo left, Hamburger right */
.header-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 20px !important;
}

.nav-logo {
  order: 1 !important;
  margin-right: auto !important;
}

.header-right {
  order: 2 !important;
  margin-left: auto !important;
}

/* Ensure sidebar is always on the right */
.sidebar, #sidebar {
  position: fixed !important;
  top: 0 !important;
  right: -340px !important;
  left: auto !important;
  width: 340px !important;
  transform: none !important;
}

.sidebar.active, #sidebar.active {
  right: 0 !important;
  left: auto !important;
  transform: none !important;
}

/* Sidebar overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

/* Large Screens */
@media (min-width: 1200px) {
  .location-hero h1 {
    font-size: 3rem;
  }
  
  .stat-box h3 {
    font-size: 2.8rem;
  }
  
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Screens */
@media (max-width: 1199px) and (min-width: 992px) {
  .location-hero h1 {
    font-size: 2.5rem;
  }
  
  .stat-box h3 {
    font-size: 2.5rem;
  }
  
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets */
@media (max-width: 991px) and (min-width: 768px) {
  .location-hero {
    padding: 50px 0 30px;
  }
  
  .location-hero h1 {
    font-size: 2.2rem;
  }
  
  .location-hero p {
    font-size: 1.1rem;
  }
  
  .stat-box h3 {
    font-size: 2.2rem;
  }
  
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .property-card {
    margin-bottom: 25px;
  }
}

/* Mobile Devices */
@media (max-width: 767px) {
  /* Sidebar specific for mobile */
  .sidebar, #sidebar {
    width: 280px !important;
    right: -280px !important;
    left: auto !important;
  }
  
  .sidebar.active, #sidebar.active {
    right: 0 !important;
    left: auto !important;
  }
  
  /* Location hero adjustments */
  .location-hero {
    padding: 40px 0 25px;
  }
  
  .location-hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .location-hero p {
    font-size: 1rem;
  }
  
  /* Stats section */
  .stats-section {
    padding: 30px 0;
  }
  
  .stat-box {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .stat-box h3 {
    font-size: 2rem;
  }
  
  .stat-box p {
    font-size: 0.9rem;
  }
  
  /* Properties section */
  .properties-section {
    padding: 40px 0;
  }
  
  .property-grid {
    grid-template-columns: 1fr;
  }
  
  .property-card {
    margin-bottom: 20px;
  }
  
  .property-image {
    height: 200px;
  }
  
  .property-content h3 {
    font-size: 1.2rem;
  }
  
  .property-price {
    font-size: 1.1rem;
  }
  
  .property-features {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .feature-item {
    font-size: 0.85rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  /* Full width sidebar on small screens */
  .sidebar, #sidebar {
    width: 100% !important;
    right: -100% !important;
  }
  
  .location-hero {
    padding: 30px 0 20px;
  }
  
  .location-hero h1 {
    font-size: 1.5rem;
  }
  
  .location-hero p {
    font-size: 0.9rem;
  }
  
  .breadcrumb {
    font-size: 0.85rem;
  }
  
  .stat-box {
    padding: 15px;
  }
  
  .stat-box h3 {
    font-size: 1.8rem;
  }
  
  .stat-box p {
    font-size: 0.85rem;
  }
  
  .property-image {
    height: 180px;
  }
  
  .property-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
  }
  
  .property-content {
    padding: 15px;
  }
  
  .property-content h3 {
    font-size: 1.1rem;
  }
  
  .property-location {
    font-size: 0.85rem;
  }
  
  .property-price {
    font-size: 1rem;
  }
  
  .view-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .location-hero h1 {
    font-size: 1.3rem;
  }
  
  .location-hero p {
    font-size: 0.85rem;
  }
  
  .stat-box h3 {
    font-size: 1.5rem;
  }
  
  .property-content h3 {
    font-size: 1rem;
  }
  
  .property-price {
    font-size: 0.95rem;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 767px) and (orientation: landscape) {
  .location-hero {
    padding: 30px 0 20px;
  }
  
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .property-image {
    height: 150px;
  }
}
