/* Interactive Map Styles */
.interactive-map-container {
    margin: 20px 0;
    font-family: Arial, sans-serif;
    max-width: 100%;
}

.map-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 auto;
}

.map-wrapper #all-states:before {
	content: '*Figures are FY25';
    position: absolute;
    font-size: 70%;
    top: -30px;
    font-weight: 400;
    left: 0;
    color: #332336;
}

.base-map,
.overlay-map {
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.base-map {
    z-index: 1;
    position: relative;
}

.base-map svg {
    width: 100%;
    height: auto;
    display: block;
}

.overlay-map {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.overlay-map svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Region styling */
.map-region {
    cursor: pointer;
    pointer-events: all;
    fill: #fff;
    /*
    transition: all 0.3s ease;
    opacity: 0.8;
    stroke: #fff;
    stroke-width: 1;
    */
}

.map-region:hover,
.map-region.hovered {
    opacity: 0.8;
    /*
    opacity: 1;
    filter: brightness(1.1) saturate(1.2);
    stroke-width: 2;
    stroke: #333;
    transform: scale(1.01);
    transform-origin: center;
    */
}

.map-region.selected {
    fill: #743086 !important;
    opacity: 1;
    /*
    stroke: #333;
    stroke-width: 3;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    */
}

/* Content area styling */
.map-content {
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid #743086;
    min-height: 120px;
    transition: all 0.3s ease;
}

.map-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #743086;
    padding-bottom: 10px;
    font-size: 1.4em;
    font-weight: 600;
}

.map-content p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
    font-size: 1.1em;
}

.region-stats {
    margin-top: 15px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    border-left: 3px solid #743086;
}

.region-stats h4 {
    margin: 0 0 10px 0;
    color: #743086;
    font-size: 1.1em;
}

.stat-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 5px;
}

.stat-label {
    font-weight: bold;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .interactive-map-container {
        width: 100%;
        padding: 0 10px;
    }
    
    .map-content {
        padding: 20px;
        margin-top: 15px;
    }
    
    .stat-item {
        display: block;
        margin-right: 0;
    }
}

.region-label {
    font-family: Work Sans, sans-serif;
    transition: fill 0.3s ease;
    user-select: none;
}

#all-states {
	font-family: Work Sans, sans-serif;
	padding: 12px 20px;
	font-size: 20px;
	font-weight: 700;
	color: #671E75;
	background: #fff;
    border-radius: 50px;
    line-height: 100%;
	box-shadow: 0px 5px 0px 0px #00000012;
	position: absolute;
    bottom: 5%;
	z-index: 9;
}
#all-states:hover,
#all-states.selected {
	color: #fff;
	background: #671E75;
}

.state-content {
	background: #EEE4FD;
	border-radius: 12px;
	padding: 20px;
	font-family: Work Sans, sans-serif;
	height: 100%;
}
.state-content .header {
	display: flex;
	align-items: center;
	gap: .75rem;
	line-height: 1;
	margin-bottom: 1.5rem;
}
.state-content .header span {
	font-size: 36px;
	font-weight: 700;
	color: #671E75;
}
.state-content p {
	font-size: 1rem;
	margin-bottom: 0;
}

.map-confirm {
	z-index: 9999999;
	max-width: 341px;
	width: 100%;
}

.map-confirm .btn.alt {
	background: #F2EBFD;
	border-color: #F2EBFD;
	color: #671E75;
}

.map-confirm .btn.alt:hover {
	background: #cdb1f9;
	border-color: #cdb1f9;
}

.map-confirm .current-state {
	text-decoration: underline;
	color: #671E75;
	text-transform: uppercase;
}

.map-popup.map-popup-overlay {
	z-index: 99999999;
	width: 100vw;
    height: 100vh;
	overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, 0.5);
}
.map-popup .map-popup-container {
	width: 96vw;
    max-width: 700px;
    background-color: #f7f7f7;
}
.map-popup .map-region,
.map-popup .map-region.selected {
	fill: #671e75 !important;
}
.map-popup .region-label {
	fill: #FFFFFF;
	font-size: 20px;
}
@media (max-width: 1280px) {
/* 	.map-popup .map-popup-container {
		max-width: 800px;
	} */
}
@media (max-width: 768px) {
	.map-popup .region-label {
		font-size: 25px;
	}
}
.map-popup .map-region:hover,
.map-popup .map-region.hovered {
	opacity: 1 !important;
	fill: #CDB1F9 !important;
}

/* .map-popup .region-label[data-region="vic"],
.map-popup .region-label[data-region="tas"] */

.map-popup .region-label {
    fill: #671e75;
    text-decoration: underline;
    font-size: 24px;
    cursor: pointer !important;
    pointer-events: all !important;
}

.map-popup .click-state.hovered,
.map-popup .click-state:focus-visible{
	border-color: #332336;
	background-color: #332336;
}

.map-popup .map-popup-container {
    position: relative; /* anchor the absolute button */
}

.map-popup .close-map-popup {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #671E75;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, color 0.2s ease;
}

.map-popup .close-map-popup:hover {
    background: #671E75;
    color: #fff;
}

.map-popup .close-map-popup:focus-visible {
    outline: 2px solid #332336;
    outline-offset: 2px;
}