/* ============================================================
   Bihar Local — Main Stylesheet
   Design: Traditional Indian warmth with modern UI/UX
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────── */
:root {
  --primary:        #8B1A1A;
  --primary-dark:   #6B1212;
  --primary-light:  #A52020;
  --accent:         #E8A020;
  --accent-dark:    #C88810;
  --accent-light:   #F5C060;
  --bg:             #FFF8F0;
  --bg-card:        #FFFFFF;
  --bg-muted:       #FFF0E0;
  --text:           #1A1A1A;
  --text-muted:     #6B6B6B;
  --text-light:     #9B9B9B;
  --border:         #E8DDD0;
  --border-light:   #F0E8DC;
  --shadow-sm:      0 1px 4px rgba(139,26,26,.08);
  --shadow:         0 4px 16px rgba(139,26,26,.12);
  --shadow-lg:      0 8px 32px rgba(139,26,26,.16);
  --shadow-xl:      0 16px 48px rgba(139,26,26,.2);
  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --font:           'Poppins', sans-serif;
  --transition:     all .25s ease;
  --transition-slow:all .4s ease;
  --header-h:       70px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: .5rem; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 20px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px rgba(139,26,26,.35);
}
.btn-primary:hover {
  background: var(--primary-dark); color: #fff;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,26,26,.45);
}
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(232,160,32,.35);
}
.btn-accent:hover {
  background: var(--accent-dark); color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; transform: translateY(-2px); }
.btn-facebook { background: #1877F2; color: #fff; }
.btn-twitter  { background: #1DA1F2; color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.badge-primary  { background: var(--primary);  color: #fff; }
.badge-accent   { background: var(--accent);   color: #fff; }
.badge-success  { background: #22c55e; color: #fff; }
.badge-warning  { background: #f59e0b; color: #fff; }
.badge-danger   { background: #ef4444; color: #fff; }
.badge-muted    { background: var(--bg-muted); color: var(--text-muted); }
.badge-featured { background: linear-gradient(135deg, var(--accent), #F07820); color: #fff; }

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 16px; font-size: .9rem; font-weight: 500;
  border-left: 4px solid;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #22c55e; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #ef4444; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #f59e0b; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #3b82f6; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-label .required { color: var(--primary); }
.form-control {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  font-size: .93rem; transition: var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,26,26,.1);
}
.form-control::placeholder { color: var(--text-light); }
.form-control.is-invalid { border-color: #ef4444; }
.form-error { font-size: .78rem; color: #ef4444; margin-top: 4px; }
.form-hint  { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.input-group { position: relative; }
.input-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); pointer-events: none;
}
.input-group .form-control { padding-left: 42px; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B1A1A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; height: var(--header-h);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow .3s ease;
  display: flex; align-items: center;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header > .container { width: 100%; }
.header-inner {
  display: flex; align-items: center; gap: 24px;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 42px; width: auto; display: block; }
.site-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo-text .name {
  font-size: 1.25rem; font-weight: 700; color: var(--primary);
  letter-spacing: -.3px;
}
.site-logo-text .tagline { font-size: .65rem; color: var(--accent); font-weight: 500; }

.header-search {
  flex: 1; max-width: 480px;
}
.header-search-form {
  display: flex; background: var(--bg-muted);
  border: 1.5px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; transition: var(--transition);
}
.header-search-form:focus-within {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,26,26,.1);
  background: #fff;
}
.header-search-form input {
  flex: 1; border: none; background: transparent;
  padding: 9px 16px; font-size: .88rem; color: var(--text);
}
.header-search-form input:focus { outline: none; }
.header-search-form button {
  background: var(--primary); color: #fff;
  border: none; padding: 0 18px;
  font-size: .9rem; transition: var(--transition);
}
.header-search-form button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.nav-main { display: none; }

/* ── Mobile nav toggle ───────────────────────────────────── */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px;
  background: var(--primary); border-radius: 2px; transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile menu ─────────────────────────────────────────── */
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5); z-index: 999;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-inner {
  background: #fff; width: 300px; height: 100%; overflow-y: auto;
  padding: 24px 20px; transform: translateX(-100%); transition: var(--transition);
}
.mobile-menu.open .mobile-menu-inner { transform: translateX(0); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #5A0E0E 60%, #3A0808 100%);
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-ornament {
  position: absolute; right: -80px; top: -80px; opacity: .06;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 30px;
  padding: 6px 16px; font-size: .8rem; color: rgba(255,255,255,.9);
  margin-bottom: 20px; font-weight: 500;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.hero h1 { color: #fff; margin-bottom: 12px; font-size: clamp(2rem, 5vw, 3.5rem); }
.hero h1 .highlight { color: var(--accent-light); }
.hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 500px; margin: 0 auto 36px; }

.hero-search-box {
  background: #fff; border-radius: var(--radius-lg);
  padding: 12px; display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 700px; margin: 0 auto 32px;
  box-shadow: var(--shadow-xl);
}
.hero-search-box input,
.hero-search-box select {
  flex: 1; min-width: 160px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: .93rem; background: var(--bg);
  color: var(--text); transition: var(--transition);
}
.hero-search-box input:focus,
.hero-search-box select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,26,26,.1);
}
.hero-search-box button {
  background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 12px 28px;
  font-size: .95rem; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.hero-search-box button:hover { background: var(--primary-dark); transform: translateY(-1px); }

.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-tag {
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 20px;
  color: rgba(255,255,255,.85); padding: 5px 14px;
  font-size: .8rem; transition: var(--transition); cursor: pointer;
}
.hero-tag:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── Section header ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 14px;
  font-size: .75rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-title { margin-bottom: 12px; }
.section-title .accent { color: var(--primary); }
.section-desc { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-divider {
  width: 60px; height: 4px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* ── Section padding ─────────────────────────────────────── */
.section { padding: 80px 0; }
.section-muted { background: var(--bg-muted); }
.section-dark { background: var(--primary); color: #fff; }

/* ── Categories grid ─────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.category-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 16px;
  text-align: center; transition: var(--transition);
  cursor: pointer; text-decoration: none; color: var(--text);
  position: relative; overflow: hidden;
}
.category-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0; transition: var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); color: var(--text); }
.category-card:hover::before { opacity: 1; }
.category-card:hover .cat-icon, .category-card:hover .cat-name { position: relative; z-index: 1; }
.category-card:hover .cat-icon { background: rgba(255,255,255,.15); color: #fff; }
.category-card:hover .cat-name { color: #fff; }
.category-card:hover .cat-count { color: rgba(255,255,255,.7); }
.cat-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--bg-muted); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin: 0 auto 12px; transition: var(--transition);
}
.cat-name { font-size: .83rem; font-weight: 600; line-height: 1.3; transition: var(--transition); }
.cat-count { font-size: .72rem; color: var(--text-light); margin-top: 4px; transition: var(--transition); }

/* ── Listing card ────────────────────────────────────────── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.listing-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card-image {
  position: relative; height: 200px; overflow: hidden;
  background: var(--bg-muted);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card:hover .card-image img { transform: scale(1.06); }
.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--text-light);
  background: linear-gradient(135deg, var(--bg-muted), var(--border-light));
}
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.card-fav {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.9); border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: .9rem; cursor: pointer; transition: var(--transition);
  backdrop-filter: blur(4px);
}
.card-fav:hover { color: var(--primary); background: #fff; }

.card-body { padding: 18px; }
.card-category {
  display: flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-location {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--text-muted); margin-bottom: 10px;
}
.card-rating {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.stars { display: inline-flex; gap: 2px; }
.star { font-size: .75rem; }
.star.filled i { color: var(--accent); }
.star.half i   { color: var(--accent); opacity: .6; }
.star.empty i  { color: var(--border); }
.rating-score { font-size: .82rem; font-weight: 600; color: var(--text); }
.rating-count { font-size: .78rem; color: var(--text-muted); }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-top: 1px solid var(--border-light);
  background: var(--bg-muted);
}
.card-phone { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.card-phone i { color: var(--primary); }

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar { background: var(--primary); padding: 40px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.1);
}
.stat-item {
  text-align: center; padding: 28px 20px; background: var(--primary);
  transition: var(--transition);
}
.stat-item:hover { background: var(--primary-dark); }
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--accent-light); line-height: 1; display: block;
}
.stat-label { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 6px; font-weight: 500; }

/* ── Newsletter ──────────────────────────────────────────── */
.newsletter { background: linear-gradient(135deg, #2D0808 0%, var(--primary) 50%, #5A0E0E 100%); padding: 72px 0; }
.newsletter-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.newsletter h2 { color: #fff; margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 13px 18px; color: #fff; font-size: .93rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: none; border-color: rgba(255,255,255,.5); }
.newsletter-form button {
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius); padding: 13px 24px;
  font-weight: 600; font-size: .93rem; transition: var(--transition);
}
.newsletter-form button:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #0F0505; color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.8fr repeat(3, 1fr);
}
.footer-brand .site-logo-text .name { color: #fff; font-size: 1.4rem; }
.footer-brand .site-logo-text .tagline { color: var(--accent); }
.footer-brand p { margin-top: 14px; font-size: .88rem; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-heading { font-size: .85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .87rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .82rem;
}
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ── Listing detail page ─────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .82rem; color: var(--text-muted);
  padding: 18px 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

.listing-hero { background: var(--bg-muted); padding: 40px 0; }
.listing-hero-inner {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 32px; align-items: start;
}
.listing-gallery { border-radius: var(--radius-lg); overflow: hidden; background: var(--border); aspect-ratio: 16/9; }
.gallery-main { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumb {
  width: 70px; height: 70px; border-radius: var(--radius-sm);
  object-fit: cover; cursor: pointer; opacity: .7; transition: var(--transition);
  border: 2px solid transparent;
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--primary); }

.listing-meta-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
}
.listing-title { font-size: 1.6rem; margin-bottom: 8px; }
.listing-category-city {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.listing-rating-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light); margin: 16px 0;
}
.listing-avg-score { font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.listing-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.info-list { margin-top: 0; }
.info-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.info-item:last-child { border-bottom: none; }
.info-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-muted); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .9rem;
}
.info-content .label { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.info-content .value { font-size: .9rem; font-weight: 500; }

.hours-table { width: 100%; }
.hours-table tr td { padding: 7px 0; font-size: .88rem; }
.hours-table tr td:first-child { font-weight: 600; color: var(--text); width: 40%; }
.hours-table tr td:last-child { color: var(--text-muted); }
.hours-table tr.today td { color: var(--primary); }
.hours-open  { color: #22c55e !important; font-weight: 600 !important; }
.hours-closed{ color: #ef4444 !important; }

.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Reviews ─────────────────────────────────────────────── */
.review-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.reviewer-info { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviewer-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0; overflow: hidden;
}
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviewer-name { font-weight: 600; font-size: .93rem; }
.reviewer-date { font-size: .78rem; color: var(--text-muted); }
.review-text { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

.rating-input-group { display: flex; gap: 6px; }
.rating-star {
  font-size: 1.6rem; cursor: pointer; color: var(--border);
  transition: color .15s ease;
}
.rating-star.active, .rating-star:hover { color: var(--accent); }

/* ── Search results ──────────────────────────────────────── */
.search-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 28px; align-items: start;
}
.filter-sidebar {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.filter-section { margin-bottom: 28px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 14px; }

/* ── Blog ────────────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.blog-image { height: 220px; overflow: hidden; background: var(--bg-muted); }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-image img { transform: scale(1.06); }
.blog-body { padding: 22px; }
.blog-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.blog-meta span { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.blog-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.blog-title a { color: var(--text); }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.blog-footer { display: flex; align-items: center; justify-content: space-between; }

/* ── Single blog ─────────────────────────────────────────── */
.blog-content { max-width: 760px; }
.blog-content p   { margin-bottom: 1.4rem; font-size: 1.02rem; line-height: 1.9; color: #2A2A2A; }
.blog-content h2  { margin: 2rem 0 .8rem; color: var(--primary); }
.blog-content h3  { margin: 1.6rem 0 .6rem; }
.blog-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.blog-content ul, .blog-content ol { margin: 1rem 0 1.5rem 2rem; }
.blog-content li  { margin-bottom: .5rem; font-size: 1rem; }
.blog-content blockquote {
  border-left: 4px solid var(--primary); padding: 16px 20px;
  background: var(--bg-muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0; color: var(--text-muted); font-style: italic;
}

/* ── Auth pages ──────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 480px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px 44px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.auth-divider {
  text-align: center; position: relative; margin: 20px 0;
  font-size: .8rem; color: var(--text-light);
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 40%; height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-switch { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.dashboard-sidebar {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.dash-user { padding: 24px; border-bottom: 1px solid var(--border-light); text-align: center; }
.dash-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; margin: 0 auto 12px; overflow: hidden;
}
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-name { font-weight: 700; font-size: 1rem; }
.dash-email { font-size: .78rem; color: var(--text-muted); }
.dash-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; font-size: .88rem; color: var(--text-muted);
  border-left: 3px solid transparent; transition: var(--transition);
}
.dash-nav a:hover, .dash-nav a.active {
  color: var(--primary); background: var(--bg-muted);
  border-left-color: var(--primary);
}
.dash-nav a i { width: 18px; text-align: center; }

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.dash-stat-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.dash-stat-num { font-size: 2rem; font-weight: 700; color: var(--primary); }
.dash-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* ── Map embed ───────────────────────────────────────────── */
.map-embed {
  border-radius: var(--radius); overflow: hidden;
  border: 1.5px solid var(--border);
  aspect-ratio: 16/7;
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ── Skeleton loader ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0e8dc 25%, #e8ddd0 50%, #f0e8dc 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card { height: 320px; border-radius: var(--radius-lg); }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.w-3/4 { width: 75%; }
.skeleton-line.w-1/2 { width: 50%; }

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 56px 0 48px; position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 30px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p   { color: rgba(255,255,255,.75); }

/* ── Card generic ────────────────────────────────────────── */
.card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.card-title-sm { font-size: 1rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }

/* ── Back to top ─────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  font-size: 1rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px);
  transition: var(--transition);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; padding: 40px 0; }
.pagination-list { display: flex; align-items: center; gap: 8px; }
.page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: #fff;
  font-size: .88rem; font-weight: 500; color: var(--text);
  transition: var(--transition); padding: 0 12px;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-muted); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-dots { padding: 0 4px; color: var(--text-light); }

/* ── Submit listing ──────────────────────────────────────── */
.submit-page { padding: 56px 0; }
.submit-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.submit-steps {
  display: flex; gap: 0; margin-bottom: 32px;
  background: var(--bg-muted); border-radius: var(--radius); padding: 4px; overflow: hidden;
}
.step-item {
  flex: 1; text-align: center; padding: 10px; font-size: .8rem; font-weight: 600;
  color: var(--text-muted); border-radius: calc(var(--radius) - 4px); transition: var(--transition);
}
.step-item.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: .9rem; }

/* ── 404 page ────────────────────────────────────────────── */
.error-page {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px;
}
.error-code {
  font-size: clamp(80px, 15vw, 160px); font-weight: 900;
  color: var(--primary); opacity: .15; line-height: 1;
  position: absolute;
}
.error-content { position: relative; z-index: 1; }

/* ── Utility ─────────────────────────────────────────────── */
.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.gap-16        { gap: 16px; }
.mt-auto       { margin-top: auto; }
.mb-0          { margin-bottom: 0; }
.mb-8          { margin-bottom: 8px; }
.mb-16         { margin-bottom: 16px; }
.mb-24         { margin-bottom: 24px; }
.mb-32         { margin-bottom: 32px; }
.mt-16         { margin-top: 16px; }
.mt-24         { margin-top: 24px; }
.mt-32         { margin-top: 32px; }
.p-0           { padding: 0; }
.fw-600        { font-weight: 600; }
.fw-700        { font-weight: 700; }
.fs-sm         { font-size: .85rem; }
.rounded       { border-radius: var(--radius); }
.rounded-full  { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.relative      { position: relative; }
.w-100         { width: 100%; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}
.animate-fadeInUp  { animation: fadeInUp  .6s ease forwards; }
.animate-fadeIn    { animation: fadeIn    .4s ease forwards; }
.animate-slideInLeft { animation: slideInLeft .5s ease forwards; }

.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }
.delay-500 { animation-delay: .5s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .listing-hero-inner { grid-template-columns: 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .filter-sidebar{ position: static; }
  .submit-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .section { padding: 56px 0; }
  .nav-toggle { display: flex; }
  .header-search { display: none; }
  .header-actions .btn-sm { display: none; }
  .header-actions .user-menu-toggle { display: flex !important; }
  .listings-grid  { grid-template-columns: 1fr 1fr; }
  .categories-grid{ grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form{ flex-direction: column; }
  .auth-card      { padding: 32px 24px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-stats     { grid-template-columns: 1fr 1fr; }
  .hero           { padding: 56px 0 72px; }
  .blog-grid      { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .listings-grid  { grid-template-columns: 1fr; }
  .categories-grid{ grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .footer-grid    { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }
  .hero-search-box{ flex-direction: column; }
  .hero-search-box input,
  .hero-search-box select,
  .hero-search-box button { min-width: unset; width: 100%; }
  .dash-stats     { grid-template-columns: 1fr; }
}
