:root {
  --brand: #6d1a36;
  --muted: #6b7280;
  --gold: #d8a23a;
  --green: #198754;
  --light: #f8f9fa;
}

body {
  background: var(--light);
  color: #1f2937;
  font-family: var(--site-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.brand-text {
  color: var(--brand) !important;
}

.site-navbar {
  min-height: 74px;
  box-shadow: 0 2px 18px rgba(17, 24, 39, .06);
}

.navbar-toggler {
  border-radius: .5rem;
  min-height: 44px;
  min-width: 44px;
}

.brand-logo {
  width: var(--logo-size, 46px);
  height: var(--logo-size, 46px);
  border-radius: .35rem;
  object-fit: cover;
}

.hero {
  background:
    linear-gradient(90deg, rgba(109, 26, 54, .92), rgba(25, 135, 84, .72)),
    url('https://images.unsplash.com/photo-1519677100203-a0e668c92439?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
}

.search-panel {
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 20px 60px rgba(31, 41, 55, .16);
  padding: 1rem;
}

.section-title {
  color: var(--brand);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.business-card,
.product-card,
.route-card {
  border: 0;
  border-radius: .5rem;
  box-shadow: 0 10px 30px rgba(31, 41, 55, .08);
  height: 100%;
  overflow: hidden;
}

.card-img-top,
.business-image {
  height: 210px;
  object-fit: cover;
  background: #e5e7eb;
}

.badge-featured {
  background: var(--gold);
  color: #281400;
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn {
  min-height: 42px;
}

.btn-brand:hover {
  background: #551429;
  border-color: #551429;
  color: #fff;
}

.map-box {
  min-height: 520px;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(31, 41, 55, .08);
}

.gps-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  padding: .85rem 1rem;
  box-shadow: 0 10px 30px rgba(31, 41, 55, .06);
}

.gps-distance {
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.detail-hero {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.stat-card {
  background: #fff;
  border-radius: .5rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(31, 41, 55, .08);
}

.mobile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.mobile-action-row .btn {
  flex: 0 1 auto;
}

.site-carousel,
.business-gallery-carousel {
  border-radius: .5rem;
  box-shadow: 0 14px 38px rgba(31, 41, 55, .1);
  overflow: hidden;
}

.site-carousel .carousel-item img,
.business-gallery-carousel .carousel-item img {
  aspect-ratio: 16 / 7;
  background: #e5e7eb;
  object-fit: cover;
}

.business-gallery-carousel .carousel-item img {
  aspect-ratio: 16 / 9;
}

.site-carousel-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.site-carousel .carousel-caption,
.business-gallery-carousel .carousel-caption {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, .78));
  bottom: 0;
  left: 0;
  padding: 5rem 2rem 1.4rem;
  right: 0;
  text-align: left;
}

.site-carousel .carousel-caption h2,
.business-gallery-carousel .carousel-caption h3 {
  font-weight: 800;
  margin-bottom: .35rem;
}

.site-carousel .carousel-caption p,
.business-gallery-carousel .carousel-caption p {
  margin: 0;
  max-width: 720px;
}

.editable-public-page {
  color: #1f2937;
}

.editable-page-cover,
.page-gallery-img,
.page-carousel-img {
  background: #e5e7eb;
  overflow: hidden;
}

.editable-page-cover {
  aspect-ratio: 16 / 6;
  border-radius: .5rem;
}

.editable-page-image,
.page-gallery-img img,
.page-carousel-img img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: var(--crop-x, 50%) var(--crop-y, 50%);
  transform: scale(var(--crop-zoom, 1));
  width: 100%;
}

.editable-page-content {
  font-size: 1.05rem;
  line-height: 1.75;
  white-space: normal;
}

.page-media-carousel {
  border-radius: .5rem;
}

.page-carousel-img {
  aspect-ratio: 16 / 8;
}

.page-gallery-card {
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  color: inherit;
  display: block;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.page-gallery-img {
  aspect-ratio: 4 / 3;
}

.page-gallery-caption {
  padding: 1rem;
}

.page-gallery-caption h2 {
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .35rem;
}

.page-gallery-caption p {
  color: #4b5563;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .site-navbar {
    min-height: 64px;
  }

  .navbar-brand span {
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .brand-logo {
    height: 40px;
    width: 40px;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

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

  main.container,
  .detail-hero .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-title {
    font-size: 2rem;
    line-height: 1.12;
  }

  .search-panel,
  .gps-panel,
  .stat-card,
  .panel-card .card-body {
    padding: 1rem;
  }

  .gps-panel .btn,
  .mobile-action-row .btn,
  .detail-hero .btn,
  .business-card .btn,
  .product-card .btn,
  .route-card .btn {
    width: 100%;
  }

  .card-img-top,
  .business-image {
    height: 180px;
  }

  .map-box {
    min-height: 360px;
    border-radius: .4rem;
  }

  .site-carousel .carousel-item img,
  .business-gallery-carousel .carousel-item img {
    aspect-ratio: 4 / 3;
  }

  .site-carousel .carousel-caption,
  .business-gallery-carousel .carousel-caption {
    padding: 3.5rem 1rem 1rem;
  }

  .site-carousel .carousel-caption h2,
  .business-gallery-carousel .carousel-caption h3 {
    font-size: 1.2rem;
  }

  .editable-page-cover,
  .page-carousel-img {
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    font-size: .92rem;
  }
}

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

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

  .map-box {
    min-height: 330px;
  }
}
