/* Interactive Map Styles */
.lawyerix-interactive-map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent !important;
}

/* Homepage Interactive Map Section */
.lawyerix-interactive-map-section {
    background: transparent !important;
    padding: 40px 0 20px 0;
    margin: 20px 0 0 0;
}

.lawyerix-interactive-map-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 !important;
    background: transparent !important;
}

.lawyerix-interactive-map-section .map-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: visible;
}

.lawyerix-interactive-map-section .map-header h2 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.lawyerix-interactive-map-section .map-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Map Wrapper */
.map-wrapper {
    display: block;
    min-height: 600px;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* US Map Container */
.us-map-container {
    width: 100%;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: visible !important;
}

/* Map States */
.state {
    fill: #2A84C0;
    stroke: #ffffff;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.state:hover {
    fill: #0d2d4a;
    stroke: #cccccc;
    stroke-width: 1;
}

/* Map Search */
.map-search {
    margin-bottom: 30px;
    text-align: center;
}

.map-search input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.map-search input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: none;
}

.map-search input::placeholder {
    color: #95a5a6;
}







/* Lawyers List */
.lawyers-list {
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
    background: transparent !important;
}

.lawyer-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    box-shadow: none;
}

.lawyer-card:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    box-shadow: none;
}

.lawyer-card h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.lawyer-card p {
    color: #7f8c8d;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.lawyer-card .specialties {
    color: #3498db;
    font-weight: 500;
}

/* Lawyers Grid */
.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.lawyers-grid .lawyer-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #3498db;
}

.lawyers-grid .lawyer-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

/* State Tooltip */
.state-tooltip {
    position: absolute;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    white-space: nowrap;
    overflow: visible;
}

.state-tooltip.show {
    opacity: 1;
}

/* Ensure tooltip doesn't get cut off */
.us-map-container {
    overflow: visible !important;
}

.map-wrapper {
    overflow: visible !important;
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: none;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

/* States Dropdown - Force visibility */
.lawyerix-interactive-map-section .states-dropdown-container,
.states-dropdown-container {
    position: relative !important;
    text-align: center !important;
    margin: 0 auto 30px auto !important;
    max-width: 500px !important;
    width: 90% !important;
    z-index: 100 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lawyerix-interactive-map-section .states-dropdown-toggle,
.states-dropdown-toggle,
button.states-dropdown-toggle,
#statesDropdownToggle {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
    text-decoration: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    min-height: 45px !important;
    font-family: inherit !important;
    line-height: normal !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.states-dropdown-toggle:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.states-dropdown-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.states-dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lawyerix-interactive-map-section .states-dropdown-menu,
.states-dropdown-menu,
#statesDropdownMenu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 1000 !important;
    margin-top: 5px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    border: 1px solid #e0e0e0 !important;
    display: block !important;
}

.lawyerix-interactive-map-section .states-dropdown-menu.show,
.states-dropdown-menu.show,
#statesDropdownMenu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.states-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    padding: 12px !important;
    background: white !important;
    box-sizing: border-box !important;
}

.state-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 10px 6px !important;
    text-decoration: none !important;
    color: #2c3e50 !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    margin: 0 !important;
    min-height: 70px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow: hidden !important;
}

.state-item:hover {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.state-item i {
    font-size: 1.2rem !important;
    margin-bottom: 4px !important;
    color: #e74c3c !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.state-item:hover i {
    color: white !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.state-item span {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.state-item small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: #3498db;
    color: white;
}

.filter-btn.active {
    background: #3498db;
    color: white;
}

/* Force remove any white containers from interactive map */
.lawyerix-interactive-map-section,
.lawyerix-interactive-map-section *,
.lawyerix-interactive-map-container,
.lawyerix-interactive-map-container *,
.map-wrapper,
.map-wrapper *,
.us-map-container,
.us-map-container * {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure button styles are not overridden */
.show-all-states-btn,
.show-all-states-btn *,
button.show-all-states-btn,
button.show-all-states-btn *,
.map-header .show-all-states-btn,
.map-header button.show-all-states-btn {
    background: #2A84C0 !important;
    color: white !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    margin: 20px auto !important;
    box-shadow: 0 2px 8px rgba(42, 132, 192, 0.3) !important;
    min-width: 150px !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: normal !important;
    vertical-align: middle !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
}

.lawyerix-interactive-map-section .container {
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
}

/* Force button styling on any element with show-all-states-btn class */
*[class*="show-all-states-btn"],
*[class*="show-all-states-btn"] * {
    background: #2A84C0 !important;
    color: white !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    margin: 20px auto !important;
    box-shadow: 0 2px 8px rgba(42, 132, 192, 0.3) !important;
    min-width: 150px !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: normal !important;
    vertical-align: middle !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .lawyerix-interactive-map-section {
        padding: 1.5rem 1rem 0.5rem 1rem;
        margin: 1rem 0 0 0;
    }
    
    .lawyerix-interactive-map-section .container {
        padding: 0 1rem !important;
    }
    
    .lawyerix-interactive-map-section .map-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        margin-top: 2rem;
    }
    
    .lawyerix-interactive-map-section .map-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .map-wrapper {
        min-height: 400px;
        margin: 0 1rem;
    }
    
    .us-map-container {
        padding: 0 1rem;
    }
    
    .map-search input {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .filter-buttons {
        margin: 0 1rem 20px 1rem;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Mobile States Dropdown */
    .states-dropdown-container {
        margin: 0 1rem 20px 1rem;
        max-width: none;
        width: calc(100% - 2rem);
    }
    
    .states-dropdown-toggle {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .states-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        padding: 6px;
    }
    
    .state-item {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
    
    .state-item i {
        font-size: 1rem;
    }
    
    .state-item span {
        font-size: 0.8rem;
    }
    
    .state-item small {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .lawyerix-interactive-map-section {
        padding: 1rem 0.5rem 0.25rem 0.5rem;
        margin: 0.5rem 0 0 0;
    }
    
    .lawyerix-interactive-map-section .container {
        padding: 0 0.5rem !important;
    }
    
    .lawyerix-interactive-map-section .map-header h2 {
        font-size: 2rem;
        margin-top: 2.5rem;
    }
    
    .map-wrapper {
        min-height: 350px;
        margin: 0 0.5rem;
    }
    
    .us-map-container {
        padding: 0 0.5rem;
    }
    
    .map-search input {
        margin: 0 0.5rem;
        padding: 12px 16px;
    }
    
    .filter-buttons {
        margin: 0 0.5rem 15px 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Small Mobile States Dropdown */
    .states-dropdown-container {
        margin: 0 0.5rem 15px 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .states-dropdown-toggle {
        font-size: 0.85rem;
        padding: 9px 14px;
    }
    
    .states-grid {
        grid-template-columns: 1fr;
        padding: 4px;
    }
    
    .state-item {
        padding: 12px 8px;
        font-size: 0.9rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        text-align: left;
    }
    
    .state-item i {
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    
    .state-item span {
        font-size: 0.85rem;
        margin-bottom: 0;
        flex: 1;
    }
    
    .state-item small {
        font-size: 0.75rem;
    }
}