:root {
    --primary: #0b57d0;
    --primary-2: #2563eb;
    --primary-soft: #eaf2ff;
    --secondary: #0ea56b;
    --secondary-soft: #e8f8f1;
    --ink: #0f172a;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #eef3f9;
    --border: #e2e8f0;
    --danger: #ef4444;
    --whatsapp: #25d366;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, .10);
    --shadow-lg: 0 28px 70px rgba(8, 37, 93, .18);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fbfcfe;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* Header */
.main-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226,232,240,.85);
}
.navbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(145deg, var(--primary), #4f7df3); color: #fff;
    font-weight: 800; box-shadow: 0 8px 18px rgba(11,87,208,.22);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 18px; letter-spacing: .5px; font-weight: 800; color: var(--ink); }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a { padding: 10px 13px; border-radius: 11px; color: #475569; font-size: 13px; font-weight: 700; transition: .2s ease; }
.main-nav > a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav .nav-cta { color: #fff; background: var(--primary); padding-inline: 16px; box-shadow: 0 8px 20px rgba(11,87,208,.18); }
.main-nav .nav-cta:hover { color: #fff; background: #0849b4; }
.main-nav .nav-admin { color: var(--muted); font-size: 12px; }

/* Hero */
.hero-modern {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(90,143,255,.30), transparent 32%), linear-gradient(135deg, #072f7b 0%, #0b57d0 54%, #286de6 100%);
    padding: 86px 0 112px;
}
.hero-orb { position: absolute; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.hero-orb-one { width: 420px; height: 420px; right: -180px; top: -220px; background: rgba(255,255,255,.08); }
.hero-orb-two { width: 250px; height: 250px; left: -110px; bottom: -120px; background: rgba(115,168,255,.10); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 72px; align-items: center; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #d7e6ff; margin-bottom: 18px; }
.eyebrow span { width: 20px; height: 2px; background: #82afff; border-radius: 99px; }
.hero-copy h1 { max-width: 770px; font-size: clamp(40px, 5vw, 64px); line-height: 1.06; letter-spacing: -.045em; font-weight: 800; }
.hero-copy h1 em { font-style: normal; color: #bcd2ff; }
.hero-copy > p { max-width: 700px; margin-top: 22px; color: #d9e6fb; font-size: 17px; line-height: 1.75; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: #eaf2ff; font-size: 12px; font-weight: 700; }
.hero-side-card {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 24px;
    padding: 26px; backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-side-card .mini-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #cbdcff; font-weight: 800; }
.hero-side-card > strong { display: block; font-size: 22px; line-height: 1.3; margin-top: 9px; }
.hero-side-card > p { color: #d5e4fb; font-size: 13px; margin-top: 8px; }
.mini-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 22px; }
.mini-stats div { border-radius: 15px; padding: 13px; background: rgba(255,255,255,.10); }
.mini-stats b { display:block; font-size: 20px; }
.mini-stats span { display:block; color:#cbdcff; font-size:10px; text-transform:uppercase; letter-spacing:.08em; margin-top:2px; }

/* Search */
.search-wrap { position: relative; z-index: 10; margin-top: -48px; }
.search-panel-modern {
    display: grid; grid-template-columns: 1.65fr .8fr .8fr auto; gap: 8px; align-items: stretch;
    padding: 10px; background: #fff; border: 1px solid rgba(226,232,240,.9); border-radius: 22px; box-shadow: var(--shadow-lg);
}
.search-field { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 9px 14px; border-radius: 14px; transition: .2s ease; }
.search-field:focus-within { background: #f6f9ff; }
.search-main-field { flex-direction: row; align-items: center; gap: 11px; }
.search-main-field > div { flex: 1; min-width: 0; }
.search-field-icon, .btn-icon, .small-icon { display: inline-flex; flex: 0 0 auto; }
.search-field-icon { width: 22px; height: 22px; color: var(--primary); }
.btn-icon { width: 17px; height: 17px; }
.small-icon { width: 15px; height: 15px; color: var(--muted); }
.search-field label { display: block; margin-bottom: 3px; color: #64748b; font-size: 9px; letter-spacing: .10em; text-transform: uppercase; font-weight: 800; }
.search-field input, .search-field select { width: 100%; border: 0; background: transparent; color: var(--ink); outline: 0; font-size: 13px; font-weight: 650; padding: 0; }
.search-field input::placeholder { color: #94a3b8; font-weight: 500; }
.search-panel-modern .search-field:not(:first-child) { border-left: 1px solid var(--border); border-radius: 0; }
.quick-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 7px 0; color: var(--muted); font-size: 11px; }
.quick-searches > span { font-weight: 700; }
.quick-searches a { padding: 5px 9px; border-radius: 99px; background: #f1f5f9; color: #475569; font-weight: 700; }
.quick-searches a:hover { background: var(--primary-soft); color: var(--primary); }

/* Buttons */
.btn { border: 0; border-radius: 13px; padding: 11px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 800; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 9px 20px rgba(11,87,208,.18); }
.btn-primary:hover { background: #0849b4; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { background: #fff; color: #334155; border: 1px solid var(--border); }
.btn-outline:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-white { background: #fff; color: #0a4daf; padding: 13px 18px; white-space: nowrap; }
.btn-search { min-width: 130px; border-radius: 15px; }
.w-full { width: 100%; }

/* Sections */
.section-block { padding-top: 72px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-heading > div:first-child { max-width: 690px; }
.section-kicker { display: block; color: var(--primary); margin-bottom: 8px; }
.section-heading h2, .section-title h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; }
.section-heading p { color: var(--muted); margin-top: 7px; font-size: 13px; }
.section-link { color: var(--primary); font-size: 12px; font-weight: 800; white-space: nowrap; }
.section-link span { margin-left: 5px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 36px 0 22px; }
.section-title a { color: var(--primary); font-weight: 800; font-size: 12px; }
.verified-label { color: var(--primary); background: var(--primary-soft); padding: 8px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.category-card {
    position: relative; min-height: 130px; display: flex; align-items: flex-start; gap: 13px;
    padding: 20px; border: 1px solid var(--border); border-radius: 19px; background: #fff;
    box-shadow: 0 6px 20px rgba(15,23,42,.035); transition: .22s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: #b9cff8; box-shadow: var(--shadow-sm); }
.category-icon { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); flex: 0 0 auto; }
.category-copy { min-width: 0; padding-top: 2px; }
.category-copy h3, .category-card h3 { font-size: 14px; line-height: 1.35; font-weight: 800; }
.category-copy span, .category-card > span:not(.category-arrow) { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.category-arrow { position: absolute; right: 16px; bottom: 14px; color: #94a3b8; font-weight: 800; }

/* Business cards */
.businesses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.business-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 7px 24px rgba(15,23,42,.04); transition: .22s ease; }
.business-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d4dfef; }
.business-card.featured { border-color: #bfd2fb; }
.featured-tag { position: absolute; top: 12px; left: 12px; z-index: 5; padding: 6px 10px; border-radius: 99px; background: rgba(11,87,208,.92); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.business-cover-wrapper { position: relative; height: 150px; display: block; background: linear-gradient(135deg, #edf3ff, #f7f9fc); }
.business-cover-wrapper::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(15,23,42,.12), transparent 55%); pointer-events:none; }
.business-cover-img { width: 100%; height: 100%; object-fit: cover; }
.business-logo-wrapper { position: absolute; z-index: 3; left: 18px; bottom: -25px; width: 58px; height: 58px; padding: 3px; background: #fff; border-radius: 17px; box-shadow: 0 8px 22px rgba(15,23,42,.16); }
.business-logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.logo-letter { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 20px; font-weight: 800; }
.business-card-body { padding: 36px 18px 18px; }
.business-card-category { color: var(--primary); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.business-card-title { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 16px; line-height: 1.35; font-weight: 800; }
.business-card-title a:hover { color: var(--primary); }
.verified-icon { width: 17px; height: 17px; color: var(--primary); display: inline-flex; }
.business-card-desc { color: var(--muted); font-size: 11px; margin-top: 8px; min-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.business-card-location { display: flex; align-items: flex-start; gap: 6px; color: #64748b; font-size: 10px; margin-top: 12px; }

/* Empty states */
.empty-state { min-height: 145px; display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px dashed #cbd5e1; border-radius: 18px; background: #f8fafc; }
.empty-state .empty-icon { width: 44px; height: 44px; display:grid; place-items:center; flex:0 0 auto; border-radius:14px; background:#fff; color:var(--primary); font-size:22px; box-shadow: var(--shadow-sm); }
.empty-state strong { display:block; font-size:14px; }
.empty-state p { color:var(--muted); font-size:11px; margin-top:4px; }
.empty-state .btn { margin-left:auto; }
.compact-empty { min-height: 110px; }

/* Cities */
.city-section { margin-top: 78px; padding: 68px 0; background: #0d2448; color: #fff; }
.light-heading .section-kicker { color: #8db6ff; }
.light-heading p { color: #aebfd8; }
.city-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.city-card { display:flex; align-items:center; gap:12px; padding:16px; border:1px solid rgba(255,255,255,.10); border-radius:16px; background:rgba(255,255,255,.055); transition:.2s ease; }
.city-card:hover { background:rgba(255,255,255,.10); transform:translateY(-2px); }
.city-pin { width:34px; height:34px; padding:8px; border-radius:11px; background:rgba(110,159,255,.16); color:#9fc2ff; flex:0 0 auto; }
.city-card div { min-width:0; flex:1; }
.city-card strong { display:block; font-size:13px; }
.city-card span:not(.city-pin) { display:block; color:#9fb0c8; font-size:9px; margin-top:2px; }
.city-card b { min-width:28px; height:28px; padding:0 7px; display:grid; place-items:center; border-radius:99px; background:#fff; color:#0c438f; font-size:9px; }
.dark-empty { background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.14); }
.dark-empty p { color:#aebfd8; }

/* Owner CTA */
.owner-cta-wrap { padding: 64px 0 78px; }
.owner-cta { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:22px; padding:30px; border-radius:24px; background:linear-gradient(135deg,#0b57d0,#2d71e6); color:#fff; box-shadow:var(--shadow-md); }
.owner-cta-icon { width:56px; height:56px; display:grid; place-items:center; border-radius:17px; background:rgba(255,255,255,.14); font-size:22px; font-weight:800; }
.owner-cta .section-kicker { color:#cfe0ff; }
.owner-cta h2 { font-size:25px; line-height:1.2; letter-spacing:-.02em; }
.owner-cta p { max-width:740px; color:#d8e6fb; font-size:12px; margin-top:7px; }

/* Search results / shared forms */
.breadcrumbs { display:flex; gap:6px; flex-wrap:wrap; align-items:center; color:var(--muted); font-size:10px; margin:24px 0 16px; }
.breadcrumbs a:hover { color:var(--primary); }
.search-columns-grid, .business-columns { display:grid; grid-template-columns:minmax(220px,.75fr) minmax(0,2.25fr); gap:24px; align-items:start; }
.form-group { margin-bottom:14px; }
.form-group label { display:block; margin-bottom:6px; color:#475569; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.form-group input, .form-group select, .form-group textarea { width:100%; border:1px solid var(--border); border-radius:12px; background:#fff; color:var(--ink); outline:none; padding:10px 11px; font-size:12px; transition:.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:#8fb4f8; box-shadow:0 0 0 3px rgba(11,87,208,.08); }
.contact-list { display:flex; flex-direction:column; gap:10px; }
.pagination { display:flex; justify-content:center; gap:6px; margin:30px 0; }
.pagination-item { min-width:36px; height:36px; display:grid; place-items:center; padding:0 10px; border-radius:10px; border:1px solid var(--border); background:#fff; font-size:11px; font-weight:800; }
.pagination-item:hover { border-color:#bcd0f5; color:var(--primary); }
.business-cover-wrapper-search { height:135px; }

/* Business detail */
.business-banner { height:300px; border-radius:0 0 26px 26px; overflow:hidden; background:linear-gradient(135deg,#eaf2ff,#f8fafc); }
.banner-img { width:100%; height:100%; object-fit:cover; }
.business-profile-header { position:relative; margin-top:-52px; padding:24px; background:#fff; border:1px solid var(--border); border-radius:22px; box-shadow:var(--shadow-md); display:flex; gap:20px; align-items:center; }
.profile-logo { width:92px; height:92px; border-radius:22px; object-fit:cover; background:var(--primary-soft); border:4px solid #fff; box-shadow:0 8px 22px rgba(15,23,42,.12); }
.profile-title-area { flex:1; min-width:0; }
.profile-category { color:var(--primary); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.profile-name { font-size:30px; line-height:1.15; margin-top:5px; letter-spacing:-.03em; }
.profile-meta-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:11px; }
.profile-meta-item { color:var(--muted); font-size:11px; display:flex; align-items:center; gap:5px; }
.info-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:20px; box-shadow:0 6px 22px rgba(15,23,42,.035); margin-bottom:16px; }
.info-card h2, .info-card h3 { font-size:17px; margin-bottom:10px; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.gallery-item { aspect-ratio:1/1; border-radius:14px; overflow:hidden; background:#f1f5f9; }
.gallery-item img { width:100%; height:100%; object-fit:cover; }
.mobile-action-bar { display:none; }
.modal { position:fixed; inset:0; z-index:2000; display:none; place-items:center; padding:20px; background:rgba(15,23,42,.58); }
.modal-content { width:min(560px,100%); max-height:90vh; overflow:auto; background:#fff; border-radius:22px; padding:24px; box-shadow:var(--shadow-lg); }
.modal-close { float:right; border:0; background:#f1f5f9; width:34px; height:34px; border-radius:10px; cursor:pointer; }

/* Footer */
.main-footer { margin-top: 24px; background:#07162d; color:#d4deec; }
.footer-grid { display:grid; grid-template-columns:1.8fr .8fr .8fr; gap:60px; padding:54px 0 44px; }
.brand-footer .brand-copy strong { color:#fff; }
.brand-footer .brand-copy small { color:#8fa3bf; }
.footer-brand p { max-width:480px; color:#8fa3bf; font-size:11px; margin-top:15px; line-height:1.8; }
.main-footer h4 { color:#fff; font-size:12px; margin-bottom:13px; }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:8px; }
.footer-links a { color:#92a5bf; font-size:11px; }
.footer-links a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); }
.footer-bottom-inner { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:16px; color:#6f829d; font-size:9px; }

/* Utility compatibility */
.flex { display:flex; } .items-center { align-items:center; } .justify-center { justify-content:center; }
.font-bold { font-weight:800; } .font-semibold { font-weight:700; } .text-center { text-align:center; }
.text-xs { font-size:10px; } .text-sm { font-size:12px; } .text-blue-600,.text-blue-700 { color:var(--primary); }
.bg-blue-100 { background:var(--primary-soft); } .bg-slate-100 { background:#f1f5f9; }
.h-full { height:100%; } .relative { position:relative; } .hidden { display:none; } .transition { transition:.2s ease; }
.hover\:text-blue-600:hover { color:var(--primary); }

@media (max-width: 980px) {
    .hero-inner { grid-template-columns:1fr; gap:30px; }
    .hero-side-card { max-width:520px; }
    .search-panel-modern { grid-template-columns:1fr 1fr; }
    .search-panel-modern .search-main-field { grid-column:1 / -1; }
    .search-panel-modern .search-field:not(:first-child) { border-left:0; border-top:1px solid var(--border); border-radius:0; }
    .btn-search { min-height:54px; }
    .categories-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .businesses-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .city-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .footer-grid { grid-template-columns:1.4fr 1fr 1fr; gap:30px; }
}

@media (max-width: 720px) {
    .container { width:min(100% - 24px,1180px); }
    .navbar { min-height:66px; }
    .brand-mark { width:36px; height:36px; }
    .brand-copy strong { font-size:16px; }
    .main-nav > a:not(.nav-cta) { display:none; }
    .main-nav .nav-cta { font-size:10px; padding:9px 11px; }
    .hero-modern { padding:58px 0 92px; }
    .hero-copy h1 { font-size:39px; }
    .hero-copy > p { font-size:14px; }
    .hero-side-card { display:none; }
    .search-wrap { margin-top:-42px; }
    .search-panel-modern { grid-template-columns:1fr; border-radius:18px; padding:8px; }
    .search-panel-modern .search-main-field { grid-column:auto; }
    .search-field { padding:11px 12px; }
    .search-panel-modern .search-field:not(:first-child) { border-top:1px solid var(--border); }
    .btn-search { width:100%; }
    .quick-searches { overflow:auto; flex-wrap:nowrap; padding-left:2px; scrollbar-width:none; }
    .quick-searches::-webkit-scrollbar { display:none; }
    .section-block { padding-top:54px; }
    .section-heading { align-items:flex-start; }
    .section-heading p { display:none; }
    .section-heading h2 { font-size:26px; }
    .categories-grid, .businesses-grid, .city-grid { grid-template-columns:1fr; }
    .category-card { min-height:104px; }
    .business-cover-wrapper { height:170px; }
    .empty-state { align-items:flex-start; flex-wrap:wrap; }
    .empty-state .btn { margin-left:0; width:100%; }
    .city-section { margin-top:58px; padding:52px 0; }
    .owner-cta-wrap { padding:46px 0 60px; }
    .owner-cta { grid-template-columns:1fr; text-align:left; }
    .owner-cta-icon { display:none; }
    .btn-white { width:100%; }
    .search-columns-grid, .business-columns { grid-template-columns:1fr; }
    .business-profile-header { align-items:flex-start; flex-direction:column; margin-top:-38px; }
    .profile-name { font-size:25px; }
    .business-banner { height:220px; }
    .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mobile-action-bar { position:fixed; z-index:1200; bottom:0; left:0; right:0; display:flex; gap:8px; padding:10px 12px; background:rgba(255,255,255,.96); border-top:1px solid var(--border); backdrop-filter:blur(12px); }
    body { padding-bottom:68px; }
    .footer-grid { grid-template-columns:1fr 1fr; }
    .footer-brand { grid-column:1 / -1; }
    .footer-bottom-inner { min-height:72px; flex-direction:column; justify-content:center; align-items:flex-start; }
}
