/* General body settings */
body {
    background-color: #f4f4f4;
    color: #373737;
    font-family: Verdana, Arial, Helvetica;
    margin: 0;
    font-size: 10pt;
    box-sizing: border-box;
}

/* Header bar */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    z-index: 999;
    box-sizing: border-box;
}

.header a {
    color: inherit; /* Use the same color as surrounding text */
    text-decoration: none; /* Remove underline */
}

.header a:hover {
    text-decoration: none; /* Ensure no underline on hover */
    color: inherit; /* Prevent hover color change */
}

/* Content section under header */
.content-section {
    padding: 20px 20px 0px 20px;
    margin: 0 auto 0px auto;
    width: 80%;
    max-width: 1200px;
    box-sizing: border-box;
}

/* Form and description container */
.form-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin: 10px 0;
	padding: 10px 0;
}

/* Suburb dropdown styling */
.suburbdropdown {
    min-width: 300px;
    padding: 5px;
    font-size: 1em;
}

/* Styling for the Go button */
input[type="submit"] {
    padding: 5px 15px;
    font-size: 1em;
    margin-left: 10px;
}

h2 {
	margin: 10px 0px 6px 0px;
	padding: 0px 0px 6px 0px;
}

h3 {
	margin: 5px 0px 6px 0px;
	padding: 0px;
}

p {
	margin: 0px 0px 6px 0px;
	padding: 0px;
}

/* Mobile Portrait (max-width: 767px) */
@media only screen and (max-width: 767px) {
    /* General body padding for smaller header/footer */
    body {
        padding-top: 40px;   /* Adjust according to your header height */
        padding-bottom: 25px; /* Adjust according to your footer height */
    }

    /* Header bar */
    .header {
        height: 40px; /* Set explicit height */
        font-size: 1.2rem;
        padding: 8px 0;
    }

    /* Footer bar */
    .footer {
        height: 25px; /* Set explicit height */
        font-size: 0.6rem; 
		padding: 6px 0; /* Adjust padding if needed */
    }

    /* Treat all upper containers as block-level elements */
	.upper-responsive-container,
    .upper-map-container,
    .upper-info-container,
    .lower-column-container,
    .lower-column,
	.lower-column-left {
        display: block;
        width: 100%;
        margin: 0 auto 20px auto;
        clear: both;
        padding: 0px 15px 0px 15px;
        box-sizing: border-box;
    }

    .upper-column-container,
	.upper-column {
        display: block;
        width: 100%;
        margin: 15px auto 0px auto;
        clear: both;
        padding: 0px 15px 0px 15px;
        box-sizing: border-box;
    }

    /* Upper Map Container */
    .upper-map-container {
        background-color: #ddd; /* Different color background for the map */
        height: calc(50vh - 60px); /* Height set to 50% of viewport minus padding/header/footer */
        max-height: 350px; /* Limit the maximum height */
        border-radius: 10px; /* Rounded corners */
        border: 1px solid #ccc;
    }

    /* Map settings */
    #map {
        width: 100%;
        height: 100%; 
        box-sizing: border-box; 
        border-radius: 10px;
    }

    /* Lower Columns Container and Individual Columns */
    .upper-column-container {
        clear: both;
        margin-bottom: 0px;
        padding-bottom: 15px;
    }

    .upper-column {
        height: auto;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px; /* Rounded corners */
		padding: 20px 20px 10px 20px;
		text-align: left;
    }

    /* Upper Info Container */
    .upper-info-container {
        background-color: #fff;
        border: 1px solid #ccc;
        height: auto;
        min-height: 150px; /* Keep a consistent minimum height */
        border-radius: 10px; /* Rounded corners */
    }

	.lower-column-container {
        clear: both;
        margin-bottom: 0px;
        padding-bottom: 0px;
    }

	.lower-column {
        height: auto;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px; /* Rounded corners */
		padding: 10px 0px 0px 0px;
		text-align: center;
    }
	
	.lower-column-left {
        height: auto;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px; /* Rounded corners */
		padding: 10px 10px 0px 10px;
		text-align: left;
    }	
	
    .form-container {
        display: flex;
        flex-direction: column;  /* Stack elements vertically */
        width: 100%;
        margin: 0px;
        box-sizing: border-box;
    }

    /* Container for the dropdown and button */
    .form-container select,
    .select2-container {
        width: calc(100% - 80px); /* Occupy the remaining space minus button width */
        box-sizing: border-box;
    }
}


/* Tablet Portrait (min-width: 768px and max-width: 959px) */
@media only screen and (min-width: 768px) and (max-width: 959px) {
    body {
        padding-top: 70px;   /* Adjust according to your header height */
        padding-bottom: 50px; /* Adjust according to your footer height */
    }

    /* Header bar */
    .header {
        height: 70px; /* Set explicit height */
        font-size: 1.5rem;        
        padding: 15px 0;
    }

    /* Footer bar */
    .footer {
        height: 50px; /* Set explicit height */
        font-size: 0.9rem;    
        padding: 10px 0; /* Adjust padding if needed */        
    }    

    .upper-column-container,
    .upper-responsive-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin: 20px auto;
        align-items: stretch; /* Ensures both map and info column stretch to match height */
        width: 90%; /* Ensure container is centered */
    }

    .upper-map-container {
        flex: 7 !important; /* Ensure 70% width */
        background-color: #ddd;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #ccc;
        display: block; /* Set to block to allow the height calculation */
        height: auto; /* Allow it to adapt to its sibling container */
        min-height: 100%; /* Try to match the height of the tallest sibling */
    }

    .upper-info-container {
        flex: 3 !important; /* Ensure 30% width */
        padding: 20px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
    }

    .lower-column-container {
        display: flex;
        gap: 20px;
        width: 90%; /* Ensure lower container is centered */
        margin: 0 auto;
    }

    .upper-column {
        flex: 1;
        height: auto;
        padding: 20px 20px 10px 20px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
    }

    .lower-column {
        flex: 1;
        padding: 15px;
		margin: 0px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
        text-align: center;
    }

    .lower-column-left {
        flex: 1;
        height: auto;
        padding: 20px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
        text-align: left;
    }
    
    .form-container {
        display: flex;
        flex-direction: column;  /* Stack elements vertically */
        width: 100%;
        margin: 0px;
        box-sizing: border-box;
    }

    .lower-column form, .lower-column select {
		margin: 0px; 
		padding: 0px;
    }   
}




/* Tablet Landscape (min-width: 960px and max-width: 1112px) */
@media only screen and (min-width: 960px) and (max-width: 1112px) {
	body {
		padding-top: 70px;   /* Adjust according to your header height */
		padding-bottom: 50px; /* Adjust according to your footer height */
	}    

	/* Header bar */
	.header {
		height: 70px; /* Set explicit height */
	    font-size: 1.5rem;
		padding: 15px 0;		
	}

	/* Footer bar */
	.footer {
		height: 50px; /* Set explicit height */
		font-size: 0.9rem;	
		padding: 10px 0; /* Adjust padding if needed */		
	}	

	.upper-column-container,	
	.upper-responsive-container {
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
		margin: 20px auto;
		align-items: stretch;
		width: 90%; /* Ensure upper container is centered */
	}

	.upper-map-container {
		flex: 7 !important; /* 70% width */
		min-height: 450px;
		background-color: #ddd;
		border-radius: 10px;
		overflow: hidden;
		border: 1px solid #ccc;
		display: flex; /* Make it flexible */
		flex-direction: column; /* Align content in a column */
	}

	.upper-info-container {
		flex: 3 !important; /* 30% width */
		min-height: 450px;
		padding: 20px;
		background-color: #fff;
		border: 1px solid #ccc;
		border-radius: 10px;
		display: flex; /* Make it flexible */
		flex-direction: column; /* Align content in a column */
	}
    .lower-column-container {
        display: flex;
        gap: 20px;
        width: 90%; /* Ensure lower container is centered */
        margin: 0 auto;
    }

    .upper-column {
        flex: 1;
        height: auto;
        padding: 20px 20px 10px 20px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
		text-align: left;
    }

    .lower-column {
        flex: 1;
        height: auto;
        padding: 10px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
		text-align: center;
    }
	
    .lower-column-left {
        flex: 1;
        height: auto;
        padding: 20px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
    }

    .lower-column form, .lower-column select {
		margin: 0px; 
		padding: 0px;
    }   
}

/* Desktop (min-width: 1112px and max-width: 1400px) */
@media only screen and (min-width: 1112px) and (max-width: 1400px) {
	body {
		padding-top: 70px;   /* Adjust according to your header height */
		padding-bottom: 50px; /* Adjust according to your footer height */
	}    

	/* Header bar */
	.header {
		height: 70px; /* Set explicit height */
	    font-size: 1.5rem;
		padding: 15px 0;		
	}

	/* Footer bar */
	.footer {
		height: 50px; /* Set explicit height */
		font-size: 0.9rem;		
		padding: 10px 0; /* Adjust padding if needed */
	}	

	.upper-column-container,
	.upper-responsive-container {
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
		margin: 20px auto;
		align-items: stretch; /* Ensures both containers match height */
		width: 90%; /* Ensure upper container is centered */
	}

	.upper-map-container {
		flex: 7 !important; /* Ensure 70% width */
		min-height: 450px; /* Maintain a minimum height for map visibility */
		background-color: #ddd;
		border-radius: 10px;
		overflow: hidden;
		border: 1px solid #ccc;
		height: auto; /* Allow it to stretch based on content */
	}

	.upper-info-container {
		flex: 3 !important; /* Ensure 30% width */
		min-height: 450px;
		padding: 20px;
		background-color: #fff;
		border: 1px solid #ccc;
		border-radius: 10px;
		height: auto; /* Ensure it adapts to content */
	}

    .lower-column-container {
        display: flex;
        gap: 20px;
        width: 90%; /* Constrained width for lower columns, center-aligned */
        margin: 0 auto; /* Center align lower columns */
    }

    .upper-column {
        flex: 1;
        height: auto;
        padding: 20px 20px 10px 20px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
		text-align: left;
    }

    .lower-column {
        flex: 1;
        height: auto;
        padding: 10px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
		text-align: center;
    }
	
    .lower-column-left {
        flex: 1;
        height: auto;
        padding: 20px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
		text-align: left;
    }	
	
    .lower-column form, .lower-column select {
		margin: 0px; 
		padding: 0px;
    }   	
}

/* Full Desktop (min-width: 1401px) */
@media only screen and (min-width: 1401px) {
	body {
		padding-top: 70px;   /* Adjust according to your header height */
		padding-bottom: 50px; /* Adjust according to your footer height */
	}

	/* Header bar */
	.header {
		height: 70px; /* Set explicit height */
		font-size: 1.5rem;	
	    padding: 15px 0;
	}
	
	/* Footer bar */
	.footer {
		height: 50px; /* Set explicit height */
	    font-size: 0.9rem;
		padding: 10px 0; /* Adjust padding if needed */
	}	

   .upper-column-container,
   .upper-responsive-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin: 20px auto;
        align-items: stretch;
        width: 70%; /* Set a constrained width for large desktop view */
    }

    .upper-map-container {
        flex: 7 !important;
        min-height: 500px;
        background-color: #ddd;
        border-radius: 10px;
        overflow: hidden;
		border: 1px solid #ccc;
    }

    .upper-info-container {
        flex: 3 !important;
        min-height: 500px;
        padding: 20px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
    }

    .lower-column-container {
        display: flex;
        gap: 20px;
        width: 70%; /* Constrained width for lower columns, center-aligned */
        margin: 0 auto; /* Center align lower columns */
		padding: 0px 0px 0px 0px;
    }

    .upper-column {
        flex: 1;
        height: auto;
        padding: 20px 20px 10px 20px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
		text-align: left;
    }

    .lower-column {
        flex: 1;
        height: auto;
        padding: 10px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
		text-align: center;
    }
	
    .lower-column-left {
        flex: 1;
        height: auto;
        padding: 20px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
    }	
	
    .lower-column form, .lower-column select {
		margin: 0px; 
		padding: 0px;
    } 	
}

/* Footer bar */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    z-index: 999;
    box-sizing: border-box;
	margin: 15px 0px 0px 0px;
}