/* --- Base Reset & General Styles --- */
body { font-family: 'Roboto', sans-serif; overflow-x: hidden; }
ul { margin: 0; padding: 0; list-style: none; }
::-moz-selection { text-shadow: none; background: #4D82B9; color: #FFF; }
img::-moz-selection { background: 0 0; }
hr { margin-top: 40px; margin-bottom: 40px; border-top: 1px solid rgba(0, 0, 0, 0.03); }
form { margin-bottom: 0; }
button { padding: 10px 14px; border-radius: 0; font-family: 'Roboto', sans-serif; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
iframe { width: 100%; }

/* --- Navbar & Header --- */
.navbar-inverse { background-color: #000; border: none; padding: 10px 0; margin-bottom: 0; }
.navbar-brand { color: #FFF !important; font-family: "Montserrat", sans-serif; font-size: 30px; font-weight: bold; }

/* --- Homepage Sections --- */
.section { padding: 60px 0; position: relative; background-color: #f7f8fa; }
.bg-grey { background-color: #F7F8FA; }
.bg-blue { background-color: #4D82B9; }
.white-text, .white-text p, .white-text h1, .white-text h2 { color: #FFF !important; }

/* --- Search Banner Form --- */
.banner-form { padding: 30px; background-color: #17a2b8; border-radius: 5px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.banner-form input[type="text"] { 
    color: #333; border: 1px solid #ddd; width: 100%; padding: 15px 20px; 
    display: block; border-radius: 4px; height: auto; background: #FFF; margin-bottom: 10px;
}
.banner-form button { 
    text-align: center; color: #fff; padding: 16px 0; background: #212529; 
    border: none; font-weight: bold; border-radius: 4px; width: 100%; display: block; cursor: pointer;
}
.banner-form button:hover { background: #000; }

/* --- Map View --- */
#map { width: 100%; height: 450px; border-radius: 8px; border: 1px solid #ddd; margin-bottom: 30px; }

/* --- THE DOT MATRIX AIRPORT BOARD (Matching Width) --- */
#mapDist { 
    background-color: #050505 !important; 
    padding: 40px 20px;
    border: 12px solid #1a1a1a;
    border-radius: 4px;
    box-shadow: inset 0 0 60px #000, 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    /* This makes it match the width of the form/map containers */
    width: 100%; 
    max-width: 1140px; /* Standard Bootstrap container width */
    margin: 30px auto;
    box-sizing: border-box;
}

.board-row {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.board-row:last-child { margin-bottom: 0; }

.row-title {
    color: #888 !important; 
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

.matrix-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 6px; 
    max-width: 100%;
}

.char-box {
    width: 34px;
    height: 48px;
    background-color: #333; 
    background-image: 
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    border-radius: 2px;
    color: #ffb100;
    font-family: 'Courier New', Courier, monospace;
    font-size: 28px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 177, 0, 0.6);
}

.char-box.space { background-color: #1a1a1a; border-color: #2a2a2a; }

/* --- Homepage Clouds Animation --- */
#clouds { padding: 100px 0; background: #c9dbe9; background: linear-gradient(to bottom, #c9dbe9 0%, #fff 100%); }
.cloud {
    width: 200px; height: 60px;
    background: #fff;
    border-radius: 200px;
    position: relative; 
    opacity: 0.8;
}
.cloud:after, .cloud:before {
    content: ''; position: absolute; background: #fff; width: 100px; height: 80px;
    top: -15px; left: 10px; border-radius: 100px;
}
.cloud:after { width: 120px; height: 120px; top: -55px; left: auto; right: 15px; }

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    #mapDist { max-width: 90%; }
}

@media (max-width: 768px) {
    .section { padding: 40px 0; }
    .char-box { width: 26px; height: 38px; font-size: 22px; }
    .row-title { font-size: 11px !important; letter-spacing: 2px; }
    #mapDist { padding: 25px 10px; }
}