/* ====================================
   SELIMIT — Buy Property Page CSS
   ==================================== */

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(rgba(10, 22, 40, 0.85), rgba(10, 22, 40, 0.85)), url('property-bg.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Floating graphic removed as per user request for full graphic background */

@keyframes floatGraphic {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -55%) scale(1.05); }
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
}

.page-hero-content { position: relative; z-index: 1; }

.page-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 950;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 12px;
  animation: none !important; /* No animation for headlines */
}

.page-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  animation: none !important; /* No animation for headlines */
}

.page-subtitle span { color: var(--green-neon); font-weight: 700; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.breadcrumb a:hover { color: var(--green-neon); }

.bc-sep { color: rgba(255,255,255,0.3); }
.bc-current { color: var(--green-neon); font-weight: 600; }

/* ===== MAIN LAYOUT ===== */
.buy-main {
  padding: 40px 0 80px;
  background: var(--off-white);
  min-height: 60vh;
}

.buy-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== FILTER PANEL ===== */
.filter-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 88px;
  border: 1px solid var(--gray-100);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}

.filter-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-900);
}

.filter-reset {
  background: none;
  border: none;
  color: var(--blue-500);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: 6px;
}

.filter-reset:hover { background: var(--blue-100); }

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.filter-group:last-of-type { border-bottom: none; margin-bottom: 0; }

.filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 14px;
}

.filter-options { display: flex; flex-direction: column; gap: 10px; }

/* Custom Checkbox */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.filter-checkbox:hover { background: var(--gray-100); color: var(--gray-800); }

.filter-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.filter-checkbox input:checked + .check-mark {
  background: var(--teal-grad);
  border-color: transparent;
}

.filter-checkbox input:checked + .check-mark::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
}

.check-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 50px;
}

/* Price Range */
.price-range-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 12px;
}

.dual-range {
  position: relative;
  height: 36px;
  margin-bottom: 14px;
}

.dual-range input[type="range"] {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 6px;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-grad);
  cursor: pointer;
  pointer-events: all;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
}

.dual-range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-grad);
  cursor: pointer;
  pointer-events: all;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
}

.dual-range input:first-child::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--gray-200) 0%, var(--blue-400) 50%, var(--gray-200) 100%);
  height: 4px;
  border-radius: 4px;
}

.price-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.price-preset {
  padding: 5px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}

.price-preset:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  background: var(--blue-100);
}

/* Size Inputs */
.size-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-inputs input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--gray-800);
  outline: none;
  transition: var(--transition);
  background: var(--off-white);
}

.size-inputs input:focus {
  border-color: var(--blue-500);
  background: var(--white);
}

.size-inputs span {
  color: var(--gray-400);
  font-weight: 600;
  flex-shrink: 0;
}

/* Filter CTA */
.filter-cta {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(15,52,96,0.05), rgba(0,137,123,0.05));
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px dashed var(--gray-200);
}

.filter-cta-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.filter-cta-btn {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}

.filter-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(37,211,102,0.4); }

/* ===== LISTING AREA ===== */
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.listing-count {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.listing-count strong {
  color: var(--blue-700);
  font-weight: 800;
}

.listing-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.listing-sort select {
  padding: 8px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--gray-800);
  outline: none;
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
}

.listing-sort select:focus { border-color: var(--blue-500); }

/* Active Filter Tags */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.active-filters:empty { display: none; margin-bottom: 0; }

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--blue-100);
  border: 1px solid rgba(21,101,192,0.2);
  color: var(--blue-700);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  animation: fadeInUp 0.2s ease;
}

.filter-tag-remove {
  cursor: pointer;
  font-weight: 800;
  opacity: 0.6;
  transition: var(--transition);
  line-height: 1;
}

.filter-tag-remove:hover { opacity: 1; }

/* Listing Grid */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Property Card (Buy Page) */
.bp-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  cursor: pointer;
}

.bp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.bp-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.bp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bp-card:hover .bp-card-img { transform: scale(1.06); }

.bp-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.bp-badge-verified { background: rgba(0,137,123,0.9); }
.bp-badge-new { background: rgba(255,111,0,0.9); }
.bp-badge-hot { background: rgba(21,101,192,0.9); }

.bp-card-bhk {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
}

.bp-card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--gray-800);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
}

.bp-card-body { padding: 18px; }

.bp-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-700);
  margin-bottom: 6px;
}

.bp-card-price .price-onwards {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-400);
}

.bp-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 4px;
}

.bp-card-loc {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.bp-card-specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bp-card-specs span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 50px;
}

.bp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.bp-card-highlights {
  display: flex;
  gap: 4px;
}

.bp-card-highlights span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green-600);
  background: rgba(0,137,123,0.08);
  padding: 3px 8px;
  border-radius: 50px;
}

.bp-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--blue-600), var(--green-600));
  color: var(--white);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.bp-view-btn:hover { transform: scale(1.05); box-shadow: 0 4px 14px rgba(15,52,96,0.3); }

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results-icon { font-size: 3.5rem; margin-bottom: 16px; }

.no-results h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 8px;
}

.no-results p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.no-results a { color: var(--blue-600); font-weight: 600; text-decoration: underline; }

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  background: var(--teal-grad);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.mobile-filter-toggle:hover { transform: translateX(-50%) translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .buy-layout {
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .page-hero { padding: 100px 0 40px; }
  
  .filter-panel {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: var(--white);
    padding: 24px 20px 100px;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
  }

  .filter-panel.mobile-open { display: block; }
  .mobile-filter-toggle { display: flex; }
}

@media (max-width: 480px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .listing-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
