﻿.side-buttons {
    position: fixed;
    right: 0;
    top: 80%;
    transform: translateY(-50%);
    z-index: 9999;
}

.side-btn {
    display: block;
    writing-mode: vertical-rl; /* Makes text vertical */
    transform: rotate(180deg); /* Fix upside down text */
    padding: 5px 5px;
    margin: 5px 0;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    /*border-radius: 8px 0 0 8px;*/
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: 0.3s ease;
}

/* Advertise button */
.advertise {
    background-color: #f4511e; /* Orange */
}

/* Free Listing button */
.free-listing {
    background-color: #1976d2; /* Blue */
}

/* Hover effect */
.side-btn:hover {
    color: #fff;
}

/* Fix navbar on top */
.navbar-fixed-top {
    position: fixed;
    width: 100%;
    z-index: 9999;
}

body {
    padding-top: 70px; /* adjust to navbar height */
}

/*SEARCH STYLING*/
.custom-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Select + Input */
.search-category,
.search-input {
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    min-width: 160px;
}

/* Make input flexible instead of fixed width */
.search-input {
    flex: 1;
    width: 350px;
}

/* Button */
.search-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    background-color: #1976d2;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .search-btn:hover {
        background-color: #125aa3;
    }

/*MOBILE*/
@media (max-width: 768px) {
    .custom-search {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .search-category,
    .search-input,
    .search-btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .navbar-nav {
        margin-top: 10px;
    }

        .navbar-nav > li > a {
            padding: 10px 15px !important;
        }
}

/*FIX BOOTSTRAP NAVBAR FORM*/
.navbar-form {
    margin: 8px 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.search-container {
    position: relative;
}

#searchResult {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #ccc;
    border-top: none;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
}

.result-item {
    padding: 5px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 12px;
}

    .result-item:hover {
        background-color: #f1f1f1;
    }

    .result-item small {
        float: right;
        color: gray;
    }

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
    font-family: Arial, sans-serif;
    margin: 6px 0 !important;
}

    .pagination a, .pagination span {
        padding: 2px 6px;
        border: 1px solid #ddd;
        text-decoration: none;
        color: #007bff;
        border-radius: 5px;
        font-size: 14px;
    }

        .pagination a:hover {
            background-color: #007bff;
            color: #fff;
        }

    .pagination .active {
        background-color: #007bff;
        color: #fff;
        font-weight: bold;
        border-color: #007bff;
        cursor: default;
    }

    .pagination .disabled {
        color: #999;
        pointer-events: none;
        background-color: #f8f9fa;
    }

.record-info {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}

    .record-info span {
        padding: 2px 6px;
        border: 1px solid #ddd;
        text-decoration: none;
        color: #007bff;
        border-radius: 5px;
        font-size: 14px;
    }
