/* ===== Layout ===== */
.map-locations-container {
    display: flex;
    width: 100%;
    gap: 0;
}

.map-panel {
    flex: 7;
    overflow: hidden;
    background: #e2ddcf;
}

#svg-map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1097.5 / 735.7;
}

#svg-map-container > svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.accordion-panel {
    flex: 3;
    background: #f5f3ef;
    border-left: 1px solid #ddd;
    overflow: hidden;
    max-height: var(--map-height, auto);
}

/* ===== Pins ===== */
.map-pin {
    position: absolute;
    width: 1.4vw;
    height: 1.4vw;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.map-pin.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-pin.highlight {
    z-index: 15;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
    transform: translate(-50%, -100%) scale(1.25);
}

/* ===== Tooltip ===== */
.map-tooltip {
    position: absolute;
    background: #2f3840;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;
    transform: translate(-50%, -100%);
    margin-top: -12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2f3840;
}

.map-tooltip.below {
    transform: translate(-50%, 0);
    margin-top: 6px;
}

.map-tooltip.below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #2f3840;
}

/* ===== Accordion ===== */
.accordion-category {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: rgba(0,0,0,0.03);
}

.accordion-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.accordion-title {
    font-family: 'North Carossela';
    font-size: 26px;
    text-transform: uppercase;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-category.active .accordion-body {
    max-height: var(--accordion-body-max, 800px);
    overflow-y: auto;

    /* Scroll shadows — only appear where content overflows */
    background:
        linear-gradient(#f5f3ef 30%, transparent) top / 100% 20px,
        linear-gradient(transparent, #f5f3ef 70%) bottom / 100% 20px,
        linear-gradient(rgba(0,0,0,0.06), transparent) top / 100% 10px,
        linear-gradient(transparent, rgba(0,0,0,0.06)) bottom / 100% 10px;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
}

/* Styled scrollbar */
.accordion-body::-webkit-scrollbar {
    width: 4px;
}

.accordion-body::-webkit-scrollbar-track {
    background: transparent;
}

.accordion-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
}

.accordion-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

/* Firefox */
.accordion-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.accordion-locations {
    list-style: none;
    padding: 0 24px 18px 48px;
    margin: 0;
}

.accordion-locations li {
    line-height: 1.5vw;
    color: #555;
    cursor: default;
    transition: color 0.15s ease;
	font-size:.85vw;
}

.accordion-locations li:hover {
    color: #222;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .map-locations-container {
        flex-direction: column;
    }

    .map-panel {
        flex: none;
        width: 100%;
    }

    .accordion-panel {
        flex: none;
        width: 100%;
        border-left: none;
        border-top: 1px solid #ddd;
        max-height: none;
        overflow: visible;
    }

    .accordion-category.active .accordion-body {
        max-height: 800px;
        overflow-y: visible;
    }

    .accordion-header {
        padding: 14px 16px;
    }

    .accordion-locations {
        padding: 0 16px 14px 40px;
    }
	
	.accordion-locations li{
		font-size:14px;
		line-height:20px;
	}
}
