/* GENERAL RESET */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #444;
    line-height: 1.6;
    background-color: #fff;
}

.container {
    width: 1170px;
    margin: 0 auto;
    position: relative;
}

.row {
    display: flex;
    gap: 30px;
    padding: 40px 0;
}

/* HEADER WITH BANNER */
#header {
    background-image: url('bluetop4.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    position: relative;
    text-align: center;
    border-bottom: 5px solid #baab8e; /* The tan accent line */
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    opacity: 0.1;
}

#logo {
    position: relative;
    z-index: 2;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* NAVIGATION HOVER LOGIC */
#top-menu {
    list-style: none;
    padding: 20px 0 0;
    margin: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

#top-menu > li {
    position: relative;
    margin: 0 15px;
}

#top-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.sub-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    list-style: none;
}

#top-menu li:hover > .sub-menu {
    display: block; /* Show on hover */
}

.sub-menu li a {
    color: #333 !important;
    padding: 8px 20px;
    display: block;
    text-transform: none;
    font-weight: normal;
}

.sub-menu li a:hover {
    background: #f5f5f5;
    color: #f08d2d !important;
}

/* MAIN CONTENT GRID */
#page-content {
    flex: 3; /* span9 equivalent */
}

h2 {
    font-size: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #4c5b6e;
}

/* SIDEBAR STYLING */
#sidebar {
    flex: 1; /* span3 equivalent */
}

.widget {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
}

.widget-title {
    margin: 0 0 15px;
    font-size: 16px;
    color: #4c5b6e;
    border-bottom: 2px solid #baab8e;
    padding-bottom: 5px;
}

/* FOOTER */
#footer {
    background: #4c5b6e;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}

#footer-menu {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#footer-menu a {
    color: #fff;
    text-decoration: none;
}

.copyright-notice {
    margin-top: 20px;
    font-size: 12px;
    opacity: 0.8;
}

/* TOOLBAR STYLING */
#toolbar {
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    font-size: 13px;
    color: #666;
}

/* FILTERS SIDEBAR */
#search-filters {
    background: #fff;
}

.filter-box {
    border: 1px solid #e6e6e6;
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 3px;
}

.box-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #4c5b6e;
    text-transform: uppercase;
}

.small-input {
    width: 40px;
    padding: 5px;
}

/* LISTING GRID */
.listing {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.listing:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.listing-thumbnail img {
    width: 100%;
    display: block;
}

.listing-details-box {
    padding: 15px;
}

.listing-title {
    font-size: 16px;
    margin: 0 0 5px 0;
}

.listing-title a {
    color: #4c5b6e;
    text-decoration: none;
}

.listing-location {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.listing-price {
    font-size: 18px;
    font-weight: bold;
    color: #f08d2d; /* Original Orange price color */
}

.box-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.listing-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
}