
/* ================= GLOBAL ================= */
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #e9f2ff, #f7f9fc);
    color: #333;
}

/* ================= MAIN CONTAINER ================= */
.container {
    width: 80%;
    max-width: 1100px;   /* prevents it from becoming too wide on large screens */
    margin: 30px auto;   /* centers horizontally */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ================= TITLE ================= */
h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 26px;
    color: #1e3a8a;
    letter-spacing: 0.5px;
}

/* ================= LABELS ================= */
label {
    display: block;
    margin-top: 14px;
    font-weight: 600;
    font-size: 16px;
    color: #555;
}

/* ================= INPUTS ================= */
input, select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #d9e2ec;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
    background: #fff;
}

input:focus, select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59,130,246,0.3);
}

/* ================= BUTTON ================= */
button {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 15px rgba(37,99,235,0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,99,235,0.4);
}

/* ================= RESULT BOX ================= */
.result {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    background: #ecfdf5;
    border-left: 5px solid #10b981;
    font-size: 20px;
}

/* ================= MAP ================= */
#mapFrame {
    width: 100%;
    height: 410px;
    margin-top: 15px;
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ================= AUTOCOMPLETE BOX ================= */
.suggest-box {
    position: relative;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ================= AUTOCOMPLETE ITEM ================= */
.item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
}

.item:hover {
    background: linear-gradient(90deg, #e0f2fe, #f0f9ff);
    padding-left: 16px;
}

/* ================= SCROLLBAR ================= */
.suggest-box::-webkit-scrollbar {
    width: 6px;
}

.suggest-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

    .container {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }

    h2 {
        font-size: 18px;
    }

    button {
        font-size: 14px;
    }
}


/* ================= SEARCH WRAPPER ================= */
.search-wrapper {
    position: relative;
    width: 100%;
    /* margin-top: 10px; */
    /* width: 48%; */
}

/* ================= INPUT FIX ================= */
#keyword {
    width: 100%;
    box-sizing: border-box; /* 🔥 prevents overflow */
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d9e2ec;
    font-size: 14px;
}

/* ================= SUGGEST BOX FIX ================= */
.suggest-box {
    position: absolute;
    top: 100%;        /* directly under input */
    left: 0;
    width: 100%;      /* match input width */
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;    /* 🔥 stays above everything */
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ================= SUGGEST ITEM ================= */
.item {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.item:hover {
    background: #e0f2fe;
}


/* ================= FOOTER PUSH TO BOTTOM ================= */
.app-footer {
    margin-top: auto;   /* 🔥 pushes footer to bottom */
    padding: 12px 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;

    color: #475569;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);

    border-top: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;

    letter-spacing: 0.2px;
}

/* Bold text inside footer */
.app-footer b {
    font-weight: 700;
    color: #1e3a8a;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.search-wrapper {
    margin-top: 12px;
}

#search-ward-booth {
    /* position: fixed;       */
    /* stays on screen */
    right: 20px;          /* right side */
    /* top: 13%;              */
    /* vertical center */
    transform: translateY(-30%);
    
    z-index: 9999;

    /* Styling */
    padding: 12px 16px;
    /* background: #ff3b3b; */
    background: #10b981; 
    /* #fc4141; */
    color: #fff;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0px;
    /* Animation */
    animation: blink 1.2s infinite;
}

/* Blinking effect */
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

.filter-row {
    display: flex;
    gap: 10px; /* space between columns */
}

.filter-col {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.filter-col select {
    width: 100%;
    padding: 8px;
}

@media (max-width: 600px) {
    .filter-row {
        flex-direction: column;
    }

    .filter-col {
        width: 100%;
    }
}

.title-row {
    display: flex;
    align-items: center;
    gap: 10px; /* space between icon and text */
    margin-top: 20px;
}

.icon {
    width: 20px;
    height: 20px;
}

.header-box {
    text-align: center;
    margin-top: 10px;
}

.header-box h2 {
    margin: 0;
}

.header-box span {
    display: block;
    margin-top: 5px;
    font-size: 18px;
    font-weight: 600;
    color: #fc1d04;
}