/* ========================================
   LISTINGS PAGE STYLES
   Listings page specific styles
   ======================================== */

/* Listings Header */
.listings-header {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.listings-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.listings-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.listings-count {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-left: var(--space-4);
}

.listings-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.listings-view-toggle {
  display: flex;
  background: var(--bg-gray-100);
  border-radius: var(--radius-md);
  padding: var(--space-1);
}

.listings-view-btn {
  padding: var(--space-2) var(--space-3);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.listings-view-btn.active {
  background: var(--bg-white);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.listings-view-btn:hover {
  color: var(--text-primary);
}

/* Listings Filters */
.listings-filters {
  background: var(--bg-gray-50);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-light);
}

.listings-filters-content {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: end;
}

.listings-filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 150px;
}

.listings-filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.listings-filter-select {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.listings-filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.listings-filter-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.listings-filter-toggle:hover {
  background: var(--bg-gray-50);
  color: var(--text-primary);
}

.listings-filter-toggle.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.listings-filter-toggle .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.listings-filter-toggle.active .icon {
  transform: rotate(180deg);
}

/* Listings Sort */
.listings-sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.listings-sort-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.listings-sort-select {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.listings-sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Listings Content */
.listings-content {
  padding: var(--space-8) 0;
  background: var(--bg-white);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

/* Constrain single listing to 50% width */
.listings-grid:has(.listing-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

/* Fallback for browsers without :has() support */
.listings-grid.single-listing {
  grid-template-columns: 1fr !important;
  max-width: 50% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.listings-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.listings-list-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.listings-list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.listings-list-image {
  width: 200px;
  height: 150px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.listings-list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.listings-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.listings-list-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-1) 0;
  line-height: 1.4;
}

.listings-list-category {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.listings-list-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listings-list-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.listings-list-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.listings-list-meta-item .icon {
  width: 1rem;
  height: 1rem;
}

.listings-list-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.listings-list-rating-stars {
  display: flex;
  gap: 2px;
}

.listings-list-rating-star {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.listings-list-rating-star.empty {
  color: var(--border-medium);
}

.listings-list-rating-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-left: var(--space-1);
}

.listings-list-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
}

.listings-list-actions .btn {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

/* Listings Pagination */
.listings-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.listings-pagination .btn {
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
}

.listings-pagination .btn.active {
  background: var(--primary);
  color: var(--text-white);
}

/* Listings Empty State */
.listings-empty {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--text-secondary);
}

.listings-empty .icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto var(--space-4);
  color: var(--text-muted);
}

.listings-empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
}

.listings-empty-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 var(--space-6) 0;
}

.listings-empty-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Listings Loading */
.listings-loading {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

/* Constrain single loading skeleton to 50% width */
.listings-loading:has(.listing-skeleton:only-child) {
  grid-template-columns: 1fr;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.listings-skeleton {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: pulse 2s infinite;
}

.listings-skeleton-image {
  width: 100%;
  height: 200px;
  background: var(--bg-gray-100);
}

.listings-skeleton-content {
  padding: var(--space-4);
}

.listings-skeleton-title {
  width: 70%;
  height: 1.25rem;
  background: var(--bg-gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.listings-skeleton-description {
  width: 100%;
  height: 0.875rem;
  background: var(--bg-gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-1);
}

.listings-skeleton-description:last-child {
  width: 60%;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Listings Map */
.listings-map {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.listings-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Listings Sidebar */
.listings-sidebar {
  background: var(--bg-gray-50);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
}

.listings-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
}

.listings-sidebar-section {
  margin-bottom: var(--space-6);
}

.listings-sidebar-section:last-child {
  margin-bottom: 0;
}

.listings-sidebar-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-2) 0;
}

.listings-sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.listings-sidebar-link {
  display: block;
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.listings-sidebar-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.listings-sidebar-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Responsive Listings */
@media (max-width: 768px) {
  .listings-header-content {
    flex-direction: column;
    gap: var(--space-4);
    align-items: stretch;
  }
  
  .listings-title {
    font-size: 2rem;
  }
  
  .listings-count {
    margin-left: 0;
  }
  
  .listings-actions {
    justify-content: space-between;
  }
  
  .listings-filters-content {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .listings-filter-group {
    width: 100%;
  }
  
  .listings-filter-select {
    width: 100%;
  }
  
  .listings-sort {
    margin-left: 0;
  }
  
  .listings-grid {
    grid-template-columns: 1fr;
  }
  
  .listings-list-item {
    flex-direction: column;
  }
  
  .listings-list-image {
    width: 100%;
    height: 200px;
  }
  
  .listings-list-actions {
    flex-direction: column;
  }
  
  .listings-list-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .listings-header {
    padding: var(--space-8) 0 var(--space-6);
  }
  
  .listings-title {
    font-size: 1.75rem;
  }
  
  .listings-filters {
    padding: var(--space-4) 0;
  }
  
  .listings-content {
    padding: var(--space-6) 0;
  }
  
  .listings-empty-actions {
    flex-direction: column;
  }
  
  .listings-empty-actions .btn {
    width: 100%;
  }
}



/* Listing Card Styles */
.listing-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.listing-card__title-link:hover {
  color: #f97316;
}

.listing-card__view-details {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(249, 115, 22, 0.9);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.listing-card__view-details:hover {
  background: rgba(249, 115, 22, 1);
  color: white;
  transform: translateY(-1px);
}

.listing-card__location {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
}

.listing-card__location:hover {
  color: #f97316;
}

.listing-card__wishlist {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.listing-card__wishlist:hover {
  background-color: white;
  transform: scale(1.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.listing-card__wishlist i {
  color: #6b7280;
  transition: color 0.2s;
}

.listing-card__wishlist.wishlisted i {
  color: #ef4444;
}

.listing-card__wishlist:hover i {
  color: #ef4444;
}

/* Empty State Styles */
.empty-state-container {
  min-height: 400px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.empty-state-illustration img {
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.empty-state-container:hover .empty-state-illustration img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.empty-state-actions .cta-button {
  min-width: 160px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .empty-state-container {
      min-height: 300px;
      padding: 2rem 1rem;
  }
  
  .empty-state-illustration img {
      width: 200px;
      height: 200px;
  }
  
  .empty-state-actions {
      flex-direction: column;
  }
  
  .empty-state-actions .cta-button {
      width: 100%;
      min-width: auto;
  }
}

/* Animation for entrance */
.empty-state-container {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Price Range Filter Styles */
.price-range-container {
  width: 100%;
}

/* Input field styling */
.price-range-container input[type="number"] {
  transition: all 0.2s;
}

.price-range-container input[type="number"]:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .price-range-container .d-flex {
      flex-direction: column;
      gap: 0.75rem;
  }
}

/* Map Popup Styles */
#map-popup-overlay {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#map-popup-container {
  min-height: 100vh;
}

.map-marker {
  background: #f97316;
  border: 3px solid white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.map-marker.featured {
  background: #dc2626;
  width: 24px;
  height: 24px;
}

.map-popup-content {
  max-width: 320px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.map-popup-content .popup-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.map-popup-content .popup-body {
  padding: 20px;
  background: white;
}

.map-popup-content .popup-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.3;
}

.map-popup-content .popup-category {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.map-popup-content .popup-location {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.map-popup-content .popup-actions {
  display: flex;
  gap: 10px;
}

.map-popup-content .popup-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.map-popup-content .popup-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

.map-popup-content .popup-btn-primary:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(249, 115, 22, 0.4);
}

.map-popup-content .popup-btn-secondary {
  background: #f8fafc;
  color: #374151;
  border: 1px solid #e2e8f0;
}

.map-popup-content .popup-btn-secondary:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

/* Enhanced map info window styling */
.map-info-window {
  background: white !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  min-width: 300px !important;
  max-width: 400px !important;
  width: auto !important;
}

.map-info-window h4 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.map-info-window p {
  font-size: 14px !important;
  color: #6b7280 !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
}

.map-info-window .flex {
  align-items: center !important;
  justify-content: space-between !important;
}

.map-info-window .text-orange-600 {
  font-weight: 600 !important;
  font-size: 14px !important;
}

.map-info-window .text-blue-600 {
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.map-info-window .text-blue-600:hover {
  color: #1d4ed8 !important;
}

/* Enhanced popup content styling for better consistency */
.map-popup-content {
  max-width: 400px !important;
  min-width: 300px !important;
  width: auto !important;
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  background: white !important;
}

.map-popup-content .popup-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.map-popup-content .popup-body {
  padding: 20px;
  background: white;
}

.map-popup-content .popup-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.3;
}

.map-popup-content .popup-category {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.map-popup-content .popup-location {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.map-popup-content .popup-actions {
  display: flex;
  gap: 10px;
}

.map-popup-content .popup-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.map-popup-content .popup-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

.map-popup-content .popup-btn-primary:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(249, 115, 22, 0.4);
}

.map-popup-content .popup-btn-secondary {
  background: #f8fafc;
  color: #374151;
  border: 1px solid #e2e8f0;
}

.map-popup-content .popup-btn-secondary:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

/* Override Leaflet default popup styles */
.leaflet-popup-content-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  padding: 0 !important;
  min-width: 300px !important;
  max-width: 400px !important;
  width: auto !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 300px !important;
  max-width: 400px !important;
}

.leaflet-popup-tip {
  background: white !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-popup-close-button {
  background: white !important;
  color: #6b7280 !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s ease !important;
  z-index: 1000 !important;
}

.leaflet-popup-close-button:hover {
  background: #f3f4f6 !important;
  color: #374151 !important;
  transform: scale(1.1) !important;
}

/* Enhanced map popup styling for better consistency */
.map-info-window .p-3 {
  padding: 16px !important;
}

.map-info-window h4 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
  font-family: 'Montserrat', sans-serif !important;
}

.map-info-window p {
  font-size: 14px !important;
  color: #6b7280 !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
  font-family: 'Montserrat', sans-serif !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

.map-info-window .flex {
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.map-info-window .text-orange-600 {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #f97316 !important;
  font-family: 'Montserrat', sans-serif !important;
}

.map-info-window .text-blue-600 {
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  color: white !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  background: #1a1a1a !important;
  border: none !important;
  font-family: 'Montserrat', sans-serif !important;
}

.map-info-window .text-blue-600:hover {
  background: #000000 !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(26, 26, 26, 0.4) !important;
}

/* Map marker styles */
.map-marker {
  background: #f97316 !important;
  border: 3px solid white !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.map-marker:hover {
  transform: scale(1.2) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.map-marker.featured {
  background: #dc2626 !important;
  width: 24px !important;
  height: 24px !important;
  border-width: 4px !important;
}

.map-marker.featured:hover {
  transform: scale(1.25) !important;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.leaflet-popup-tip {
  background: white !important;
  border: none !important;
  box-shadow: none !important;
}

.leaflet-popup-close-button {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #6b7280 !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 24px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: bold !important;
  transition: all 0.2s ease !important;
  border: 1px solid #e2e8f0 !important;
}

.leaflet-popup-close-button:hover {
  background: #f3f4f6 !important;
  color: #374151 !important;
  transform: scale(1.1) !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .map-popup-content {
      max-width: 320px !important;
      min-width: 280px !important;
  }
  
  .map-popup-content .popup-image {
      height: 120px !important;
  }
  
  .map-popup-content .popup-body {
      padding: 12px !important;
  }
  
  .map-popup-content .popup-title {
      font-size: 14px !important;
  }
  
  .map-popup-content .popup-actions {
      flex-direction: column !important;
  }
  
  .map-popup-content .popup-btn {
      padding: 10px 12px !important;
  }
  
  .leaflet-popup-content {
      max-width: 320px !important;
      min-width: 280px !important;
  }
  
  .leaflet-popup-content-wrapper {
      max-width: 320px !important;
      min-width: 280px !important;
  }
  
  .map-info-window {
      min-width: 280px !important;
      max-width: 320px !important;
  }
  
  .map-info-window .p-3 {
      padding: 12px !important;
  }
  
  .map-info-window h4 {
      font-size: 16px !important;
  }
  
  .map-info-window p {
      font-size: 13px !important;
  }
  
  .map-info-window .flex {
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 8px !important;
  }
}

/* Pagination Styles (Integrated from pagination.php) */
/* Loading state */
.pagination-loading .cta-button-pagination,
.pagination-loading .cta-button-page-number {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ellipsis styling */
.pagination-ellipsis {
  padding: 0 8px;
  color: #6b7280;
  font-weight: 500;
  user-select: none;
}

/* Disabled state for CTA buttons */
.cta-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .cta-button-page-number {
      min-width: 36px;
      height: 36px;
      font-size: 14px;
  }
  
  .cta-button-pagination-no-icon {
      min-width: 36px;
      height: 36px;
      font-size: 14px;
      padding: 8px 12px;
  }
  
  /* Hide text on very small screens, keep icons */
  .cta-button-pagination-no-icon span {
      display: none;
  }
  
  /* Ensure pagination is scrollable on mobile if needed */
  .d-flex.align-items-center {
      flex-wrap: wrap;
      justify-content: center;
      gap: 4px;
  }
  
  /* Make page numbers more touch-friendly */
  .cta-button-page-number {
      min-width: 40px;
      height: 40px;
      margin: 2px;
  }
}


/* Loading state - Duplicate removed */
/* This section was duplicated and has been removed to avoid conflicts */

/* ========================================
   MAP POPUP CUSTOM STYLES
   ======================================== */

/* Price section styling */
.map-popup-content .popup-price {
  margin-bottom: 16px !important;
}

.map-popup-content .popup-price .price-text {
  font-size: 14px !important;
  color: #f97316 !important;
  font-weight: 600 !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* Enhanced popup styling with Montserrat font */
.map-popup-content .popup-title {
  font-family: 'Montserrat', sans-serif !important;
}

.map-popup-content .popup-category {
  font-family: 'Montserrat', sans-serif !important;
}

.map-popup-content .popup-location {
  font-family: 'Montserrat', sans-serif !important;
  align-items: flex-start !important;
}

.map-popup-content .popup-location i {
  margin-top: 2px !important;
  flex-shrink: 0 !important;
}

.map-popup-content .popup-location span {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.map-popup-content .popup-btn {
  font-family: 'Montserrat', sans-serif !important;
}

/* Custom button styling */
.map-popup-content .popup-btn-primary {
  background: #1a1a1a !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.3) !important;
}

.map-popup-content .popup-btn-primary:hover {
  background: #000000 !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(26, 26, 26, 0.4) !important;
}