/* Plugin Styles */
#maison-map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 741px;
    font-family: "freight-text-pro", Georgia, 'Times New Roman', serif;
    background-color: #f2f0ec;
}

#maison-map #map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#maison-map .poi-legend {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 130px;
    width: 365px;
    max-height: 84vh;
    background: #F5F5F3;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border: none;
}

#maison-map .poi-legend::after {
    content: "";
    display: block;
    width: 150px;
    height: 5px;
    background-color: #423731;
    border-radius: 10px;
    margin: 0px auto -2.5px auto;
    flex-shrink: 0;
}

#maison-map .legend-header {
    background-color: #423731;
    color: #F5F5F3;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 20%;
    text-align: center;
    border-radius: 8px;
    margin: -25px 31px 0 31px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: "freight-text-pro", Georgia, serif;
}

#maison-map .legend-content {
	height: 535px !important;
    padding: 15px 50px 20px 50px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d6cbbe transparent;
}

#maison-map .legend-content::-webkit-scrollbar {
    width: 4px;
}

#maison-map .legend-content::-webkit-scrollbar-thumb {
    background: #d6cbbe;
    border-radius: 4px;
}

#maison-map .poi-category {
    border-bottom: 1px solid #ece4da;
}

#maison-map .poi-category:last-child {
    border-bottom: none;
}

#maison-map .category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

#maison-map .category-header:hover {
    opacity: 0.7;
}

#maison-map .category-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

#maison-map .category-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #a39589;
    background: transparent;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

#maison-map .poi-category.active .category-bullet {
    background: #473a33;
    border-color: #473a33;
}

#maison-map .category-title {
    font-size: 14px;
    color: #B29C71;
    letter-spacing: 0;
    text-transform: capitalize;
    font-weight: 600;
    font-family: "freight-text-pro", Georgia, serif;
    margin: 0;
}

#maison-map .poi-category.active .category-title {
    color: #B29C71;
    font-weight: 600;
	text-transform: uppercase !important;
}


#maison-map .poi-list {
    list-style: none;
    padding: 0 0 10px 5px;
    margin: 0;
    display: none;
}

#maison-map .poi-category.active .poi-list {
    display: block;
}

#maison-map .poi-list-item {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: #423731;
    padding: 5px 0;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 0;
    transition: color 0.15s ease;
}

#maison-map .poi-list-item:hover {
    color: #a67c52;
}

#maison-map .item-index {
    font-size: 10.5px;
    color: #B29C71;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    flex-shrink: 0;
    width: 14px;
	margin-right: 5px;
    text-align: right;
}

#maison-map .item-name {
    font-style: normal;
}

/* Tooltip InfoWindow Overrides */
#maison-map .gm-style .gm-style-iw-c {
    padding: 8px 16px !important;
    border-radius: 4px !important;
    background: #a6947a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    outline: none !important;
}

#maison-map .gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

#maison-map .gm-style .gm-style-iw-tc::after {
    background: #a6947a !important;
}

#maison-map .gm-style .gm-ui-hover-effect,
#maison-map .gm-style .gm-style-iw-chr {
    display: none !important;
}

#maison-map .map-tooltip {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: "freight-text-pro", Georgia, serif;
    white-space: nowrap;
}

/* Recenter Control Button */
#maison-map .recenter-btn-wrap {
    margin-bottom: 8px;
    margin-right: 10px;
}

#maison-map .recenter-btn {
    background-color: #ffffff;
    border: 0;
    border-radius: 2px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    outline: none;
    padding: 0;
}

#maison-map .recenter-btn:hover {
    background-color: #f4f4f4;
}

#maison-map .recenter-btn svg {
    width: 20px;
    height: 20px;
    fill: #666666;
    transition: fill 0.15s ease, transform 0.2s ease;
}

#maison-map .recenter-btn:hover svg {
    fill: #333333;
    transform: scale(1.08);
}

/* Responsive Layout */
@media screen and (max-width: 1024px) {
    #maison-map {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    #maison-map .poi-legend {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-height: none;
        order: 1;
        border-radius: 0;
        box-shadow: none;
        margin-top: 25px;
        /* accounts for legend-header negative top margin */
        margin-bottom: 20px;
    }

    #maison-map #map {
        position: relative;
        height: 500px;
        order: 2;
    }

    #maison-map .legend-header {
        margin-top: 0;
    }

    #maison-map .poi-legend::after {
        display: none;
    }
	#maison-map .legend-content {
		height: auto;
	}
}