/* ============================================================
   installers.css
   Styles specific to the JMC Secure CCTV installer directory.
   Used only by /cctv-installers.asp and /cctv-installer-profile.asp
   ============================================================ */


/* ===== SHARED ELEMENTS ===== */

.installer-area-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #444;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 3px;
    margin: 2px 3px 2px 0;
    line-height: 1.4;
    white-space: nowrap;
}

.installer-verified-badge {
    display: inline-block;
    background: #fdf2e8;
    color: #c54e00;
    border: 1px solid #f5c79b;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 9px;
    margin-top: 8px;
}

.installer-verified-badge::before {
    content: "\2713";
    margin-right: 5px;
    color: #f17f00;
    font-weight: 700;
}

.installer-section-h {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f17f00;
    display: inline-block;
}


/* ===== HUB PAGE: SEARCH HERO ===== */

.installer-search-hero {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 28px 22px;
    margin-bottom: 5px;
}

.installer-search-hero h1 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #333;
    line-height: 1.2;
}

.installer-search-hero p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
}

.installer-search-form {
    display: flex;
    max-width: 540px;
}

.installer-search-form input[type=text] {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-right: 0;
    border-radius: 3px 0 0 3px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.installer-search-form input[type=text]:focus {
    border-color: #f17f00;
}

.installer-search-form button {
    padding: 11px 22px;
    background: #f17f00;
    color: #fff;
    border: 1px solid #f17f00;
    border-radius: 0 3px 3px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.installer-search-form button:hover {
    background: #d56e00;
    border-color: #d56e00;
}


/* ===== HUB PAGE: COUNTY TILES ===== */

.installer-county-tile {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 18px 14px;
    text-align: center;
    margin-bottom: 12px;
    color: #333;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.installer-county-tile:hover,
.installer-county-tile:focus {
    border-color: #f17f00;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #333;
}

.installer-county-tile .county-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: #185fa5;
}

.installer-county-tile .county-count {
    font-size: 12px;
    color: #888;
    margin: 0;
}


/* ===== HUB PAGE: RESULTS ===== */

.installer-results-header {
    color: #444;
    font-size: 14px;
    margin: 25px 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.installer-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 18px 20px;
    margin-bottom: 12px;
    position: relative;
}

.installer-card-featured {
    border: 2px solid #f17f00;
    padding: 17px 19px;
}

.installer-featured-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background: #f17f00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 2px;
}

.installer-card-name {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.installer-card-name a {
    color: #185fa5;
    text-decoration: none;
}

.installer-card-name a:hover {
    text-decoration: underline;
}

.installer-card-meta {
    font-size: 13px;
    color: #777;
    margin: 0 0 9px 0;
}

.installer-card-phone {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    white-space: nowrap;
}

.installer-card-action {
    font-size: 13px;
    font-weight: 600;
    color: #185fa5;
    text-decoration: none;
    white-space: nowrap;
}

.installer-card-action:hover {
    text-decoration: underline;
}

.installer-empty {
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 4px;
    padding: 35px 20px;
    text-align: center;
    color: #777;
}

.installer-empty p {
    margin: 0 0 6px 0;
}


/* ===== PROFILE PAGE ===== */

.installer-profile-hero {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 22px;
    margin-bottom: 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.installer-profile-logo {
    width: 84px;
    height: 84px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    letter-spacing: 1px;
}

.installer-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.installer-profile-text {
    flex: 1;
    min-width: 0;
}

.installer-profile-name {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.25;
}

.installer-profile-location {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.installer-about-text {
    font-size: 14px;
    line-height: 1.65;
    color: #444;
    white-space: pre-line;
}

.installer-contact-card {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 4px 18px;
}

.installer-contact-row {
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
}

.installer-contact-row:last-child {
    border-bottom: 0;
}

.installer-contact-row .label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.installer-contact-row .value {
    font-size: 14px;
    color: #333;
    word-break: break-word;
    line-height: 1.5;
}

.installer-contact-row .value a {
    color: #185fa5;
    text-decoration: none;
}

.installer-contact-row .value a:hover {
    text-decoration: underline;
}

.installer-contact-row .value.phone {
    font-size: 18px;
    font-weight: 600;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 767px) {
    .installer-profile-hero {
        flex-direction: column;
        text-align: center;
    }
    .installer-profile-logo {
        margin: 0 auto;
    }
    .installer-search-hero {
        padding: 22px 16px;
    }
    .installer-search-hero h1 {
        font-size: 20px;
    }
    .installer-card-phone,
    .installer-card-action {
        text-align: left !important;
    }
    .installer-card .text-right {
        text-align: left !important;
        margin-top: 10px;
    }
}
