/* US Tech Directory — base styles
   Covers: state hub, city hub, service hub, business leaf, business profile */

.ustd-hub-page, .ustd-city-hub, .ustd-state-hub,
.ustd-leaf-page, .ustd-business-profile {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2c2c2a;
}

/* ---------- Breadcrumb ---------- */
.ustd-breadcrumb {
    font-size: 13px;
    color: #888780;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}
.ustd-breadcrumb a {
    color: #888780;
    text-decoration: none;
}
.ustd-breadcrumb a:hover {
    color: #534ab7;
    text-decoration: underline;
}

/* ---------- Headings ---------- */
.ustd-hub-page h1, .ustd-city-hub h1, .ustd-state-hub h1,
.ustd-leaf-page h1, .ustd-profile-header h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
.ustd-hub-page h2, .ustd-city-hub h2, .ustd-state-hub h2,
.ustd-leaf-page h2, .ustd-business-profile h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 1rem;
}
.ustd-hub-intro {
    color: #5f5e5a;
    max-width: 640px;
    line-height: 1.65;
    font-size: 16px;
    margin: 0 0 1.5rem;
}

/* ---------- Stat strip ---------- */
.ustd-stat-strip {
    display: flex;
    gap: 12px;
    margin: 0 0 2rem;
    flex-wrap: wrap;
}
.ustd-stat {
    background: #f7f6f2;
    border: 1px solid #e8e6de;
    border-radius: 10px;
    padding: 12px 20px;
    min-width: 110px;
}
.ustd-stat span {
    font-size: 24px;
    font-weight: 700;
    display: block;
    color: #1a1a18;
}

/* ---------- Listing grid (service hub) ---------- */
.ustd-listing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 2.5rem;
}

.ustd-listing-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8e6de;
    border-radius: 14px;
    padding: 1.5rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.ustd-listing-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: #d3d1c7;
}
.ustd-listing-card.is-featured {
    border: 2px solid #378add;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 60%);
}
.ustd-listing-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px;
}
.ustd-listing-card p {
    color: #5f5e5a;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0 14px;
}

.ustd-badge {
    display: inline-block;
    background: #e6f1fb;
    color: #0c447c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    position: absolute;
    top: -11px;
    left: 20px;
}

.ustd-card-meta { margin-bottom: 4px; }
.ustd-rating {
    color: #854f0b;
    font-weight: 600;
    font-size: 14px;
}

.ustd-cta, .ustd-call-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a1a18;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 9px;
    text-decoration: none;
    border: none;
    transition: background 0.15s ease;
}
.ustd-cta:hover, .ustd-call-cta:hover {
    background: #378add;
    color: #fff;
}
.ustd-call-cta { margin: 1.25rem 0; }

.ustd-cta-strip {
    background: #f7f6f2;
    border: 1px dashed #d3d1c7;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: 14px;
}
.ustd-cta-strip a { color: #534ab7; font-weight: 600; text-decoration: none; }
.ustd-cta-strip a:hover { text-decoration: underline; }

/* ---------- Category / city grids ---------- */
.ustd-category-grid, .ustd-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 2rem;
}
.ustd-category-card, .ustd-city-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid #e8e6de;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: #2c2c2a;
    transition: border-color 0.15s ease, transform 0.1s ease;
}
.ustd-category-card:hover, .ustd-city-card:hover {
    border-color: #378add;
    transform: translateY(-1px);
}
.ustd-category-name { font-weight: 600; font-size: 15px; }
.ustd-category-count { font-size: 13px; color: #888780; }
.ustd-city-card span { font-size: 13px; color: #888780; }

/* ---------- Leaf page sections ---------- */
.ustd-leaf-page { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.ustd-leaf-page > .ustd-breadcrumb,
.ustd-leaf-page > h1,
.ustd-leaf-page > .ustd-rating,
.ustd-leaf-page > .ustd-call-cta {
    grid-column: 1 / -1;
}
.ustd-about, .ustd-reviews {
    background: #fff;
    border: 1px solid #e8e6de;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.ustd-about div { color: #3d3d3a; line-height: 1.7; font-size: 15px; }

.ustd-review {
    border-bottom: 1px solid #ece9e1;
    padding: 14px 0;
}
.ustd-review:last-child { border-bottom: none; padding-bottom: 0; }
.ustd-review strong { font-size: 14px; }
.ustd-review span { color: #854f0b; font-size: 13px; margin-left: 8px; }
.ustd-review p { margin: 6px 0 0; color: #5f5e5a; font-size: 14px; line-height: 1.6; }

.ustd-sidebar {
    background: #fff;
    border: 1px solid #e8e6de;
    border-radius: 14px;
    padding: 1.5rem;
}
.ustd-sidebar h2 { font-size: 15px; margin: 0 0 10px; }
.ustd-sidebar h2:not(:first-child) { margin-top: 1.5rem; }
.ustd-sidebar p { font-size: 14px; color: #5f5e5a; margin: 0 0 8px; }
.ustd-sidebar ul { list-style: none; margin: 0; padding: 0; }
.ustd-sidebar li { margin-bottom: 8px; }
.ustd-sidebar a { color: #378add; text-decoration: none; font-size: 14px; }
.ustd-sidebar a:hover { text-decoration: underline; }

/* ---------- Business profile page ---------- */
.ustd-profile-header { margin-bottom: 1.5rem; }
.ustd-business-profile { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.ustd-business-profile > .ustd-breadcrumb,
.ustd-business-profile > .ustd-profile-header {
    grid-column: 1 / -1;
}
.ustd-about { background: #fff; border: 1px solid #e8e6de; border-radius: 14px; padding: 1.5rem; }
.ustd-coverage-matrix {
    background: #fff;
    border: 1px solid #e8e6de;
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.25rem;
}
.ustd-coverage-matrix table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ustd-coverage-matrix th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888780;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e6de;
}
.ustd-coverage-matrix td {
    padding: 12px 0;
    border-bottom: 1px solid #ece9e1;
    vertical-align: top;
}
.ustd-coverage-matrix tr:last-child td { border-bottom: none; }
.ustd-coverage-matrix a { color: #378add; text-decoration: none; }
.ustd-coverage-matrix a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
    .ustd-leaf-page, .ustd-business-profile {
        grid-template-columns: 1fr;
    }
    .ustd-hub-page h1, .ustd-city-hub h1, .ustd-state-hub h1,
    .ustd-leaf-page h1, .ustd-profile-header h1 {
        font-size: 26px;
    }
}

/* ---------- Trust badges ---------- */
.ustd-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}
.ustd-badge-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
}
.ustd-badge-open { background: #eaf3de; color: #173404; }
.ustd-badge-trust { background: #f1efe8; color: #444441; }
.ustd-badge-verified { background: #e6f1fb; color: #0c447c; }

/* ---------- Photo gallery ---------- */
.ustd-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin: 1rem 0 1.5rem;
}
.ustd-photo-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}

/* ---------- Map embed ---------- */
.ustd-map-embed {
    margin-top: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e6de;
}
.ustd-map-embed iframe {
    width: 100%;
    height: 220px;
    border: none;
    display: block;
}

/* ---------- Lead capture form ---------- */
.ustd-lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ece9e1;
}
.ustd-lead-form h3 { font-size: 16px; margin: 0 0 4px; }
.ustd-lead-form input, .ustd-lead-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d3d1c7;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.ustd-lead-form button {
    background: #1a1a18;
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.ustd-lead-form button:hover { background: #378add; }

.ustd-confirm {
    background: #eaf3de;
    color: #173404;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 1.25rem;
}

/* ---------- Claim flow ---------- */
.ustd-claim-box {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ece9e1;
    font-size: 13px;
}
.ustd-claim-box > p { margin: 0 0 8px; color: #888780; }
.ustd-claim-box button[type="button"] {
    background: none;
    border: 1px solid #d3d1c7;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}
.ustd-claim-box form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.ustd-claim-box input {
    padding: 9px 11px;
    border: 1px solid #d3d1c7;
    border-radius: 8px;
    font-size: 13px;
}
.ustd-claim-box form button[type="submit"] {
    background: #1a1a18;
    color: #fff;
    border: none;
    padding: 9px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Search box ---------- */
.ustd-search-box {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: #f7f6f2;
    border: 1px solid #e8e6de;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 2rem;
}
.ustd-search-box select {
    flex: 1;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid #d3d1c7;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.ustd-search-box button {
    background: #1a1a18;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.ustd-search-box button:hover { background: #378add; }

/* ---------- Sort row ---------- */
.ustd-sort-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    font-size: 13px;
}
.ustd-sort-row span { color: #888780; }
.ustd-sort-row a {
    padding: 6px 14px;
    border: 1px solid #d3d1c7;
    border-radius: 999px;
    text-decoration: none;
    color: #2c2c2a;
}
.ustd-sort-row a.is-active {
    background: #1a1a18;
    color: #fff;
    border-color: #1a1a18;
}

/* ---------- Pagination ---------- */
.ustd-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 1.5rem 0;
}
.ustd-pagination .page-numbers {
    padding: 8px 13px;
    border: 1px solid #e8e6de;
    border-radius: 8px;
    text-decoration: none;
    color: #2c2c2a;
    font-size: 13px;
}
.ustd-pagination .page-numbers.current {
    background: #1a1a18;
    color: #fff;
    border-color: #1a1a18;
}

/* ---------- Owner dashboard ---------- */
.ustd-dashboard-card {
    background: #fff;
    border: 1px solid #e8e6de;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    max-width: 900px;
}
.ustd-dashboard-leads {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}
.ustd-dashboard-leads th {
    text-align: left;
    color: #888780;
    font-size: 12px;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e6de;
}
.ustd-dashboard-leads td {
    padding: 10px 8px 10px 0;
    border-bottom: 1px solid #ece9e1;
}
