/* General Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Header Section */
.header-section {
  background: #d9232a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
}

.header-section .logo h2 {
  font-size: 28px;
  font-weight: 700;
}

/* Add padding to body to compensate for fixed header */
body {
  padding-top: 80px;
}

.search-bar {
  max-width: 700px;
}

.search-bar .input-group {
  background: white;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-bar .form-control {
  border: none;
  padding: 12px 15px;
  font-size: 14px;
}

.search-bar .form-control:focus {
  box-shadow: none;
}

.search-bar .btn {
  border: none;
  background: white;
  color: #666;
  padding: 8px 15px;
}

.search-bar .btn:hover {
  background: #f8f9fa;
}

/* ============================================
   SEARCH AUTOCOMPLETE STYLES
   ============================================ */

.search-input-wrapper {
  position: relative;
}

.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 2px;
}

.suggestion-item {
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #f8f9fa;
}

.suggestion-item .suggestion-text {
  font-weight: 500;
  color: #333;
}

.suggestion-item .badge {
  font-size: 10px;
  font-weight: 500;
}

/* ============================================
   APPLIED FILTERS BADGES
   ============================================ */

.applied-filters-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  background: #f0f0f0 !important;
  transition: all 0.2s ease;
}

.filter-badge:hover {
  background: #e0e0e0 !important;
}

.filter-badge .fa-times {
  font-size: 10px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.filter-badge:hover .fa-times {
  opacity: 1;
}

/* ============================================
   MOBILE FILTER TOGGLE BUTTON
   ============================================ */

.mobile-filter-toggle {
  display: none;
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #d9232a;
  font-size: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   MOBILE FILTER DRAWER
   ============================================ */

.mobile-filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1045;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-filter-overlay.show {
  display: block;
  opacity: 1;
}

body.filter-drawer-open {
  overflow: hidden;
}

/* Sidebar Filters */
.sidebar-filters {
  background: white;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid #e0e0e0;
}

.filter-section {
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section h5 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.filter-section h6 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.filter-section .badge {
  padding: 6px 12px;
  font-weight: 500;
}

.btn-group-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-group-custom .btn {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

/* Button active state */
.btn-group-custom .btn.active,
.furnishing-btn.active,
.amenity-btn.active,
.property-subtype-btn.active,
.quick-filter-btn.active {
  background-color: #d9232a !important;
  border-color: #d9232a !important;
  color: white !important;
}

/* Main Content */
.main-content {
  padding: 20px;
  background: #f8f9fa;
}

.results-header h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.info-banner {
  background: #e3f2fd;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Property Card */
.property-card {
  background: white;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.property-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.property-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.badge-shortlist {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  max-width: 85%;
}

.badge-photo-count {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.badge-video-count {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 6px;
}

.image-footer {
  background: white;
  padding: 8px 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #f0f0f0;
}

.btn-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-favorite:hover {
  transform: scale(1.1);
  color: #dc3545;
}

.property-details {
  padding: 20px;
}

.property-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.property-title .rating {
  color: #f59e0b;
  font-size: 14px;
  margin-left: 5px;
}

.property-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.property-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.land-type-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* General = Green (bg-success) */
.land-type-badge.bg-success {
  background-color: #28a745 !important;
}

/* SC = Gray (bg-secondary) */
.land-type-badge.bg-secondary {
  background-color: #6c757d !important;
}

/* ST = Blue (bg-info) */
.land-type-badge.bg-info {
  background-color: #17a2b8 !important;
}

.property-price-section {
  margin-bottom: 15px;
}

.property-price {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.price-unit {
  font-size: 16px;
  font-weight: 400;
  color: #666;
}

.property-area {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.property-config {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: right;
}

.property-highlights {
  margin: 15px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight-label {
  font-weight: 600;
  color: #333;
  margin-right: 5px;
}

.property-highlights .badge {
  background: #f1f3f5 !important;
  color: #333 !important;
  font-weight: 500;
  padding: 6px 12px;
}

.property-description {
  color: #666;
  font-size: 14px;
  margin: 15px 0;
  line-height: 1.5;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.dealer-badge {
  background: #ffc107;
  color: #333;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 5px;
}

.property-footer .btn-outline-primary {
  border-color: #d9232a;
  color: #d9232a;
}

.property-footer .btn-outline-primary:hover {
  background: #d9232a;
  color: white;
}

.property-footer .btn-primary {
  background: #d9232a;
  border-color: #d9232a;
}

.property-footer .btn-primary:hover {
  background: #de3f44;
  border-color: #de3f44;
}

/* Featured Dealers Section */
.featured-dealers-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Scrollbar Styling */
.sidebar-filters::-webkit-scrollbar {
  width: 6px;
}

.sidebar-filters::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sidebar-filters::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.sidebar-filters::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-card {
  animation: fadeIn 0.5s ease-in-out;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #d9232a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* Post Property Button */
.btn-post-property {
  background-color: white;
  color: #d9232a;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-post-property:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-post-property .badge-free {
  background-color: #28a745;
  color: white;
  font-size: 0.65rem;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Section Selects */
.filter-section .form-select {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  padding: 8px 12px;
  color: #495057;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-section .form-select:focus {
  border-color: #d9232a;
  box-shadow: 0 0 0 0.2rem rgba(217, 35, 42, 0.15);
  outline: none;
}

.filter-section .form-select:hover {
  border-color: #adb5bd;
}

.filter-section .form-select option {
  padding: 10px;
  font-size: 14px;
}

/* Custom scrollbar for select dropdown (webkit browsers) */
.filter-section .form-select::-webkit-scrollbar {
  width: 8px;
}

.filter-section .form-select::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.filter-section .form-select::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.filter-section .form-select::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.property-link {
  text-decoration: none;
  color: inherit;
}

.property-link:hover .property-card {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.property-link:hover .property-title {
  color: #d9232a;
}

/* Hide AdminLTE skip links */
.skip-links {
  display: none !important;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION BAR
   ============================================ */

/* ============================================
   MOBILE BOTTOM NAVIGATION - Native Style
   ============================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.15), 0 -1px 8px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  padding: 8px 0 6px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin: 0 8px;
  margin-bottom: 0;
  width: calc(100% - 16px);
}

.mobile-bottom-nav .nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #8e8e93;
  padding: 6px 12px;
  border-radius: 10px;
  transition: color 0.2s ease;
  min-width: 60px;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item:focus {
  color: #d9232a;
}

.mobile-bottom-nav .nav-item.active {
  color: #d9232a;
}

.mobile-bottom-nav .nav-item.active .nav-icon {
  color: #d9232a;
}

.mobile-bottom-nav .nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
  line-height: 1;
  transition: color 0.2s ease;
}

.mobile-bottom-nav .nav-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

/* Post Property FAB Button */
.mobile-bottom-nav .nav-item-fab {
  position: relative;
  margin-top: -25px;
}

.mobile-bottom-nav .fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #d9232a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(217, 35, 42, 0.35);
  border: 3px solid #fff;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-bottom-nav .fab-btn:hover,
.mobile-bottom-nav .fab-btn:active {
  background: #c41f25;
  transform: scale(1.05);
}

.mobile-bottom-nav .fab-btn .nav-icon {
  font-size: 22px;
  margin-bottom: 0;
}

.mobile-bottom-nav .fab-label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 500;
  color: #8e8e93;
  white-space: nowrap;
}

/* Mobile search toggle button */
.mobile-search-toggle {
  display: none;
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #d9232a;
  font-size: 18px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop adjustments */
@media (min-width: 992px) {
  body {
    padding-top: 80px;
  }

  /* Adjust sidebar for fixed header on desktop */
  .sidebar-filters {
    position: fixed;
    top: 80px;
    left: 0;
    width: 25%;
    height: calc(100vh - 80px);
    overflow-y: auto;
  }

  /* Adjust main content to account for fixed sidebar */
  .main-content {
    margin-left: 25%;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .sidebar-filters {
    width: 25%;
  }

  .main-content {
    margin-left: 25%;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 991px) {
  body {
    padding-top: 75px;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  /* Show bottom nav on mobile */
  .mobile-bottom-nav {
    display: block;
  }

  /* Hide user dropdown on mobile */
  .user-dropdown {
    display: none !important;
  }

  /* Add padding to body */
  body {
    padding-top: 70px;
    padding-bottom: 80px;
  }

  /* Adjust scroll to top button position */
  .scroll-to-top {
    bottom: 100px;
  }

  /* Hide Post Property button on mobile */
  .btn-post-property {
    display: none !important;
  }

  /* Show mobile filter toggle */
  .mobile-filter-toggle {
    display: flex;
  }

  /* Mobile filter drawer */
  .sidebar-filters {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    z-index: 1046;
    transition: left 0.3s ease;
    padding-top: 20px;
  }

  .sidebar-filters.mobile-open {
    left: 0;
  }

  .property-card .row {
    flex-direction: column;
  }

  .property-image {
    height: 220px;
  }

  .search-bar {
    max-width: 100%;
    margin: 10px 0 !important;
  }

  .property-price {
    font-size: 24px;
  }

  .property-footer {
    flex-direction: column;
    gap: 10px;
  }

  .property-footer > div {
    width: 100%;
    text-align: center;
  }

  .property-footer .ms-auto {
    margin-left: 0 !important;
    display: flex;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 60px;
  }

  .header-section .logo h2 {
    font-size: 20px;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .filter-tabs .float-end {
    float: none !important;
    width: 100%;
    margin-top: 10px;
  }

  /* Collapsible search bar styling */
  .header-section .search-bar.collapsible-search {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: #d9232a;
    margin: 0 !important;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .header-section .search-bar.collapsible-search.show {
    display: block;
  }

  .header-section .search-bar.collapsible-search .input-group {
    max-width: 100%;
  }

  /* Show search toggle button */
  .mobile-search-toggle {
    display: flex;
  }

  /* Results header spacing adjustment */
  .results-header {
    margin-top: 15px;
    padding-top: 10px;
    transition: margin-top 0.3s ease;
  }

  /* When search is expanded, add more space */
  body.search-expanded .results-header {
    margin-top: 70px;
  }

  body.search-expanded .main-content {
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 55px;
  }

  .results-header {
    margin-top: 10px;
    padding-top: 8px;
  }

  body.search-expanded .results-header {
    margin-top: 65px;
  }

  body.search-expanded .main-content {
    padding-top: 55px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .btn-post-property .badge-free {
    display: none;
  }

  .btn-post-property {
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .mobile-bottom-nav {
    margin: 0 6px;
    width: calc(100% - 12px);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .mobile-bottom-nav .nav-item {
    padding: 5px 8px;
    min-width: 50px;
  }

  .mobile-bottom-nav .nav-label {
    font-size: 9px;
  }

  .mobile-bottom-nav .nav-icon {
    font-size: 20px;
  }

  .mobile-bottom-nav .fab-btn {
    width: 48px;
    height: 48px;
  }

  .mobile-bottom-nav .fab-btn .nav-icon {
    font-size: 20px;
  }

  .mobile-bottom-nav .nav-item-fab {
    margin-top: -22px;
  }
}

/* Results header mobile spacing */
@media (max-width: 991px) {
  .results-header {
    margin-top: 15px;
    padding-top: 10px;
  }
}

/* Landscape mode on mobile devices */
@media (max-width: 991px) and (orientation: landscape) {
  .results-header {
    margin-top: 15px;
    padding-top: 10px;
  }
}

/* ============================================
   PAGINATION STYLES
   ============================================ */

.pagination {
  gap: 5px;
}

.pagination .page-link {
  border-radius: 8px;
  color: #333;
  border: 1px solid #dee2e6;
  padding: 8px 14px;
}

.pagination .page-item.active .page-link {
  background-color: #d9232a;
  border-color: #d9232a;
}

.pagination .page-link:hover {
  background-color: #f8f9fa;
  border-color: #d9232a;
  color: #d9232a;
}

.pagination .page-item.disabled .page-link {
  color: #999;
  background-color: #f8f9fa;
}

/* ============================================
   SORT DROPDOWN STYLES
   ============================================ */

.sort-option.active {
  background-color: #d9232a;
  color: white;
}

.sort-option:hover:not(.active) {
  background-color: #f8f9fa;
}

/* ============================================
   QUICK FILTER BUTTONS
   ============================================ */

.quick-filter-btn {
  transition: all 0.2s ease;
}

.quick-filter-btn.active {
  background-color: #d9232a !important;
  border-color: #d9232a !important;
  color: white !important;
}

.quick-filter-btn:hover:not(.active) {
  border-color: #d9232a;
  color: #d9232a;
}

/* ============================================
   LOCATION FILTER LABELS
   ============================================ */

.filter-section .form-label {
  font-size: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   FOOTER LAYOUT FIX FOR FIXED SIDEBAR
   ============================================ */

/* Main wrapper to contain sidebar and content */
.main-wrapper {
  min-height: calc(
    100vh - 80px - 300px
  ); /* viewport - header - approximate footer height */
}

/* Footer adjustments for fixed sidebar layout */
@media (min-width: 992px) {
  body.has-fixed-sidebar .site-footer {
    margin-left: 25%;
  }
}

@media (min-width: 1200px) {
  body.has-fixed-sidebar .site-footer {
    margin-left: 25%;
  }
}

/* Reset footer margin on tablet and mobile */
@media (max-width: 991px) {
  body.has-fixed-sidebar .site-footer {
    margin-left: 0;
  }
}

/* ============================================
   INFINITE SCROLL LOADER STYLES
   ============================================ */

/* Bottom Loading Spinner for Infinite Scroll */
.infinite-scroll-loader {
  padding: 30px 20px;
  text-align: center;
  background: transparent;
}

.infinite-scroll-loader .spinner-border {
  color: #d9232a !important;
}

.infinite-scroll-loader p {
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

/* Smooth fade-in animation for newly loaded cards */
.property-card {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disable animation for initial load to prevent flash */
.property-card:nth-child(-n + 10) {
  animation: none;
}

/* Loading skeleton placeholder (optional enhancement) */
.property-skeleton {
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.property-skeleton .skeleton-image {
  height: 280px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.property-skeleton .skeleton-content {
  padding: 20px;
}

.property-skeleton .skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.property-skeleton .skeleton-line.short {
  width: 60%;
}

.property-skeleton .skeleton-line.medium {
  width: 80%;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Scroll to top button adjustment for infinite scroll */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: #d9232a;
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(217, 35, 42, 0.3);
  transition: all 0.3s ease;
}

.scroll-to-top:hover {
  background: #b91c22;
  transform: translateY(-3px);
}

.scroll-to-top.show {
  display: flex;
}

/* Mobile adjustments for infinite scroll loader */
@media (max-width: 768px) {
  .infinite-scroll-loader {
    padding: 20px 15px;
  }

  .scroll-to-top {
    bottom: 100px; /* Above mobile bottom nav */
    right: 20px;
  }
}
