@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8e;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --shadow: 0 4px 24px rgba(30,58,95,0.08);
  --shadow-hover: 0 8px 40px rgba(30,58,95,0.16);
  --radius: 14px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ── NAVBAR ── */
.navbar {
  background: var(--primary);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.btn-nav {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  padding: 9px 18px !important;
}
.btn-nav:hover { background: var(--accent-dark) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2444 60%, #1a3a6e 100%);
  padding: 80px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 36px;
}
.search-box {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  background: #fff;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 24px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.search-box select {
  border: none;
  outline: none;
  padding: 18px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--muted);
  background: #f1f5f9;
  border-left: 2px solid var(--border);
  cursor: pointer;
}
.search-box button {
  background: var(--accent);
  border: none;
  padding: 18px 28px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.search-box button:hover { background: var(--accent-dark); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}
.stat { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.stat strong { display: block; font-size: 1.8rem; color: var(--accent); font-family: 'Playfair Display', serif; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-sub { color: var(--muted); margin-bottom: 36px; }

/* ── CATEGORY GRID ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border: 2px solid transparent;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.cat-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
  color: #fff;
}
.cat-name { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.cat-count { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* ── BUSINESS CARDS ── */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.biz-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.biz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.biz-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.biz-body { padding: 18px; }
.biz-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(245,158,11,0.12);
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.biz-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.biz-addr {
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.biz-actions {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}
.btn-sm {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-call { background: #e8f5e9; color: #1b5e20; }
.btn-call:hover { background: #1b5e20; color: #fff; }
.btn-wa { background: #e8f5e9; color: #155724; }
.btn-wa:hover { background: #25d366; color: #fff; }
.btn-detail { background: var(--primary); color: #fff; }
.btn-detail:hover { background: var(--primary-light); }
.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}

.verified-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(37,99,235,0.35);
}

/* ── FILTER BAR ── */
.filter-bar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: var(--shadow);
}
.filter-bar select, .filter-bar input {
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }
.filter-bar .results-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ── FORM ── */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-header {
  background: var(--primary);
  color: #fff;
  padding: 24px 30px;
}
.form-header h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.form-body { padding: 30px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
}
.form-group label span { color: var(--danger); }
.form-control {
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-control:focus { border-color: var(--primary); background: #fff; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* ── IMAGE UPLOAD ── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background: rgba(30,58,95,0.04);
}
.upload-area i { font-size: 2.5rem; color: var(--muted); margin-bottom: 12px; }
.upload-area p { color: var(--muted); font-size: 0.9rem; }
.upload-area strong { color: var(--primary); }
.upload-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.upload-tab {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--muted);
  text-align: center;
}
.upload-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* ── CROP MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box h3 { font-family: 'Playfair Display', serif; margin-bottom: 16px; color: var(--primary); }
.crop-container { max-height: 350px; overflow: hidden; margin-bottom: 16px; }
.crop-container img { max-width: 100%; display: block; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ── BUSINESS DETAIL ── */
.biz-detail-hero {
  background: var(--primary);
  padding: 40px 0 60px;
  position: relative;
  overflow: hidden;
}
.biz-detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}
.biz-detail-info {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-top: -40px;
  position: relative;
}
.biz-detail-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.contact-btn.call { background: #e8f5e9; color: #1b5e20; border-color: #a5d6a7; }
.contact-btn.call:hover { background: #1b5e20; color: #fff; }
.contact-btn.wa { background: #e8f5e9; color: #155724; border-color: #a5d6a7; }
.contact-btn.wa:hover { background: #25d366; color: #fff; }
.contact-btn.email { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.contact-btn.email:hover { background: #1565c0; color: #fff; }
.contact-btn.web { background: #f3e5f5; color: #6a1b9a; border-color: #ce93d8; }
.contact-btn.web:hover { background: #6a1b9a; color: #fff; }
.image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 20px; }
.gallery-img { width: 100%; height: 130px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; transition: transform 0.2s; }
.gallery-img:hover { transform: scale(1.03); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--border);
  transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── ALERTS ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid var(--success); }
.alert-danger { background: #ffebee; color: #b71c1c; border-left: 4px solid var(--danger); }
.alert-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #2196f3; }

/* ── FOOTER ── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand .logo { font-size: 1.4rem; margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }

/* ── NO RESULTS ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 0.82rem; }
  .hero { padding: 50px 16px 80px; }
  .search-box { flex-direction: column; border-radius: var(--radius); }
  .search-box input, .search-box select, .search-box button { border-radius: 0; }
  .search-box button { padding: 14px; }
  .hero-stats { gap: 20px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .biz-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .filter-bar { flex-direction: column; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .logo { font-size: 1.3rem; }
}
