/* LocalizedListings - Natural earthy, forest green, warm gold accents, warm bg */

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

:root {
  --color-primary: #166534;
  --color-accent: #ca8a04;
  --color-bg: #fefdf5;
  --color-surface: #ffffff;
  --color-text: #1a2e1a;
  --color-text-light: #4a6a4a;
  --color-border: #c6d4b8;
  --font-body: 'Inter', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(22, 101, 52, 0.08);
  --shadow-md: 0 6px 18px rgba(22, 101, 52, 0.12);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

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

main {
  flex: 1;
}

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

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

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

h1, h2, h3 {
  color: var(--color-primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
}

/* Header */
.site-header {
  background: var(--color-primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.3px;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: #bbf7d0;
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn--primary:hover {
  background: #a16207;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.3);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #166534 0%, #15803d 50%, #22c55e 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero h1 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15rem;
  color: #bbf7d0;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Search */
.search-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  background: transparent;
  color: #ffffff;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.search-form .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Sections */
.categories-section,
.featured-section {
  padding: 64px 0;
}

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

.categories-section h2,
.featured-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* Category Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 22px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  display: block;
}

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

.category-card h3 {
  margin-bottom: 6px;
}

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

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

.listing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  display: block;
  box-shadow: var(--shadow);
}

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

.listing-card h3 {
  margin-bottom: 8px;
}

.listing-category {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.listing-location {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Listing Detail */
.listing-detail {
  padding: 40px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

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

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

.listing-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-border);
}

.listing-header h1 {
  margin-bottom: 8px;
}

.listing-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.listing-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-row {
  display: flex;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  gap: 16px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row strong {
  min-width: 100px;
  color: var(--color-primary);
  font-size: 0.85rem;
}

.listing-description {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.listing-description h2 {
  text-align: left;
  margin-bottom: 16px;
}

.listing-description p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background: #14532d;
  color: #86efac;
  padding: 48px 0 32px;
}

.site-footer__brand {
  margin-bottom: 24px;
}

.site-footer__brand strong {
  color: #ffffff;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 4px;
}

.site-footer__brand p {
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.site-footer__links a {
  color: #86efac;
  font-size: 0.9rem;
}

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

.site-footer__copy {
  font-size: 0.8rem;
  color: #4ade80;
  border-top: 1px solid #166534;
  padding-top: 20px;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .site-header .container {
    flex-direction: column;
    height: auto;
    padding: 12px 24px;
    gap: 8px;
  }

  .site-nav {
    gap: 16px;
  }

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

  .search-form input,
  .search-form .btn {
    width: 100%;
    border-radius: var(--radius);
  }

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

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

  .info-row {
    flex-direction: column;
    gap: 4px;
  }
}
