/*
Theme Name: ATV Trail Finder
Theme URI: https://atvtrailfinder.com
Description: Custom theme to mirror the existing React/Supabase ATV Trail Finder design in WordPress.
Author: Fran + AI Assistant
Version: 0.3.0
Text Domain: atvtrailfinder
*/

/* Simple CSS reset and base styles. We’ll iterate visually on staging. */

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

/* Match React index.css :root — cream page + card (not white) */
:root {
  --atv-bg: hsl(43, 22%, 88%);
  --atv-muted: hsl(43, 15%, 84%);
  --atv-border: rgba(92, 117, 122, 0.35);
  --atv-text: #333333;
  --atv-text-muted: #737373;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--atv-bg) !important;
  color: var(--atv-text) !important;
  -webkit-font-smoothing: antialiased;
}

/* Display headings: Montserrat (hero + featured section titles only) */
.font-adventure,
.hero-title,
.featured-trails-heading {
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: #4a6f7a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.container--narrow {
  max-width: 56rem; /* ~896px — matches React main column feel */
}

/* HEADER / NAV - Match React: slate-blue #5c757a, cream text */

.site-header {
  background-color: #5c757a; /* slate-blue - matches React */
  color: #e9e2d8; /* cream */
  border-bottom: 1px solid rgba(233, 226, 216, 0.3);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.site-title a {
  color: #e9e2d8 !important;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: #e9e2d8 !important;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  transition: opacity 0.15s;
}

.site-nav a:hover {
  opacity: 0.9;
}

.site-nav a.btn-login {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid rgba(233, 226, 216, 0.5);
  background: transparent;
}

.site-nav a.btn-signup {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: none;
  background-color: #cb7a5c; /* terracotta */
  color: #fff !important;
}

.site-nav a.btn-signup:hover {
  background-color: #b96b4e;
}

/* ANNOUNCEMENT BAR */

.announcement-bar {
  width: 100%;
  background-color: rgba(203, 122, 92, 0.9); /* terracotta / 90 — matches React */
  color: #e9e2d8; /* cream */
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
}

/* BROWSE BAR (State / County dropdowns) */

.browse-bar {
  background-color: #e9e2d8; /* cream - secondary bar like React */
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.browse-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.browse-breadcrumb {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.browse-breadcrumb a {
  color: #4a6f7a;
}

.browse-sep {
  margin: 0 0.35rem;
  color: #9ca3af;
}

.browse-dropdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.browse-select {
  min-width: 200px;
  max-width: 280px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid var(--atv-border);
  border-radius: 0.375rem;
  background-color: hsl(43, 22%, 96%);
  color: #1f2933;
  cursor: pointer;
}

.browse-select:hover,
.browse-select:focus {
  border-color: #4a6f7a;
  outline: none;
}

/* HERO — match React SearchSection: forest image + earthy-green + gradient */

.hero {
  position: relative;
  background-color: #5c757a; /* slate-blue fallback */
  color: #e9e2d8;
  overflow: hidden;
  padding: 3.5rem 1rem 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 1rem 5.5rem;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Earthy green wash — matches React bg-earthy-green/75 */
.hero-overlay-green {
  position: absolute;
  inset: 0;
  background:rgba(117, 127, 100, 0.75);
  z-index: 1;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent, rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #e9e2d8;
  line-height: 1.15;
}

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

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

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: #e9e2d8;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-search-form {
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  justify-content: center;
}

.hero-search-row input[type="text"] {
  flex: 1;
  min-width: 200px;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(233, 226, 216, 0.35);
  font-size: 1rem;
  background-color: rgba(233, 226, 216, 0.95);
  color: #1f2933;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.hero-search-row input[type="text"]::placeholder {
  color: #6b7280;
}

.hero-search-row input[type="text"]:focus {
  outline: 2px solid rgba(233, 226, 216, 0.6);
  outline-offset: 1px;
}

.hero-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 0.5rem;
  border: none;
  background-color: #cb7a5c;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.hero-search-submit:hover {
  background-color: #b96b4e;
}

.hero-search-submit .atv-search-icon {
  flex-shrink: 0;
}

/* FILTER BAR - match React: light box with border */
.filter-bar {
  background-color: transparent;
  margin-bottom: 0;
}

.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.1rem;
  background-color: var(--atv-bg);
  border: 1px solid var(--atv-border);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: block;
}

.filter-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.25rem;
}

@media (max-width: 768px) {
  .filter-columns {
    grid-template-columns: 1fr;
  }
}

.filter-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-col-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-pill {
  padding: 0.3rem 0.55rem;
  border-radius: 0.375rem;
  border: 1px solid var(--atv-border);
  font-size: 0.8rem;
  background-color: var(--atv-muted);
  cursor: pointer;
  color: #374151;
}

.filter-pill:hover {
  background-color: hsl(43, 12%, 78%);
}

.filter-pill.active {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* MAIN CARDS AREA */

.main-section {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.trail-detail-page {
  padding-top: 0.5rem;
}

.trail-hero {
  position: relative;
  min-height: 400px;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.trail-hero--detail {
  min-height: max(400px, 50vh);
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
}

.trail-hero--detail > img,
.trail-hero--detail > .trail-hero-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.trail-hero-placeholder {
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.trail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.45), transparent);
}

.trail-hero-overlay--detail {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);
}

.trail-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1.5rem 2rem;
}

.trail-hero-content--detail {
  padding: 1.75rem 1.5rem 1.5rem;
}

.trail-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.4);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
}

.trail-back-pill:hover {
  background: rgba(0, 0, 0, 0.55);
}

.trail-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.trail-title--hero {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .trail-title--hero {
    font-size: 2rem;
  }
}

.trail-hero-favorite {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.trail-hero-favorite:hover {
  background: #fff;
}

.trail-hero-location {
  margin: 0;
  font-size: 1rem;
  color: #e5e7eb;
}

.trail-back-link {
  display: inline-block;
  color: #e9e2d8;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.trail-back-link:hover {
  text-decoration: underline;
  color: #fff;
}

.trail-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.trail-meta {
  font-size: 0.95rem;
  color: #d1d5db;
}

/* Trail detail — cream panels like React bg-card */
.trail-detail-panel {
  background-color: var(--atv-bg);
  border: 1px solid var(--atv-border);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.trail-detail-panel--flush {
  padding: 0.5rem 0.75rem;
}

.trail-detail-panel--lodging {
  margin-bottom: 1rem;
}

.trail-detail-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.trail-detail-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  color: var(--atv-text);
  line-height: 1.2;
}

.trail-detail-meta-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--atv-text-muted);
  margin-bottom: 0.35rem;
}

.trail-detail-pin {
  display: inline-flex;
  flex-shrink: 0;
}

.trail-detail-pin svg {
  color: var(--atv-text-muted);
}

.trail-detail-rating-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.trail-detail-rating-num {
  font-weight: 600;
  color: var(--atv-text);
}

.trail-detail-rating-count {
  font-size: 0.9rem;
  color: var(--atv-text-muted);
}

.trail-difficulty-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: hsl(43, 20%, 82%);
  color: #374151;
  border: 1px solid var(--atv-border);
}

.trail-detail-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.65rem 0;
  color: var(--atv-text);
}

.trail-detail-prose {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--atv-text-muted);
}

.trail-detail-prose p {
  margin: 0 0 0.75rem 0;
}

.trail-detail-muted {
  margin: 0;
  font-size: 0.95rem;
  color: var(--atv-text-muted);
}

.trail-photo-credit {
  margin: 0.75rem 0 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.trail-detail-map-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .trail-detail-map-row {
    flex-direction: row;
  }
}

.btn-primary--block {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  text-decoration: none !important;
  justify-content: center;
}

.trail-coords {
  margin: 0.65rem 0 0 0;
  font-size: 0.85rem;
  color: var(--atv-text-muted);
}

.trail-features-grid--detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1rem;
  margin-top: 0.25rem;
}

@media (max-width: 600px) {
  .trail-features-grid--detail {
    grid-template-columns: 1fr;
  }
}

.trail-features-col--detail {
  min-width: 0;
}

.trail-feature-empty {
  font-size: 0.85rem;
  color: #c4c4c4;
}

.trail-detail-lodging-intro {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--atv-text-muted);
}

.trail-detail-report {
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.trail-report-link {
  font-size: 0.875rem;
  color: #5c757a;
  text-decoration: underline;
}

.trail-report-link:hover {
  color: #374151;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.5rem 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  background-color: #e27d60;
  color: #fff;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #d66f54;
}

.card {
  background-color: var(--atv-bg);
  border-radius: 0.5rem;
  border: 1px solid var(--atv-border);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card h2 {
  margin-top: 0;
}

.featured-trails-intro {
  margin-bottom: 0.75rem;
}

.featured-trails-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  color: var(--atv-text);
}

.featured-trails-sub {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #6b7280;
}

/* Single trail: Trail Features section (3 columns like React) */
.trail-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.trail-features-col {
  flex: 1;
  min-width: 120px;
}

.trail-features-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.trail-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* 3-column grid, even card heights (match React site) */
.trail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .trail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .trail-grid {
    grid-template-columns: 1fr;
  }
}

.trail-card {
  background-color: var(--atv-bg);
  border-radius: 0.5rem;
  border: 1px solid var(--atv-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.trail-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Image container — matches React TrailCard (h-48 + heart + rating strip) */
.trail-card-image-wrap {
  position: relative;
  flex-shrink: 0;
  height: 192px;
  min-height: 192px;
  overflow: hidden;
  background-color: #e5e7eb;
}

.trail-card-image-link {
  position: relative;
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.trail-card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.trail-card-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6b7280;
  font-size: 0.9rem;
}

.trail-card-favorite {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.trail-card-favorite:hover {
  background: #fff;
  color: #6b7280;
}

.trail-card-favorite .atv-heart-icon {
  display: block;
}

.trail-card-rating {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 0.75rem 0.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45), transparent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.trail-card-rating-inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trail-card-rating-num {
  color: #fff;
}

.trail-card-rating-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.trail-card-body {
  padding: 0.65rem 0.85rem 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.trail-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trail-card-title a {
  color: #1f2933;
  text-decoration: none;
}

.trail-card-title a:hover {
  color: #5c757a;
}

.trail-card-location-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
}

.trail-card-location-icon svg,
.atv-map-pin {
  color: #6b7280;
}

.trail-card-btn .trail-card-btn-icon svg,
.trail-card-btn .atv-map-pin {
  color: #fff;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
}

.btn-icon svg,
.btn-icon .atv-map-pin {
  color: #fff;
}

.trail-card-location {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Trail tags: 3-column layout like React TrailTags (Difficulty | Features | Terrain) */
.trail-card-tags {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.trail-card-tag-col {
  flex: 1;
  min-width: 0;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trail-card-tag-label {
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.trail-card-tag-pills {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}

.trail-card-pill {
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
}

.trail-card-pill.tag-difficulty {
  background-color: #fee2e2;
  color: #b91c1c;
}

.trail-card-pill.tag-features {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.trail-card-pill.tag-terrain {
  background-color: #dcfce7;
  color: #15803d;
}

.trail-card-tag-empty {
  display: block;
  min-height: 1rem;
}

.trail-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background-color: #cb7a5c; /* terracotta */
  color: #fff !important;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  width: 100%;
}

.trail-card-btn:hover {
  background-color: #b96b4e;
}

.trail-card-btn-icon {
  font-size: 1rem;
}

.trail-card-meta {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Nearby Lodging (single trail page) - match React LodgingList */
.lodging-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.lodging-card {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  background: hsl(43, 18%, 91%);
  border-radius: 0.5rem;
  border: 1px solid var(--atv-border);
  box-shadow: none;
}

.lodging-card-image {
  flex-shrink: 0;
  width: 80px;
  min-width: 80px;
  height: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lodging-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lodging-card-no-photo {
  color: #9ca3af;
  font-size: 1.5rem;
}

.lodging-card-body {
  flex: 1;
  min-width: 0;
}

.lodging-card-name {
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
  display: block;
  line-height: 1.3;
}

a.lodging-card-name:hover {
  color: #5c757a;
  text-decoration: underline;
}

.lodging-card-address {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.lodging-card-address:hover {
  color: #5c757a;
}

.lodging-card-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.lodging-distance {
  color: #6b7280;
}

.lodging-website {
  color: #1d4ed8;
}

.lodging-website:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background-color: rgba(148, 163, 184, 0.15);
  color: #e5e7eb;
  margin-right: 0.25rem;
}

/* Footer — matches React PageFooter (earthy-green, cream) */
.site-footer {
  background-color: #757f64;
  color: #e9e2d8;
  border-top: 1px solid rgba(92, 117, 122, 0.35);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.site-footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.site-footer-tagline {
  margin: 0 0 0.75rem 0;
  color: rgba(233, 226, 216, 0.92);
  font-size: 1rem;
}

.site-footer-cta {
  margin: 0 0 1rem 0;
}

.site-footer-suggest {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  background-color: #cb7a5c;
  color: #fff !important;
  font-weight: 500;
  text-decoration: none;
}

.site-footer-suggest:hover {
  background-color: #b96b4e;
  text-decoration: none;
}

.site-footer-legal {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(233, 226, 216, 0.8);
}

.scroll-to-top {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.95);
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.scroll-to-top:hover {
  background: #fff;
  color: #1f2937;
}

.scroll-to-top[hidden] {
  display: none;
}

