/* Main Stylesheet - Garage Sale Finders */

/* Design Tokens & Custom Variables */
:root {
  /* Color Palette */
  --primary-color: #f59e0b;       /* Warm Amber */
  --primary-dark: #d97706;        /* Terracotta Amber */
  --primary-light: #fef3c7;       /* Very Soft Amber */
  --secondary-color: #0f766e;     /* Deep Teal/Forest Green */
  --secondary-dark: #115e59;      /* Darker Teal */
  --secondary-light: #ccfbf1;     /* Soft Teal Mint */
  
  --text-dark: #1c1917;           /* Slate Charcoal */
  --text-muted: #78716c;          /* Soft Grey Brown */
  --text-light: #ffffff;
  
  --bg-primary: #ffffff;          /* Pure White */
  --bg-cream: #fafaf9;            /* Warm Off-White/Cream */
  --bg-soft-amber: #fffbeb;
  
  /* Status Colors */
  --color-success: #16a34a;
  --color-danger: #dc2626;
  
  /* Typography */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 12px 24px rgba(28, 25, 23, 0.12);
  --shadow-hover: 0 20px 32px rgba(28, 25, 23, 0.16);
  
  /* Layout & Spacing */
  --container-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.bg-cream {
  background-color: var(--bg-cream);
}

.center-align {
  text-align: center;
}

.text-left {
  text-align: left;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  gap: 8px;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-icon-right {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon-right {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-outline {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.btn-primary-light {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.btn-primary-light:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-secondary-light {
  background-color: var(--secondary-light);
  color: var(--secondary-color);
}

.btn-secondary-light:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: var(--border-radius-sm);
}

.btn-full {
  width: 100%;
}

.btn-shadow {
  box-shadow: var(--shadow-md);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 113, 108, 0.1);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background-color: #ffffff;
  height: 70px;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-headings);
  color: var(--text-dark);
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-accent {
  color: var(--secondary-color);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-only {
  display: inline-flex;
}

#header-btn-post {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  padding: 8px;
  z-index: 1100;
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Overlay Menu */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform var(--transition-slow);
  padding-top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
}

.mobile-nav-overlay.open {
  transform: translateY(0);
}

.mobile-nav {
  padding: 24px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-headings);
  display: block;
}

.mobile-nav-link:hover {
  color: var(--secondary-color);
}

.mobile-nav-cta {
  margin-top: 24px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 120px;
  background-image: url('../assets/hero.png');
  background-size: cover;
  background-position: center 30%;
  color: var(--text-light);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.9) 0%, rgba(28, 25, 23, 0.6) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.tag-icon {
  width: 14px;
  height: 14px;
  color: var(--primary-color);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  font-weight: 400;
}

/* Search Bar Widget */
.search-container {
  background-color: #ffffff;
  padding: 12px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-right: 1px solid rgba(120, 113, 108, 0.2);
  text-align: left;
}

.search-field:last-of-type {
  border-right: none;
}

.field-icon {
  width: 22px;
  height: 22px;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.field-inputs {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.field-inputs label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.field-inputs input, .field-inputs select {
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  background-color: transparent;
  width: 100%;
}

.field-inputs input::placeholder {
  color: #a8a29e;
}

.search-btn {
  padding: 16px 28px;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
  height: 58px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Stats Bar */
.stats-bar {
  background-color: #ffffff;
  padding: 24px 0;
  border-bottom: 1px solid rgba(120, 113, 108, 0.15);
  position: relative;
  z-index: 5;
  margin-top: -30px;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-md);
}

.stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 40px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(120, 113, 108, 0.2);
}

/* Sections Global */
.section {
  padding: 100px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-header.center-align {
  flex-direction: column;
  align-items: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-color);
  margin-bottom: 8px;
  background-color: var(--secondary-light);
  padding: 4px 12px;
  border-radius: 50px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
}

.section-description.centered {
  text-align: center;
}

/* Listing Grid & Cards */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.listing-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid rgba(120, 113, 108, 0.08);
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 118, 110, 0.15);
}

.listing-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #e7e5e4;
}

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

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

.listing-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.listing-badge.badge-estate {
  background-color: #8b5cf6; /* Estate Purple */
}

.listing-badge.badge-yard {
  background-color: #0f766e; /* Yard Teal */
}

.listing-badge.badge-garage {
  background-color: #d97706; /* Garage Amber */
}

.listing-save-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.listing-save-btn:hover {
  background-color: #ffffff;
  color: var(--color-danger);
  transform: scale(1.1);
}

.listing-save-btn.saved {
  color: var(--color-danger);
}

.listing-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.listing-meta-row {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.listing-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.listing-meta-icon {
  width: 14px;
  height: 14px;
}

.listing-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.35;
  /* Line clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.4em; /* Match max 2 lines height */
}

.listing-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  /* Line clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.listing-footer {
  border-top: 1px solid rgba(120, 113, 108, 0.1);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.listing-highlights {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  background-color: var(--secondary-light);
  padding: 4px 10px;
  border-radius: 4px;
}

.btn-card-details {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.btn-card-details:hover {
  color: var(--secondary-dark);
}

/* Listings Filter Tab Controls */
.listings-filter-controls {
  display: flex;
  gap: 8px;
  background-color: #f5f5f4;
  padding: 4px;
  border-radius: var(--border-radius-sm);
}

.filter-tab {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-dark);
}

.filter-tab.active {
  background-color: #ffffff;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

/* Categories Section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(120, 113, 108, 0.08);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.category-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  transition: transform var(--transition-fast);
}

.category-card:hover .category-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.category-icon {
  width: 28px;
  height: 28px;
}

/* Color schemes for category cards */
.color-orange { background-color: #fff7ed; color: #ea580c; }
.color-green { background-color: #f0fdf4; color: #16a34a; }
.color-blue { background-color: #eff6ff; color: #2563eb; }
.color-red { background-color: #fef2f2; color: #dc2626; }
.color-purple { background-color: #faf5ff; color: #9333ea; }
.color-yellow { background-color: #fef9c3; color: #ca8a04; }
.color-pink { background-color: #fdf2f8; color: #db2777; }
.color-cyan { background-color: #ecfeff; color: #0891b2; }

.category-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.category-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Map Preview Section */
.map-preview-section {
  background-color: #ffffff;
  padding: 80px 0;
  border-top: 1px solid rgba(120, 113, 108, 0.1);
  border-bottom: 1px solid rgba(120, 113, 108, 0.1);
}

.map-section-container {
  display: flex;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  gap: 60px;
  align-items: center;
}

.map-info-block {
  flex: 1;
}

.map-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 36px 0;
}

.map-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--secondary-light);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.bullet-icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.map-feature-item p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.map-visual-container {
  flex: 1.2;
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.interactive-map-frame {
  width: 100%;
  height: 380px; /* Constrained height as requested */
  background-color: #e5e5e0;
}

.map-overlay-guide {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: rgba(28, 25, 23, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 400; /* Above Leaflet controls */
  pointer-events: none;
}

.guide-icon {
  width: 14px;
  height: 14px;
  color: var(--primary-color);
}

/* Customized Leaflet Popups */
.leaflet-popup-content-wrapper {
  border-radius: var(--border-radius-sm) !important;
  font-family: var(--font-body) !important;
  padding: 6px !important;
}

.leaflet-popup-content {
  margin: 12px !important;
}

.map-popup-card {
  max-width: 220px;
}

.map-popup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.map-popup-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.map-popup-btn {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 700;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* How It Works Section */
.how-it-works-section {
  background-color: #ffffff;
}

.tab-control-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.how-tab-btn {
  padding: 16px 32px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-cream);
  color: var(--text-muted);
  border: 1px solid rgba(120, 113, 108, 0.15);
  transition: all var(--transition-normal);
}

.how-tab-btn:hover {
  background-color: rgba(120, 113, 108, 0.05);
  color: var(--text-dark);
}

.how-tab-btn.active {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.btn-tab-icon {
  width: 20px;
  height: 20px;
}

.how-panels {
  position: relative;
}

.how-panel {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.how-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-card {
  position: relative;
  background-color: var(--bg-cream);
  border-radius: var(--border-radius-md);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid rgba(120, 113, 108, 0.05);
  box-shadow: var(--shadow-sm);
}

.step-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.step-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  color: var(--secondary-color);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(120, 113, 108, 0.08);
}

.step-icon {
  width: 32px;
  height: 32px;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Post CTA Section */
.cta-banner-section {
  padding: 60px 0;
  background-color: var(--bg-cream);
}

.cta-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.cta-inner {
  position: relative;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  border-radius: var(--border-radius-lg);
  padding: 60px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-decoration-circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 20px;
}

.cta-text-content {
  flex: 1.5;
  max-width: 600px;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.cta-button-content {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

/* Footer styling */
.site-footer {
  background-color: #1c1917; /* Very Dark Brown/Charcoal */
  color: #a8a29e;
  padding: 80px 0 40px 0;
  font-size: 0.95rem;
  border-top: 4px solid var(--primary-color);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  color: #ffffff;
}

.brand-desc {
  line-height: 1.6;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d6d3d1;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  font-family: var(--font-headings);
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #a8a29e;
  transition: color var(--transition-fast);
}

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

.footer-link-btn {
  text-align: left;
  color: #a8a29e;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-link {
  color: #a8a29e;
  transition: color var(--transition-fast);
}

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

.contact-text {
  color: #d6d3d1;
}

.footer-newsletter {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: #78716c;
}

.newsletter-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bottom-link {
  color: #78716c;
  transition: color var(--transition-fast);
}

.bottom-link:hover {
  color: #a8a29e;
}

.bullet-separator {
  color: #44403c;
}

/* Modals Core Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px);
  transition: transform var(--transition-normal);
  padding: 40px;
}

.modal-backdrop.open .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: #f5f5f4;
  color: var(--text-dark);
  transform: scale(1.05);
}

/* Detailed Listing Modal Layout */
.modal-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.modal-detail-img-wrap {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 20px;
}

.modal-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.modal-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(120, 113, 108, 0.15);
  padding-bottom: 6px;
}

.modal-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-item-tag {
  background-color: var(--bg-cream);
  border: 1px solid rgba(120, 113, 108, 0.15);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-meta-box {
  background-color: var(--bg-cream);
  border-radius: var(--border-radius-md);
  padding: 24px;
  border: 1px solid rgba(120, 113, 108, 0.08);
}

.modal-meta-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-meta-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.modal-meta-icon {
  width: 20px;
  height: 20px;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.modal-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Post a Sale Modal Layout */
.post-modal-container {
  max-width: 680px;
}

.post-form-header {
  margin-bottom: 28px;
}

.post-form-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.post-form-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.post-sale-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(120, 113, 108, 0.25);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #ffffff;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* Upload Style */
.upload-area {
  border: 2px dashed rgba(120, 113, 108, 0.3);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  text-align: center;
  background-color: var(--bg-cream);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--secondary-color);
}

.upload-icon {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.upload-link {
  color: var(--secondary-color);
  text-decoration: underline;
}

.upload-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hidden-file-input {
  display: none;
}

.uploaded-files-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.preview-thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(120, 113, 108, 0.15);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

/* Responsive Styling & Media Queries */

/* Tablet (Laptop Screen / Smaller desktop adjustments) */
@media (max-width: 1024px) {
  .hero-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 100px;
    background-position: center 30%;
  }

  .hero-title {
    font-size: 3rem;
  }
  
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .map-section-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .map-visual-container {
    width: 100%;
  }
  
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1.5fr;
  }
  
  .footer-col.brand-col {
    grid-column: span 3;
    margin-bottom: 20px;
  }
}

/* Landscape Mobile & Large Tablets */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .site-header {
    background-color: #ffffff; /* Keep solid on mobile */
  }
  
  .desktop-only {
    display: none !important;
  }
  
  #header-btn-post {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-list {
    display: none;
  }
  
  /* Hero section content padding */
  .hero-section {
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 80px;
    background-position: center 35%;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }
  
  /* Search widget stacking */
  .search-form {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .search-field {
    border-right: none;
    border-bottom: 1px solid rgba(120, 113, 108, 0.15);
    padding: 8px 4px;
  }
  
  .search-btn {
    width: 100%;
    margin-top: 8px;
  }
  
  /* Stats bar stacking */
  .stats-bar {
    margin-top: -20px;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
  }
  
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .listings-filter-controls {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px;
  }
  
  .filter-tab {
    flex: 1;
    text-align: center;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  /* Timeline stacking */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .tab-control-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .how-tab-btn {
    justify-content: center;
    font-size: 1rem;
    padding: 12px 20px;
  }
  
  /* CTA Banner styling */
  .cta-inner {
    flex-direction: column;
    padding: 40px;
    text-align: center;
    gap: 28px;
  }
  
  .cta-button-content {
    justify-content: center;
    width: 100%;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  /* Modal responsive elements */
  .modal-container {
    padding: 24px;
    width: 95%;
  }
  
  .modal-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-col.brand-col {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Portrait Mobile (Smaller phones) */
@media (max-width: 480px) {
  .listings-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
}
