/* css/mjm-list.css */

.location-group {
    margin-bottom: 10px;
}

.location-title {
    display: flex;
    align-items: center;
    padding: 5px 0;
    position: relative;
}

.location-title-text {
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
}

.location-title a {
    color: black;
    text-decoration: none !important;
}

.location-title a:hover {
    color:  #ff4a0a;
}

.expand-toggle {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #ff4a0a;
    cursor: pointer;
}

.location-title[data-expandable="true"] {
    cursor: pointer;
}

.location-title[data-expandable="true"]::before {
    content: "+";
    display: inline-block;
    width: 20px;
    height: 33px;
    text-align: center;
    margin-right: 10px;
    font-size: 24px;
    font-weight: 400;
    color: #ff4a0a;
}

.location-title[data-expandable="true"][aria-expanded="true"]::before {
    content: "−";
}

.location-count {
    margin-left: 10px;
    font-size: 12px;
    color: #666;
}

.location-subitems {
    margin-left: 30px; /* Indent sub-items */
    padding: 5px 0;
}

.location-item {
    padding: 5px 0;
}

.location-item a {
    text-decoration: none;
    color: inherit;
    pointer-events: auto; /* Ensure links receive pointer events */
}

.location-item a:hover {
    color:  #ff4a0a;
}


.list-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    height: auto !important; /* Ensure container grows with content */
    overflow-y: visible !important; /* Disable scrolling */
}

#search-container {
    margin-bottom: 20px;
}

#list-search {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#location-list {
    display: block !important; /* Ensure list is visible */
    height: auto !important; /* Remove fixed height */
    max-height: none !important; /* Remove max height */
    overflow-y: visible !important; /* Disable scrolling */
}

.location-group {
    margin-bottom: 15px;
}

.location-title {
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.location-title-text {
    margin-right: 5px;
}

.location-count {
    font-size: 14px;
    color: #666;
}

.location-subitems {
    margin-left: 20px;
    margin-top: 5px;
}

.location-item {
    margin: 5px 0;
    font-size: 16px;
}