/**
 * eHealth Exchange Locator Styles
 * Version 2.0.5
 * 
 * Redesigned to match original eHealth Exchange locator
 */

/* =========================================================================
   CSS VARIABLES
   ========================================================================= */

:root {
    --ehealth-primary: #060e32;
    --ehealth-primary-light: #2d4a6f;
    --ehealth-secondary: #f77530;
    --ehealth-accent: #117CC2;
    --ehealth-success: #10b981;
    
    --ehealth-text: #1f2937;
    --ehealth-text-light: #6b7280;
    --ehealth-text-muted: #9ca3af;
    
    --ehealth-bg: #ffffff;
    --ehealth-bg-secondary: #f1f3f4;
    --ehealth-bg-tertiary: #f3f4f6;
    
    --ehealth-border: #dfe1e5;
    --ehealth-border-light: #f3f4f6;
    
    --ehealth-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --ehealth-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    --ehealth-radius: 4px;
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */

.ehealth-locator,
.ehealth-locator * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ehealth-locator {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ehealth-text);
    background: var(--ehealth-bg);
}

/* =========================================================================
   TOP BAR - Search Area
   ========================================================================= */

.ehealth-topbar {
    background: var(--ehealth-primary);
    padding: 20px;
    text-align: center;
    background-color: #06113E;
     background-position: center center;
     background-repeat: no-repeat;
     background-size: contain;
}

.search-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 740px;
    margin: 0 auto 10px 430px;
}

.search-row-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 5px;
    padding: 2px;
    position: relative;
}
.search-org,
.search-location {
    position: relative;
    flex: 1;
    max-width: 350px;
}
.search-org:after {
    background: #dddddd;
    position: absolute;
    width: 1px;
    height: 100%;
    right: 0;
    top: 0;
    content: "";
    z-index: 9;
}
.search-row-wrapper input[type=text] {
   border: none;
   height: 44px;
}
.search-org .search-icon,
.search-location .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ehealth-text-muted);
    font-size: 14px;
}

.search-input,
.location-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: var(--ehealth-radius);
    font-size: 14px;
    background: white;
}
.search-radius {
    margin-right: 5px;
    position: absolute;
    right: 102px;
}

input#location-input {
    border-radius: 0 5px 5px 0;
    background-image: url(../images/locator-alt.png);
    background-repeat: no-repeat;
    background-position: center left 12px;
    background-size: 22px;
    padding-left: 40px !important;
}

input#search-input {
   border-radius: 5px 0 0 5px;
 background-image: url(../images/finder-alt.png);
 background-repeat: no-repeat;
 background-position: center left 12px;
 background-size: 20px;
 padding-left: 40px !important;
 }
 
select#radius-select {
     border: none;
     font-size: 13px;
     font-weight: 500;
     margin-right: 0;
     opacity: .8;
 }
 
.search-input:focus,
.location-input:focus {
    outline: none;
    border-color: var(--ehealth-accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.search-btn {
    padding: 12px 30px;
    background: var(--ehealth-secondary);
    color: white;
    border: none;
    border-radius: var(--ehealth-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    height: 44px;
}

.search-btn:hover {
    background: #ea580c;
}

.page-id-256256.elementor-kit-13363 button {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600 !important;
    letter-spacing: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.page-id-256256.elementor-kit-13363 button.btn-light {
   border: 1px solid var(--ehealth-border);
   background: #fff;
   color: #117CC2;
   padding-left: 10px;
    padding-right: 10px;
}
.page-id-256256.elementor-kit-13363 button.btn-light:hover {
   border: 1px solid var(--ehealth-border);
   background: #f0f0f0;
   color: #08306E;
}
button.btn.btn-primary.search-btn {
    max-width: 100px;
}
.page-id-256256.elementor-kit-13363 button.btn-clean {
    background: none;
    color: #117CC2;
    border: none;
    margin: 10px 0 0;
}
button.clear-all-filters.btn-clean {
    text-transform: none !important;
    margin-right: 10px !important;
    margin-top: 0 !important;
}
.page-id-256256.elementor-kit-13363 button.btn-clean:hover {
    background: #eff0f2;
    color: #08306E;
}
.subparticipant .pin-icon img.sub, .participant .pin-icon img.partic {
   display: block;
   max-width: 7px;
    padding-top: 3px;
}
.participant .pin-icon img.partic {
  max-width: 6px;
}
.subparticipant .pin-icon img.partic, .participant .pin-icon img.sub {
   display: none;
}
.topbar-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 740px;
    width: 100%;
    margin: 0 auto 0 430px;
}
.topbar-links-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.topbar-links a {
    color: #55a7dd !important;
    text-decoration: none;
    font-size: 14px;
}
.topbar-links a:hover {
   color: #f90 !important;
}

.topbar-links a:hover {
    text-decoration: underline;
}

a.map-logo {
    position: absolute;
    left: 15px;
    width: 250px;
    top: 23px;
}

label.download-option, .download-selection-note {
    font-size: 12px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.download-menu button {
   text-align: center !important
}

/* =========================================================================
   AUTOCOMPLETE
   ========================================================================= */

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--ehealth-border);
    border-radius: var(--ehealth-radius);
    box-shadow: var(--ehealth-shadow-lg);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--ehealth-border-light);
    text-align: left;
}

.autocomplete-item:hover {
    background: var(--ehealth-bg-secondary);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-name {
    font-weight: 600;
    color: var(--ehealth-text);
}

.autocomplete-meta {
    font-size: 12px;
    color: var(--ehealth-text-light);
}

/* =========================================================================
   RESULTS BAR
   ========================================================================= */

.ehealth-results-bar {
    display: flex;
    align-items: center;
    padding: 8px 10px 8px 20px;
    background: var(--ehealth-bg-secondary);
    border-bottom: 1px solid var(--ehealth-border);
    position: relative;
    height: 55px;
    justify-content: space-between;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 20px;
   width: 430px;
}
.ehealth-results  .no-results h3 {
    font-size: 24px !important;
    text-transform: none !important;
    font-weight: 600 !important;
}
.ehealth-results .no-results {
    padding: 20px;
}
.ehealth-results .no-results ul {
padding: 20px 0 20px 20px;
}
.back-btn {
    padding: 6px 12px;
    background: var(--ehealth-bg);
    border: 1px solid var(--ehealth-border);
    border-radius: var(--ehealth-radius);
    cursor: pointer;
    font-size: 13px;
}

.back-btn:hover {
    background: var(--ehealth-bg-tertiary);
}

.search-label {
    color: var(--ehealth-text);
    font-size: 12px;
}

.search-label strong {
    color: var(--ehealth-text);
}

.results-count {
    color: var(--ehealth-text-light);
    font-size: 12px;
}

.next-link {
    color: var(--ehealth-accent);
    text-decoration: none;
    font-weight: 500;
}

.next-link:hover {
    text-decoration: underline;
}
/* Pagination Controls */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 0
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--ehealth-border);
    border-radius: var(--ehealth-radius);
    background: white;
    color: var(--ehealth-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.page-link:hover:not(.disabled):not(.current) {
    background: var(--ehealth-bg-tertiary);
    border-color: var(--ehealth-accent);
    color: var(--ehealth-accent);
}

.page-link.current {
    background: var(--ehealth-accent);
    border-color: var(--ehealth-accent);
    color: white;
    cursor: default;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--ehealth-bg-tertiary);
}

.page-link.page-prev,
.page-link.page-next {
    min-width: auto;
    padding: 0 12px;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 32px;
    color: var(--ehealth-text-muted);
    font-size: 14px;
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-toggle {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--ehealth-border);
    border-radius: var(--ehealth-radius);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-toggle:hover {
    background: var(--ehealth-bg-tertiary);
}

.filter-toggle.has-filters {
    border-color: var(--ehealth-accent);
    color: var(--ehealth-accent);
}

.download-dropdown .download-toggle.btn-light svg path {
    fill:#117CC2;
}

.download-dropdown .download-toggle.btn-light:hover svg path {
    fill:#08306E;
}

.download-toggle {
    padding: 8px 16px;
    background: var(--ehealth-success);
    color: white;
    border: none;
    border-radius: var(--ehealth-radius);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-toggle:hover {
    background: #059669;
}

/* =========================================================================
   EXPORT MEGA MENU
   ========================================================================= */

.export-megamenu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 340px;
    background: white;
    border: 1px solid var(--ehealth-border);
    border-radius: var(--ehealth-radius);
    box-shadow: var(--ehealth-shadow-lg);
    z-index: 100;
    overflow: hidden;
}


.export-section {
    padding: 16px 18px;
    border-bottom: 1px solid #e6e6e6
}
.export-section:last-child {
  border-bottom: none;
}
.export-divider {
    height: 1px;
    background: var(--ehealth-border);
    margin: 0;
}

.export-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.export-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ehealth-primary);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.export-section-count {
    font-size: 12px;
    color: var(--ehealth-text-light);
}

.export-section-desc {
    font-size: 12px;
    color: var(--ehealth-text-light);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.export-action-row {
    display: flex;
    gap: 8px;
}

.export-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: none;
    border: none;
    border-radius: var(--ehealth-radius);
    font-size: 12px;
    font-weight: 600;
    color: var(--ehealth-accent);
    cursor: pointer;
    text-align: left;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.export-action-btn:hover {
    color: var(--ehealth-primary);
    background: var(--ehealth-bg-secondary);
    text-decoration: underline;
}

/* Select & Export section */
.export-select-active {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.export-select-count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.export-select-count {
    font-size: 13px;
    color: var(--ehealth-text);
}

.export-clear-link {
    font-size: 12px;
    color: var(--ehealth-text-light);
    text-decoration: none;
}

.export-clear-link:hover {
    color: var(--ehealth-secondary);
    text-decoration: underline;
}

.export-selecting-hint {
    font-size: 12px;
    color: var(--ehealth-text-light);
    line-height: 1.5;
    margin: 0;
}

.export-select-page {
    font-size: 12px;
    color: var(--ehealth-accent);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.export-select-page:hover {
    text-decoration: underline;
}

.export-start-btn,
.export-done-btn {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border-radius: var(--ehealth-radius);
    border: 1px solid var(--ehealth-border);
    background: var(--ehealth-bg-secondary);
    color: var(--ehealth-primary);
    transition: background 0.15s;
}

.export-start-btn:hover,
.export-done-btn:hover {
    background: var(--ehealth-primary);
    border-color: var(--ehealth-primary);
    color: white;
}
button.download-toggle.btn-light.is-open {
color: #08306E;
}

.download-dropdown button.download-toggle.btn-light.is-open svg path {
    fill: #08306E;
} 

button.download-toggle.btn-light.is-open i{
transform: rotate(180deg); 
}
.sort-left-bundle button {
   height: 40px;
}

.results-toolbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.sort-left-bundle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap:10px;
}

/* Active Filter Badges */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.filter-badge-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: none;
    color: #08306E;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    background: #e3e8ef;
    border-radius: 4px;
    height: 36px;
}
span.filter-badge-item button {
    margin-left: 5px;
}

.filter-badge-item  button.filter-badge-remove {
 color: #08306E !important;
 background: none !important;
 border: none !important;
 }

.page-id-256256 .dialog-lightbox-widget {
   display: none !important;
}
/* Sidebar Pagination */
.sidebar-pagination {
    padding: 15px;
    border-top: 1px solid var(--ehealth-border);
    background: var(--ehealth-bg-secondary);
    display: flex;
    justify-content: center;
}

.sidebar-pagination .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
}

/* =========================================================================
   FILTERS PANEL
   ========================================================================= */

.filters-panel {
       padding: 20px;
       background: white;
       border-bottom: 1px solid var(--ehealth-border);
       display: flex;
       flex-wrap: wrap;
       gap: 20px;
       align-items: flex-start;
       position: absolute;
       width: 100%;
       top: 55px;
       z-index: 9;
       transition: all .4s ease;
   }

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ehealth-text);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.filter-group small {
    display: block;
    font-size: 11px;
    color: var(--ehealth-text-muted);
    margin-top: 4px;
}

.filter-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ehealth-border);
    border-radius: var(--ehealth-radius);
    font-size: 13px;
    background: white;
}

.filter-select[multiple] {
    height: auto;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    justify-content: end;
}

.filter-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.filter-actions .btn.btn-primary {
   background: var(--ehealth-accent) !important;
}

.filter-actions .btn.btn-primary:hover {
   background: var(--ehealth-secondary) !important;
}

/* Make org-card position relative so checkbox can be absolute positioned */
.org-card {
    position: relative;
}

/* Checkbox container - top right of each card */
.org-select {
    position: absolute;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 1;
}

/* The checkbox itself */
.org-select-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #117CC2; /* or your accent color */
    opacity: 0.5;
    transition: opacity 0.2s;
}

/* Show checkbox more prominently on hover or when checked */
.org-card:hover .org-select-checkbox,
.org-select-checkbox:checked {
    opacity: 1;
}

/* Selected card state */
.org-card.selected {
    background: rgba(17, 124, 194, 0.1);
}

/* Selection controls bar (appears when items selected) */
.selection-controls {
    border-radius: 4px;
    position: absolute;
    top: 100%;
    right: 164px;
    background: white;
    border: 1px solid var(--ehealth-border);
    border-radius: var(--ehealth-radius);
    box-shadow: var(--ehealth-shadow-lg);
    z-index: 100;
    min-width: 180px;
    padding: 15px;
}

#selection-count {
    font-weight: 600;
    color: #08306E;
    font-size: 13px;
    display: block;
}

/* Highlighted card (when clicked to view on map) */
.org-card.highlighted {
    background: rgba(17, 124, 194, 0.08);
    border-left: 3px solid #117CC2;
}
.sort-dropdown {
    display: flex;
    align-items: center;
}
.sort-dropdown label {
   margin-right: 4px;
}
.sort-select,
.radius-select,
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 24px 8px 14px;
    border: 1px solid #dfe1e5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
    min-width: 90px;
}

.sort-select:hover,
.radius-select:hover {
    border-color: #117CC2;
}

.sort-select:focus,
.radius-select:focus {
    outline: none;
    border-color: #117CC2;
    box-shadow: 0 0 0 3px rgba(17, 124, 194, 0.15);
}

/* Selection info badge (shows count when not in select mode) */
.selection-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.selection-count-badge {
    background: #117CC2;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.selection-info button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 14px;
}

.selection-info button:hover {
    color: #f77530;
}

/* Select mode button */
.select-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #dfe1e5;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.select-mode-btn:hover {
    border-color: #117CC2;
    color: #117CC2;
}

.select-mode-btn i {
    font-size: 14px;
}

/* =========================================================================
   MAIN LAYOUT
   ========================================================================= */

.ehealth-content {
    display: flex;
    flex-direction: column;
    position: relative;
}

.ehealth-main {
    display: flex;
    min-height: 300px;
    height: calc(100vh - 174px);
}

.ehealth-sidebar {
    width: 450px;
    flex-shrink: 0;
    border-right: 1px solid var(--ehealth-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ehealth-results {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 237px);
}

.ehealth-map-container {
    flex: 1;
    position: relative;
    min-width: 0;
}

.ehealth-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* =========================================================================
   ORGANIZATION CARDS
   ========================================================================= */

.org-card {
    padding: 15px 20px 9px 20px;
    border-bottom: 1px solid var(--ehealth-border);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    padding-right: 105px;
}

.org-card:hover {
    background: var(--ehealth-bg-secondary);
}

html .elementor-kit-13363 .org-name, .org-name, html .elementor-kit-13363 .ehealth-infowindow h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ehealth-primary);
    margin-bottom: 2px;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: -.3px;
}

html .elementor-kit-13363 .org-name, .org-name {
   padding-right:20px;
}

.org-type {
    font-size: 12px;
    color: var(--ehealth-text-light);
    margin-bottom: 8px;
    display: inline-flex;
     border-radius: 5px;
     padding: 2px 5px;
}
.org-type {
    position: absolute;
    right: 15px;
    top: 15px;
}
.org-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--ehealth-text);
    margin-bottom: 8px;
}

.pin-icon {
    flex-shrink: 0;
}

.pin-icon.orange {
    color: var(--ehealth-secondary);
}

.pin-icon.blue {
    color: var(--ehealth-accent);
}

.org-parent {
    font-size: 13px;
    color: var(--ehealth-text);
    padding: 8px 0 0;
    border-top: 1px solid var(--ehealth-border-light);
    margin-top: 8px;
}

.org-parent a {
    color: var(--ehealth-primary);
    text-decoration: none;
}

.org-parent a:hover {
    text-decoration: underline;
}

.arrow-icon {
    color: var(--e-global-color-accent);
    margin-left: 5px;
}

.org-subparticipants {
    padding-top: 8px;
}

.org-subparticipants a {
    color: var(--ehealth-accent);
    text-decoration: none;
    font-size: 13px;
}

.org-subparticipants a:hover {
    text-decoration: underline;
}

/* =========================================================================
   MAP LEGEND
   ========================================================================= */

/* Legend hidden for now — content moved into the ? help tooltip.
   Remove display:none to restore if needed. */
.map-legend {
    display: none;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.participant {
    background: var(--ehealth-secondary);
}

.legend-dot.subparticipant {
    background: var(--ehealth-accent);
}

/* Hide the Google Maps fullscreen control — not needed in this layout */
.gm-fullscreen-control {
    display: none !important;
}

/* =========================================================================
   MAP HELP BUTTON & TOOLTIP
   ========================================================================= */

.map-help-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--ehealth-shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ehealth-primary);
    cursor: pointer;
    z-index: 20;
    user-select: none;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.map-help-btn:hover {
    background: #117CC2;
    color: white;
}

/* "Map Legend" label that appears on hover before the panel opens */
.map-help-btn::after {
    content: 'Map Legend';
    position: absolute;
    top: 50%;
    right: calc(100% + 8px);
    transform: translateY(-50%);
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.map-help-btn:hover::after {
    opacity: 1;
}

/* Hide the hover label once the panel is open — redundant at that point */
.map-help-btn--open::after {
    display: none;
}

.map-help-tooltip {
    display: none;
    position: absolute;
    top: 36px;
    right: 0;
    width: 360px;
    z-index: 30;
}

.map-help-btn--open .map-help-tooltip {
    display: block;
}

.map-help-tooltip-inner {
    background: white;
    border-radius: var(--ehealth-radius);
    box-shadow: var(--ehealth-shadow-lg);
    padding: 18px 20px;
    font-size: 13px;
    color: var(--ehealth-text);
}

.map-help-tooltip-inner h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ehealth-primary);
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ehealth-border);
}

.map-help-tooltip-inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.map-help-tooltip-inner li {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: start;
    gap: 10px;
    line-height: 1.5;
    color: var(--ehealth-text-light);
}

.map-help-tooltip-inner li strong {
    color: var(--ehealth-text);
    font-weight: 600;
    display: block;
    margin-bottom: 1px;
}

.map-help-tooltip-inner .help-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3px;
}

.help-icon-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}

.help-icon-dot.participant {
    background: var(--ehealth-secondary);
}

.help-icon-dot.subparticipant {
    background: var(--ehealth-accent);
}

.help-cluster-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #d55a0d, #025ca9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

/* =========================================================================
   INFO WINDOW
   ========================================================================= */

.ehealth-infowindow {
    padding: 8px 8px 0 8px;
    max-width: 280px;
    position: relative;
}

/* FIX 4: X close button in the top-right corner of each popup */
.infowindow-close {
    position: absolute;
    top: 0;
    right: -8px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    color:  var(--ehealth-secondary) !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
    background: none !important;
    padding: 0 !important;
}
.infowindow-close:hover {
    background: #f0f0f0;
    color: var(--ehealth-accent);
}

.ehealth-infowindow h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ehealth-text);
}

.ehealth-infowindow .org-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
}

.ehealth-infowindow .org-type-badge.participant, .org-type.participant {
    background: #fcf1da;
    color: #c84d03;
}

.ehealth-infowindow .org-type-badge.subparticipant, .org-type.subparticipant {
    background: #e9f1fc;
     color: #036cb1;
}

.ehealth-infowindow .address {
    font-size: 13px;
    color: var(--ehealth-text-light);
    margin-bottom: 8px;
}

.ehealth-infowindow .subparticipant-link,
.ehealth-infowindow .parent-link {
    font-size: 13px;
    color: var(--ehealth-text-light);
    padding-top: 8px;
    border-top: 1px solid var(--ehealth-border);
    margin-top: 8px;
}

.ehealth-infowindow .subparticipant-link a,
.ehealth-infowindow .parent-link a {
    color: var(--ehealth-primary);
    text-decoration: none;
    font-weight: 500;
}

.ehealth-infowindow .subparticipant-link a:hover,
.ehealth-infowindow .parent-link a:hover {
    color: var(--ehealth-secondary);
    text-decoration: underline;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--ehealth-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--ehealth-secondary) !important;
    color: white;
    font-size: 14px !important;
}

.btn-primary:hover {
    background: var(--ehealth-accent) !important;
}

body .elementor-kit-13363 #ehealth-locator-root .btn-primary {
   background: var(--ehealth-secondary);
}
.btn-secondary {
    background: var(--ehealth-bg-tertiary);
    color: var(--ehealth-text);
    border: 1px solid var(--ehealth-border);
}

.btn-secondary:hover {
    background: var(--ehealth-bg-secondary);
}

.btn-text {
    background: none;
    color: var(--ehealth-text-light);
    padding: 10px;
}

.btn-text:hover {
    color: var(--ehealth-text);
}

/* =========================================================================
   LOADING & ERROR STATES
   ========================================================================= */

.ehealth-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.ehealth-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--ehealth-border);
    border-top-color: var(--ehealth-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ehealth-loading p {
    color: var(--ehealth-text);
    font-size: 16px;
    margin-bottom: 8px;
}

/* Full-content overlay shown during Reset Search / View All.
   Covers both the sidebar and map panels simultaneously so the
   reset reads as a single unified operation. */
.reset-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 50, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: var(--ehealth-radius);
}

.reset-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: none;
    padding: 32px 48px;
    border-radius: var(--ehealth-radius);
}

.reset-overlay-inner .ehealth-spinner {
    width: 40px;
    height: 40px;
    border-color: rgba(255,255,255,0.2);
    border-top-color: var(--ehealth-secondary);
    margin-bottom: 14px;
}

.reset-overlay-inner p {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    opacity: 0.85;
}

.loading-subtext {
    color: var(--ehealth-text-light);
    font-size: 13px;
}

.ehealth-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.ehealth-error h3 {
    font-size: 20px;
    color: var(--ehealth-text);
    margin-bottom: 10px;
}

.ehealth-error p {
    color: var(--ehealth-text-light);
    margin-bottom: 20px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
  @media only screen and (min-width: 1200px)  {   
   .export-megamenu.is-open {
   display: flex !important;
   padding: 1rem;
   border-radius: 0 0 5px 5px;
   top: calc(100% + 0px);
   width:100%;
   }
   .export-section-title {
       font-size: 15px;
       font-weight: 600;
       letter-spacing: -.3px;
   }
   .export-megamenu.is-open .export-section {
       width: 32.33%;
       padding: 2rem;
       border: 1px solid #e6e6e6;
       margin: 1%;
       border-radius: 5px;
   }
}
 @media only screen and (min-width: 1025px)  {  
   .results-info {
      min-width: 430px;
   }
}
@media only screen and (max-width: 1300px) and (min-width: 1100px)  {
  .search-row {
      max-width: 760px;
      margin: 0 10px 10px auto;
  } 
  .topbar-links {
        max-width: 760px;
        margin: 0 10px 0 auto;
    } 
   
}

@media only screen and (max-width: 1100px) and (min-width: 1025px)  {
  .search-row {
      max-width: 700px;
      margin: 0 10px 10px auto;
  } 
  .topbar-links {
        max-width: 700px;
        margin: 0 10px 0 auto;
    } 
   
}

@media (max-width: 1024px) {
    .ehealth-main {
        flex-direction: column;
    }
    
    .topbar-links {
        margin: 0 auto;
    }
    .search-row {
        margin: 0 auto 10px;
    }
    .ehealth-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--ehealth-border);
    }
    
    .ehealth-results {
        max-height: 400px;
    }
    
    .ehealth-map {
        min-height: 400px;
    }
    .ehealth-results-bar {
     height: auto;   
     }
     a.map-logo {
         position: relative;
         left: auto;
         width: 250px;
         top: -5px;
         display: block;
         margin: 0 auto;
     }
     html .elementor-kit-13363 .org-name, .org-name, html .elementor-kit-13363 .ehealth-infowindow h3 {
      font-size: 15px;
   }
}

@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }
    
    .search-org,
    .search-location {
        max-width: 100%;
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .ehealth-results-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
  
    .results-info {
        flex-wrap: wrap;
    }
    
    .filters-panel {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
}
