/* CityOptimum - Urban / Metropolitan Energy Aesthetic */
/* Fonts: Outfit (display) + Manrope (body) */
/* Palette: Electric blue #0077b6, Coral #ff6b6b, Dark slate #2b2d42, White #ffffff, Surface #f8f9fc */

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

:root {
  --color-primary: #0077b6;
  --color-accent: #ff6b6b;
  --color-bg: #ffffff;
  --color-surface: #f8f9fc;
  --color-surface-raised: #ffffff;
  --color-text: #2b2d42;
  --color-text-light: #2b2d42;
  --color-text-muted: #6c757d;
  --color-text-on-dark: #ffffff;
  --color-border: #dee2e6;
  --color-border-light: #e9ecef;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 119, 182, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 119, 182, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 119, 182, 0.14);
  --shadow-glow: 0 4px 20px rgba(0, 119, 182, 0.25);
  --shadow-coral: 0 4px 20px rgba(255, 107, 107, 0.25);
  --container: 1200px;
  --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --gradient-urban: linear-gradient(135deg, #0077b6, #ff6b6b);
  --gradient-blue: linear-gradient(135deg, #0077b6, #00b4d8);
  --gradient-hero: linear-gradient(135deg, #0077b6 0%, #0096c7 35%, #ff6b6b 100%);
}

html {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(0, 119, 182, 0); }
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
}

.btn--primary:hover {
  background: #005f8a;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn--accent {
  background: var(--color-accent);
  color: #ffffff;
  border: none;
}

.btn--accent:hover {
  background: #e85555;
  box-shadow: var(--shadow-coral);
  transform: translateY(-2px);
  color: #ffffff;
}

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

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 12px rgba(0, 119, 182, 0.12);
}

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

.btn--outline:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn--lg {
  padding: 1rem 3rem;
  font-size: 0.9375rem;
  border-radius: var(--radius-lg);
}

.btn--block {
  width: 100%;
}

/* ---- Header ---- */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--color-primary) !important;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--color-accent) !important;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav .btn {
  font-size: 0.8125rem;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
}

.site-nav .btn:hover {
  background: #005a8c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-coral);
}

/* ---- Hero ---- */
.hero {
  background: var(--gradient-hero);
  color: #ffffff;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 107, 107, 0.15), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 119, 182, 0.1), transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  pointer-events: none;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.hero p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

/* ---- Search Bar ---- */
.search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px rgba(0, 119, 182, 0.2), 0 0 0 4px rgba(0, 119, 182, 0.08);
}

.search-bar input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  background: transparent;
  color: var(--color-text);
}

.search-bar input::placeholder {
  color: var(--color-text-muted);
  font-weight: 400;
}

.search-bar button {
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover {
  background: #005f8a;
}

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #00b4d8 100%);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255, 107, 107, 0.15), transparent 60%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  pointer-events: none;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  position: relative;
}

.page-header p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

/* ---- Sections ---- */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 3rem;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ---- Stats Bar ---- */
.stats-bar {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #0077b6 0%, #0096c7 50%, #00b4d8 100%);
  position: relative;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
  position: relative;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stat__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---- Categories ---- */
.categories-grid,
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-urban);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card__icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.category-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.category-card__count {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ---- Listings Grid ---- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.listing-card {
  background: var(--color-surface-raised);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-gold);
}

.listing-card__img,
.listing-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.listing-card__body,
.listing-card__content {
  padding: 1.5rem;
}

.listing-card__title,
.listing-card__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.listing-card__category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--color-accent);
  padding: 0.2rem 0.625rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.listing-card__address {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.listing-card__location {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.listing-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ---- Star Ratings ---- */
.star-rating {
  display: inline-flex;
  gap: 0.125rem;
}

.star-rating--sm {
  font-size: 0.9375rem;
}

.star--filled {
  color: #f59e0b;
}

.star--empty {
  color: var(--color-border);
}

/* ---- How It Works ---- */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.how-it-works__step {
  text-align: center;
  padding: 2.5rem 2rem;
}

.how-it-works__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
  animation: pulseGlow 3s ease-in-out infinite;
}

.how-it-works__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  font-weight: 700;
}

.how-it-works__desc {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  font-weight: 400;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 5rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 50%, #ff6b6b 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 119, 182, 0.08), transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  position: relative;
}

.cta-section p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
  position: relative;
}

.cta-section .btn {
  position: relative;
  background: #ffffff;
  color: var(--color-accent);
  font-weight: 800;
}

.cta-section .btn:hover {
  background: var(--color-text);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* ---- Listing Detail ---- */
.listing-detail {
  padding: 2.5rem 0 5rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
}

.breadcrumb a,
.breadcrumb__link {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover,
.breadcrumb__link:hover {
  color: var(--color-accent);
}

.breadcrumb__list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb__item::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--color-border);
}

.breadcrumb__item:first-child::before {
  display: none;
}

.breadcrumb__current {
  color: var(--color-text);
}

.listing-detail__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.listing-detail__header {
  margin-bottom: 2.5rem;
}

.listing-detail__cover {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  text-align: center;
}

.listing-detail__cover img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  margin: auto;
}

.listing-detail__header-info {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.listing-detail__logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.listing-detail__body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ---- Cards (contact, info, etc.) ---- */
.card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-surface);
}

/* ---- Listing Detail Fields ---- */
.listing-detail__field {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.listing-detail__field:last-child {
  border-bottom: none;
}

.listing-detail__field strong {
  display: block;
  font-size: 0.75rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.375rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.listing-detail__field a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

.listing-detail__field a:hover {
  color: var(--color-accent);
}

.phone-link {
  font-size: 1.0625rem;
  font-weight: 600;
}

.address-block {
  font-style: normal;
  line-height: 1.7;
  color: var(--color-text);
}

/* ---- Business Hours ---- */
.business-hours {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.business-hours__row {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9375rem;
  color: var(--color-text);
}

.business-hours__row:last-child {
  border-bottom: none;
}

.business-hours__row--today {
  color: var(--color-primary);
  font-weight: 700;
}

.business-hours__day {
  font-weight: 600;
}

.business-hours__time {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-grid__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.gallery-grid__img:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

/* ---- Social Links ---- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(0, 119, 182, 0.04);
  box-shadow: 0 0 12px rgba(0, 119, 182, 0.1);
}

/* ---- Tags ---- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.375rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--color-text);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  font-family: var(--font-body);
}

.badge--verified {
  background: rgba(0, 119, 182, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(0, 119, 182, 0.2);
}

/* ---- Reviews ---- */
.review-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.review-card:last-child {
  border-bottom: none;
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.review-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.review-card__body {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.review-card__date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ---- Search Results ---- */
.search-results {
  min-height: 40vh;
}

.search-results__count {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.search-results__empty {
  text-align: center;
  padding: 4rem 2rem;
}

.search-results__empty h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.search-results__empty p {
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 400;
}

.search-results__empty a {
  color: var(--color-primary);
}

/* ---- Listings Loading ---- */
.listings-loading {
  padding: 2rem 0;
}

/* ---- Skeleton / Shimmer ---- */
.skeleton {
  background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

.skeleton-text {
  height: 1em;
  margin: 0.75em 0;
}

.skeleton-title {
  height: 2em;
  width: 60%;
  margin-bottom: 1.5em;
}

.skeleton-card {
  height: 200px;
  margin-bottom: 1.5em;
}

/* ---- Error Page ---- */
.error-page {
  text-align: center;
  padding: 5rem 2rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 900;
  background: var(--gradient-urban);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.error-message {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.error-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  gap: 0.5rem;
}

.error-search input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--color-surface-raised);
  color: var(--color-text);
  outline: none;
}

.error-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.error-search input::placeholder {
  color: var(--color-text-muted);
}

.error-search button {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.back-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
}

.back-link:hover {
  color: var(--color-accent);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 3rem;
  margin-top: auto;
}

.site-footer__brand {
  margin-bottom: 1.5rem;
}

.site-footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.site-footer__brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.site-footer__links a:hover {
  color: var(--color-accent);
}

.site-footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .listing-detail__grid {
    grid-template-columns: 1fr;
  }

  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding: 4.5rem 0 4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar button {
    border-radius: 0;
  }

  .listing-detail__grid {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    flex-direction: column;
    height: auto;
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .cta-section h2 {
    font-size: 1.875rem;
  }

  .how-it-works {
    gap: 1rem;
  }

  .categories-grid,
  .categories__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .category-card {
    padding: 1.5rem 1rem;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .categories-grid,
  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }
}

/* ---------- Enhanced Placeholder ---------- */
.listing-card__image--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #9ca3af;
  min-height: 170px;
  position: relative;
}
.listing-card__image--placeholder svg {
  opacity: 0.5;
}
.listing-card__image--placeholder span {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Section Variations ---------- */
.section--dark {
  background: var(--color-navy);
  color: var(--color-white);
}
.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}
.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Search Filters Responsive ---------- */
@media (max-width: 768px) {
  #search-filters {
    position: static !important;
    width: 100% !important;
    margin-bottom: 1rem;
  }
}
