/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Jun 23 2025 | 17:40:49 */
/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Jun 20 2025 | 07:27:23 */
/* Center Locator Custom Styles */

/* FIXED: Further reduced header spacing */
.header-reduced-spacing {
    margin-bottom: 1rem !important;
}

.header-reduced-spacing .coe-main-title {
    margin-bottom: 0.5rem !important;
}

.header-reduced-spacing .coe-main-subtitle {
    margin-bottom: 0.5rem !important;
}

/* FIXED: Country dropdown width */
.country-select-wide {
    min-width: 150px !important;
    width: 100% !important;
}

/* FIXED: Category text wrapping */
.category-label-wrapper {
    display: flex !important;
    align-items: flex-start !important;
    min-height: 24px;
}

.category-text {
    flex: 1;
    line-height: 1.4 !important;
    word-wrap: break-word;
    white-space: normal !important;
    margin-left: 8px !important;
}

/* FIXED: Equal height containers */
.results-container,
.map-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* DESKTOP ONLY: Scrollable centers container with shadow box */
@media (min-width: 960px) {
    .centers-scroll-container {
        max-height: 600px;
        overflow-y: auto;
        padding: 15px;
        margin: 0 -15px;
        background: #fafafa;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
        flex: 1;
    }

    /* Custom scrollbar for centers list - Desktop only */
    .centers-scroll-container::-webkit-scrollbar {
        width: 8px;
    }

    .centers-scroll-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .centers-scroll-container::-webkit-scrollbar-thumb {
        background: var(--excellence-blue);
        border-radius: 4px;
    }

    .centers-scroll-container::-webkit-scrollbar-thumb:hover {
        background: var(--dark-blue);
    }
}

/* MOBILE: No scrollable container */
.centers-list-mobile {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    max-height: none;
}

/* Filter Section Styling */
.center-locator-filters {
    background: white;
    border-radius: var(--corner-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
}

/* Form Controls */
#center-search-input {
    border: 1px solid var(--light-blue);
    border-radius: 8px;
    padding: 12px 15px 12px 40px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background-color: white;
    height: 44px;
    line-height: 1.2;
}

#center-search-input:focus {
    border-color: var(--excellence-blue);
    box-shadow: 0 0 0 3px rgba(27, 53, 138, 0.15);
    outline: none;
}

#center-search-input::placeholder {
    color: #aab0bc;
    font-size: 0.9rem;
}

#country-select {
    border: 1px solid var(--light-blue);
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    min-width: 150px;
    height: 44px;
    line-height: 1.2;
}

#country-select:focus {
    border-color: var(--excellence-blue);
    box-shadow: 0 0 0 3px rgba(27, 53, 138, 0.15);
    outline: none;
}

/* Category Checkboxes */
.category-checkbox {
    margin-right: 8px;
    accent-color: var(--excellence-blue);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.category-checkbox + span {
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
    line-height: 1.4;
}

/* Mobile View Toggle Buttons */
.view-toggle-btn {
    border: 2px solid var(--excellence-blue);
    background: transparent;
    color: var(--excellence-blue);
    padding: 12px 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
    background: var(--excellence-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.view-toggle-btn:first-child {
    border-radius: 8px 0 0 8px;
    border-right: 1px solid var(--excellence-blue);
}

.view-toggle-btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: 1px solid var(--excellence-blue);
}

/* Center Cards */
.center-card {
    background: white;
    border-radius: var(--corner-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.center-card .uk-width-expand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.center-card .center-content {
    flex: 1;
}

.center-card .center-actions {
    margin-top: auto;
    padding-top: 10px;
}

.center-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(27, 53, 138, 0.1);
}

.center-card.highlighted {
    border: 2px solid var(--excellence-yellow);
    box-shadow: var(--shadow-strong);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.center-card.highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--excellence-blue) 0%, var(--excellence-yellow) 100%);
    z-index: 1;
}

/* Center Photos */
.center-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid white;
}

.center-card:hover .center-photo {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.center-photo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    box-shadow: var(--shadow-light);
    border: 2px solid white;
}

/* Center Information */
.center-name {
    color: var(--excellence-blue);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.center-country {
    color: var(--medium-gray);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 10px 0;
    opacity: 0.8;
}

/* FIXED: Category Badges - Better wrapping and mobile display */
.center-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.center-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 15px;
    border: 2px dashed var(--excellence-blue);
    background: rgba(27, 53, 138, 0.05);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--excellence-blue);
    position: relative;
    transition: all 0.3s ease;
    gap: 6px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.center-badge:hover {
    background: rgba(27, 53, 138, 0.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.badge-text {
    line-height: 1.2;
    font-size: 0.7rem;
    flex: 1;
    min-width: 0;
}

.badge-check {
    width: 16px;
    height: 16px;
    background: var(--excellence-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--excellence-blue);
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.badge-check svg {
    width: 10px;
    height: 10px;
}

/* Specific badge styles */
.aus-badge {
    border-color: var(--excellence-blue);
}

.pi-badge {
    border-color: var(--excellence-blue);
}

/* FIXED: Map Info Window Badges - Better layout for mobile */
.map-info-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 35px 8px 12px;
    border-radius: 15px;
    border: 2px dashed #1B358A;
    background: rgba(27, 53, 138, 0.05);
    font-size: 0.75rem;
    font-weight: 600;
    color: #1B358A;
    margin: 6px 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.map-info-badge-text {
    flex: 1;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    padding-right: 8px;
}

.map-info-badge-tick {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #FECA0A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B358A;
    font-weight: bold;
    border: 2px solid white;
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Center Actions - Visit Website Button */
.center-actions .coe-button-primary {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-width: auto;
    width: auto;
    display: inline-block;
}

/* Results Information */
#results-info {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 500;
}

/* Loading Spinner */
#loading-spinner {
    padding: 40px 0;
}

#loading-spinner p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Pagination Styling */
.uk-pagination {
    margin-top: 20px;
}

.uk-pagination > li > a.pagination-link {
    color: var(--excellence-blue);
    border: 1px solid var(--light-blue);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 2px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

.uk-pagination > li > a.pagination-link:hover {
    background: var(--excellence-blue);
    color: white;
    border-color: var(--excellence-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.uk-pagination > .uk-active > span {
    background: var(--excellence-blue);
    color: white;
    border: 1px solid var(--excellence-blue);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 2px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

.uk-pagination > .uk-disabled > span {
    color: var(--medium-gray);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

/* FIXED: Main Grid Layout - Footer Safe - Only works in center locator section */
.center-locator-page .uk-grid-large,
.main-content .uk-grid-large {
    min-height: calc(100vh - 300px);
}

/* Results Container Height */
.coe-content-box {
    height: 100%;
}

/* Map Containers - Enhanced Full Height */
#map-column .coe-content-box {
    padding: 0;
    overflow: hidden;
    height: calc(100vh - 200px);
    min-height: 600px;
    border: none; /* Remove border */
    box-shadow: none; /* Remove shadow */
}

#desktop-google-map {
    width: 100%;
    height: 100%;
    border-radius: 0; /* Remove border radius */
    min-height: 600px;
    border: none; /* Ensure no border */
}

#mobile-google-map {
    width: 100%;
    height: 100%;
    border-radius: 0; /* Remove border radius */
    min-height: 400px;
    border: none; /* Ensure no border */
}

#mobile-map-wrapper {
    margin-bottom: 20px;
    height: calc(100vh - 150px);
    max-height: none;
}

#mobile-map-wrapper .coe-content-box {
    height: 100%;
    min-height: 400px;
}

/* NEW: Multi-Center Info Window Slider Styles */
.map-info-window {
    font-family: 'Montserrat', sans-serif;
    max-width: 320px;
    padding: 15px;
    position: relative;
}

.map-info-window.multi-center {
    max-width: 350px;
    padding: 15px;
}

.map-info-window h4 {
    color: var(--excellence-blue);
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
}

.map-info-window p {
    color: var(--medium-gray);
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

/* NEW: Slider Content Animation */
.slider-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.slider-content.sliding {
    opacity: 0.7;
    transform: translateX(10px);
}

/* NEW: Enhanced Slider Navigation Buttons - Always navy blue and visible */
.slider-nav-btn {
    background: #1B358A !important;
    border: 2px solid #1B358A !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    font-weight: bold !important;
    user-select: none !important;
    box-shadow: 0 2px 6px rgba(27, 53, 138, 0.3) !important;
    flex-shrink: 0 !important;
}

.slider-nav-btn:hover:not([disabled]) {
    background: #0f2654 !important;
    border-color: #0f2654 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(27, 53, 138, 0.5) !important;
}

.slider-nav-btn[disabled] {
    background: #ccc !important;
    border-color: #ccc !important;
    color: #888 !important;
    cursor: not-allowed !important;
    opacity: 0.4 !important;
}

.slider-nav-btn:active:not([disabled]) {
    transform: scale(0.95) !important;
}

/* NEW: Arrow icons inside navigation buttons - proper size */
.slider-nav-btn svg {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.slider-nav-btn:hover:not([disabled]) svg {
    transform: scale(1.1);
}

/* NEW: Slider Thumbnails */
.slider-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #ddd;
    cursor: pointer;
    margin: 0 5px;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slider-thumbnail:hover {
    transform: scale(1.1);
    border-color: #1B358A;
    box-shadow: 0 2px 8px rgba(27, 53, 138, 0.3);
}

.slider-thumbnail.active {
    border-color: #1B358A;
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(27, 53, 138, 0.4);
}

.slider-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 53, 138, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.slider-thumbnail:hover::after {
    opacity: 1;
}

.slider-thumbnail.active::after {
    opacity: 0;
}

/* NEW: Thumbnail placeholder for no photo */
.slider-thumbnail:not([style*="background-image"]) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 12px;
}

/* NEW: Slide transition animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-content.slide-in-right {
    animation: slideInRight 0.3s ease;
}

.slider-content.slide-in-left {
    animation: slideInLeft 0.3s ease;
}

/* NEW: Center counter styling */
.multi-center .center-counter {
    background: rgba(27, 53, 138, 0.1);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #1B358A;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

/* Form Labels */
.uk-form-label {
    font-weight: 600;
    color: var(--excellence-blue);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

/* Search Button Height Consistency */
#search-centers-btn {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Clear Filters Button */
#clear-filters-btn {
    font-size: 0.85rem;
    padding: 8px 16px;
}

/* Debug Panel */
.debug-output {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    overflow-x: auto;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

details.uk-details summary {
    color: var(--excellence-blue);
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
}

details.uk-details[open] summary {
    margin-bottom: 10px;
}

/* Loading States */
.uk-opacity-50 {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty State */
.centers-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--medium-gray);
}

.centers-empty-state h3 {
    color: var(--excellence-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 959px) {
    /* Remove shadow box and scrolling on mobile */
    .centers-scroll-container,
    .centers-list-mobile {
        max-height: none !important;
        overflow-y: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }
    
    /* Mobile Map Full Height */
    #mobile-map-wrapper {
        height: calc(100vh - 120px);
        margin-bottom: 20px;
        max-height: none;
    }
    
    /* FIXED: Larger center cards on mobile */
    .center-card {
        padding: 20px;
        margin-bottom: 18px;
    }
    
    .center-card .uk-width-expand {
        min-height: 140px;
    }
    
    /* FIXED: Larger photos on mobile */
    .center-photo,
    .center-photo-placeholder {
        width: 60px;
        height: 60px;
    }
    
    /* FIXED: Better font sizes on mobile */
    .center-name {
        font-size: 1.1rem;
    }
    
    .center-country {
        font-size: 0.95rem;
    }
    
    /* FIXED: Better badge spacing and wrapping on mobile */
    .center-categories {
        gap: 12px;
        margin-bottom: 18px;
    }
    
    .center-badge {
        font-size: 0.85rem;
        padding: 10px 14px;
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        margin-bottom: 8px;
    }
    
    .badge-text {
        font-size: 0.8rem;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    .badge-check {
        width: 20px;
        height: 20px;
    }
    
    .badge-check svg {
        width: 12px;
        height: 12px;
    }
    
    /* FIXED: Better mobile button spacing */
    .view-toggle-btn {
        padding: 16px 14px;
        font-size: 0.9rem;
        gap: 8px;
    }
    
    /* Mobile view management */
    #results-column.mobile-hidden {
        display: none !important;
    }
    
    #mobile-map-wrapper.mobile-visible {
        display: block !important;
    }
    
    /* FIXED: Better pagination spacing on mobile */
    .uk-pagination > li > a.pagination-link,
    .uk-pagination > .uk-active > span,
    .uk-pagination > .uk-disabled > span {
        padding: 10px 14px;
        margin: 0 4px;
        min-width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
    
    /* FIXED: Better category text on mobile */
    .category-text {
        font-size: 0.95rem !important;
        line-height: 1.4;
    }
    
    /* NEW: Mobile info window adjustments */
    .map-info-window {
        padding: 10px;
        max-width: 300px;
    }
    
    .map-info-window.multi-center {
        max-width: 300px;
        padding: 10px;
    }
    
    /* Smaller doctor name font on mobile */
    .map-info-window h4 {
        font-size: 0.9rem;
    }
    
    /* Smaller Visit Website button on mobile */
    .map-info-window .coe-button-primary {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    /* FIXED: Better badge layout in mobile map popup */
    .map-info-badge {
        font-size: 0.7rem;
        padding: 6px 30px 6px 10px;
    }
    
    .map-info-badge-tick {
        width: 16px;
        height: 16px;
        font-size: 10px;
        right: 6px;
    }
    
    .slider-nav-btn {
        width: 36px !important;
        height: 36px !important;
    }
    
    .slider-nav-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .slider-thumbnail {
        width: 35px;
        height: 35px;
        margin: 0 3px;
    }
    
    /* Mobile custom close button */
    .custom-close-btn {
        width: 28px !important;
        height: 28px !important;
        top: -8px !important;
        right: -8px !important;
    }
    
    .custom-close-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 639px) {
    /* FIXED: Even better mobile spacing */
    .center-card {
        padding: 16px;
        margin-bottom: 16px;
        overflow: hidden;
    }
    
    /* Mobile full height adjustments */
    .centers-scroll-container,
    .centers-list-mobile {
        max-height: none !important;
    }
    
    #mobile-map-wrapper {
        height: calc(100vh - 100px);
    }
    
    .center-card .uk-width-expand {
        min-height: 130px;
        overflow: hidden;
    }
    
    .center-photo,
    .center-photo-placeholder {
        width: 55px;
        height: 55px;
    }
    
    .center-name {
        font-size: 1.05rem;
    }
    
    .center-country {
        font-size: 0.9rem;
    }
    
    /* FIXED: Force badges to wrap properly and prevent overflow */
    .center-categories {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        margin-bottom: 16px;
        overflow: hidden;
        width: 100%;
    }
    
    .center-badge {
        font-size: 0.75rem;
        padding: 6px 10px;
        justify-content: space-between;
        width: 100%;
        max-width: calc(100% - 20px);
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .badge-text {
        font-size: 0.7rem;
        flex: 1;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .badge-check {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    /* FIXED: Smaller buttons on mobile */
    .view-toggle-btn {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    /* Form adjustments */
    #center-search-input,
    #country-select {
        padding: 14px 16px;
        font-size: 1rem;
        height: 48px;
    }
    
    #center-search-input {
        padding-left: 42px;
    }
    
    #country-select {
        padding-right: 42px;
        min-width: 140px;
    }
    
    .category-text {
        font-size: 0.9rem !important;
    }
    
    /* Search button sizing */
    #search-centers-btn {
        padding: 14px 18px;
        font-size: 0.95rem;
        height: 48px;
    }
    
    /* Visit Website Button Mobile Sizing */
    .center-actions .coe-button-primary {
        padding: 6px 14px;
        font-size: 0.75rem;
        width: auto;
        max-width: 100%;
    }
    
    /* NEW: Compact info window for small screens */
    .map-info-window {
        max-width: 280px;
        padding: 8px;
    }
    
    .map-info-window.multi-center {
        max-width: 280px;
        padding: 8px;
    }
    
    /* Even smaller doctor name font */
    .map-info-window h4 {
        font-size: 0.85rem;
    }
    
    /* Even smaller Visit Website button */
    .map-info-window .coe-button-primary {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    /* FIXED: Even better badge layout for small screens */
    .map-info-badge {
        font-size: 0.65rem;
        padding: 5px 28px 5px 8px;
    }
    
    .map-info-badge-text {
        font-size: 0.65rem;
    }
    
    .map-info-badge-tick {
        width: 14px;
        height: 14px;
        font-size: 9px;
        right: 5px;
    }
    
    .slider-nav-btn {
        width: 32px !important;
        height: 32px !important;
    }
    
    .slider-nav-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .slider-thumbnail {
        width: 30px;
        height: 30px;
        margin: 0 2px;
    }
    
    /* Compact custom close button */
    .custom-close-btn {
        width: 26px !important;
        height: 26px !important;
        top: -6px !important;
        right: -6px !important;
    }
    
    .custom-close-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 479px) {
    .center-card {
        padding: 14px;
        margin-bottom: 12px;
    }
    
    /* Ultra mobile height adjustments */
    .centers-scroll-container,
    .centers-list-mobile {
        max-height: none !important;
    }
    
    #mobile-map-wrapper {
        height: calc(100vh - 80px);
    }
    
    .center-photo,
    .center-photo-placeholder {
        width: 45px;
        height: 45px;
    }
    
    .center-name {
        font-size: 0.95rem;
    }
    
    .center-country {
        font-size: 0.8rem;
    }
    
    /* FIXED: Ultra-compact badges for very small screens */
    .center-badge {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    
    .badge-text {
        font-size: 0.65rem;
    }
    
    .badge-check {
        width: 14px;
        height: 14px;
    }
    
    .badge-check svg {
        width: 8px;
        height: 8px;
    }
    
    /* Smaller buttons */
    .view-toggle-btn {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    /* Ultra compact pagination */
    .uk-pagination > li > a.pagination-link,
    .uk-pagination > .uk-active > span,
    .uk-pagination > .uk-disabled > span {
        padding: 6px 10px;
        margin: 0 2px;
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .category-text {
        font-size: 0.8rem !important;
    }
    
    /* Compact search button */
    #search-centers-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    /* NEW: Ultra-compact info window */
    .map-info-window {
        max-width: 260px;
        padding: 6px;
    }
    
    .map-info-window.multi-center {
        max-width: 260px;
        padding: 6px;
    }
    
    /* Smallest doctor name font */
    .map-info-window h4 {
        font-size: 0.8rem;
    }
    
    /* Smallest Visit Website button */
    .map-info-window .coe-button-primary {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    /* FIXED: Ultra-compact badge layout */
    .map-info-badge {
        font-size: 0.6rem;
        padding: 4px 25px 4px 6px;
    }
    
    .map-info-badge-text {
        font-size: 0.6rem;
        line-height: 1.2;
    }
    
    .map-info-badge-tick {
        width: 12px;
        height: 12px;
        font-size: 8px;
        right: 4px;
    }
    
    .slider-nav-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    .slider-nav-btn svg {
        width: 10px !important;
        height: 10px !important;
    }
    
    .slider-thumbnail {
        width: 25px;
        height: 25px;
        margin: 0 1px;
    }
    
    /* Ultra-compact custom close button */
    .custom-close-btn {
        width: 24px !important;
        height: 24px !important;
        top: -4px !important;
        right: -4px !important;
    }
    
    .custom-close-btn svg {
        width: 10px !important;
        height: 10px !important;
    }
}

/* Animation for highlighted cards */
@keyframes highlight-pulse {
    0% {
        box-shadow: var(--shadow-medium);
    }
    50% {
        box-shadow: 0 8px 25px rgba(254, 202, 10, 0.4);
    }
    100% {
        box-shadow: var(--shadow-medium);
    }
}

.center-card.highlighted {
    animation: highlight-pulse 1.5s ease-in-out;
}

/* Focus states for accessibility */
.center-card:focus-within {
    outline: 2px solid var(--excellence-yellow);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--excellence-yellow);
    outline-offset: 2px;
}

.pagination-link:focus {
    outline: 2px solid var(--excellence-yellow);
    outline-offset: 2px;
}

/* NEW: Slider accessibility focus */
.slider-nav-btn:focus,
.slider-thumbnail:focus {
    outline: 2px solid var(--excellence-yellow);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .center-badge {
        border-width: 3px;
        font-weight: 700;
    }
    
    .center-card {
        border-width: 2px;
    }
    
    .view-toggle-btn {
        border-width: 3px;
    }
    
    .slider-nav-btn {
        border-width: 3px;
    }
    
    .slider-thumbnail {
        border-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .center-card:hover {
        transform: none;
    }
    
    .view-toggle-btn:hover {
        transform: none;
    }
    
    .slider-nav-btn:hover {
        transform: none;
    }
    
    .slider-thumbnail:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    #mobile-map-wrapper,
    #map-column,
    .view-toggle-btn,
    #pagination-wrapper {
        display: none !important;
    }
    
    .center-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .centers-scroll-container,
    .centers-list-mobile {
        max-height: none;
        overflow: visible;
        background: transparent;
        border: none;
        box-shadow: none;
    }
}

/* Fix for UIkit grid conflicts */
.center-card .uk-grid-small > * {
    padding-left: 10px;
}

.center-card .uk-grid-small {
    margin-left: -10px;
}

/* Ensure proper spacing in filter section */
.coe-content-box .uk-grid-small > * {
    padding-left: 10px;
}

.coe-content-box .uk-grid-small {
    margin-left: -10px;
}

/* Smooth loading transitions */
.centers-list-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Map marker info window improvements */
.gm-style-iw-d {
    border-radius: var(--corner-radius) !important;
    padding: 0 !important;
    overflow: visible !important;
    max-height: none !important;
}

.gm-style-iw-t::after {
    background: white !important;
}

/* Force maps to maintain light theme in dark mode */
.gm-style {
    filter: none !important;
    -webkit-filter: none !important;
    /* Removed background-color to prevent blue borders */
}

/* Map container wrapper - ensure no background */
#desktop-google-map,
#mobile-google-map {
    background: transparent !important;
}

/* Ensure map tiles don't get inverted in dark mode */
.gm-style img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Prevent dark mode from affecting map controls */
.gm-style button,
.gm-style-cc {
    filter: none !important;
    -webkit-filter: none !important;
}

/* NEW: Custom close button styles with SVG - FIXED visibility */
.custom-close-btn {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #1B358A !important;
    border: 2px solid white !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.custom-close-btn:hover {
    background: #0f2654 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.custom-close-btn svg {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.2s ease;
}

.custom-close-btn:hover svg {
    transform: scale(1.1);
}

/* Make sure Google's close button doesn't overlap */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
}

.gm-style .gm-style-iw-t {
    right: 15px !important;
}

/* Remove any overlay that might block the close button */
.gm-style-iw {
    overflow: visible !important;
}

/* Search input icon positioning */
.uk-form-icon {
    color: var(--medium-gray);
}

/* Better button hover states */
.coe-button-primary:hover,
.coe-button-secondary:hover {
    text-decoration: none;
}

/* Mobile landscape specific adjustments */
@media (max-width: 959px) and (orientation: landscape) {
    #mobile-google-map {
        height: calc(100vh - 100px);
        min-height: 300px;
    }
    
    #mobile-map-wrapper {
        height: calc(100vh - 80px);
    }
}

/* FIXED: Dark mode - prevent black backgrounds and ensure marker visibility */
@media (prefers-color-scheme: dark) {
    /* Force Google Maps to maintain light theme and marker visibility */
    #desktop-google-map,
    #mobile-google-map,
    #desktop-google-map *,
    #mobile-google-map * {
        filter: none !important;
        -webkit-filter: none !important;
        mix-blend-mode: normal !important;
    }
    
    /* Prevent any darkening of map elements */
    .gm-style,
    .gm-style * {
        filter: none !important;
        -webkit-filter: none !important;
        opacity: 1 !important;
    }
    
    /* Ensure map container doesn't get dark background or borders */
    #map-column,
    #map-column .coe-content-box,
    #desktop-google-map,
    #mobile-google-map {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Remove any borders from map containers in dark mode */
    .coe-content-box {
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Ensure no blue background bleeds through */
    #map-column,
    #map-column > * {
        background: transparent !important;
    }
    
    /* Enhanced marker visibility in dark mode */
    .gm-style img[src*="spotlight-poi"],
    .gm-style img[src*="marker"] {
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) !important;
    }
    
    /* Prevent any color inversion on map elements */
    #desktop-google-map *,
    #mobile-google-map *,
    .gm-style *,
    .gm-style-iw *,
    .gm-style-iw-a * {
        color-scheme: light !important;
    }
    
    /* Main filter section - keep it white */
    .center-locator-filters {
        background: white !important;
        color: #333333 !important;
    }
    
    /* Form controls - keep them light */
    #center-search-input,
    #country-select {
        background: white !important;
        border-color: var(--light-blue) !important;
        color: #333333 !important;
    }
    
    #center-search-input:focus,
    #country-select:focus {
        border-color: var(--excellence-blue) !important;
        box-shadow: 0 0 0 3px rgba(27, 53, 138, 0.15) !important;
    }
    
    /* Labels - keep them blue */
    .uk-form-label {
        color: var(--excellence-blue) !important;
    }
    
    /* Checkboxes and text */
    .category-checkbox + span {
        color: #444 !important;
    }
    
    /* Center cards - keep them white */
    .center-card {
        background: white !important;
        border-color: rgba(0, 0, 0, 0.05) !important;
        color: #333333 !important;
    }
    
    .center-name {
        color: var(--excellence-blue) !important;
    }
    
    .center-country {
        color: var(--medium-gray) !important;
    }
    
    /* Badges - keep original styling */
    .center-badge {
        background: rgba(27, 53, 138, 0.05) !important;
        color: var(--excellence-blue) !important;
        border-color: var(--excellence-blue) !important;
    }
    
    /* Debug panel - keep it light */
    .debug-output {
        background: #f5f5f5 !important;
        border-color: #e0e0e0 !important;
        color: #333333 !important;
    }
    
    /* Info windows - keep them white */
    .map-info-window {
        background: white !important;
        color: #333333 !important;
    }
    
    .map-info-window h4 {
        color: #1B358A !important;
    }
    
    /* Buttons - maintain original styling */
    .coe-button-primary,
    .coe-button-secondary {
        background: var(--excellence-blue) !important;
        color: white !important;
    }
    
    /* View toggle buttons */
    .view-toggle-btn {
        background: transparent !important;
        color: var(--excellence-blue) !important;
        border-color: var(--excellence-blue) !important;
    }
    
    .view-toggle-btn.active,
    .view-toggle-btn:hover {
        background: var(--excellence-blue) !important;
        color: white !important;
    }
    
    /* Pagination */
    .uk-pagination > li > a.pagination-link {
        color: var(--excellence-blue) !important;
        border-color: var(--light-blue) !important;
        background: white !important;
    }
    
    .uk-pagination > li > a.pagination-link:hover {
        background: var(--excellence-blue) !important;
        color: white !important;
    }
    
    /* Main app container - ensure transparent background */
    #center-locator-app,
    .coe-content-section {
        background: transparent !important;
    }
    
    /* Content boxes - keep them white */
    .coe-content-box {
        background: white !important;
        color: #333333 !important;
    }
    
    /* Desktop scrollable container - always keep light background */
    @media (min-width: 960px) {
        .centers-scroll-container {
            background: #fafafa !important;
            border-color: #e0e0e0 !important;
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        }

        .centers-scroll-container::-webkit-scrollbar-track {
            background: #f1f1f1 !important;
        }
    }
    
    /* Never override body or root backgrounds - REMOVED to fix map visibility */
    /* This rule was causing Google Maps to not render in dark mode */
}