/* Who's My Pro? - Professional Directory Styles */

:root {
    --primary-color: #2c5282;
    --secondary-color: #3182ce;
    --accent-color: #f6ad55;
    --success-color: #48bb78;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --medium-gray: #e2e8f0;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #4d89cf 0%, #639cd9 52%, #7ab0e3 100%);
    color: var(--white);
    padding: 0.4rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 3000;
    transform: translateY(0);
    opacity: 1;
    transition: transform 220ms ease, opacity 220ms ease;
}

header.header-folded {
    transform: translateY(-115%);
    opacity: 0;
    pointer-events: none;
}

body.mobile-force-header-hidden header {
    transform: translateY(-115%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    --marker-main: #1d4f8f;
    --marker-mid: #1e3a8a;
    --marker-dark: #1e2d5f;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: clamp(1.16rem, 1.9vw, 1.52rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.logo-text {
    color: #ffffff;
}

.logo-text-tail {
    color: #edf2f7;
}

a.logo,
a.logo:visited,
a.logo:hover,
a.logo:active {
    color: var(--white);
    text-decoration: none;
}

.logo-o {
    position: relative;
    display: inline-flex;
    width: 1.3em;
    height: 1.3em;
    align-items: center;
    justify-content: center;
    border: 2.9px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    margin: 0 -0.08em;
    background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.24) 0%, rgba(255,255,255,0.1) 44%, rgba(255,255,255,0.02) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 2px 5px rgba(8, 22, 48, 0.38);
    isolation: isolate;
}

.logo-o::before {
    content: '';
    position: absolute;
    z-index: 2;
    width: 0.56em;
    height: 0.22em;
    left: 0.16em;
    top: 0.14em;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.66) 0%, rgba(255,255,255,0.08) 100%);
    transform: rotate(-18deg);
    pointer-events: none;
}

.logo-o::after {
    content: none;
}

.logo-o-viewport {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    overflow: hidden;
    z-index: 1;
}

.logo-pin {
    --pin-x: 0px;
    --pin-y: 0px;
    --pin-eye-x: 0px;
    --pin-eye-y: 0px;
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    width: 0.52em;
    height: 0.76em;
    transform: translate(calc(-50% + var(--pin-x)), calc(-50% + var(--pin-y)));
    transform-origin: center;
    transition: transform 220ms ease;
}

.logo-pin::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 0.5em;
    height: 0.5em;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, var(--marker-main) 0%, var(--marker-mid) 68%, var(--marker-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 5px rgba(6, 13, 33, 0.46);
}

.logo-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0.42em;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.15em solid transparent;
    border-right: 0.15em solid transparent;
    border-top: 0.24em solid var(--marker-dark);
    filter: drop-shadow(0 1px 1px rgba(6, 13, 33, 0.35));
}

.logo-pin-eye {
    position: absolute;
    width: 0.2em;
    height: 0.2em;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.25);
    left: 50%;
    top: 0.24em;
    transform: translate(calc(-50% + var(--pin-eye-x)), calc(-50% + var(--pin-eye-y))) scaleY(1);
    transform-origin: center;
    animation: logo-pin-blink 4.6s infinite;
    z-index: 1;
}

.logo-pin-eye::after {
    content: '';
    position: absolute;
    width: 0.08em;
    height: 0.08em;
    border-radius: 50%;
    background: #0b0b0b;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes logo-pin-blink {
    0%, 43%, 45%, 100% {
        transform: translate(calc(-50% + var(--pin-eye-x)), calc(-50% + var(--pin-eye-y))) scaleY(1);
    }
    44% {
        transform: translate(calc(-50% + var(--pin-eye-x)), calc(-50% + var(--pin-eye-y))) scaleY(0.12);
    }
    74%, 76% {
        transform: translate(calc(-50% + var(--pin-eye-x)), calc(-50% + var(--pin-eye-y))) scaleY(0.22);
    }
}


.map-eye-marker-wrap {
    background: transparent;
    border: 0;
}

.map-eye-marker {
    --map-pin-main: #1d4f8f;
    --map-pin-mid: #1e3a8a;
    --map-pin-dark: #1e2d5f;
    position: relative;
    display: block;
    width: 20px;
    height: 28px;
}

.map-eye-marker.is-selected {
    --map-pin-main: #b91c1c;
    --map-pin-mid: #991b1b;
    --map-pin-dark: #7f1d1d;
}

.map-eye-marker-head {
    position: absolute;
    left: 50%;
    top: 2px;
    width: 14px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, var(--map-pin-main) 0%, var(--map-pin-mid) 68%, var(--map-pin-dark) 100%);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: 0 1px 4px rgba(6,13,33,0.4);
}

.map-eye-marker-tail {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid var(--map-pin-dark);
    filter: drop-shadow(0 1px 1px rgba(6,13,33,0.35));
}

.map-eye-marker-eye {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 6px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.25);
    z-index: 1;
}

.map-eye-marker-pupil {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.5px;
    height: 2.5px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #0b0b0b;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.nav-row-brand {
    order: 1;
}

.nav-row-links {
    order: 2;
}

.nav-row-cta {
    order: 3;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.nav-links-main,
.nav-links-cta,
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 5px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-links-cta {
    width: auto;
    justify-content: center;
    margin: 0 auto;
}

.nav-row-brand {
    margin-bottom: -1px;
}

.nav-row-links {
    margin-top: -4px;
    margin-bottom: 1px;
}

.nav-row-cta {
    margin-top: -1px;
}

.nav-links-cta .cta-button {
    margin: 0 auto;
}

nav a:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.cta-button {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cta-button:hover {
    background: #ed8936;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    background:
      linear-gradient(135deg, rgba(68,122,186,0.66) 0%, rgba(85,141,201,0.62) 52%, rgba(106,162,214,0.58) 100%),
      url('assets/hero-whos-your-pro.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Services Section */
.services {
    padding: 3rem 0;
    background: var(--white);
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-grid-tail {
    margin-top: 25px;
}

@media (min-width: 980px) {
    .service-grid-tail {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        max-width: 785px;
    }
}

.service-card {
    --card-photo: url('https://source.unsplash.com/1600x900/?home,professional,service');
    background-image: var(--card-photo);
    background-size: cover;
    background-position: center;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.92);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Cleaner readability pass: darker lower layer + softer brand tint so photos read better */
    background:
      linear-gradient(180deg, rgba(6, 14, 26, 0.28) 0%, rgba(6, 14, 26, 0.72) 100%),
      linear-gradient(155deg, rgba(45, 93, 150, 0.34) 0%, rgba(73, 132, 201, 0.26) 48%, rgba(120, 170, 220, 0.18) 100%);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card a {
    text-decoration: none !important;
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-icon {
    display: none;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.55);
    flex-grow: 0;
}

.service-card p {
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.55);
    flex-grow: 0;
    max-width: 28ch;
    margin: 0 auto;
}

/* Category-specific photo set (stable query endpoints) */
.service-card:has(a[href="plumbing.html"]) { --card-photo: url('assets/ai/category-tiles/plumbing-under-sink.png?v=20260401b'); }
.service-card.service-card-electrical { --card-photo: url('assets/ai/category-tiles/electrical.png?v=20260402g'); }
.service-card:has(a[href="electrical.html"]) { --card-photo: url('assets/ai/category-tiles/electrical.png?v=20260402g'); }
.service-card:has(a[href="hvac.html"]) { --card-photo: url('assets/ai/category-tiles/hvac.png?v=20260401b'); }
.service-card:has(a[href="pest-control.html"]) { --card-photo: url('assets/ai/category-tiles/pest-control.png?v=20260401b'); }
.service-card:has(a[href="appliance-repair.html"]) { --card-photo: url('assets/ai/category-tiles/appliance-repair.png?v=20260401b'); }
.service-card:has(a[href="garage-door-repair.html"]) { --card-photo: url('assets/ai/category-tiles/garage-door-repair.png?v=20260401b'); }
.service-card:has(a[href="cleaning-services.html"]) { --card-photo: url('assets/ai/category-tiles/cleaning.png?v=20260402i'); }
.service-card:has(a[href="roofing.html"]) { --card-photo: url('assets/ai/category-tiles/roofing.png?v=20260403k'); }
.service-card:has(a[href="doors-windows.html"]) { --card-photo: url('assets/ai/category-tiles/doors-windows.png?v=20260402i'); }
.service-card:has(a[href="painting.html"]) { --card-photo: url('assets/ai/category-tiles/painting.png?v=20260401b'); }
.service-card:has(a[href="siding.html"]) { --card-photo: url('assets/ai/category-tiles/siding.png?v=20260402k'); }
.service-card:has(a[href="flooring.html"]) { --card-photo: url('assets/ai/category-tiles/flooring.png?v=20260401d'); }
.service-card:has(a[href="tile-services.html"]) { --card-photo: url('assets/ai/category-tiles/tile-services.png?v=20260401b'); }
.service-card:has(a[href="tree-services.html"]) { --card-photo: url('assets/ai/category-tiles/tree-services.png?v=20260403l'); }
.service-card:has(a[href="landscaping.html"]) { --card-photo: url('assets/ai/category-tiles/landscaping.png?v=20260402l'); }
.service-card:has(a[href="handyman.html"]) { --card-photo: url('assets/ai/category-tiles/handyman.png?v=20260401d'); }
.service-card:has(a[href="general-contractor.html"]) { --card-photo: url('assets/ai/category-tiles/general-contractor.png?v=20260401d'); }
/* New categories: use the closest clean local art until dedicated tile images are generated */
.service-card:has(a[href="remodeling.html"]) { --card-photo: url('assets/ai/category-tiles/remodeling.png?v=20260401d'); }
.service-card:has(a[href="concrete-masonry.html"]) { --card-photo: url('assets/ai/category-tiles/concrete-masonry.png?v=20260401d'); }
.service-card:has(a[href="fencing-decks.html"]) { --card-photo: url('assets/ai/category-tiles/fencing-decks.png?v=20260402l'); }

/* How It Works Section */
.how-it-works {
    padding: 3rem 0;
    background: var(--light-gray);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Directory Preview Section */
.directory-preview {
    padding: 3rem 0;
    background: var(--white);
}

.directory-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pro-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--medium-gray);
}

.pro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pro-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.pro-avatar {
    font-size: 3rem;
    margin-bottom: 10px;
}

.pro-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.pro-service {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.pro-rating {
    font-size: 1.1rem;
    font-weight: 600;
}

.pro-details {
    padding: 20px;
}

.pro-details p {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.pro-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Join Section */
.join {
    padding: 3rem 0;
    background: var(--light-gray);
    text-align: center;
}

.join h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.join p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

.join-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.join-overview-card {
    text-align: left;
}

.join .cta-button,
.join .btn,
.join button,
.join input[type="submit"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.join-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}

.join-pill {
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.95rem;
}

.join-lead {
    text-align: center;
    max-width: 680px;
}

.join-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.join-detail-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    background: #f8fafc;
}

.join-detail-card h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.join-detail-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-light);
}

.join-detail-card li + li {
    margin-top: 8px;
}

.join-cta-stack {
    text-align: center;
    margin-top: 6px;
}

.join-support-copy,
.listing-request-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 12px;
}

.listing-request-form-wrap {
    max-width: 760px;
}

.listing-request-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background:
      linear-gradient(135deg, rgba(68,122,186,0.66) 0%, rgba(85,141,201,0.62) 52%, rgba(106,162,214,0.58) 100%),
      url('assets/hero-whos-your-pro.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    padding: 2rem 0;
    background: var(--white);
    box-shadow: var(--shadow);
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-inline: 14px;
    box-sizing: border-box;
}

.search-box input, .search-box select {
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
    background: var(--white);
    color: var(--text-dark);
    box-sizing: border-box;
}

.search-box select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.search-box button {
    padding: 15px 30px;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 150px;
}

.search-box button:hover {
    transform: translateY(-2px);
    background: #ed8936;
}

.search-box input, .search-box select {
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
    background: var(--white);
    color: var(--text-dark);
    box-sizing: border-box;
}

.search-box select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.search-box button {
    padding: 15px 30px;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.2s;
}

.search-box button:hover {
    transform: translateY(-2px);
    background: #ed8936;
}

@media (max-width: 768px) {
    .search-box {
        width: calc(100% - 28px);
        max-width: 680px;
        padding-inline: 0;
    }

    .search-box input,
    .search-box select,
    .search-box button {
        width: 100%;
        max-width: 100%;
    }
}

/* Categories Section */
.categories {
    padding: 3rem 0;
}

.categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Featured Traders */
.featured {
    padding: 3rem 0;
    background: var(--white);
}

.featured h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.trader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.trader-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.trader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trader-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.trader-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.trader-header p {
    opacity: 0.9;
}

.trader-body {
    padding: 20px;
}

.trader-services {
    margin-bottom: 15px;
}

.trader-services h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.trader-services span {
    display: inline-block;
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.trader-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.trader-footer {
    padding: 15px 20px;
    background: var(--light-gray);
    text-align: center;
}

.trader-footer a {
    display: inline-block;
    background: var(--success-color);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.trader-footer a:hover {
    background: #38a169;
}

/* About Section */
.about {
    padding: 3rem 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: var(--white);
}

.about-image h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
    display: block;
    padding: 4px 0;
}

.footer-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    opacity: 0.8;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animation for hero section */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Plumbing page three-column layout */
.resultsGrid {
    display: grid !important;
    grid-template-columns: 2fr 3fr 2fr !important;
    align-items: start !important;
    gap: 24px !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 24px 32px !important;
}

.leftSpacer {
    /* empty */
}

.companyCard {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

.mapBox {
    width: 100%;
    height: 520px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #eee;
}

/* Mobile responsive */
@media (max-width: 980px) {
    .resultsGrid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 16px !important;
    }
    
    .leftSpacer {
        display: none;
    }
    
    .resultsCol {
        grid-column: 1;
    }
    
    .mapCol {
        grid-column: 1;
    }
}

/* Plumbing page specific styles */
.plumbResultsBreakout{
 width: 100vw;
 max-width: none;
 margin-left: calc(50% - 50vw);
 margin-right: calc(50% - 50vw);
}

.plumbResultsGrid{
 display: grid;
 grid-template-columns: 2fr 3fr 2fr; /* 2/7 blank, 3/7 companies, 2/7 map */
 align-items: start;
 gap: 24px;
 padding: 24px 32px;
 position: relative;
}

.plumbSpacer{
 min-height: 1px;
 position: sticky;
 top: 92px;
 align-self: start;
 display: flex;
 flex-direction: column;
 gap: 14px;
 transition: transform 220ms cubic-bezier(.22,.61,.36,1);
 will-change: transform;
}

.monetization-card {
 background: #ffffff;
 border: 1px solid #e5e7eb;
 border-radius: 12px;
 padding: 14px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.06);
 animation: railCardIn 220ms ease;
}

.sponsor-slot-card {
 border-style: dashed;
}

.sponsor-slot-card-live {
 overflow: hidden;
}

.monetization-card-image-wrap {
 margin: -14px -14px 12px;
 border-radius: 12px 12px 0 0;
 overflow: hidden;
 background: #e2e8f0;
}

.monetization-card-image {
 display: block;
 width: 100%;
 aspect-ratio: 16 / 9;
 object-fit: cover;
}

.sponsor-slot-empty {
 background: #f8fafc;
}

.coupon-node-card {
 border-color: #fde68a;
 background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.diy-node-card {
 border-color: #bbf7d0;
 background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.mobile-offer-chip-row {
 display: none;
 flex-wrap: wrap;
 gap: 6px;
 margin: 0 0 6px;
}

.mobile-offer-chip {
 display: inline-flex;
 align-items: center;
 padding: 4px 8px;
 border-radius: 999px;
 font-size: 11px;
 font-weight: 700;
 background: #eef2ff;
 border: 1px solid #c7d2fe;
 color: #1e3a8a;
}

.mobile-monetization-dock {
 display: none;
}

.monetization-card-featured {
 background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
 border-color: #bfdbfe;
}

.monetization-kicker {
 margin: 0 0 6px;
 color: #1e3a8a;
 font-size: 12px;
 font-weight: 800;
 letter-spacing: 0.04em;
 text-transform: uppercase;
}

.monetization-card h3 {
 margin: 0 0 6px;
 font-size: 16px;
 color: #0f172a;
}

.monetization-card p {
 margin: 0;
 color: #334155;
 font-size: 14px;
 line-height: 1.4;
}

.monetization-cta,
.monetization-link {
 display: inline-block;
 margin-top: 10px;
 font-weight: 700;
 text-decoration: none;
}

.monetization-cta {
 padding: 8px 12px;
 border-radius: 10px;
 color: #ffffff;
 background: #1d4ed8;
}

.monetization-cta:hover {
 background: #1e40af;
}

.monetization-link {
 color: #1d4ed8;
}

.creative-image-preview {
 margin-top: 10px;
 border: 1px solid #dbeafe;
 background: #f8fbff;
 border-radius: 12px;
 padding: 10px;
}

.creative-image-preview img {
 display: block;
 width: 100%;
 max-width: 320px;
 aspect-ratio: 16 / 9;
 object-fit: cover;
 border-radius: 10px;
 background: #e2e8f0;
}

.creative-image-preview p {
 margin: 8px 0 0;
 font-size: 12px;
 color: #475569;
 word-break: break-all;
}

.admin-creative-preview {
 margin-top: 8px;
}

.admin-creative-preview img {
 display: block;
 width: 100%;
 max-width: 220px;
 aspect-ratio: 16 / 9;
 object-fit: cover;
 border-radius: 10px;
 border: 1px solid #dbeafe;
 background: #e2e8f0;
}

.secure-intake-page {
    max-width: 1180px;
    width: 100%;
    margin: 110px auto 40px;
    padding: 0 16px;
}

.secure-intake-page-narrow {
    max-width: 900px;
}

.secure-intake-hero {
    margin-bottom: 24px;
}

.secure-intake-hero-copy {
    max-width: 780px;
}

.secure-intake-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 700;
}

.secure-intake-page h1 {
    margin-bottom: 12px;
}

.secure-intake-page p {
    color: #475569;
    line-height: 1.65;
}

.secure-intake-grid {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.secure-intake-info-stack {
    display: grid;
    gap: 18px;
}

.secure-intake-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.secure-intake-card-muted {
    background: #f8fafc;
}

.secure-intake-card-soft {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.secure-intake-card h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: #0f172a;
}

.secure-intake-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #475569;
}

.secure-intake-list li {
    margin: 0;
    padding-left: 0.15rem;
    line-height: 1.6;
}

.secure-intake-list li + li {
    margin-top: 10px;
}

.secure-intake-link-row {
    margin: 14px 0 0;
}

.secure-intake-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.secure-intake-steps li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    line-height: 1;
}

.secure-intake-form-shell {
    padding: 0;
    overflow: hidden;
}

.secure-intake-form-head {
    padding: 24px 24px 0;
}

.secure-intake-form-head h2 {
    margin-bottom: 8px;
}

.secure-intake-form {
    padding: 20px 24px 24px;
}

.secure-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.secure-field {
    display: grid;
    gap: 8px;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
}

.secure-field-full {
    grid-column: 1 / -1;
}

.secure-field input,
.secure-field select,
.secure-field textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
    color: #0f172a;
    box-sizing: border-box;
}

.secure-field textarea {
    resize: vertical;
    min-height: 120px;
}

.secure-field input:focus,
.secure-field select:focus,
.secure-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.secure-consent-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #334155;
    line-height: 1.55;
}

.secure-consent-row input {
    margin-top: 3px;
}

.secure-submit-row {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.secure-submit-btn {
    border: 0;
    cursor: pointer;
    padding: 12px 18px;
}

.secure-status {
    font-weight: 700;
    color: #334155;
}

@media (max-width: 900px) {
    .secure-intake-page {
        padding: 0 14px;
    }

    .secure-intake-grid {
        grid-template-columns: 1fr;
    }

    .secure-field-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes railCardIn {
 from { opacity: 0; transform: translateY(6px); }
 to { opacity: 1; transform: translateY(0); }
}

.rail-connector-layer {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 pointer-events: none;
 z-index: 3;
 overflow: visible;
}

.rail-connector-path {
 fill: none;
 stroke: rgba(59, 130, 246, 0.62);
 stroke-width: 3.6;
 stroke-linecap: round;
 stroke-dasharray: 7 8;
 animation: railConnectorFlow 2.2s linear infinite;
}

.rail-connector-node {
 fill: #3b82f6;
 opacity: 0.95;
}

.rail-connector-node.target {
 fill: #ef4444;
}

.company-linked-to-sponsor {
 border-color: #93c5fd;
 box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14), 0 3px 12px rgba(0,0,0,0.08);
}

@keyframes railConnectorFlow {
 to {
  stroke-dashoffset: -52;
 }
}

.plumbSectionTitle{
 margin: 0 0 12px 0;
 font-weight: 700;
}

.plumbResultsToolbar{
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 margin: 0 0 12px 0;
 flex-wrap: wrap;
}

.plumbHomeLink{
 color: #1d4ed8;
 text-decoration: none;
 font-weight: 700;
 padding: 6px 10px;
 border-radius: 8px;
 background: #eff6ff;
 border: 1px solid #bfdbfe;
}

.plumbSortWrap{
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-size: 14px;
 color: #334155;
}

.plumbSortSelect{
 min-height: 44px;
 border-radius: 8px;
 border: 1px solid #cbd5e1;
 background: #fff;
 padding: 6px 10px;
}

.plumbCardsList{ display: flex; flex-direction: column; gap: 16px; }

.distanceBandLabel {
 background: #eef2ff;
 border: 1px solid #c7d2fe;
 border-radius: 10px;
 padding: 10px 12px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
}

.distanceBandLabel .distanceBandTitle {
 font-weight: 800;
 color: #1e3a8a;
}

.distanceBandLabel .distanceBandNote {
 font-size: 13px;
 color: #334155;
}

.distanceBandLabel-close {
 background: #ecfdf3;
 border-color: #86efac;
}

.distanceBandLabel-close .distanceBandTitle {
 color: #166534;
}

.distanceBandLabel-close .distanceBandNote {
 color: #14532d;
}

.distanceBandLabel-mid {
 background: #eff6ff;
 border-color: #bfdbfe;
}

.distanceBandLabel-far {
 background: #fff7ed;
 border-color: #fed7aa;
}

.distanceBandLabel-far .distanceBandTitle {
 color: #92400e;
}

.distanceBandLabel-far .distanceBandNote {
 color: #7c2d12;
}

.distanceBandLabel-unknown {
 background: #f8fafc;
 border-color: #e2e8f0;
}

.plumbCompanyCard{
 background: #fff;
 border: 1px solid #e5e7eb;
 border-radius: 12px;
 padding: 16px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.06);
 cursor: pointer;
 transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
 scroll-margin-top: 96px;
 touch-action: manipulation;
}

.plumbCompanyCard:hover {
 border-color: #93c5fd;
 box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

.plumbCompanyCardSelected {
 border-color: #ef4444 !important;
 background: #fff5f5 !important;
 box-shadow: none !important;
 outline: none !important;
}

.plumbCompanyName{ font-weight: 800; margin-bottom: 6px; }
.plumbMeta{ font-size: 14px; margin-top: 4px; }
.plumbLink{ color: #1d4ed8; text-decoration: underline; }

.phone-actions-row {
 display: flex;
 align-items: center;
 gap: 8px;
 flex-wrap: wrap;
}

.phone-call-link {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 4px 10px;
 border: 1px solid #bfdbfe;
 border-radius: 999px;
 background: #eff6ff;
 color: #1e40af;
 text-decoration: none;
 font-weight: 700;
 line-height: 1.2;
 transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.phone-call-link::before {
 content: '📞';
 font-size: 12px;
 line-height: 1;
}

.phone-call-link:hover {
 background: #dbeafe;
 border-color: #93c5fd;
 text-decoration: none;
}

.phone-call-link:active {
 transform: translateY(1px);
}

.phone-call-link:focus-visible {
 outline: 2px solid #1d4ed8;
 outline-offset: 2px;
}

.address-actions-row {
 display: flex;
 align-items: center;
 gap: 8px;
 flex-wrap: wrap;
}

.address-action-link {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 4px 10px;
 border-radius: 999px;
 border: 1px solid #d1d5db;
 background: #f8fafc;
 color: #334155;
 font-size: 12px;
 font-weight: 700;
 text-decoration: none;
 line-height: 1.2;
}


.address-action-link:hover {
 background: #eef2f7;
 border-color: #cbd5e1;
 text-decoration: none;
}

.website-link {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 4px 10px;
 border-radius: 999px;
 border: 1px solid #cbd5e1;
 background: #f8fafc;
 color: #1e3a8a;
 font-size: 12px;
 font-weight: 700;
 text-decoration: none;
 white-space: nowrap;
}

.website-link:hover {
 background: #eef2ff;
 border-color: #93c5fd;
 text-decoration: none;
}

.plumbActionRow {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 10px;
 margin-top: 6px;
}

.plumbDistanceMeta {
 margin-top: 0;
 margin-right: auto;
}

.view-on-map-btn {
 display: inline-flex;
 align-items: center;
 gap: 4px;
 margin-top: 0;
 padding: 6px 10px;
 border: 1px solid #bfdbfe;
 border-radius: 999px;
 background: #eff6ff;
 color: #1e40af;
 font-size: 12px;
 font-weight: 700;
 line-height: 1;
 cursor: pointer;
 white-space: nowrap;
 transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.view-on-map-btn:hover {
 background: #dbeafe;
 border-color: #93c5fd;
}

.view-on-map-btn.is-selected {
 background: #fee2e2;
 border-color: #fca5a5;
 color: #991b1b;
}

.view-on-map-btn:active {
 transform: translateY(1px);
}


.map-popup-select {
 appearance: none;
 -webkit-appearance: none;
 border: 0;
 background: transparent;
 padding: 0;
 margin: 0;
 text-align: left;
 color: inherit;
 font: inherit;
 cursor: pointer;
}

.map-popup-select strong {
 color: #1e3a8a;
}

.map-selected-tile-slot {
 display: none;
 margin: 10px 0;
}

.map-selected-tile-slot.active {
 display: block;
}

.map-selected-tile-card {
 border-color: #93c5fd;
 background: #f8fbff;
}

.map-slot-variant {
 display: grid;
 gap: 12px;
}

.map-slot-premium-card {
 border: 1px solid #c7d2fe;
 background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
 border-radius: 14px;
 padding: 16px;
 box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08);
}

.map-slot-premium-card h3 {
 margin: 0 0 8px;
 color: #1e3a8a;
 font-size: 1.05rem;
}

.map-slot-premium-card p {
 margin: 0 0 10px;
 color: #334155;
}

.map-slot-kicker {
 margin: 0 0 8px;
 font-size: 11px;
 font-weight: 800;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: #4338ca;
}

.map-slot-premium-pills {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 margin: 10px 0 14px;
}

.map-slot-premium-pills span,
.map-slot-feature-list li {
 font-size: 12px;
 color: #1e3a8a;
 background: rgba(255,255,255,0.8);
 border: 1px solid #dbeafe;
 border-radius: 999px;
 padding: 6px 10px;
 list-style: none;
}

.map-slot-feature-list {
 display: flex;
 flex-direction: column;
 gap: 8px;
 padding: 0;
 margin: 12px 0 16px;
}

.map-slot-premium-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
}

.map-slot-premium-cta,
.map-slot-secondary-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 42px;
 border-radius: 10px;
 padding: 0 14px;
 font-weight: 800;
 text-decoration: none;
}

.map-slot-premium-cta {
 background: #1d4ed8;
 color: #fff;
 border: 1px solid #1d4ed8;
}

.map-slot-secondary-btn {
 background: #fff;
 color: #1e3a8a;
 border: 1px solid #bfdbfe;
 cursor: pointer;
}

.map-slot-context-block {
 display: grid;
 gap: 8px;
}

.map-selected-label {
 margin: 0 0 6px;
 font-size: 12px;
 font-weight: 700;
 color: #1e40af;
 text-transform: uppercase;
 letter-spacing: 0.04em;
}

.plumbMapCol{
 position: sticky;
 top: 92px;
 align-self: start;
}

.plumbMapBox{
 width: 100%;
 height: 520px;
 border-radius: 12px;
 border: 1px solid #e5e7eb;
 background: #eee;
}

.plumbEmpty{ padding: 16px; color: #444; }

.open24-filter-toggle {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 align-self: flex-start;
 min-height: 46px;
 margin-top: 0;
 padding: 0 16px;
 border-radius: 10px;
 border: 1px solid #fca5a5;
 background: #fff5f5;
 color: #991b1b;
 font-weight: 700;
 font-size: 0.98rem;
 line-height: 1;
 box-shadow: 0 2px 10px rgba(0,0,0,0.06);
 cursor: pointer;
 transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
}

.open24-filter-toggle:hover {
 background: #fee2e2;
 border-color: #f87171;
}

.open24-filter-toggle.is-active {
 background: #dc2626;
 border-color: #991b1b;
 color: #ffffff;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18), 0 8px 20px rgba(127, 29, 29, 0.22);
}

.open24-filter-toggle.is-active:hover,
.open24-filter-toggle.is-active:focus,
.open24-filter-toggle.is-active:focus-visible,
.open24-filter-toggle.is-active:active {
 background: #dc2626;
 border-color: #991b1b;
 color: #ffffff;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18), 0 8px 20px rgba(127, 29, 29, 0.22);
 outline: none;
}

.open24-filter-toggle:active {
 transform: translateY(1px);
}

@media (max-width: 980px){
 .plumbResultsGrid{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
 }
 .open24-filter-toggle{
  width: 100%;
  margin-top: 12px;
  min-height: 46px;
  justify-content: center;
  font-size: 0.98rem;
 }
 .plumbSpacer{ display: none; }
 .plumbResultsCol{ order: 1; }
 .plumbMapCol{
  order: 2;
  position: static;
  top: auto;
 }
 .plumbMapBox{
  height: min(52vh, 460px);
  touch-action: none;
  overscroll-behavior: contain;
 }
 .plumbMapBox .leaflet-container,
 #plumbMap.leaflet-container{
  touch-action: none;
  overscroll-behavior: contain;
 }
 .rail-connector-layer{
  display: none;
 }
 .mobile-offer-chip-row{ display: flex; }
 .mobile-monetization-dock{
  display: block;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1200;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
 }
 .mobile-monetization-dock.is-hidden{
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
 }
 .mobile-monetization-pill{
  pointer-events: auto;
  width: 100%;
  min-height: 44px;
  border: 1px solid #c7d2fe;
  background: #1e3a8a;
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
 }
 .mobile-monetization-sheet{
  pointer-events: auto;
  margin-top: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
 }
 .mobile-monetization-sheet.open{
  max-height: 48vh;
 }
 .mobile-sheet-header{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
 }
 .mobile-sheet-close{
  border:0;
  background: transparent;
  font-size: 18px;
 }
 .mobile-sheet-tabs{
  display:flex;
  gap:8px;
  padding:8px 12px;
 }
 .mobile-sheet-tabs button{
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#f8fafc;
  padding:6px 10px;
  font-weight:700;
 }
 .mobile-sheet-tabs button.active{
  background:#dbeafe;
  border-color:#93c5fd;
  color:#1e3a8a;
 }
 .mobile-sheet-content{
  padding: 0 12px 12px;
  overflow:auto;
  max-height: calc(48vh - 92px);
 }
 .mobile-sheet-item{
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:10px;
  margin-top:8px;
 }
 .mobile-sheet-item h4{
  margin:0 0 4px;
  font-size:14px;
 }
 .mobile-sheet-item p{
  margin:0;
  font-size:12px;
  color:#334155;
 }
 .mobile-sheet-item a{
  display:inline-block;
  margin-top:8px;
  font-size:12px;
  font-weight:700;
 }
 .mobile-sheet-kicker{
  font-size:10px;
  font-weight:800;
  color:#1e40af;
  letter-spacing:0.04em;
 }
 .mobile-sheet-empty{
  margin:12px 0;
  color:#475569;
  font-size:13px;
 }
}
/* Keep title + stars on one line with stars right-aligned */
.plumbCompanyName,
.company-card h3 {
    font-weight: 800;
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 8px;
}

.plumbCompanyName,
.company-card h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.plumbCompanyName .company-rating,
.company-card .company-rating {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    align-self: start;
    justify-self: end;
    white-space: nowrap;
    font-size: 1.2rem;
}

.plumbCompanyName > :not(.company-rating):first-child,
.company-card h3 > :not(.company-rating):first-child {
    min-width: 0;
}

.plumbCompanyName .company-rating,
.company-card .company-rating {
    min-width: max-content;
    max-width: 100%;
}

/* Ensure generic company cards match plumbing styling */
.company-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.company-card p {
    font-size: 14px;
    margin-top: 4px;
}

.company-card a {
    color: #1d4ed8;
    text-decoration: underline;
}

.company-card a.phone-call-link,
.plumbCompanyCard a.phone-call-link {
    color: #1e40af;
    text-decoration: none;
}

.company-card .star,
.plumbCompanyCard .star {
    color: #f6ad55;
    font-size: 1.2rem;
    margin-left: 2px;
    display: inline-block;
}

/* Precise fractional star fill with dual-layer glyphs */
.company-card .star.precise,
.plumbCompanyCard .star.precise {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 2px;
    vertical-align: -0.05em;
}

.company-card .star.precise .star-base,
.plumbCompanyCard .star.precise .star-base {
    color: #666;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
}

.company-card .star.precise .star-fill,
.plumbCompanyCard .star.precise .star-fill {
    color: #f6ad55;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.company-card .rating-number,
.plumbCompanyCard .rating-number {
    color: #333;
    font-size: 1rem;
    margin-right: 6px;
}

.company-card .review-count,
.plumbCompanyCard .review-count {
    color: #333;
    font-size: 0.95rem;
    margin-left: 6px;
}

.rating-trigger {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    touch-action: manipulation;
}

.review-hover-popover {
    position: absolute;
    z-index: 9999;
    width: min(420px, calc(100vw - 24px));
    max-height: 420px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.review-hover-content {
    padding: 12px;
}

.review-hover-header {
    font-weight: 700;
    margin-bottom: 8px;
}

.review-items {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 6px;
}

.review-item {
    border-top: 1px solid #eee;
    padding: 8px 0;
}

.review-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.review-item-meta {
    font-size: 0.82rem;
    color: #444;
    margin-bottom: 4px;
}

.review-item-text {
    font-size: 0.92rem;
    line-height: 1.35;
    color: #111;
}

.review-hover-empty,
.review-hover-loading {
    color: #444;
    font-size: 0.92rem;
}

.review-hover-empty .muted {
    color: #666;
}

.review-google-link {
    margin-top: 8px;
}

.radius-label {
    background: transparent;
    border: 0;
}

.radius-label span {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    color: #fff;
}

.radius-label-10 span {
    background: #16a34a;
}

.radius-label-25 span {
    background: #2563eb;
}

.radius-label-50 span {
    background: #f59e0b;
}

.radius-label-100 span {
    background: #dc2626;
}
