/* ==========================================================================
   Ustalar.com | Fırsat İlanlar - Premium Design Stylesheet
   ========================================================================== */

/* 1. Reset and CSS Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,700&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Primary Royal Blue Palette */
  --color-primary: #1e40af;
  --color-primary-hover: #1d4ed8;
  --color-primary-dark: #172554;
  --color-primary-light: #eff6ff;
  --color-accent: #f97316; /* Orange signature for Ustalar branding */
  --color-accent-hover: #ea580c;
  
  /* Neutral Palette */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-slate-50);
  color: var(--color-slate-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--color-slate-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* 3. Preloader */
.preloader-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-slate-950);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.preloader-content {
  position: relative;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2.5rem;
  border-radius: 2.5rem;
  box-shadow: var(--shadow-2xl);
  text-align: center;
  width: 90%;
  max-width: 400px;
  animation: preloaderIntro 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.preloader-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: preloaderGlowPulse 4s ease-in-out infinite;
}

.preloader-icon-wrapper {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.preloader-icon-svg {
  width: 4rem;
  height: 4rem;
  color: var(--color-primary);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
  animation: preloaderIconPulse 2.5s ease-in-out infinite;
}

.preloader-title {
  font-family: var(--font-sans);
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  margin-bottom: 0.25rem;
}

.preloader-accent {
  color: var(--color-primary);
  font-style: italic;
}

.preloader-subtitle {
  color: var(--color-slate-400);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 2rem;
}

.preloader-spinner-container {
  display: flex;
  justify-content: center;
}

.preloader-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(30, 64, 175, 0.1);
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@keyframes preloaderGlowPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1.2; }
}

@keyframes preloaderIconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.2)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.45)); }
}

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

/* 4. Sticky Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-slate-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-content-width: 640px) {
  .header-container { padding: 0 1.5rem; }
}
@media (min-content-width: 1024px) {
  .header-container { padding: 0 2rem; }
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
  color: var(--color-slate-900);
}

.logo-accent {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 800;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.nav-link-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-slate-600);
  hover: text-color: var(--color-primary);
  font-weight: 550;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav-link-btn:hover {
  color: var(--color-primary);
}

.nav-link-btn svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-primary svg {
  width: 1rem;
  height: 1rem;
}

/* 5. Hero Section */
.hero-wrapper {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-slate-950);
  padding: 3.5rem 1rem;
}

@media (min-width: 768px) {
  .hero-wrapper {
    min-height: 62vh;
    padding: 4.5rem 2rem;
  }
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-cols: 2; /* fallback */
  grid-template-columns: repeat(2, 1fr);
  opacity: 0.25;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-bg-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-cell {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-cell img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transform-origin: center center;
  animation: kenBurns 18s ease-in-out infinite alternate;
}

.grid-cell:nth-child(1) img { animation-name: kenBurns1; animation-delay: 0s; }
.grid-cell:nth-child(2) img { animation-name: kenBurns2; animation-delay: -4.5s; }
.grid-cell:nth-child(3) img { animation-name: kenBurns3; animation-delay: -9s; }
.grid-cell:nth-child(4) img { animation-name: kenBurns4; animation-delay: -13.5s; }

@keyframes kenBurns1 {
  0%   { transform: scale(1.08) translate(0px, 0px); }
  100% { transform: scale(1.18) translate(-15px, -8px); }
}
@keyframes kenBurns2 {
  0%   { transform: scale(1.12) translate(10px, 5px); }
  100% { transform: scale(1.05) translate(-5px, 12px); }
}
@keyframes kenBurns3 {
  0%   { transform: scale(1.06) translate(-8px, 10px); }
  100% { transform: scale(1.16) translate(12px, -6px); }
}
@keyframes kenBurns4 {
  0%   { transform: scale(1.15) translate(5px, -10px); }
  100% { transform: scale(1.07) translate(-10px, 5px); }
}

/* Architectural SVG blueprint overlay */
.hero-blueprint-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.12;
  overflow: hidden;
}

.hero-blueprint-overlay svg {
  width: 100%;
  height: 100%;
  animation: blueprintDrift 30s linear infinite;
}

@keyframes blueprintDrift {
  0%   { transform: translateX(0) translateY(0); }
  50%  { transform: translateX(-20px) translateY(-10px); }
  100% { transform: translateX(0) translateY(0); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(147, 197, 253, 0.6);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

.hero-particle:nth-child(1)  { left: 8%;  top: 20%; width: 2px; height: 2px; animation-duration: 12s; animation-delay: 0s; }
.hero-particle:nth-child(2)  { left: 20%; top: 70%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: -3s; }
.hero-particle:nth-child(3)  { left: 35%; top: 40%; width: 2px; height: 2px; animation-duration: 10s; animation-delay: -5s; }
.hero-particle:nth-child(4)  { left: 55%; top: 15%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: -7s; }
.hero-particle:nth-child(5)  { left: 70%; top: 65%; width: 2px; height: 2px; animation-duration: 18s; animation-delay: -2s; }
.hero-particle:nth-child(6)  { left: 82%; top: 30%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: -9s; }
.hero-particle:nth-child(7)  { left: 92%; top: 80%; width: 2px; height: 2px; animation-duration: 15s; animation-delay: -4s; }
.hero-particle:nth-child(8)  { left: 45%; top: 55%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: -6s; }

@keyframes particleFloat {
  0%   { transform: translateY(0px) translateX(0px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-80px) translateX(20px); opacity: 0; }
}

.grid-cell-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  display: none;
}

@media (min-width: 768px) {
  .grid-cell-label { display: block; }
}

.grid-cell-label span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: monospace;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, #020617 0%, #1e3a8a 50%, #1e40af 100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.hero-bg-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, var(--color-slate-950) 0%, rgba(2, 6, 23, 0.7) 60%, rgba(2, 6, 23, 0.3) 100%);
}

.hero-glow-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-float-glow-1 {
  position: absolute;
  top: 15%;
  left: 5%;
  width: 24rem;
  height: 24rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 4;
}

.hero-float-glow-2 {
  position: absolute;
  bottom: 15%;
  right: 5%;
  width: 24rem;
  height: 24rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 60rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 50rem;
}

@media (min-width: 640px) {
  .hero-title { font-size: 2.75rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
}

.hero-title-gradient {
  background: linear-gradient(to right, #fff, #fff 60%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 6. Search Bar Engine */
.search-engine-box {
  width: 100%;
  max-width: 56rem;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-2xl);
  text-align: left;
}

@media (min-width: 640px) {
  .search-engine-box {
    padding: 1.75rem;
    border-radius: 2rem;
  }
}

.search-inputs-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
}

.search-input-field {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input-field::placeholder {
  color: var(--color-slate-400);
}

.search-input-field:focus {
  background-color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-dropdowns-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .search-dropdowns-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dropdown-wrapper {
  position: relative;
}

.dropdown-wrapper select {
  width: 100%;
  padding: 0.9rem 2.5rem 0.9rem 2.75rem;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--color-slate-700);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all var(--transition-fast);
}

.dropdown-wrapper select:focus {
  background-color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.dropdown-arrow-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.75rem;
  height: 0.75rem;
  pointer-events: none;
  color: var(--color-slate-400);
}

.btn-search-trigger {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.btn-search-trigger:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-lg);
}

.btn-search-trigger svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition-fast);
}

.btn-search-trigger:hover svg {
  transform: scale(1.1);
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(to top, var(--color-slate-50) 0%, transparent 100%);
  z-index: 5;
}

/* 7. Listings Section and Filters styling */
.listings-section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1rem;
  width: 100%;
  flex: 1;
}

@media (min-content-width: 640px) {
  .listings-section-container { padding: 5rem 1.5rem; }
}
@media (min-content-width: 1024px) {
  .listings-section-container { padding: 5rem 2rem; }
}

.section-label-pre {
  display: block;
  text-align: center;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.section-headline {
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-slate-800);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .section-headline { font-size: 2.25rem; }
}

.section-line-accent {
  width: 3rem;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 9999px;
  margin: 0.75rem auto 2.5rem auto;
}

/* Quick Categories Grid */
.categories-grid-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .categories-grid-switcher {
    grid-template-columns: repeat(5, 1fr);
  }
}

.category-filter-btn {
  background-color: #fff;
  border: 1px solid var(--color-slate-100);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.category-filter-btn:hover {
  border-color: rgba(30, 64, 175, 0.3);
  color: var(--color-primary);
}

.category-filter-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.15);
}

.category-filter-btn.active:hover {
  color: #fff;
}

.category-filter-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.category-filter-btn span {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Listings Panel Header */
.listings-panel-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--color-slate-200);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .listings-panel-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.listings-panel-title-area h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-slate-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.listings-panel-title-area h3 svg {
  color: var(--color-primary);
}

.listings-panel-title-area p {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  font-weight: 500;
  margin-top: 0.25rem;
}

.listings-panel-title-area p strong {
  color: var(--color-primary);
}

.filter-reset-btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #fff;
  border: 1px solid var(--color-slate-200);
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-slate-500);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

@media (min-width: 640px) {
  .filter-reset-btn {
    align-self: center;
  }
}

.filter-reset-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-reset-btn svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* Listings Sort Selector Wrapper */
.listings-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.listings-sort-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-slate-500);
  text-transform: uppercase;
  white-space: nowrap;
}

.listings-sort-select {
  padding: 0.4rem 2rem 0.4rem 1rem;
  background-color: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-slate-700);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.75rem;
}

.listings-sort-select:focus {
  border-color: var(--color-primary);
}

/* 8. Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (min-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .listings-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Skeleton Loading Cards */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}

.skeleton-card {
  background-color: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--color-slate-100);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: skeletonFadeIn 0.4s ease forwards;
}

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

.skeleton-pulse {
  background: linear-gradient(
    90deg,
    var(--color-slate-100) 25%,
    var(--color-slate-50)  50%,
    var(--color-slate-100) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 0.5rem;
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.skeleton-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.skeleton-line {
  height: 0.75rem;
}

.skeleton-line.short  { width: 45%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long   { width: 90%; }
.skeleton-line.full   { width: 100%; }

.skeleton-title {
  height: 1rem;
  width: 85%;
}

.skeleton-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.skeleton-spec-item {
  height: 2rem;
  border-radius: 0.5rem;
}

.skeleton-price {
  height: 1.5rem;
  width: 55%;
  margin-top: auto;
}

/* Fade-in animation for real cards loaded from Firebase */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.listing-card-reveal {
  animation: cardReveal 0.45s ease forwards;
}


.listing-card {
  background-color: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--color-slate-100);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
  height: 100%;
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card-badge-container {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-badge-type {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
}

.card-badge-opp {
  background-color: #ea2b2b;
  color: #fff;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.85; }
}

.card-image-box {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-slate-100);
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.listing-card:hover .card-image-box img {
  transform: scale(1.05);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 60%);
  opacity: 0.6;
}

.card-discount-saving {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background-color: rgba(23, 37, 84, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #bfdbfe;
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.card-content-area {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-location-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-slate-400);
  margin-bottom: 0.5rem;
}

.card-location-text {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-slate-600);
}

.card-location-text svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-primary);
}

.card-category-label {
  background-color: var(--color-slate-100);
  color: var(--color-slate-600);
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-slate-800);
  margin-bottom: 0.75rem;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.listing-card:hover .card-title {
  color: var(--color-primary);
}

.card-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-top: 1px solid var(--color-slate-100);
  border-bottom: 1px solid var(--color-slate-100);
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.card-spec-item {
  background-color: rgba(241, 245, 249, 0.4);
  padding: 0.4rem 0.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-slate-500);
}

.card-spec-item svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--color-primary);
}

.card-price-row {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.card-price-info {
  display: flex;
  flex-direction: column;
}

.card-price-original {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: var(--color-slate-400);
  margin-bottom: 0.15rem;
}

.card-price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.card-action-arrow {
  background-color: rgba(30, 64, 175, 0.08);
  color: var(--color-primary);
  padding: 0.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.listing-card:hover .card-action-arrow {
  background-color: var(--color-primary);
  color: #fff;
}

.card-action-arrow svg {
  width: 1rem;
  height: 1rem;
}

/* No Results Box */
.no-results-box {
  background-color: #fff;
  border: 1px solid var(--color-slate-100);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 32rem;
  margin: 2rem auto;
  box-shadow: var(--shadow-md);
}

.no-results-icon {
  width: 3rem;
  height: 3rem;
  color: var(--color-primary);
  margin: 0 auto 1.25rem auto;
  animation: bounce 2s infinite;
}

.no-results-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-slate-800);
  margin-bottom: 0.5rem;
}

.no-results-desc {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.no-results-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.btn-secondary {
  padding: 0.65rem 1.25rem;
  background-color: #fff;
  border: 1px solid var(--color-slate-200);
  color: var(--color-slate-700);
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 10. Talep Formu styling */
.talep-formu-section {
  background-color: #fff;
  border-top: 1px solid var(--color-slate-100);
  padding: 4.5rem 1rem;
  position: relative;
  overflow: hidden;
}

@media (min-content-width: 640px) {
  .talep-formu-section { padding: 4.5rem 1.5rem; }
}
@media (min-content-width: 1024px) {
  .talep-formu-section { padding: 4.5rem 2rem; }
}

.talep-decor-glow-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 20rem;
  height: 20rem;
  background: rgba(30, 64, 175, 0.03);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.talep-decor-glow-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20rem;
  height: 20rem;
  background: rgba(239, 246, 255, 0.6);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.talep-layout-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .talep-layout-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.talep-left-panel {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .talep-left-panel {
    grid-column: span 5;
  }
}

.talep-title-pre {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.talep-heading {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-slate-800);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .talep-heading { font-size: 2.25rem; }
}

.talep-heading-gradient {
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.talep-description {
  font-size: 0.875rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 300;
}

.props-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prop-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.prop-icon-box {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 0.4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prop-icon-box svg {
  width: 1.15rem;
  height: 1.15rem;
}

.prop-details h4 {
  font-weight: 800;
  color: var(--color-slate-800);
  font-size: 0.875rem;
}

.prop-details p {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  margin-top: 0.15rem;
}

/* Active persistent request panel */
.active-requests-panel {
  margin-top: 2rem;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-100);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.active-requests-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.active-requests-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-slate-500);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.active-requests-title svg {
  color: var(--color-primary);
  width: 0.95rem;
  height: 0.95rem;
}

.active-requests-clear {
  background: none;
  border: none;
  color: #ea2b2b;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.active-requests-clear:hover {
  text-decoration: underline;
}

.active-requests-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 10rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.active-request-card {
  background-color: #fff;
  border: 1px solid var(--color-slate-100);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.request-card-info p {
  font-weight: 700;
  color: var(--color-slate-800);
}

.request-card-info p span {
  color: var(--color-primary);
}

.request-card-desc {
  font-size: 0.65rem;
  color: var(--color-slate-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
  margin-top: 0.15rem;
}

.request-status-pill {
  background-color: #ecfdf5;
  color: #059669;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Talep Right Panel: Form Card */
.talep-right-panel {
  background-color: #fff;
  border: 1px solid var(--color-slate-100);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
  .talep-right-panel {
    padding: 2rem;
    border-radius: 2rem;
  }
}

@media (min-width: 1024px) {
  .talep-right-panel {
    grid-column: span 7;
  }
}

.talep-right-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-slate-800);
  margin-bottom: 1.5rem;
}

/* Success notification banner */
.talep-success-banner {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.talep-success-banner svg {
  color: #10b981;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.talep-success-title {
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.talep-success-desc {
  font-weight: 500;
  color: var(--color-slate-600);
}

.form-layout-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  background-color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-select {
  width: 100%;
  padding: 0.75rem 2rem 0.75rem 1rem;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate-700);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
}

.form-select:focus {
  border-color: var(--color-primary);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  resize: none;
  transition: all var(--transition-fast);
}

.form-textarea:focus {
  background-color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-footer-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--color-slate-400);
  font-weight: 500;
  padding: 0.25rem 0;
}

.form-footer-notice svg {
  color: var(--color-primary);
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.btn-form-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.btn-form-submit:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-lg);
}

.btn-form-submit svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition-fast);
}

.btn-form-submit:hover svg {
  transform: translate(2px, -2px);
}

/* 11. Footer */
.app-footer {
  background-color: #0b1320;
  color: var(--color-slate-400);
  padding: 4rem 1rem 2rem 1rem;
  border-top: 1px solid var(--color-slate-800);
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-col-brand {
    grid-column: span 5;
  }
}

.footer-logo-svg {
  height: 2.5rem;
  width: auto;
  cursor: pointer;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--color-slate-400);
  line-height: 1.6;
  font-weight: 300;
  max-width: 24rem;
}

.footer-download-panel {
  padding-top: 0.5rem;
}

.footer-download-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-slate-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.download-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-btn {
  background-color: #1e293b;
  border: 1px solid rgba(51, 65, 85, 0.5);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.download-btn:hover {
  background-color: var(--color-slate-800);
}

.download-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.download-btn-play {
  color: var(--color-accent);
  fill: var(--color-accent);
}

.download-btn-text {
  text-align: left;
  line-height: 1;
}

.download-btn-subtitle {
  display: block;
  font-size: 0.55rem;
  color: var(--color-slate-400);
  font-weight: 600;
  text-transform: uppercase;
}

.download-btn-title {
  font-weight: 700;
  font-size: 0.75rem;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .footer-col-links {
    grid-column: span 3;
  }
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-slate-200);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-slate-800);
  padding-bottom: 0.5rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  color: var(--color-slate-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--color-primary);
}

.footer-col-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-col-contact {
    grid-column: span 4;
  }
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.875rem;
}

.footer-contact-list li {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.footer-contact-list li svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-contact-list a {
  color: var(--color-slate-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-list a:hover {
  color: var(--color-primary);
}

.footer-score-badge {
  background-color: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.3);
  padding: 0.75rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.footer-score-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-slate-200);
  font-weight: 700;
}

.footer-score-left svg {
  color: #fbbf24;
  fill: #fbbf24;
  width: 0.95rem;
  height: 0.95rem;
}

.footer-score-label {
  color: var(--color-slate-400);
  font-size: 0.625rem;
}

.footer-bottom-bar {
  border-top: 1px solid var(--color-slate-800);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
  }
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  font-weight: 500;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-copyright {
    text-align: left;
  }
}

.footer-back-to-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #1e293b;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  color: var(--color-slate-400);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.footer-back-to-top:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.footer-back-to-top svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* 12. Listing Detail Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-container {
  background-color: #fff;
  width: 100%;
  max-width: 64rem;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 90vh;
  animation: modalEnter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@media (min-width: 768px) {
  .modal-container {
    flex-direction: row;
    max-height: 85vh;
  }
}

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

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-slate-700);
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.modal-close-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Left side gallery */
.modal-left-gallery {
  width: 100%;
  background-color: var(--color-slate-900);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 300px;
  min-height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .modal-left-gallery {
    width: 55%;
    height: auto;
    min-height: 420px;
    max-height: 85vh;
    flex-shrink: 0;
    align-self: stretch;
  }
}

.gallery-main-view {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  min-height: 0;
}

.gallery-main-view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  padding: 0.4rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.gallery-nav-btn:hover {
  background-color: var(--color-primary);
}

.gallery-nav-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.gallery-nav-btn-prev { left: 0.75rem; }
.gallery-nav-btn-next { right: 0.75rem; }

.gallery-badges {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-badges-opp {
  background-color: #ea2b2b;
  color: #fff;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.gallery-badges-opp svg {
  width: 0.85rem;
  height: 0.85rem;
}

.gallery-badges-type {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
}

.gallery-badges-cat {
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
}

/* Gallery thumbnails strip */
.gallery-thumbnails-strip {
  padding: 0.75rem;
  background-color: rgba(2, 6, 23, 0.9);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  justify-content: center;
}

.gallery-thumb-btn {
  position: relative;
  width: 4rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.6;
  transition: all var(--transition-fast);
}

.gallery-thumb-btn:hover {
  opacity: 0.95;
}

.gallery-thumb-btn.active {
  border-color: var(--color-primary);
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Right Content Panel */
.modal-right-panel {
  width: 100%;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--color-slate-50);
  flex: 1 1 0;
  min-height: 0;
}

@media (min-width: 768px) {
  .modal-right-panel {
    width: 45%;
    padding: 2rem;
    max-height: 85vh;
    overflow-y: auto;
  }
}

.modal-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-slate-400);
  margin-bottom: 0.75rem;
}

.modal-meta-cat {
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-meta-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.modal-meta-date svg {
  width: 0.85rem;
  height: 0.85rem;
}

.modal-listing-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-slate-800);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.modal-location-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(30, 64, 175, 0.05);
  border: 1px solid rgba(30, 64, 175, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-slate-700);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.modal-location-badge svg {
  color: var(--color-primary);
  width: 1rem;
  height: 1rem;
}

/* Modal Pricing Panel */
.modal-price-panel {
  background: linear-gradient(to right, rgba(239, 246, 255, 0.7), rgba(239, 246, 255, 0.3));
  border: 1px solid rgba(30, 64, 175, 0.15);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.modal-price-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.modal-price-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-slate-500);
  text-transform: uppercase;
}

.modal-discount-badge {
  background-color: #ea2b2b;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.modal-price-values {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.modal-price-current {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.modal-price-original {
  font-size: 0.875rem;
  text-decoration: line-through;
  color: var(--color-slate-400);
}

.modal-savings-highlight {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.modal-savings-highlight svg {
  color: var(--color-primary-dark);
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

/* Modal layout specifications */
.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.modal-spec-card {
  background-color: #fff;
  border: 1px solid var(--color-slate-100);
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.modal-spec-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.modal-spec-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-slate-700);
}

.modal-spec-value svg {
  color: var(--color-primary);
  width: 0.95rem;
  height: 0.95rem;
}

/* Description and features */
.modal-info-heading {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-slate-800);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.modal-desc-text {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-slate-600);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.modal-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .modal-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modal-feature-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-slate-700);
}

.modal-feature-item svg {
  color: var(--color-primary);
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

/* Agent Panel */
.modal-agent-panel {
  background-color: #fff;
  border: 1px solid var(--color-slate-100);
  padding: 1.25rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-top: auto;
}

.modal-agent-heading {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.modal-agent-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-slate-100);
  margin-bottom: 1rem;
}

.modal-agent-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.modal-agent-name {
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--color-slate-800);
}

.modal-agent-title {
  font-size: 0.7rem;
  color: var(--color-slate-400);
  font-weight: 600;
  margin-top: 0.15rem;
}

.modal-agent-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agent-form-success-banner {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.agent-form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  outline: none;
}

.agent-form-input:focus {
  background-color: #fff;
  border-color: var(--color-primary);
}

.btn-agent-submit {
  width: 100%;
  padding: 0.65rem;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background-color var(--transition-fast);
}

.btn-agent-submit:hover {
  background-color: var(--color-primary-hover);
}

.btn-agent-submit svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* 13. Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: #fff;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  text-decoration: none;
  font-size: 2rem;
  transition: all var(--transition-normal);
  animation: floatPulse 2s infinite;
}

.whatsapp-float-btn:hover {
  background-color: #20ba5a;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 4.5rem;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-normal);
  pointer-events: none;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes floatPulse {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
}
