/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* PAGE BACKGROUND */
body {
    background: #000040 !important;
    color: yellow;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* HEADER AREA */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}

.header img {
    max-height: 120px !important;
}

/* PAGE TITLE */
.search-title {
    font-size: 32px;
    font-weight: bold;
    color: yellow;
    padding: 12px 25px;
    margin: 20px auto 10px auto;
    display: inline-block;
    background: linear-gradient(#000060, #000040);
    border: 2px solid black;
    border-radius: 10px;
    text-shadow: 2px 2px 3px black;
    box-shadow: 0 0 10px #00e6ff;
}

/* SEARCH BAR */
#search-container {
    margin-top: 20px;
}

#search-box {
    width: 60%;
    padding: 12px 16px;
    font-size: 18px;
    border: 2px solid #0030d0;
    border-radius: 10px;
    background: #000020;
    color: #33f3ff;
    text-shadow: 0 0 6px #33f3ff;
    box-shadow: 0 0 10px #0020a0;
    transition: all 0.25s ease-in-out;
}

#search-box:focus {
    outline: none;
    box-shadow: 0 0 14px #0040ff, 0 0 22px #0060ff;
}

/* FILTER + SORT BUTTONS */
#controls {
    margin-top: 15px;
}

.control-btn {
    background: #000025;
    color: #33f3ff;
    padding: 8px 14px;
    border: 2px solid #0030d0;
    border-radius: 8px;
    margin: 5px;
    cursor: pointer;
    font-size: 16px;
    text-shadow: 0 0 6px #33f3ff;
    box-shadow: 0 0 10px #001080;
    transition: all 0.25s ease-in-out;
}

.control-btn:hover {
    background: #000035;
    box-shadow: 0 0 14px #0040ff;
}

.control-btn.active {
    background: yellow;
    color: black;
    text-shadow: none;
    box-shadow: 0 0 10px #ffd700;
}

/* RESULTS COUNTER */
#resultCount {
    margin-top: 15px;
    font-size: 22px;
    color: yellow;
    text-shadow: 2px 2px black;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* RESULTS GRID */
#results {
    width: 95%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.result-item {
    text-align: center;
    transition: transform 0.25s ease-in-out;
}

.result-item:hover {
    transform: translateY(-4px);
}

.result-item img {
    width: 100% !important;
    max-width: 250px !important;
    border: 4px solid #0030d0 !important;
    border-radius: 15px !important;
    box-shadow: 0 0 10px #0020a0;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.result-item img:hover {
    box-shadow: 0 0 16px #0040ff, 0 0 24px #0060ff;
}

.caption {
    color: yellow;
    font-size: 18px;
    font-weight: 700;
    text-shadow:
        2px 2px 3px black,
        -2px -2px 3px black,
        2px -2px 3px black,
        -2px 2px 3px black;
    margin-top: 6px;
}

.result-item[data-type="ride"] .caption {
    display: none;
}

/* LOAD MORE BUTTON */
#loadMoreContainer {
    margin-top: 20px;
}

#loadMoreBtn {
    background: #000025;
    color: #33f3ff;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 10px;
    border: 2px solid #0030d0;
    cursor: pointer;
    text-shadow: 0 0 6px #33f3ff;
    box-shadow: 0 0 10px #001080;
    transition: all 0.25s ease-in-out;
}

#loadMoreBtn:hover {
    background: #000035;
    box-shadow: 0 0 14px #0040ff;
}

/* LIGHTBOX */
#lightbox {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

#lightbox-img {
    max-width:90%;
    max-height:90%;
    border:5px solid white;
    border-radius:20px;
}

/* FOOTER */
footer {
    margin-top: 40px;
    padding: 20px;
    background: #000020 !important;
    border-top: 2px solid black;
    color: #c8f6ff !important;
    box-shadow: 0 0 10px #001080;
    font-size: 18px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

footer::after {
    content: "";
    width: 28px;
    height: 18px;
    background-image: url("../graphics/scotlandflag.gif");
    background-size: cover;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 6px #00e6ff);
}
