/* Ensures full height and no unwanted scrolling */
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overscroll-behavior: none; /* Prevent bounce on scroll */
}

body {
    font-family: 'Barlow Condensed', sans-serif;
    background-image: url('../images/background.png');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    padding-top: 100px; /* Height of the fixed header */
    padding-bottom: 60px; /* Height of the fixed footer */
}

/* Main content should take remaining height */
main {
    min-height: calc(100vh - 160px); /* Adjust height to account for fixed header and footer */
}

/* Header and Footer Styling */
header, footer {
    background-color: #000;
    color: #fff;
}

/* Intro Text Styling */
.intro-text {
    font-size: 16px;
    padding: 0 15px;
    text-align: center;
}

/* Header H1 */
h1 {
    font-weight: 700;
    font-size: 3.5em;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.1;
    font-family: 'Barlow Condensed', sans-serif;
    box-sizing: border-box;
    display: block;
}

/* Logo Image */
.logo-img {
    max-width: 200px;
}

/* Form Field Styling */
.form-control {
    border-radius: 10px;
}

/* Map Image Styling */
.map-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px; /* Ensure space between image and footer */
}

/* Label Styling */
.form-group label {
    text-align: center;
}

/* Button Styling */
.btn-custom {
    background-color: #000;
    border-color: #000;
    color: #fff;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.btn-custom:hover {
    background-color: #FFB81D;
    border-color: #E59700;
    color: #fff;
}

/* Shadows for fixed header and footer */
header.fixed-top {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer.fixed-bottom {
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* Media Query for iPhone SE and smaller screens */
@media (max-width: 375px) {
    header, footer {
        padding: 8px 0;
    }

    main.content {
        margin-top: 80px; /* Adjust for smaller header */
        margin-bottom: 50px; /* Adjust for smaller footer */
    }

    .map-image {
        margin-bottom: 80px; /* Increase margin to avoid overlap */
    }
}


/* Popup styling */
.results-popup {
    /* margin-top: 20px; */
    display: none; /* Initially hidden */
    /* background-color: rgba(255, 255, 255, 0.95); */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
    /* border-radius: 8px; */
    /* padding: 20px; */
    /* width: 100%; */
    /* max-width: 800px; */
    /* margin: 0 auto; */
}

.popup-content {
    padding: 10px;
}

.hidden {
    display: none;
}


/* Popup Result styling Start */

.p-screen {
    position: relative;
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.95); /* Subtle background for popup */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Shadow for modern look */
    max-width: 900px; /* Limit the width for better readability */
    margin: 20px auto; /* Center the popup */
}

.p-results {
    max-height: 400px; /* Limit the height of the results area */
    overflow-y: auto;  /* Enable scrolling for long results */
    display: block;
}

/* Style the table */
.p-results table {
    width: 100%;
    border-collapse: collapse; /* Remove space between table cells */
}

.p-results th, .p-results td {
    padding: 10px; /* Add padding inside table cells */
    border-bottom: 1px solid #ddd; /* Subtle border between rows */
}

/* White background for table head */
.p-results th {
    background-color: #fff; /* White background for table head */
    color: #000; /* Black text for headers */
    text-align: center; /* Center the header text */
    font-weight: bold;
    font-size: 14px;
}

/* Black and White theme for rows */
.p-results tr:nth-child(odd) {
    background-color: #000; /* Black background for odd rows */
    color: #fff; /* White text for contrast */
}

.p-results tr:nth-child(even) {
    background-color: #fff; /* White background for even rows */
    color: #000; /* Black text for contrast */
}

.p-results td {
    text-align: center; /* Left-align data cells by default */
    font-size: 13px;
}

.p-results td.middle {
    text-align: center; /* Center specific columns */
}

.p-results td.narrow {
    text-align: center;
    width: 50px; /* Limit the width of narrow columns */
}

/* Popup Result styling End */

/* Ensure eye icon color matches row text */
.eye-icon i {
    color: inherit; /* Inherits the color of the parent (row text color) */
    transition: color 0.2s ease-in-out; /* Optional: Smooth color transition on hover */
}

.eye-icon i:hover {
    color: darken(inherit, 10%); /* Optional: Slightly darken on hover */
}
