/* Blue Gradient Theme for Property Shopper */

/* Agent-specific styling
 * The body element gets the "agent-admin" class for all agent pages.
 * You can target agent-specific styles like this:
 * .agent-admin .some-element { ... }
 * 
 * All styles below are only applied when NOT on an agent-admin page.
 */

/* Apply gradient background to body or container for full coverage */
body:not(.agent-admin) {
    background: linear-gradient(180deg, #3b5998 0%, #5f7bb8 100%) !important;
    background-attachment: fixed;
    min-height: 100vh;
}

body:not(.agent-admin) #container {
    padding: 30px 0;
}

body:not(.agent-admin) #middle {
    padding: 30px 0;
}

/* White paper content area */
body:not(.agent-admin) .white-paper-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0 30px 30px 30px;
    margin: 0 auto;
    max-width: 95%;
    width: 100%;
}

/* Tabbed Navigation Design - outside white paper */
body:not(.agent-admin) .tabbed-nav-container {
    background: transparent;
    margin: 20px auto 0 auto;
    box-shadow: none;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 992px) {
    body:not(.agent-admin) .white-paper-content {
        max-width: 1200px;
    }
}

body:not(.agent-admin) .tabbed-nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

body:not(.agent-admin) .tabbed-nav-item {
    position: relative;
}

body:not(.agent-admin) .tabbed-nav-item a {
    display: inline-block;
    padding: 12px 24px;
    color: #ffffff !important; /* Ensure white text on blue */
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Active tab styling - light blue pill with darker text */
body:not(.agent-admin) .tabbed-nav-item.active a {
    background: #dee9ff !important;
    color: #1449ff !important;
    border-radius: 8px 8px 0 0;
    position: relative;
    font-weight: bold;
}

body:not(.agent-admin) nav.tabbed-nav-container {
    height: 44px;
    line-height: 0;
}

body:not(.agent-admin) .tabbed-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #1449ff;
    z-index: 1;
}

/* Hover effect for inactive tabs */
body:not(.agent-admin) .tabbed-nav-item:not(.active) a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* Override existing list-view-prop styling in blue context */
body:not(.agent-admin) .list-view-prop {
    background: transparent !important;
    border: none !important;
}

body:not(.agent-admin) .list-view-prop a {
    color: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    background-color: transparent !important;
}

body:not(.agent-admin) .list-view-prop li.active a {
    background: #85a6d8 !important;
    color: #ffffff !important;
    border: 1px solid #85a6d8 !important;
    border-bottom: none !important;
    position: relative;
}

body:not(.agent-admin) .list-view-prop li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #ffffff;
}

body:not(.agent-admin) .list-view-prop a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Style the main navigation list in blue context */
body:not(.agent-admin) .list-prop {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-bottom: none !important;
}

body:not(.agent-admin) .list-prop a {
    color: rgba(255, 255, 255, 0.9) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
}

body:not(.agent-admin) .list-prop li.active a,
body:not(.agent-admin) .list-prop a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Subnav styling */
body:not(.agent-admin) .subnav-container {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 0;
}

body:not(.agent-admin) .subnav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

body:not(.agent-admin) .subnav-item a {
    display: inline-block;
    padding: 6px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

body:not(.agent-admin) .subnav-item.active a,
body:not(.agent-admin) .subnav-item a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Page title styling for blue background */


/* Search results adjustments */
body:not(.agent-admin) .white-paper-content #middle,
body:not(.agent-admin) .white-paper-content #main {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
}

/* Don't override Materialize grid layout */
body:not(.agent-admin) .white-paper-content .property-grid {
    width: 100%;
}

body:not(.agent-admin) .white-paper-content .property-grid .row {
    margin: 0 !important;
}

/* Map container adjustments */
body:not(.agent-admin) .map-container {
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
    body:not(.agent-admin) {
        padding: 0;
    }
    
    body:not(.agent-admin) .white-paper-content {
        padding: 15px;
        margin: 0 auto;
    }
    
    body:not(.agent-admin) .tabbed-nav-container {
        margin: 10px auto 0 auto;
        border-bottom: none;
    }
    
    body:not(.agent-admin) .tabbed-nav-list {
        display: none;
    }
    
    body:not(.agent-admin) .subnav-list {
        flex-wrap: wrap;
    }
}
