/* LoclFocus - Minimal, professional, clean lines, slate blue accents, white space, thin borders, subtle shadows */

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

:root {
  --color-primary: #1e40af;
  --color-accent: #64748b;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-text: #0f172a;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --font-body: 'Inter', sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --max-width: 1120px;
}

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 32px;
}

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

a:hover {
  color: #1e3a8a;
}

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

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.1rem;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary) !important;
  letter-spacing: -0.5px;
}

.site-logo:hover {
  color: #1e3a8a !important;
}

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

.site-nav a {
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 500;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.btn--primary:hover {
  background: #1e3a8a;
  border-color: #1e3a8a;
}

/* Hero */
.hero {
  background: var(--color-surface-alt);
  color: var(--color-text);
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 12px;
  color: var(--color-text);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Search */
.search-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  color: var(--color-text);
}

.search-form input::placeholder {
  color: #94a3b8;
}

.search-form .btn {
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--color-border);
}

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

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

.featured-section {
  background: var(--color-surface-alt);
}

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

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

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

.category-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

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

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

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

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

.listing-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

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

.listing-category {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 4px;
}

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

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

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

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

.breadcrumb a:hover {
  color: #1e3a8a;
}

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

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

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

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

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

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

.info-row strong {
  min-width: 90px;
  color: var(--color-text-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

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

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

/* Footer */
.site-footer {
  background: var(--color-surface-alt);
  color: var(--color-text-light);
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
}

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

.site-footer__brand strong {
  color: var(--color-text);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 4px;
}

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

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

.site-footer__links a {
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 500;
}

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

.site-footer__copy {
  font-size: 0.75rem;
  color: #94a3b8;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

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

  .container {
    padding: 0 20px;
  }

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

  .site-nav {
    gap: 16px;
  }

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

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

  .search-form .btn {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

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

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

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