/* =============================================
   OTG / OnTheGoLocator - Main Stylesheet
   ============================================= */

:root {
    --otg-blue: #252a75;
    --otg-blue-light: #267ae1;
    --otg-teal: #0fc8d0;
    --otg-teal-light: #88DBDF;
    --otg-teal-lightest: #B1E4E3;
    --otg-green: #28a745;
    --otg-gold: gold;
    --otg-info: #17a2b8;
    --navbar-height: 115px;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    padding-top: var(--navbar-height);
    margin-bottom: 60px;
    background-color: #f5fafa;
}

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
}

pre,
code {
    background: #f8f8f8;
    color: #333;
}

pre {
    border-left: 2px solid #ccc;
    padding: 10px;
}

code {
    display: inline-block;
    padding: 0 0.5em;
    line-height: 1.4em;
    border-radius: 3px;
}

table {
    empty-cells: show;
    border: 1px solid #cbcbcb;
    width: 100%;
    font-size: 0.9em;
    margin-bottom: 1rem;
}

thead {
    background-color: #e0e0e0;
    color: #000;
    text-align: left;
    vertical-align: bottom;
}

tr {
    display: table-row;
    vertical-align: inherit;
    border-color: inherit;
}

th,
td {
    padding: 0.5em 1em;
}

h1.title,
h2.title {
    font-size: 2.3rem;
}

blockquote {
    padding: 10px 20px;
    margin: 0 0 20px 20px;
    border-left: 5px solid #eee;
    font-style: italic;
}

/* ---- Navbar ---- */
img.nav-svg-icon {
    width: 1rem;
    height: 1rem;
    padding-bottom: 2px;
}

.nav-link {
    font-size: 0.85em;
    transition: color 0.2s ease;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ---- Footer ---- */
footer {
    background-color: #1a1a2e !important;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--otg-teal);
}

.mini-logo {
    height: 22px;
    padding-bottom: 5px;
}

/* ---- Loading Modal ---- */
.LoadingModal {
    display: none;
    position: fixed;
    z-index: 9999;
    text-align: center;
    padding-top: 30%;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.LoadingModal::after {
    content: "Loading...";
    display: block;
    font-size: 1.5rem;
    color: var(--otg-blue);
    margin-top: 1rem;
}

body.Loading .LoadingModal {
    display: block;
    overflow: hidden;
}

/* ---- Listing Cards ---- */
.Item {
    border: 1px solid #dee2e6;
    padding: 10px !important;
    background-color: white !important;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
    border-radius: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.Item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);
}

.Premium {
    filter: drop-shadow(0 0 8px rgba(23, 162, 184, 0.45));
}

.Trusted {
    border: 2px solid var(--otg-green) !important;
}

.Boosted {
    border: 2px solid var(--otg-gold) !important;
}

.Premium.Trusted.Boosted {
    border: 2.5px solid var(--otg-gold) !important;
    box-shadow: 0 0 0 2px var(--otg-green);
    filter: drop-shadow(0 0 8px rgba(23, 162, 184, 0.45));
}

/* ---- Info Badge ---- */
.Info {
    position: absolute;
    top: 0.124rem;
    right: 0.25rem;
    border: 1px solid var(--otg-info) !important;
    border-radius: 50%;
    padding-left: 0.325rem;
    padding-right: 0.325rem;
    color: var(--otg-info) !important;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.75rem;
    line-height: 1.4;
    user-select: none;
}

.Info:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
    background-color: var(--otg-info) !important;
    color: white !important;
    border-color: white !important;
}

/* ---- Search/Trailer Results ---- */
.search-result-img {
    object-fit: cover;
    width: 100%;
    height: 180px;
    border-radius: 4px;
}

/* ---- Fleet Cards ---- */
.Fleet {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.FleetRates {
    background-color: #f8f9fa;
}

/* ---- Account / Forms ---- */
.form-control:focus {
    border-color: var(--otg-blue-light);
    box-shadow: 0 0 0 0.2rem rgba(38, 122, 225, 0.2);
}

/* ---- Plugins ---- */
.plugin {
    margin-top: 3rem;
}

.plugin-label {
    font-size: 1em;
    text-transform: uppercase;
}

.plugin ul {
    list-style: none;
    padding: 0 0 0 10px;
}

.bi {
    margin-right: 0.5rem !important;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 991px) {
    #navbarNav.show {
        background-color: var(--otg-blue);
        text-align: center;
        font-size: 1.4rem;
    }

    #Add_Listing {
        font-size: 1.2rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .search-result-img {
        height: 200px;
    }
}
