/* ========================================
   CLIENTS PAGE STYLES
   ======================================== */

/* 1. WRAPPER (Dark background for the sides) */
.clients-page-wrapper {
    background-color: #1a1a1a; /* Matches the dark map/footer */
    padding-bottom: 0;
}

/* 2. HERO SECTION */
.clients-hero {
    position: relative;
    height: 550px; /* Increased height to accommodate the cut */
    background-size: cover;
    /* FIX: Shifts image focus down so heads aren't cut off by header */
    background-position: center 20%; 
    display: flex;
    align-items: center;
    padding-bottom: 80px; /* Space for the overlap */
}

.clients-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay to make text pop */
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.clients-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

.clients-hero .hero-content {
    max-width: 400px;
    margin-top: -50px; /* Push text up slightly */
}

.clients-hero .page-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.1;
}

.clients-hero .page-subtitle {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 550px;
}

/* 3. THE FLOATING CARD (Magic happens here) */
.main-content-card {
    background-color: #ffffff;
    max-width: 1100px; /* Slightly narrower than container for the look */
    margin: 0 auto;
    margin-top: -120px; /* NEGATIVE MARGIN: Pulls card UP over hero */
    position: relative;
    z-index: 10;
    border-radius: 4px;
    padding-bottom: 50px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
    padding-bottom: 30px;
}

/* TRUSTED SECTION INSIDE CARD */
.trusted-section {
    padding: 80px 60px 40px;
    text-align: center;
}

.trusted-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    font-family: 'Open Sans', sans-serif;
}

.trusted-header p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.trusted-header .sub-desc {
    color: #777;
    font-size: 13px;
}

.logos-wrapper {
    margin-top: 50px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* MAP INTRO INSIDE CARD */
.map-intro-section {
    padding: 20px 60px 40px;
    text-align: center;
}

.map-intro-section p {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}

.map-intro-section .small-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
}

.btn-partner {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 14px 35px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-partner:hover {
    background-color: #333;
}

/* 4. MAP CONTAINER */
.interactive-map-container {
    width: 100%;
    padding: 0;
    background-color: #1a1a1a; /* Ensures seamless transition if map loads slowly */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .clients-hero { height: 400px; }
    .main-content-card { margin-top: -80px; width: 90%; }
    .trusted-section { padding: 50px 20px; }
    .map-intro-section { padding: 20px 20px 40px; }
    .clients-hero .page-title { font-size: 36px; }
    /* PASTE IT HERE */
    .clients-hero .hero-content {
        margin-top: 80px; 
    }
}
/*Map CSS*/
/* ========================================
   1. GLOBAL & HERO STYLES
   ======================================== */

/* WRAPPER (Dark background for the sides) */
.clients-page-wrapper {
    background-color: #1a1a1a; /* Matches the dark map/footer */
    width: 100%;
    overflow-x: hidden;
}

/* HERO SECTION */
.clients-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-repeat: no-repeat;
    /* FIX: Moves image down 25% so heads are visible */
    background-position: center 25%; 
    display: flex;
    align-items: center;
    /* Padding bottom creates space for the card overlap */
    padding-bottom: 80px; 
}

.clients-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.clients-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.clients-hero .hero-content {
    max-width: 700px;
    /* Push content up slightly so it doesn't hit the white card */
    margin-top: -60px; 
}

.clients-hero .page-title {
    color: #fff;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.1;
}

.clients-hero .page-subtitle {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 550px;
}

/* ========================================
   2. THE WHITE CONTENT CARD
   ======================================== */
.main-content-card {
    background-color: #ffffff;
    max-width: 1100px;
    margin: 0 auto;
    /* NEGATIVE MARGIN: Pulls the white box UP over the hero */
    margin-top: -100px; 
    position: relative;
    z-index: 10;
    
    /* MERGE FIX: Flatten bottom corners so it connects to map */
    border-radius: 6px 6px 0 0;
    padding-bottom: 20px; /* Small buffer */
    margin-bottom: 0; /* No gap between card and map */
}

/* TRUSTED SECTION */
.trusted-section {
    padding: 70px 50px 30px;
    text-align: center;
}

.trusted-header h2 {
    font-size: 30px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.trusted-header p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.trusted-header .sub-desc {
    color: #777;
    font-size: 13px;
}

.logos-wrapper {
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logos-img {
    max-width: 100%;
    height: auto;
}

/* MAP INTRO SECTION */
.map-intro-section {
    padding: 20px 50px 40px;
    text-align: center;
}

.map-intro-section p {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}

.map-intro-section .small-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
}

.btn-partner {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 14px 35px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-partner:hover {
    background-color: #333;
}

/* ========================================
   3. MAP INTERFACE STYLES
   ======================================== */

/* OUTER WRAPPER */
.map-section-wrapper {
    background-color: transparent; /* Allows site black to show */
    padding-top: 0; /* FLUSH TOP: Touches the card above */
    padding-bottom: 80px; /* Space at bottom */
    display: flex;
    justify-content: center;
    width: 100%;
}

/* MAIN WIDGET CONTAINER */
.map-interface-container {
    display: flex;
    width: 100%;
    max-width: 1100px; /* Match Card Width */
    height: 650px; 
    background-color: #FFFFFF;
    overflow: hidden;
    padding: 60px 40px;
    /*space around*/
    margin: 0 30px 40px; 
     margin: 0 30px 0; 
    border-radius: 0px;
    
}

/* LEFT SIDEBAR */
.map-sidebar {
    width: 340px;
    min-width: 340px;
    background-color: #F4F4F4;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
}

.sidebar-header {
    padding: 30px 25px 20px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}

/* SEARCH BAR */
.search-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 35px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 13px;
    color: #333;
    background: #fff;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #b7007c;
    pointer-events: none;
    display: flex;
}

/* BRAND FILTERS */
.brand-filter-section {
    margin-top: 10px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 15px;
}

.brand-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.brand-tab {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.brand-tab img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-tab.active {
    opacity: 1;
    border: 2px solid #ccc;
}

.brand-tab:hover {
    opacity: 1;
}

.brand-tab .text-icon {
    width: 100%;
    height: 100%;
    background: #00a0e3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

/* COUNTRY LIST */
.country-list-container {
    flex: 1;
    overflow-y: auto;
    background: #F4F4F4;
    padding: 0;
}

.country-list-container::-webkit-scrollbar {
    width: 15px;
}

.country-list-container::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.country-list-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* LIST ITEMS */
.country-item {
    padding: 18px 25px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.country-item:hover, 
.country-item.hover {
    background-color: #FFFFD8;
}

.c-name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

.c-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.c-comp {
    font-size: 13px;
    color: #444;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.c-addr {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.c-phone {
    font-size: 12px;
    color: #00a0e3;
    font-weight: 400;
    margin-top: 4px;
    line-height: 1.2;
}

.c-link {
    font-size: 12px;
    color: #b7007c;
    text-decoration: none;
    margin-top: 2px;
}

/* RIGHT MAP AREA */
.map-view-wrapper {
    flex: 1;
    position: relative;
    background-color: #000;
    height: 100%;
}

#careline-map {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 1;
}

.map-custom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-btn {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
    
    /* FIX 1: Increased size for + and - visibility */
    font-size: 22px; 
    line-height: 1; /* Resets line height for perfect center */
    font-weight: bold;
    color: #333;
    padding: 0;     /* Removes padding so flexbox centers it */
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background-color: #eee;
}

/* FIX 2: This makes the Home Icon visible */
.control-btn svg {
    width: 16px;
    height: 16px;
    stroke: #333; /* Forces the house lines to be dark grey */
    fill: none;
    display: block;
}

/* PINS & POPUPS */
.custom-map-pin {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-inner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: all 0.2s;
}

.pin-cyan {
    background-color: #00a0e3;
}

.pin-pink {
    background-color: #ffb6d9;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(183, 0, 124, 0.6);
}

.leaflet-popup-content-wrapper {
    border-radius: 2px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 5px;
    right: 5px;
    color: #999;
    font-size: 18px;
    padding: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: #333;
}

.map-popup-box {
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    background: #fff;
    color: #333;
}

.map-popup-box strong {
    font-size: 15px;
    color: #000;
    display: block;
    margin-bottom: 8px;
    padding-right: 15px;
}

/* ========================================
   4. RESPONSIVE FIXES (Mobile & Tablet)
   ======================================== */
@media (max-width: 900px) {
    
    .map-interface-container {
        flex-direction: column;
        height: auto; 
        width: 90%; 
        border-radius: 0 0 4px 4px;
    }

    .map-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .country-list-container {
        max-height: 250px; 
    }

    /* MAP VISIBILITY FIX */
    .map-view-wrapper {
        width: 100%;
        height: 400px; 
        min-height: 400px; 
        display: block;
    }
    
    #careline-map {
        height: 100% !important;
    }

    .sidebar-header {
        padding: 20px;
    }
    
    .clients-hero {
        height: 400px;
    }
    
    .main-content-card {
        margin-top: -60px;
        width: 92%;
    }
    
    /* HERO TEXT FIX */
    .clients-hero .hero-content {
        margin-top: 100px; 
    }
}

