/* ===== Localizter - Design System ===== */
:root {
  --primary-accent: #E45C3A;
  --primary-accent-hover: #a93226;
  --text-dark: #2c3e50;
  --bg-light-beige: #f5f0eb;
  --footer-bg: #2C2520;
  --card-bg: #ffffff;
  --status-open: #E45C3A;
  --status-closed: #7f8c8d;
  --category-icon-bg: #fdeaea;
  --category-icon-color: #E45C3A;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light-beige);
  padding-top: 70px;
}

.single-business-page {
  padding-top: 70px;
}

.all-business-page {
  padding-top: 70px;
}

.all-business-page .single-hero {
  min-height: 300px;
}


/* Headings – DM Serif Display */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.listing-card .card-title,
.navbar-brand,
footer .fw-bold {
  font-family: 'DM Serif Display', Georgia, serif;
}

/* ----- Header ----- */
.header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.logo-pin {
  color: var(--card-bg);
  background-color: var(--primary-accent);
  font-size: 1.5rem;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.btn-header-signin {
  background: var(--bg-light-beige);
  color: var(--text-dark);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.btn-header-signin .material-symbols-outlined,
.header-btn-icon {
  font-size: 20px;
}

.btn-header-signin:hover {
  background: #e8e2dc;
  color: var(--text-dark);
}

.btn-list-business {
  background: var(--primary-accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.btn-list-business:hover {
  background: var(--primary-accent-hover);
  color: #fff;
}

/* ----- Hero ----- */
.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  filter: blur(1px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
}

.hero-search-card {
  background: rgba(255, 255, 255, 0.98);
  max-width: 800px;
  margin: 0 auto;
}

.hero-search-card .form-control:focus {
  box-shadow: none;
  outline: none;
}

.hero-search-input-bg {
  background-color: #F5F0EB !important;
}

.hero-search-input-wrap .material-symbols-outlined {
  font-size: 22px;
}

.hero-search-input::placeholder {
  font-size: 0.875rem;
}

.hero-search-input-wrap {
  position: relative;
}

.modern-location-pill {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modern-location-pill.is-visible {
  opacity: 1;
}

.hero-search-input {
  padding-right: 5.5rem;
}

.btn-search-hero {
  background: var(--primary-accent);
  color: #fff;
  font-weight: 600;
  border: none;
}

.btn-search-hero:hover {
  background: var(--primary-accent-hover);
  color: #fff;
}

/* ----- Sections ----- */
.section-title {
  font-size: 2rem;
}

.section-subtitle {
  font-size: 0.95rem;
}

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

/* Sort/Filter tabs (Most Reviewed / Highest Rated) */
.sort-tabs {
  background: rgba(0, 0, 0, 0.06) !important;
}

.sort-tab-active {
  background: #fff !important;
  color: var(--text-dark) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sort-tab-inactive {
  color: #6c757d !important;
}

.sort-tab-inactive:hover {
  color: var(--text-dark) !important;
}

/* ----- Category Cards ----- */
.categories-scroll {
  -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
  height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 3px;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.category-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
  height: 100%;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--status-open);
  color: var(--text-dark);
}

.category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  background: var(--category-icon-bg);
  color: var(--category-icon-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.category-icon .material-symbols-outlined {
  font-size: 28px;
}

/* ----- Business Listing Cards ----- */
.category-filter-icon {
  color: var(--primary-accent);
  font-size: 20px;
}

.all-business-page .category-filter-list .list-group-item {
  border-radius: 0.75rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.all-business-page .category-filter-list .list-group-item:last-child {
  border-bottom: none;
}

.all-business-page .category-filter-list .list-group-item:hover {
  background: rgba(228, 92, 58, 0.06);
}

.all-business-page .category-filter-list .list-group-item span:first-child {
  color: var(--text-dark);
}

.all-business-page .category-filter-list .list-group-item span:last-child {
  font-weight: 500;
}

.all-business-page .category-filter-list .list-group-item span:first-child .category-filter-icon {
  color: var(--primary-accent);
}

.all-business-page .category-filter-list .badge-category-count {
  background-color: var(--category-icon-color) !important;
  color: var(--card-bg) !important;
  border-radius: 999px !important;
  padding: 0.3rem 0.55rem !important;
  font-size: 0.7rem !important;
}

.all-business-page .category-filter-list .list-group-item-active,
.all-business-page .category-filter-list .list-group-item.active {
  background: rgba(228, 92, 58, 0.08);
  border-left: 3px solid var(--footer-bg);
}

.listing-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.listing-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.listing-img-wrap .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
}

.btn-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: color 0.2s, background 0.2s;
}

.btn-heart:hover {
  color: var(--primary-accent);
  background: #fff;
}

.listing-card .card-title {
  font-size: 1rem;
  line-height: 1.3;
}

.status-open {
  color: var(--status-open);
}

.status-closed {
  color: var(--status-closed);
}

.btn-load-more {
  background: #fff;
  color: var(--text-dark);
  font-weight: 600;
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.btn-load-more:hover {
  background: var(--primary-accent);
  color: #fff;
  border-color: var(--primary-accent);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
  transform: translateY(-2px);
}

/* ----- Footer ----- */
.footer {
  background: var(--footer-bg);
}

.logo-pin-footer {
  color: var(--card-bg);
  background-color: var(--primary-accent);
  font-size: 1.5rem;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.footer-tagline {
  max-width: 280px;
}

.footer-link {
  color: #b0b0b0;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.footer-link:hover {
  color: #fff;
}

.footer-divider {
  border-color: #fff;
}

/* ===== Single Business Page ===== */
.single-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.single-hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/golden-fork.jpg') center/cover no-repeat;
  filter: blur(2px);
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.single-hero-top {
  z-index: 2;
}

.single-hero-bottom {
  z-index: 2;
}

.single-hero-nav-icon {
  font-size: 20px;
}

.btn-single-action {
  background: transparent;
  font-weight: 500;
}

.btn-single-action-white {
  background: #fff !important;
  color: var(--text-dark) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-single-action-white:hover {
  background: #f8f8f8 !important;
  color: var(--text-dark) !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

.btn-single-action-white .material-symbols-outlined,
.btn-single-action-white .fa-heart {
  color: var(--text-dark);
}

.single-hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.single-hero-meta {
  font-size: 0.95rem;
}

.single-meta-chips {
  font-size: 0.9rem;
}

.single-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.single-meta-chip .material-symbols-outlined {
  font-size: 18px;
}

.single-meta-chip.chip-open {
  background: rgba(46, 204, 113, 0.2);
  border-color: rgba(46, 204, 113, 0.35);
}

.single-meta-chip.chip-closed {
  background: rgba(231, 76, 60, 0.2);
  border-color: rgba(231, 76, 60, 0.35);
}

.single-hero-sep {
  opacity: 0.7;
}

.badge-featured-hero {
  display: inline-block;
  background: var(--primary-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
}

.single-hero-stars {
  font-size: 0.9rem;
}

.single-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.single-card {
  background: var(--card-bg);
}

.single-gallery-img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.photo-thumb {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.photo-thumb img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.media-thumb {
  width: 100%;
  border: 0;
  padding: 0;
  background: #f3efea;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-modal-img {
  max-height: 75vh;
  object-fit: contain;
  background: #000;
}

.single-review-score {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.social-icon-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
  background: rgba(228, 92, 58, 0.08);
  border: 1px solid rgba(228, 92, 58, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-icon-link:hover {
  background: rgba(228, 92, 58, 0.16);
  box-shadow: 0 6px 16px rgba(228, 92, 58, 0.2);
  transform: translateY(-2px);
}

.single-reviews-placeholder {
  background: #e7e2da;
  color: #6c757d;
}

.single-info-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.single-hours-list .single-hours-row {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ----- Utilities & Responsive ----- */
@media (max-width: 768px) {
  .hero-search-card .row {
    flex-direction: column;
  }

  .hero-search-card .col-md-5,
  .hero-search-card .col-md-4,
  .hero-search-card .col-md-3 {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .all-business-page .sidebar-sticky {
    position: sticky;
    top: 100px;
  }
}

/* ----- Search Results Page ----- */
.search-results .search-listing-panel {
  background: #fff;
}

.search-results .search-browsing-line {
  font-size: 1.05rem;
  font-weight: 600;
}

.search-results .search-title {
  font-size: 1.35rem;
}

.search-results .search-results-count {
  font-size: 0.85rem;
}

.search-results .listing-scroll {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding-right: 6px;
}

.search-results .search-map-wrap {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 0.5rem;
}

.search-results #map {
  width: 100%;
  min-height: 600px;
  height: 100%;
  border-radius: 0.75rem;
}

.search-results .search-card .card-body {
  padding: 1.25rem;
}

.search-results .search-card h6 {
  font-size: 1.05rem;
}

.search-results .search-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.search-results .search-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.search-results .search-meta-row .material-symbols-outlined {
  font-size: 18px;
}

@media (max-width: 991px) {
  .search-results .listing-scroll {
    max-height: none;
  }

  .search-results #map {
    min-height: 420px;
  }
}
