/*
 Theme Name:   Hello Elementor Child
 Description:  Child theme for the Hello Elementor theme
 Author:       Orpical Technology Solutions
 Template:     campbells
 Version:      1.0.0
*/

/* 
========================================
Resets 
========================================
*/
html, body{
    overflow-x: hidden;
}
.playfair-skew h1, .playfair-skew h2, .playfair-skew h3, .playfair-skew h4, .playfair-skew h5, .playfair-skew h6{
    font-style: normal !important; /* Force it to NOT use the italic file */
    display: inline-block; /* Required for transform to work */
    transform: skewX(-12deg); /* Manually slants the regular font */
}

/* 
========================================
Common Colors 
========================================
*/
:root {
    /* Brand Colors */
    --primary-red: #b80018;       /* rgb(184, 0, 24) - Main Action */
    --accent-orange: #ffae00;    /* rgb(255, 174, 0) - Highlights */
    --primary-red-pf: #7a0016;
    --primary-blue: #1b2467;
    --primary-lightblue-cs: #bde6f5;
    --primary-purple: #800a57;
    --primary-lightpurple: #aa4e9e;
    --primary-yellow-cs: #ffad00;
    
    /* Neutrals & UI */
    --bg-dark: #141414;          /* rgb(20, 20, 20) - Deep Background */
    --text-main: #ffffff;        /* rgb(255, 255, 255) */
    --text-muted: #6b7280;       /* rgb(107, 114, 128) - Secondary Text */
    --surface-light: #f3f4f6;    /* rgb(243, 244, 246) - Light Grays */

    /* Overlays & Transparencies (Common in Lovable/Tailwind) */
    --glass-white: rgba(255, 255, 255, 0.9);
    --glass-dark: rgba(20, 20, 20, 0.7);
    --red-glow: rgba(184, 0, 24, 0.2);
}

/* 
========================================
Common Text Assignments 
========================================
*/
.font-bold{
    font-weight: 700;
}
.text-2xl{
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-lg{
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.text-sm{
    font-size: .875rem;
    line-height: 1.25rem;
}
.italic{
    font-style: italic;
}

/* 
========================================
Sticky Header Styles 
========================================
*/

/* Initial State: White text on the transparent/hero background */
.main-nav-header .logo-text,
.main-nav-header .logo-text a {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.4s ease-in-out;
}

.main-nav-header .logo-text:hover, .main-nav-header .logo-text:hover a{
    color: var(--accent-orange) !important;
}

.page-template-template-route-finder .main-nav-header.sl .logo-text a{
    color: var(--primary-blue) !important;
}

.page-template-template-route-finder .main-nav-header.cs .logo-text a{
    color: var(--primary-purple) !important;
}

.main-nav-header .logo-text:hover, .main-nav-header .sl.logo-text:hover a{
    color: var(--primary-lightblue-cs) !important;
}

/* Scrolled State: Brand Red text on the white background */
.main-nav-header.elementor-sticky--effects .logo-text,
.main-nav-header.elementor-sticky--effects .logo-text a {
    color: var(--primary-red) !important; 
}

.main-nav-header.elementor-sticky--effects .sl.logo-text a {
    color: var(--primary-blue) !important; 
}

.main-nav-header.elementor-sticky--effects .cs.logo-text a {
    color: var(--primary-purple) !important; 
}

.main-nav-header.elementor-sticky--effects .logo-text:hover,
.main-nav-header.elementor-sticky--effects .logo-text:hover a {
    color: var(--bg-dark) !important; 
}

/* Pepperidge Farm */
.main-nav-header.elementor-sticky--effects.pf #find-your-route:hover {
    background-color: var(--primary-red-pf) !important; 
    color: var(--text-main) !important;
    border-color: var(--primary-red-pf);
}

/* Snyder's-Lance Farm */
.main-nav-header.elementor-sticky--effects.sl #find-your-route:hover {
    background-color: var(--primary-blue) !important; 
    color: var(--text-main) !important;
    border-color: var(--primary-blue);
}

/* Target the logo focus state at all times */
.main-nav-header .logo-text a:focus,
.main-nav-header .logo-text a:focus-visible {
    outline: 3px solid var(--accent-orange) !important;
    outline-offset: 4px !important;
    display: inline-block !important;
}

.main-nav-header .logo-text {
    overflow: visible !important;
}

body .main-nav-header.elementor-sticky--effects .elementor-nav-menu li a {
    color: var(--text-muted) !important; 
}

body .main-nav-header.elementor-sticky--effects .logo-text {
    color: var(--primary-red) !important;
}

body .main-nav-header.elementor-sticky--effects .sl.logo-text {
    color: var(--primary-blue) !important;
}

body .main-nav-header.elementor-sticky--effects {
    background-color: hsl(0 0% 100% / .95) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    transition: background-color 0.4s ease-in-out !important;
}

/*
======================================== 
Testimonial Carousel 
========================================
*/
.elementor-testimonial__content{
    padding: 3rem;
}

@media (max-width: 768px) {
    .elementor-testimonial__content{
        padding: 2rem;
    }
}

.border-t{
    border-color: #ffffff1a;
    border-top-width: 1px;
    padding-top: 1rem;
    margin-top: 1rem;
}

.testimonial-carousel .elementor-testimonial__content{
    display: flex;
    flex-direction: column;
    position: relative !important;
}

.testimonial-carousel .elementor-testimonial__text{
    order: 2;
}

.testimonial-carousel .elementor-testimonial__content::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 24px;
    width: 64px;
    height: 64px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ba0018' stroke='%23ba0018' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'></path><path d='M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'></path></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.testimonial-carousel.pf .elementor-testimonial__content::before, .testimonial-carousel.cs .elementor-testimonial__content::before{
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffae00' stroke='%23ffae00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'></path><path d='M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'></path></svg>");
}

.testimonial-carousel.sl .elementor-testimonial__content::before{
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bde6f5' stroke='%23bde6f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'></path><path d='M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'></path></svg>");
}

@media (max-width: 768px) {
    .testimonial-carousel .elementor-testimonial__content::before{
        display: inline-block;
        position: relative;
        top: 0;
        right: 0;
        margin: 0 0 0 auto;
    }
}

.testimonial-carousel .elementor-testimonial__image img{
    width: 25rem !important;
    height: 25rem !important;
    margin-bottom: -10px;
}

@media (max-width: 768px) {
    .testimonial-carousel .elementor-testimonial__image img{
        width: 100% !important;
        height: 100% !important;
    }
}

.elementor-testimonial--layout-image_left .elementor-testimonial__footer{
    padding-inline-end: 0;
}

.testimonial-carousel .elementor-testimonial{
    border-color: rgba(20, 20, 20, 0.12);
    border-width: 1px;
    border-radius: 1rem;
    border-style: solid;
    overflow: hidden;
}

.testimonial-carousel.pf .elementor-testimonial, .testimonial-carousel.sl .elementor-testimonial{
    border-color: rgba(255, 255, 255, 0.1);
}

.testimonial-carousel .border-t p:first-child{
    color: rgb(186, 0, 24);
    font-weight: 700;
    font-size: 2rem;
    line-height: 2rem;
    margin-bottom: 5px;
    font-style: normal;
}

.testimonial-carousel .border-t.pf p:first-child, .testimonial-carousel .border-t.cs p:first-child{
    color: var(--accent-orange);
}

.testimonial-carousel .border-t.sl p:first-child{
    color: var(--primary-lightblue-cs);
}

.testimonial-carousel .border-t p:last-child{
    color: rgba(20, 20, 20, 0.5);
    font-size: 1rem;
    line-height: 1rem;
    margin-bottom: 0;
    font-style: normal;
}

.testimonial-carousel .border-t.pf p:last-child, .testimonial-carousel .border-t.sl p:last-child, .testimonial-carousel .border-t.cs p:last-child{
    color: #ffffff80;
}

.testimonial-carousel .elementor-testimonial__cite{
    margin-bottom: 1.5rem;
    margin-top: 0 !important;
}

.testimonial-carousel .border-t{
    border-top: 1px solid rgba(20, 20, 20, 0.12);
    margin-top: 1rem;
}

.testimonial-carousel .border-t.pf, .testimonial-carousel .border-t.sl{
    border-color: rgba(255, 255, 255, 0.1);
}

.testimonial-carousel .swiper-slide:nth-child(odd) .elementor-testimonial {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.testimonial-carousel .swiper-slide:nth-child(odd) .elementor-testimonial__content::before{
    right: 24px;
}

@media (max-width: 768px) {
    .testimonial-carousel .swiper-slide:nth-child(odd) .elementor-testimonial__content::before{
        display: inline-block;
        position: relative;
        top: 0;
        right: 0;
        margin: 0 0 0 auto;
    }
}

.testimonial-carousel .swiper-slide:nth-child(odd) .elementor-testimonial__footer {
    margin-right: 0 !important;
    margin-left: 30px !important;
    text-align: right;
}

@media (max-width: 768px) {
    .testimonial-carousel .swiper-slide:nth-child(odd) .elementor-testimonial__footer{
        margin-left: 0 !important;
    }
}

.testimonial-carousel .swiper-slide:nth-child(odd) .elementor-testimonial__content {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .testimonial-carousel .elementor-testimonial{
        flex-direction: column-reverse !important;
    }
}


/* ========================================
Logo Carousel  
========================================
*/
.swiper-pagination-bullet-active{
    width: 1.5rem !important;
    border-radius: 9999px !important;
}

.logo-carousel .elementor-main-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.logo-carousel .elementor-main-swiper .swiper-container-initialized {
    cursor: grab;
}

.logo-carousel .elementor-main-swiper {
    position: relative;
}

.logo-carousel .elementor-main-swiper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 15%,
        rgba(255, 255, 255, 0) 85%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none; 
    z-index: 10;
}

.logo-carousel .elementor-skin-carousel{
    overflow: hidden;
}

/* 
========================================
Gradient Border 
========================================
*/
.gradient-top-border {
    position: relative;
    overflow: hidden; 
}

.gradient-top-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: .25rem;
    background: linear-gradient(
        to right, 
        #ba0018 0%,
        #ffad00 50%,
        #ba0018 100%
    );
    z-index: 10;
}

.sl.gradient-top-border::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: .25rem;
    background: linear-gradient(
        to right, 
        var(--primary-blue) 0%,
        var(--primary-lightblue-cs) 50%,
        var(--primary-blue) 100%
    );
}

/* 
========================================
Latest Listings Route Data Styling for Brand Pages Shortcode 
========================================
*/

.route-results-table {
    width: 100%;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #ffffff;
    font-family: sans-serif;
}

.route-table-header, .route-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 120px;
    align-items: center;
    padding: 15px 24px;
}

.route-table-header {
    background-color: #f9f9fb;
    border-bottom: 1px solid #eaeaea;
    color: #8a92a6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.route-table-header .col-price, .route-table-header .col-avg{
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.route-table-row {
    border-bottom: 1px solid #f0f0f2;
}
.route-table-row:last-child {
    border-bottom: none;
}

.col-location h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #111111;
    font-weight: 700;
}
.col-location .route-id {
    font-size: 13px;
    color: #8a92a6;
}
.col-price {
    font-weight: 700;
    color: #111111;
    font-size: 16px;
}
.col-avg {
    color: #8a92a6;
    font-size: 15px;
}

.route-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.badge-bakery { background-color: #fff8e6; color: #b0851a; }
.badge-combo { background-color: #f3f0ff; color: #6e45e2; }
.badge-snacks { background-color: #e6fcf5; color: #0ca678; }

.btn-learn-more {
    display: block;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid #631d2f;
    color: #631d2f;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-learn-more:hover {
    background-color: #631d2f;
    color: #ffffff;
}

@media (max-width: 768px) {
    .route-table-header {
        display: none;
    }
    .route-table-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }
    .col-action {
        width: 100%;
    }
}

/* 
========================================
FIND ROUTES
========================================
*/

:root {
    --primary-red:       #b91c1c;
    --primary-red-dark:  #991b1b;
    --primary-red-light: #fef2f2;
    --bg-dark:           #0f172a;
    --text-main:         #ffffff;
}

.idp-app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 80px);
    overflow: hidden;
    font-family: system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

.idp-main-workspace {
    display: flex;
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.idp-app-shell .explore {
    text-align: center;
}

.idp-filter-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 20px;
    height: auto;
    z-index: 100;
    box-sizing: border-box;
}

#idp-filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-row-secondary {
    align-items: center;
}

.filter-row-secondary .filter-type-wrapper{
    flex: none;
}

.filter-keyword {
    flex: 0 0 220px;
}

.filter-location-stack {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-location {
    width: 100%;
}

.filter-input-wrapper {
    position: relative;
}

input.has-gps-btn {
    padding-right: 40px;
}

.filter-gps-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.filter-gps-btn:hover {
    background: #f1f5f9;
    color: var(--primary-red);
}

.filter-gps-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.filter-popular-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-popular-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.filter-popular-label svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    flex-shrink: 0;
}

.filter-popular-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.filter-popular-tag:hover {
    background: rgba(185, 28, 28, 0.08);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.filter-popular-tag.is-active {
    background: rgba(185, 28, 28, 0.1);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.filter-radius-wrapper {
    flex: 0 0 130px;
}

.filter-radius-wrapper select {
    padding-left: 34px;
}

.filter-search-btn {
    height: 40px;
    padding: 0 18px;
    background: var(--primary-red-pf);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.filter-search-btn:hover {
    background: var(--primary-red-dark);
}

.filter-search-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    flex-shrink: 0;
}

.filter-type-wrapper {
    flex: 0 0 140px;
}

.filter-type-wrapper select {
    padding-left: 34px;
}

.filter-secondary-btn {
    height: 36px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.filter-secondary-btn:hover, .filter-secondary-btn:focus {
    background: #f1f5f9 !important;
    color: #0f172a;
}

.filter-secondary-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.filter-price-revenue-wrapper {
    position: relative;
    display: inline-flex;
}

.pr-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 300px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    z-index: 200;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.pr-dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pr-section {
    margin-bottom: 18px;
}

.pr-section:last-of-type {
    margin-bottom: 0;
}

.pr-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.pr-section-header svg {
    stroke: #64748b;
    flex-shrink: 0;
}

.pr-slider-wrap {
    position: relative;
    margin-bottom: 4px;
}

.pr-slider-wrap input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.pr-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-red);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--primary-red);
    cursor: pointer;
}

.pr-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-red);
    border: 2px solid #ffffff;
    cursor: pointer;
}

.pr-slider-track-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    width: 100%;
}

.pr-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.pr-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.pr-preset {
    height: 26px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.pr-preset:hover {
    background: var(--primary-red-light);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.pr-preset.is-active {
    background: var(--primary-red-light);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.pr-section + .pr-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.pr-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: 16px;
}

.pr-clear-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    transition: color 0.12s;
}

.pr-clear-btn:hover { color: #0f172a; }

.pr-apply-btn {
    height: 34px;
    padding: 0 16px;
    background: var(--primary-red);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
}

.pr-apply-btn:hover { background: var(--primary-red-dark); }

.filter-secondary-btn.is-active {
    background: var(--primary-red-light);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.filter-secondary-btn.is-active svg {
    stroke: var(--primary-red);
}

.filter-input-wrapper,
.filter-select-wrapper {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.idp-filter-bar input[type="text"],
.idp-filter-bar select {
    width: 100%;
    height: 40px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px 8px 36px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
}

.idp-filter-bar select {
    padding-left: 12px;
    cursor: pointer;
    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='%2394a3b8' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    padding-left: 36px;
}

.idp-filter-bar input:focus,
.idp-filter-bar select:focus {
    border-color: #cbd5e1;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #f1f5f9;
}

.btn-reset {
    height: 40px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-reset:hover, .btn-reset:focus {
    background: #f1f5f9 !important;
    color: #0f172a;
    border-color: #cbd5e1;
}

.idp-archive-sidebar {
    width: 45%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
    box-sizing: border-box;
}

.results-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.idp-route-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.idp-route-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.idp-route-card.is-selected-route {
    border-color: var(--primary-red);
    background-color: var(--primary-red-light);
    box-shadow: 0 0 0 1px var(--primary-red);
}

.route-card-body {
    flex: 1;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
}

.route-card-supertitle {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.route-job-id {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.route-num {
    color: #94a3b8;
}

.route-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.route-card-location {
    font-size: 13px;
    color: #475569;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-pin {
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

.route-card-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.metric-badge {
    font-size: 12px;
    color: #475569;
}

.metric-label {
    color: #94a3b8;
    margin-right: 2px;
}

.metric-value {
    font-weight: 600;
    color: #334155;
}

.tag-pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-red);
    background: var(--primary-red-light);
    padding: 3px 8px;
    border-radius: 6px;
}

.route-card-financial-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    min-width: 100px;
    flex-shrink: 0;
}

.route-price-tag {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 20px;
}

.status-for-sale {
    background-color: #fef3c7;
    color: #d97706;
}

.route-card-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.route-card-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.route-card-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.route-card-city {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.route-type-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.route-type-bakery {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.route-type-snacks {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.route-type-snacks-bakery,
.route-type-snacks-amp-bakery {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #ddd6fe;
}

.route-weekly-avg {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.route-weekly-label {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 1px;
}

.route-asking-price {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.route-asking-price-value {
    font-weight: 600;
    color: #0f172a;
}

.route-card-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.route-meta-item {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.route-bookmark-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 0;
}

.route-bookmark-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.route-bookmark-btn.is-saved {
    color: var(--primary-red);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.results-counter {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.sidebar-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.sort-select {
    border: 1px solid #0f172a;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    padding-right: 14px;
    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='%23b91c1c' stroke-width='2.5'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 11px;
}

.sort-select:focus {
    /*color: var(--primary-red);*/
}

.idp-sidebar-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.idp-sidebar-pagination .page-numbers {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.idp-sidebar-pagination .page-numbers.current {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}

.idp-sidebar-pagination a.page-numbers:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.idp-context-display {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#idp-leaflet-map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.map-hint-tip {
    font-family: system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

#idp-details-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#idp-details-panel.details-pane-active {
    transform: translateX(0);
}

.detail-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-sizing: border-box;
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
}

.detail-back-btn:hover { 
    color: #0f172a;
    background-color: #fff;
}

.detail-header-title-block {
    flex: 1;
    min-width: 0;
}

.detail-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-header-sub {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.detail-header-cta {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    background: var(--primary-red-pf);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.detail-header-cta:hover {
    background: var(--primary-red-dark);
    color: #ffffff;
}

.detail-header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.detail-header-icon-btn svg {
    stroke: #64748b;
    display: block;
    flex-shrink: 0;
}

.detail-header-icon-btn:hover svg {
    stroke: #0f172a;
}

.detail-header-icon-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.detail-header-icon-btn:hover svg {
    stroke: #0f172a !important;
}

.detail-back-btn:hover svg {
    stroke: #0f172a !important;
}

.btn-back {
    background: #f8fafc;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s ease;
}

.btn-back:hover {
    background: #f1f5f9;
    color: #0f172a;
}

#details-pane-dynamic-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    box-sizing: border-box;
}

.detail-pane-header {
    margin-bottom: 24px;
}

.get-started-button {
    background-color: var(--primary-red-pf);
    width: 100%;
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    padding: 12px 24px;
    text-align: center;
    transition: background 0.3s;
    margin-bottom: 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.get-started-button:hover {
    background-color: var(--primary-red-dark);
    color: #fff;
}

.detail-super {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.detail-org-pill {
    background: var(--primary-red-light);
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.detail-job-tag {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.detail-main-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.detail-main-location {
    font-size: 15px;
    color: #475569;
    margin: 0;
}

.detail-financial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.financial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.financial-card.highlight {
    background: #f8fafc;
    border-left: 4px solid var(--primary-red);
}

.f-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}

.f-val {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.section-sub-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin: 24px 0 12px 0;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.s-label {
    color: #64748b;
}

.s-val {
    font-weight: 600;
    color: #334155;
}

.detail-contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
    box-sizing: border-box;
}

.contact-profile-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-avatar {
    width: 44px;
    height: 44px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-meta-fields {
    display: flex;
    flex-direction: column;
}

.c-name {
    font-weight: 700;
    color: #0f172a;
}

.c-title {
    font-size: 12px;
    color: #64748b;
}

.contact-action-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.channel-link {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.channel-link svg {
    width: 16px;
    height: 16px;
}

.btn-phone {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.btn-phone:hover {
    background: #0f172a;
    color: #ffffff;
}

.btn-email {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.btn-email:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.description {
    padding-top: 20px;
    padding-bottom: 20px;
}

.description h3 {
    font-size: 1rem;
}

.detail-metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.detail-metric-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.detail-metric-cell.detail-metric-primary {
    background: rgba(185, 28, 28, 0.07);
    border-color: rgba(185, 28, 28, 0.25);
}

.detail-metric-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--primary-red);
}

.detail-metric-icon--muted {
    color: #94a3b8;
}

.detail-metric-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 4px 0;
}

.detail-metric-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.detail-metric-value--lg {
    font-size: 18px;
}

.detail-body-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 24px;
    align-items: start;
}

.detail-description-text {
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 16px 0;
}

.detail-opportunities-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.detail-opportunities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-opportunities-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.detail-bullet {
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 1px;
}

.detail-body-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.detail-info-card-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 14px 16px 10px;
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 16px;
}

.detail-info-label {
    font-size: 11px;
    color: #94a3b8;
    margin: 0 0 3px 0;
}

.detail-info-value {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    margin: 0;
}

.detail-contact-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.detail-contact-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.detail-contact-name {
    font-weight: 500;
    color: #0f172a;
}

.detail-contact-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.detail-contact-link:hover {
    text-decoration: underline;
}

.detail-contact-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.detail-copy-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 3px 4px;
    border-radius: 4px;
    cursor: pointer;
    color: #94a3b8;
    transition: background 0.12s, color 0.12s;
    line-height: 0;
}

.detail-copy-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.detail-email-owner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    margin-top: 4px;
    border: 1px solid #e2e8f0;
}

/* ==========================================================================
   UI UTILITY APP FEEDBACK STATES
   ========================================================================== */
.app-pane-spinner {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 14px;
}

.idp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 14px;
}

/* ==========================================================================
   GRAVITY FORM STYLES
   ========================================================================== */
.gform_wrapper[id="gform_wrapper_1"]{
    max-width: 36rem !important;
}
.gform_wrapper[id="gform_wrapper_3"]{
    max-width: 48rem !important;
}
.gform_wrapper[id="gform_wrapper_1"] .gform_title{
    font-weight: bold;
}
.gform_wrapper[id="gform_wrapper_3"] .gform_title{
    display: none;
}
.gform_wrapper[id="gform_wrapper_1"], .gform_wrapper[id="gform_wrapper_3"]{
    border: 1px solid #e5e7eb !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
}
.gform-theme--framework .gf_step_active .gf_step_number, .gform-theme--framework .gf_step_completed .gf_step_number, .gform-theme--framework .gf_step_completed .gf_step_number::after{
    background: #7a0016 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}
.gform_wrapper .gform_button, .gform_wrapper .gform_next_button, .gform_wrapper .gform_drop_area .button{
    background: #7a0016 !important;
}
.gform-theme--framework .gfield:where(.gfield--type-fileupload,.gfield--input-type-fileupload,.gfield--type-post_image) .gform_drop_area::before{
    color: var(--bg-dark) !important;
}
.gform_wrapper .gform-theme--framework .gf_step_completed .gf_step_number::after{
    border: 1px solid #000 !important;
}
.gform-theme--framework input[type=checkbox]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::before{
    color: var(--bg-dark) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE MEDIA BREAKPOINTS OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. App Shell & Main Workspace Layout (In Page Flow) */
    .idp-app-shell,
    .idp-main-workspace {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* 2. Lock Page Scrolling when Details Panel or Side Drawer is Active */
    body.idp-details-open,
    body.idp-drawer-lock-scrolling {
        overflow: hidden !important;
        height: 100vh !important;
        height: 100dvh !important;
        touch-action: none;
    }

    /* Elevate app wrapper above theme headers when drawer is open */
    body.idp-details-open #idp-route-app,
    body.idp-details-open .idp-app-shell {
        position: relative !important;
        z-index: 999999 !important;
    }

    /* Lower filter bar z-index when details pane is open so it can't bleed through */
    body.idp-details-open .idp-filter-bar {
        z-index: 1 !important;
    }

    /* 3. Compact Filter Bar */
    .idp-filter-bar {
        padding: 8px 10px !important;
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
        z-index: 100;
    }
    
    #idp-filter-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .filter-input-wrapper,
    .filter-select-wrapper,
    #idp-filter-form input[type="text"],
    #idp-filter-form select,
    #idp-price-revenue-btn,
    .btn-search-submit,
    .btn-reset {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: 36px !important;
        box-sizing: border-box !important;
        display: block !important;
        font-size: 13px !important;
    }

    .filter-search-btn {
        width: 100%;
        height: 38px !important;
        display: flex;
        justify-content: center;
    }

    .filter-popular-row,
    .filter-popular-tags-wrapper,
    .filter-popular-cities {
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 2px 0 !important;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-popular-row::-webkit-scrollbar,
    .filter-popular-tags-wrapper::-webkit-scrollbar {
        display: none;
    }

    .filter-popular-tag,
    .filter-popular-row button,
    .filter-popular-tags-wrapper button {
        display: inline-block !important;
        width: auto !important;
        max-width: max-content !important;
        min-width: unset !important;
        padding: 3px 10px !important;
        font-size: 11px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    /* 4. Archive Sidebar Feed View */
    .idp-archive-sidebar {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .idp-archive-sidebar.mobile-hide-view {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .idp-feed-header-bar,
    .sidebar-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 6px 12px !important;
        flex-shrink: 0;
    }

    .results-scroll-container {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        padding: 10px 12px 70px 12px !important;
        box-sizing: border-box !important;
    }

    #route-results-feed {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .idp-route-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 6px;
    }

    .route-card-inner {
        padding: 12px 14px !important;
    }

    /* 5. Map Display View Container */
    .idp-context-display {
        width: 100% !important;
        height: calc(100vh - 120px) !important;
        min-height: 450px !important;
        position: relative !important;
        z-index: 2 !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: opacity 0.2s ease;
    }

    .idp-context-display.mobile-show-view {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #idp-leaflet-map,
    #idp-route-map {
        width: 100% !important;
        height: 100% !important;
    }

    /* Force Parent Container Visibility when Details Sheet is Open */
    body.idp-details-open .idp-context-display,
    body.idp-details-open .idp-archive-sidebar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 6. FULL-SCREEN SLIDING DETAILS SHEET OVERLAY */
    #idp-details-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
        z-index: 9999999 !important; /* Extremely high z-index to dominate page */
        display: flex !important;
        flex-direction: column !important;
        transform: translateY(100%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #idp-details-panel.details-pane-active {
        transform: translateY(0%) !important;
    }

    /* Sticky Header Inside Details Sheet */
    #idp-details-panel .detail-panel-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        z-index: 100 !important;
        padding: 12px 16px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-shrink: 0 !important;
    }

    /* Scrollable Inner Content Area Only */
    #details-pane-dynamic-content {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 16px 16px 40px 16px !important;
    }

    /* 7. Sticky Bottom Mobile Tab Bar Nav */
    .idp-mobile-tabs {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 50px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        z-index: 99990 !important;
    }

    /* Hide mobile bottom tab bar when details pane is open */
    body.idp-details-open .idp-mobile-tabs {
        display: none !important;
    }

    .mobile-tab-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 11px;
        font-weight: 600;
        color: #64748b;
        gap: 4px;
        cursor: pointer;
    }

    .mobile-tab-btn svg {
        width: 18px;
        height: 18px;
        color: #94a3b8;
    }

    .mobile-tab-btn.active {
        color: var(--primary-red);
        background: #f8fafc;
    }

    .mobile-tab-btn.active svg {
        color: var(--primary-red);
    }
    
    .contact-action-channels {
        grid-template-columns: 1fr;
    }

    .detail-body-grid{
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .idp-mobile-tabs {
        display: none !important;
    }
}

/* ==========================================================================
   GLOBAL SIDE-DRAWER LAYER COMPONENT ARCHITECTURE
   ========================================================================== */

#idp-drawer-trigger-btn {
    position: fixed;
    right: 0;
    top: 80%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #1e293b;
    color: #ffffff;
    border: none;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    padding: 20px 10px;
    cursor: pointer;
    box-shadow: -4px 0 16px rgba(15, 23, 42, 0.15);
    transition: background-color 0.2s ease, padding-right 0.2s ease;
}

#idp-drawer-trigger-btn:hover {
    background-color: #0f172a;
    padding-right: 14px;
}

.idp-vertical-badge-btn .btn-arrow-icon {
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
}

.idp-vertical-badge-btn .btn-text-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

#idp-brand-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100000;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.idp-drawer-overlay-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.idp-drawer-overlay-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#idp-brand-drawer-panel {
    position: absolute;
    top: 0;
    right: 15px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.idp-drawer-panel-collapsed {
    transform: translateX(100%);
}

.idp-drawer-panel-expanded {
    transform: translateX(0);
}

body.idp-drawer-lock-scrolling {
    overflow: hidden !important;
}

.idp-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 24px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.idp-drawer-header-text h2 {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-red-pf);
    letter-spacing: 0.06em;
    margin: 0 0 6px 0 !important;
}

.idp-drawer-header-text p {
    font-size: 13px;
    color: #64748b;
    margin: 0 !important;
    line-height: 1.4;
}

.idp-drawer-close-x-btn {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background-color 0.15s, color 0.15s;
}

.idp-drawer-close-x-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.idp-drawer-body-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.idp-brand-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.idp-brand-selection-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.idp-brand-selection-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.idp-brand-selection-card.is-active-brand-context {
    border-color: #cbd5e1;
    background-color: #fafafa;
}

.card-meta-details h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0 !important;
}

.card-meta-details h3 .current-badge-marker {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 4px;
}

.card-meta-details span {
    font-size: 13px;
    color: #64748b;
}

.card-chevron-arrow {
    font-size: 16px;
    color: #94a3b8;
    font-weight: bold;
    transition: transform 0.2s ease, color 0.2s;
}

.idp-brand-selection-card:hover .card-chevron-arrow {
    color: #0f172a;
    transform: translateX(3px);
}

.idp-drawer-action-footer {
    margin-top: 40px;
}

.idp-network-cta-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: var(--primary-red-pf);
    color: #fff;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s;
}

.idp-network-cta-submit-btn:hover {
    background-color: var(--primary-red);
    color: #ffffff;
}

.idp-network-cta-submit-btn .cta-arrow-symbol {
    font-size: 14px;
    line-height: 1;
    font-weight: bold;
}

/* ── BRAND COLOR BUTTON VARIANTS ────────────────────────────────────────── */
#idp-drawer-trigger-btn.brand-pf {
    background-color: var(--primary-red-pf, #7a0016) !important;
}
#idp-drawer-trigger-btn.brand-pf:hover {
    background-color: var(--primary-red, #b80018) !important;
}

#idp-drawer-trigger-btn.brand-sl {
    background-color: var(--primary-blue, #1b2467) !important;
}
#idp-drawer-trigger-btn.brand-sl:hover {
    background-color: #0f1642 !important;
}

#idp-drawer-trigger-btn.brand-cs {
    background-color: var(--primary-purple, #800a57) !important;
}
#idp-drawer-trigger-btn.brand-cs:hover {
    background-color: #5a053d !important;
}

#idp-drawer-trigger-btn.brand-default {
    background-color: #1e293b !important;
}
#idp-drawer-trigger-btn.brand-default:hover {
    background-color: #0f172a !important;
}

/* ── SCROLL TRIGGER FADE TRANSITION ─────────────────────────────────────── */
#idp-drawer-trigger-btn {
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, padding-right 0.2s ease !important;
}

.idp-drawer-btn-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) translateX(20px) !important;
}

.idp-drawer-btn-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(-50%) translateX(0) !important;
}