/* Reset và Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Performance optimizations for smooth animations */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  overflow: hidden;
  background-color: #f8f9fa;
  /* Hardware acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  text-align: center;
  color: #1a73e8;
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.loading-spinner p {
  font-size: 1.2rem;
  font-weight: 500;
}

/* Header Styles */
.header {
  height: 70px;
  background: #fff;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #1a73e8;
  cursor: pointer;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #1557b0;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 600px;
}

.search-bar {
  display: flex;
  align-items: center;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar:focus-within {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-icon {
  color: #6c757d;
  margin: 0 15px;
  font-size: 16px;
}

.search-bar input {
  flex: 1;
  padding: 12px 0;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
}

.search-bar input::placeholder {
  color: #999;
}

.search-bar button {
  padding: 12px 20px;
  background: #1a73e8;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: #1557b0;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e9ecef;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1001;
  max-height: 300px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f8f9fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
}

.suggestion-item:hover {
  background: #f8f9fa;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-stats {
  background: #e3f2fd;
  padding: 8px 16px;
  border-radius: 20px;
  color: #1565c0;
  font-weight: 600;
  font-size: 14px;
}

.view-toggle {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.view-btn {
  padding: 10px 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6c757d;
  font-size: 16px;
  transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
  background: #1a73e8;
  color: white;
}

/* Filter Bar */
.filter-bar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.filter-bar select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  min-width: 140px;
  transition: border-color 0.3s ease;
}

.filter-bar select:focus {
  outline: none;
  border-color: #1a73e8;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-filter-more,
.btn-clear {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-filter-more {
  background: #6c757d;
  color: white;
}

.btn-filter-more:hover {
  background: #5a6268;
}

.btn-clear {
  background: #dc3545;
  color: white;
}

.btn-clear:hover {
  background: #c82333;
}

/* Main Container */
.main-container {
  display: flex;
  height: calc(100vh - 130px);
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 420px;
  background: white;
  border-right: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.sidebar-header h3 {
  font-size: 18px;
  color: #333;
  margin: 0;
}

.sort-container select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 13px;
}

.property-list {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.property-list::-webkit-scrollbar {
  width: 6px;
}

.property-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.property-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.property-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Property Card */
.property-card {
  padding: 20px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.property-card:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.property-card.active {
  background: #e3f2fd;
  border-left: 4px solid #1a73e8;
}

.property-card.featured {
  border-left: 4px solid #ff9800;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1);
}

/* Property Status Container - chứa cả button Bán/Thuê và Nổi bật */
.property-status-container {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

/* Property Status Badge (Bán/Thuê) */
.property-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  height: 24px;
  display: flex;
  align-items: center;
  min-width: 32px;
  justify-content: center;
}

/* Featured Badge */
.property-featured-badge {
  background: #ff9800;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
  animation: pulse-glow 2s ease-in-out infinite alternate;
  height: 24px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.6);
    transform: scale(1.02);
  }
}

/* Responsive cho badges trên mobile */
@media (max-width: 480px) {
  .property-status-container {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  .property-status,
  .property-featured-badge {
    font-size: 11px;
    padding: 3px 6px;
    height: 22px;
  }

  .property-featured-badge {
    font-size: 10px;
  }
}

.property-image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-status.sale {
  background: #28a745;
}

.property-status.rent {
  background: #007bff;
}

/* Remove old individual property-status positioning */

.property-gallery-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.property-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-price {
  font-size: 20px;
  color: #dc3545;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-price .price-unit {
  font-size: 14px;
  color: #666;
  font-weight: normal;
}

.property-info {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.property-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.property-address {
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.feature-tag {
  background: #e9ecef;
  color: #495057;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.property-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #999;
  font-size: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f3f4;
}

.property-views {
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-actions {
  display: flex;
  gap: 5px;
}

.action-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: #f8f9fa;
  color: #1a73e8;
}

.action-btn.favorited {
  color: #dc3545;
}

/* Pagination */
.pagination {
  padding: 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #1a73e8;
}

.pagination button.active {
  background: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Map Container */
.map-container {
  flex: 1;
  position: relative;
  background: #f8f9fa;
}

#map {
  width: 100%;
  height: 100%;
}

/* Map Controls */
.map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-control-btn {
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.map-control-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.map-control-btn.active {
  background: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

/* Map Markers */
.price-marker {
  background: #1a73e8;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid white;
  /* Perfect text centering */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  min-height: 32px;
}

.price-marker:hover {
  background: #1557b0;
  transform: scale(1.1);
  z-index: 1000 !important;
}

.price-marker.featured {
  background: #ff9800;
  animation: pulse 2s infinite;
}

.price-marker.rent {
  background: #28a745;
}

.price-marker.sale {
  background: #dc3545;
}

@keyframes pulse {
  0% {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(255, 152, 0, 0.3);
  }
  100% {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  }
}

/* Leaflet marker text centering fixes */
.leaflet-marker-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.leaflet-marker-icon.price-marker {
  line-height: 1 !important;
}

/* Ensure all custom markers have centered text */
.leaflet-div-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
}

/* Property marker styling */
.property-marker,
.property-marker-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

/* Amenity marker styling */
.amenity-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
  margin: 0;
  padding: 0;
}

.popup-content {
  padding: 15px;
  min-width: 280px;
  max-width: 350px;
}

.popup-image {
  width: 100%;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
  line-height: 1.3;
}

.popup-price {
  color: #dc3545;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
}

.popup-info {
  display: flex;
  gap: 15px;
  color: #666;
  font-size: 13px;
  margin-bottom: 8px;
}

.popup-address {
  color: #666;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.popup-actions {
  display: flex;
  gap: 8px;
}

.popup-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.popup-btn.primary {
  background: #1a73e8;
  color: white;
}

.popup-btn.primary:hover {
  background: #1557b0;
}

.popup-btn.secondary {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.popup-btn.secondary:hover {
  background: #e9ecef;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Performance optimizations */
  backface-visibility: hidden;
  perspective: 1000px;
  transform: translateZ(0);
  will-change: opacity;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal.closing {
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.modal-content {
  background-color: white;
  margin: 20px;
  padding: 0;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.modal-content.large {
  max-width: 1000px;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal.closing .modal-content {
  transform: translateY(-20px);
  opacity: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 20px;
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

.close {
  position: absolute;
  right: 25px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 5px;
  border-radius: 50%;
}

.close:hover {
  color: #333;
  background: #f8f9fa;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #1a73e8;
  color: white;
}

.btn-primary:hover {
  background: #1557b0;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  min-width: 300px;
  border-left: 4px solid #28a745;
  animation: slideInRight 0.3s ease;
  position: relative;
}

.toast.error {
  border-left-color: #dc3545;
}

.toast.warning {
  border-left-color: #ffc107;
}

.toast.info {
  border-left-color: #17a2b8;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.toast-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.toast-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-message {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

/* Filter Section */
.filter-section {
  margin-bottom: 25px;
}

.filter-section h4 {
  margin-bottom: 10px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.price-range {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-range input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100px;
  font-size: 14px;
}

.price-range span {
  color: #666;
  font-weight: 500;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1a73e8;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #6c757d !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 0.25rem !important;
}
.mb-2 {
  margin-bottom: 0.5rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
}

.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 0.25rem !important;
}
.mt-2 {
  margin-top: 0.5rem !important;
}
.mt-3 {
  margin-top: 1rem !important;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

/* Performance optimization utilities */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform, opacity;
}

.smooth-transition {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .modal {
    transition: none !important;
  }

  .modal-content {
    transition: none !important;
    animation: none !important;
  }
}

.no-results h3 {
  margin-bottom: 10px;
  color: #333;
}

.no-results p {
  font-size: 14px;
  line-height: 1.5;
}
/* Thêm vào cuối file style.css */

/* Search Nearby Feature */
.search-nearby-control {
  position: absolute;
  top: 80px;
  right: 10px;
  z-index: 1000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 10px;
  min-width: 200px;
}

.search-nearby-btn {
  width: 100%;
  padding: 10px 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.search-nearby-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-nearby-btn.active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.search-nearby-btn i {
  font-size: 16px;
}

/* Search Nearby Panel */
.search-nearby-panel {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.search-nearby-panel.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.radius-selector-nearby {
  margin-bottom: 15px;
}

.radius-selector-nearby label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.radius-buttons-nearby {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.radius-btn-nearby {
  padding: 8px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

.radius-btn-nearby:hover {
  border-color: #667eea;
  color: #667eea;
  background: #f0f7ff;
}

.radius-btn-nearby.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Search Nearby Results */
.search-nearby-results {
  margin-top: 15px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.search-nearby-results::-webkit-scrollbar {
  width: 6px;
}

.search-nearby-results::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.search-nearby-results::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.nearby-result-item {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nearby-result-item:hover {
  background: #f8f9fa;
}

.nearby-result-item:last-child {
  border-bottom: none;
}

.nearby-result-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 5px;
}

.nearby-result-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.nearby-result-distance {
  background: #e3f2fd;
  color: #1565c0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.nearby-result-info {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 15px;
}

.nearby-result-price {
  color: #dc3545;
  font-weight: 500;
}

/* Search Point Marker */
.search-point-marker {
  width: 40px;
  height: 40px;
  background: #ff5722;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: move;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 3px 10px rgba(255, 87, 34, 0.5);
  }
  50% {
    box-shadow: 0 3px 20px rgba(255, 87, 34, 0.8);
  }
  100% {
    box-shadow: 0 3px 10px rgba(255, 87, 34, 0.5);
  }
}

/* Search Radius Circle Style */
.search-radius-circle {
  fill: #ff5722;
  fill-opacity: 0.1;
  stroke: #ff5722;
  stroke-width: 2;
  stroke-dasharray: 5, 10;
}

/* Instruction Toast */
.instruction-toast {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 1001;
  display: none;
  animation: fadeInDown 0.5s ease;
}

.instruction-toast.show {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Map Cursor States */
.map-container.search-nearby-mode {
  cursor: crosshair !important;
}

.map-container.search-nearby-mode .leaflet-grab {
  cursor: crosshair !important;
}

/* Search Statistics */
.search-stats {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

.search-stats strong {
  color: #333;
  font-weight: 600;
}

/* Clear Search Button */
.clear-search-btn {
  width: 100%;
  padding: 8px;
  background: white;
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.clear-search-btn:hover {
  background: #dc3545;
  color: white;
}

/* Thêm vào cuối file */

/* Highlighted Markers */
.leaflet-marker-icon.highlighted {
  animation: bounce 1s ease infinite;
  filter: brightness(1.2) saturate(1.5);
  z-index: 1000 !important;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.price-marker.highlighted {
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.8) !important;
  border: 2px solid #ff5722 !important;
}

/* Thêm vào cuối file style.css */

/* Search Nearby Button in Filter Bar */
.btn-search-nearby {
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-search-nearby:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-search-nearby.active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Search Nearby Panel Standalone */
.search-nearby-panel-standalone {
  position: fixed;
  top: 120px;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  background: white;
  border-radius: 12px 0 0 12px;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.3s ease;
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

.search-nearby-panel-standalone.show {
  right: 0;
}

.search-nearby-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-panel {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-panel:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.panel-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Current Location Button */
.btn-current-location {
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  background: linear-gradient(135deg, #00c851 0%, #00ff00 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-current-location:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 200, 81, 0.4);
}

/* Update search stats styling */
.search-stats {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 14px;
  color: #666;
  text-align: center;
  border: 1px solid #e9ecef;
}

/* Update results container */
.search-nearby-results {
  margin: 15px 0;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #fafafa;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .filter-group {
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .filter-actions {
    width: 100%;
    justify-content: space-between;
  }

  .btn-search-nearby {
    flex: 1;
    font-size: 13px;
    padding: 8px 12px;
  }

  .search-nearby-panel-standalone {
    width: 100%;
    max-width: 100%;
    right: -100%;
    border-radius: 0;
    top: 60px;
    max-height: calc(100vh - 60px);
  }

  .search-nearby-panel-standalone.show {
    right: 0;
  }
}

/* Remove old search control from map */
.search-nearby-control {
  display: none !important;
}

/* Thêm vào cuối file */

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 250px;
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

.toast-success {
  border-left: 4px solid #00c851;
}

.toast-success i {
  color: #00c851;
}

.toast-error {
  border-left: 4px solid #ff4444;
}

.toast-error i {
  color: #ff4444;
}

.toast-info {
  border-left: 4px solid #33b5e5;
}

.toast-info i {
  color: #33b5e5;
}

.toast.fade-out {
  animation: slideOutRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
