:root {
    --ink: #172033;
    --muted: #687386;
    --line: #dce2ea;
    --paper: #ffffff;
    --soft: #f4f7fa;
    --brand: #0b4e71;
    --brand-dark: #073a55;
    --accent: #b56a16;
    --shadow: 0 12px 34px rgba(18, 40, 61, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; }
a { color: var(--brand); }
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--brand-dark); font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.header-link { font-weight: 700; text-decoration: none; }
.hero { padding: 62px 0 68px; background: linear-gradient(135deg, #073a55, #0b668a); color: #fff; }
.eyebrow, .featured { color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow { color: #f2c680; }
.hero h1 { max-width: 760px; margin: 5px 0 6px; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1; }
.hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.87); font-size: 1.12rem; }
.content-section { padding: 32px 0 54px; }
.search-panel { display: grid; grid-template-columns: 2.1fr 1fr 1fr auto; gap: 12px; padding: 18px; margin-top: -62px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.search-panel label { display: grid; gap: 5px; }
.search-panel span { font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
input, select, button { min-height: 46px; border-radius: 9px; border: 1px solid #cbd4df; padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; }
button, .button { cursor: pointer; border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 800; text-decoration: none; }
button { align-self: end; padding-inline: 18px; }
button:hover, .button:hover { background: var(--brand-dark); }
.result-bar { display: flex; gap: 5px; align-items: center; margin: 24px 0 14px; color: var(--muted); }
.result-bar a { margin-left: auto; font-weight: 700; }
.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.business-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 6px 20px rgba(18,40,61,.05); }
.card-image { display: grid; min-height: 170px; place-items: center; overflow: hidden; background: #e4eef3; color: var(--brand); font-size: 4rem; font-weight: 800; text-decoration: none; }
.card-image img { display: block; width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 17px; }
.card-body h2 { margin: 3px 0 4px; font-size: 1.23rem; line-height: 1.2; }
.card-body h2 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover { color: var(--brand); }
.card-body p { margin: 8px 0; color: var(--muted); font-size: .93rem; }
.location { font-weight: 700; }
.category-label { display: inline-block; margin: 3px 0 4px; padding: 3px 8px; border-radius: 999px; background: #eef6f9; color: var(--brand-dark); font-size: .74rem; font-weight: 800; letter-spacing: .03em; }
.text-link, .back-link { display: inline-block; font-weight: 800; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 28px 0 0; }
.pagination a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 800; text-decoration: none; }
.empty-state { padding: 34px; border: 1px dashed #b9c6d5; border-radius: 12px; background: #fff; text-align: center; }
.empty-state h1, .empty-state h2 { margin-top: 0; }
.back-link { margin-bottom: 17px; text-decoration: none; }
.business-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.detail-main, .contact-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(18,40,61,.05); }
.detail-main h1 { margin: 2px 0 18px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.detail-image { display: block; width: 100%; max-height: 390px; object-fit: cover; margin-bottom: 22px; border-radius: 9px; }
.description > :first-child { margin-top: 0; }
.description > :last-child { margin-bottom: 0; }
.contact-card h2 { margin-top: 0; font-size: 1.16rem; }
.contact-card address { margin-bottom: 13px; font-style: normal; }
.button-stack { display: grid; gap: 9px; margin-top: 16px; }
.button { display: block; padding: 10px 13px; border: 1px solid var(--brand); border-radius: 8px; text-align: center; }
.button.secondary { background: #fff; color: var(--brand); }
.button.secondary:hover { background: #eef6f9; }
.metadata { margin-bottom: 0; color: var(--muted); font-size: .84rem; }
.site-footer { padding: 24px 0; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .9rem; }
@media (max-width: 840px) {
    .search-panel { grid-template-columns: 1fr 1fr; }
    .search-panel label:first-child { grid-column: 1 / -1; }
    .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .business-detail { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .shell { width: min(100% - 22px, 1160px); }
    .header-link { display: none; }
    .hero { padding: 46px 0 72px; }
    .search-panel, .business-grid { grid-template-columns: 1fr; }
    .search-panel label:first-child { grid-column: auto; }
    .detail-main, .contact-card { padding: 18px; }
}
.header-nav { display: flex; align-items: center; gap: 18px; }
.hero-compact { padding-bottom: 56px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 1.65rem; }
.section-heading p { margin: 4px 0 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(18,40,61,.05); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.category-card:hover { transform: translateY(-2px); border-color: #aac4d1; box-shadow: 0 10px 24px rgba(18,40,61,.09); }
.category-card-title { color: var(--ink); font-size: 1.08rem; font-weight: 800; }
.category-card-count { color: var(--muted); font-size: .88rem; }
.category-label { text-decoration: none; }
.category-label:hover { background: #dceef5; }
.result-bar .browse-categories-link { margin-left: auto; }
.result-bar .browse-categories-link + a { margin-left: 12px; }
@media (max-width: 840px) {
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .header-nav { gap: 12px; font-size: .88rem; }
    .header-link { display: inline; }
    .result-bar { flex-wrap: wrap; }
    .result-bar .browse-categories-link { width: 100%; margin: 8px 0 0; }
    .result-bar .browse-categories-link + a { margin-left: 0; }
    .section-heading { display: block; }
    .section-heading .text-link { margin-top: 8px; }
    .category-grid { grid-template-columns: 1fr; }
}
