/*
Theme Name: RustFax Child
Theme URI: https://rustfax.com/
Description: Divi 5 child theme for the RustFax participating shop locator.
Author: RustFax
Template: Divi
Version: 1.0.0
Text Domain: rustfax-child
*/
:root{--rf-ink:#202830;--rf-muted:#56616b;--rf-line:#dfe4e8;--rf-surface:#f6f8f9;--rf-accent:#c45132;}
/* Starter styling only: update these colors to match approved RustFax brand assets. */
.rf-locator-intro{max-width:960px;margin-inline:auto;text-align:center;}
.rf-locator-intro h1{line-height:1.15;}
.rf-locator-wrap{max-width:1280px;margin-inline:auto;}
.rf-locator-wrap :is(input[type="text"],input[type="search"],select){max-width:100%;}
.rf-shop-cta{background:var(--rf-surface);border:1px solid var(--rf-line);border-radius:12px;padding:clamp(20px,4vw,44px);}
.rf-shop-cta a.et_pb_button{white-space:normal;}
@media(max-width:767px){.rf-locator-intro{text-align:left;}.rf-locator-wrap{width:100%;}.rf-shop-cta{padding:20px;}}


/* RustFax custom fonts */

@font-face {
    font-family: "RustFax Plex";
    src: url("fonts/ibm-plex-sans-latin-variable.woff2")
         format("woff2");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: "RustFax Overpass";
    src: url("fonts/overpass-latin-variable.woff2")
         format("woff2");
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
}


/* RustFax official color palette */

:root {
    --rf-ink: #101113;
    --rf-ink-soft: #16181a;
    --rf-ink-softer: #1c1f22;

    --rf-line: #2a2d31;
    --rf-field: #6a6f78;

    --rf-brass: #b08848;
    --rf-brass-bright: #c8a868;
    --rf-brass-dim: #6f5836;

    --rf-text: #e6e6e6;
    --rf-muted: #8a8d90;

    --rf-sage: #6a9a5f;
    --rf-rust: #c2643f;
}


/* RustFax default typography and page styling */

body {
    background-color: var(--rf-ink);
    color: var(--rf-text);
    font-family: "RustFax Plex", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--rf-text);
    font-family: "RustFax Plex", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

/* Vehicle data and special headings */

.rf-overpass {
    font-family: "RustFax Overpass", Arial, sans-serif;
}

/* Standard links */

a {
    color: var(--rf-brass);
}

a:hover {
    color: var(--rf-brass-bright);
}

/* Keep the request button visible */
#rustfax-request-button {
    display: block;
}

/* Hide the form until the button is clicked */
#rustfax-request-form {
    display: none;
}

#rustfax-request-form.rustfax-form-open {
    display: block;
}

/* RustFax no-results message */
#asl-no-item-found .sl-no-item {
    padding: 28px 24px;
    text-align: center;
}

#asl-no-item-found .sl-no-item p {
    color: #E6E6E6;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    white-space: normal;
}
/* RustFax: readable empty-results panel */
#asl-no-item-found {
    background: #16181A;
}

#asl-no-item-found .white {
    background: #16181A;
}

#asl-no-item-found .sl-no-item p {
    color: #E6E6E6;
}
/* RustFax: dark background for the shop results panel */
.sl-main-cont-box {
    background-color: #16181A !important;
}

/* RustFax: dark shop-results panel */
.asl-panel-inner {
    background: #16181A !important;
}

/* Hide the no-results options until ASL reports zero shops */
#rustfax-no-results-options {
    display: none;
}

/* When zero shops are found, show the options section */
#rustfax-no-results-options.rustfax-options-visible {
    display: block;
}

/* Keep both forms closed until their buttons are clicked */
#rustfax-notify-form,
#rustfax-recommend-form {
    display: none;
}

#rustfax-notify-form.rustfax-form-open,
#rustfax-recommend-form.rustfax-form-open {
    display: flex;
}

/* Hide the entire no-results section by default */
#rustfax-no-results-options {
    display: none !important;
}

/* Reveal it when the locator reports zero shops */
#rustfax-no-results-options.rustfax-options-visible {
    display: block !important;
}

/* Center the no-results section content */
#rustfax-no-results-options .et_pb_row {
    width: 90%;
    max-width: 1080px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center the heading and introductory text */
#rustfax-no-results-options .et_pb_heading,
#rustfax-no-results-options .et_pb_text {
    text-align: center;
}


/* =====================================================
   RUSTFAX STORE LOCATOR - SHOP CARDS
   ===================================================== */

#asl-list .rustfax-shop-card {
    background: #16181A;
}

#asl-list .rustfax-card-inner {
    padding: 26px 28px;
}


/* Header */

#asl-list .rustfax-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

#asl-list .rustfax-shop-info {
    flex: 1;
    min-width: 0;
}

#asl-list .rustfax-shop-name {
    color: #E6E6E6;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 18px;
}


/* Contact information */

#asl-list .rustfax-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#asl-list .rustfax-contact-list li {
    margin-bottom: 12px;
}

#asl-list .rustfax-contact-list a,
#asl-list .rustfax-contact-list span {
    color: #E6E6E6;
}

#asl-list .rustfax-contact-list i {
    color: #B08848;
}


/* Logo */

#asl-list .rustfax-shop-logo {
    flex: 0 0 135px;
    width: 135px;
    padding: 10px;
    background: #F5F5F5;
    border-radius: 10px;
    text-align: center;
}

#asl-list .rustfax-shop-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}


/* Field labels */

#asl-list .rustfax-field-label {
    color: #B08848;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}


/* Services */

#asl-list .rustfax-services {
    margin-top: 22px;
}

#asl-list .rustfax-services .inner-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}


/* Service Area */

#asl-list .rustfax-service-area {
    margin-top: 18px;
    color: #E6E6E6;
}

#asl-list .rustfax-service-area .rustfax-field-label {
    margin-right: 7px;
}


/* Description */

#asl-list .rustfax-description {
    margin-top: 18px;
    color: #E6E6E6;
}

#asl-list .rustfax-description p {
    margin-bottom: 0;
}


/* Buttons */

#asl-list .rustfax-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 12px !important;
    width: 100%;
}

/* Tighten RustFax card spacing */
#asl-list .rustfax-services {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
}

#asl-list .rustfax-services .inner-cat-list {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#asl-list .rustfax-description {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

#asl-list .rustfax-description:empty {
    display: none !important;
}

#asl-list .rustfax-actions .btn {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 12px 18px !important;

    box-sizing: border-box;
    text-align: center;
}


/* Distance */

#asl-list .rustfax-distance {
    margin-top: 14px;
    color: #8A8D90;
    font-size: 14px;
}


/* Mobile */

@media (max-width: 600px) {

    #asl-list .rustfax-card-inner {
        padding: 22px 20px;
    }

    #asl-list .rustfax-shop-header {
        gap: 15px;
    }

    #asl-list .rustfax-shop-logo {
        flex-basis: 90px;
        width: 90px;
        padding: 7px;
    }

    #asl-list .rustfax-shop-logo img {
        max-height: 85px;
    }

    #asl-list .rustfax-shop-name {
        font-size: 20px;
    }

    #asl-list .rustfax-actions {
        flex-direction: column;
    }

    #asl-list .rustfax-actions .btn {
        width: 100% !important;
    }
}

/* RustFax shop logo - force controlled size */
#asl-list .rustfax-shop-logo {
    flex: 0 0 120px !important;
    width: 120px !important;
    max-width: 120px !important;
    height: 120px !important;
    padding: 8px !important;
    overflow: hidden !important;
    box-sizing: border-box;
    background: #f5f5f5;
    border-radius: 10px;
}

#asl-list .rustfax-shop-logo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
}

/* =========================================
   RustFax contact rows
   Keep icon beside the contact information
   ========================================= */

#asl-list .rustfax-contact-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

#asl-list .rustfax-contact-list li i {
    flex: 0 0 22px !important;
    width: 22px !important;
    margin: 3px 0 0 0 !important;
    text-align: center;
}

#asl-list .rustfax-contact-list li a,
#asl-list .rustfax-contact-list li span {
    flex: 1;
    margin: 0 !important;
}


/* =========================================
   RustFax card vertical spacing
   ========================================= */

#asl-list .rustfax-card-inner {
    min-height: 0 !important;
    height: auto !important;
}

#asl-list .rustfax-actions {
    margin-top: 28px !important;
}

/* Final RustFax card spacing */

#asl-list .rustfax-services {
    margin-top: 10px !important;
}

#asl-list .rustfax-services .inner-cat-list {
    margin-top: 4px !important;
}

#asl-list .rustfax-actions {
    margin-top: 10px !important;
}

#asl-list .rustfax-contact-list li {
    margin-bottom: 8px !important;
}

#asl-list .rustfax-card-inner {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

#asl-list .rustfax-service-area-value {
    margin-top: 4px;
    color: #E6E6E6;
}

/* =========================================
   RustFax selected / highlighted shop
   ========================================= */

#asl-list .rustfax-shop-card.highlighted {
    background: #202327 !important;
    border-left: 5px solid #B08848 !important;
}

/* Make sure ASL doesn't wash out the selected card */
#asl-list .rustfax-shop-card.highlighted .rustfax-card-inner {
    background: #202327 !important;
}

/* Preserve RustFax text colors when selected */
#asl-list .rustfax-shop-card.highlighted .rustfax-shop-name,
#asl-list .rustfax-shop-card.highlighted .rustfax-contact-list a,
#asl-list .rustfax-shop-card.highlighted .rustfax-contact-list span,
#asl-list .rustfax-shop-card.highlighted .rustfax-service-area-value,
#asl-list .rustfax-shop-card.highlighted .asl-category-tag {
    color: #E6E6E6 !important;
}

/* Preserve brass labels/icons */
#asl-list .rustfax-shop-card.highlighted .rustfax-field-label,
#asl-list .rustfax-shop-card.highlighted .rustfax-contact-list i {
    color: #B08848 !important;
}

/* Hide ASL's Zoom action in the map infobox */
.asl-map .zoomhere {
    display: none !important;
}

/* RustFax booking action in map infobox */
.asl-map .rustfax-infobox-booking {
    display: inline-block;
}

//* RustFax map infobox action row */
.asl-map .asl-buttons.asl-btn-full {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
}

/* Hide Zoom */
.asl-map .asl-buttons .zoomhere {
    display: none !important;
}

/* Three compact action buttons */
.asl-map .asl-buttons .action {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 4px !important;
    padding: 8px 11px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
}