:root {
    --mapPrimary-color: #667F06;
    --mapPrimaryHover-color: #667F067A;
}

/* Section Layout */
.tama-map-section { background-color: #f2eee9; }
.tama-map-section .container { max-width: 1520px; }

/* Controls Container */
.tama-map-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
}

/* Category Buttons (Unified) */
.tama-cat-btn {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    padding: 10px 24px !important;
    border: 2px solid var(--mapPrimary-color, #667F06) !important;
    background-color: transparent !important;
    color: #667F06 !important;
    border-radius: 8px 8px 8px 0 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.tama-cat-btn.active, .tama-cat-btn:hover {
    background-color: var(--mapPrimary-color, #667F06) !important;
    color: #ffffff !important;
}

/* Map Container & States */
.map-svg-container {
    width: 100% !important;
    max-width: 95% !important;
    margin: 24px auto !important;
    display: block !important;
}

.map-svg-container svg {
    max-height: 620px !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.map-svg-container svg path {
    fill: #cdc3bb !important;
    stroke: #ffffff !important;
    stroke-width: 1px !important;
    transition: fill 0.3s ease, opacity 0.3s ease;
    cursor: pointer !important;
}

.map-svg-container svg path.active {
    fill: var(--mapPrimary-color, #667F06) !important;
    opacity: 1 !important;
}

.map-svg-container svg path.hovered {
    fill: var(--mapPrimary-color, #667F06) !important;
    opacity: 0.6 !important;
}

.map-svg-container svg path.faded {
    fill: #cdc3bb !important;
    opacity: 0.3 !important;
}

.map-svg-container svg path.inactive {
    fill: #eae3dc !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* Expert Cards */
.expert-card {
    background: #ffffff;
    border-radius: 20px 20px 20px 0px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.expert_role {
    color: var(--mapPrimary-color) !important;
    font-size: 20px;
    font-weight: 500;
}

.expert_states {
    color: #6b5e56 !important;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.expert_desc {
    color: #1c2d00 !important;
    font-size: 16px;
    line-height: 1.5;
}

.expert_desc.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-toggle {
    color: var(--mapPrimary-color) !important;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: none;
    margin-top: 8px;
    margin-bottom: 16px;
}

.expert_contacts a {
    color: #1c2d00 !important;
    text-decoration: underline !important;
}

.experts-list-container::-webkit-scrollbar { width: 6px; }
.experts-list-container::-webkit-scrollbar-track { background: #f1f1f1; }
.experts-list-container::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }

/* Desktop layout matching original blueprint: 65% Map, 35% Cards */
@media screen and (min-width: 992px) {
    .tama-map-section .row {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .tama-map-section .col-custom:first-of-type {
        flex: 1 1 auto !important;
    }
    
    .tama-map-section .col-custom:last-of-type {
        flex: 0 0 556px !important;
        max-width: 556px !important;
        width: 556px !important;
    }
}
/* --- Fluid Tablet Transition (992px - 1240px) --- */
@media screen and (min-width: 992px) and (max-width: 1240px) {
    .tama-map-section .col-custom:first-of-type {
        max-width: 55% !important;
        padding-right: 24px !important;
    }
    .tama-map-section .col-custom:last-of-type {
        flex: 0 0 45% !important;
        max-width: 45% !important;
        width: 45% !important;
    }
}

/* --- Mobile Layout Padding (Stacked) --- */
@media screen and (max-width: 991px) {
    .tama-map-section .col-custom {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    .map-svg-container {
        margin-bottom: 40px !important; /* Add space between stacked map and cards */
    }
    /* --- Hide Experts on Mobile Until Selected --- */
    .hide-experts-mobile {
        display: none !important;
    }
}
/* --- Mobile Dropdown Styles --- */
.dropdown-check-list { 
    width: 100% !important; 
    max-width: 100% !important;
    box-sizing: border-box !important;
    z-index: 99999 !important; 
    position: relative; 
}
.dropdown-check-list .anchor {
    width: 100% !important; 
    box-sizing: border-box !important;
    padding: 14px 40px 14px 16px !important;
    border: 1px solid #cdc3bb !important;
    border-radius: 8px !important;
    background-color: #fff !important; 
    font-size: 16px; 
    color: #6b5e56;
    outline: none;
    cursor: text;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b5e56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    box-shadow: none !important;
}
.dropdown-check-list.visible .anchor {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b5e56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E") !important;
}
.dropdown-check-list .items {
    display: none; 
    position: relative; 
    width: 100%; 
    background: #fff;
    border: 1px solid #cdc3bb; 
    border-top: none; 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.dropdown-check-list.visible .items {
    max-height: 250px !important; 
    overflow-y: auto !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dropdown-check-list .items li {
    padding: 12px 16px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
}
.dropdown-check-list .items li:hover {
    background-color: #f9f9f9;
}
.mobile-state-checkbox{width: 20px;
    height: 20px;
    border-radius: 3.333px 3.333px 3.333px 0px;
    position: relative;
    border: 1px solid #eae3dc !important;
    -webkit-appearance: none;
}

/* Expert Card Fade-In Animation */
@keyframes expertCardFadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.experts-list-container > div { 
    animation: expertCardFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; 
    will-change: opacity, transform;
}
