/* Global Styles & Variables */
:root {
    --ox-primary: #0052FF;
    --ox-primary-dark: #0041CC;
    --ox-primary-soft: rgba(0, 82, 255, 0.08);
    --ox-secondary: #10B981;
    --ox-dark: #0A192F; /* Deep navy matching the logo */
    --ox-text: #1E293B;
    --ox-muted: #64748B;
    --ox-bg: #F8FAFC;
    --ox-white: #FFFFFF;
    --ox-border: rgba(226, 232, 240, 0.8);
    
    --ox-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ox-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ox-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --ox-radius: 16px;
    --ox-radius-lg: 24px;
    --ox-radius-pill: 50px;

    /* Brand Luxury Variables for Details and Landing views */
    --luxury-burgundy: #0052FF;
    --luxury-burgundy-hover: #0041CC;
    --luxury-cream: #F7F5F0;
    --luxury-cream-soft: #FDFBF7;
    --luxury-text-dark: #1A1A1A;
    --luxury-text-light: #F7F5F0;
    --luxury-muted: #8E8A84;
    --luxury-border: rgba(0, 82, 255, 0.12);
    --luxury-border-light: rgba(247, 245, 240, 0.2);
    --luxury-shadow: 0 15px 35px rgba(0, 82, 255, 0.05), 0 5px 15px rgba(0, 0, 0, 0.04);
    --luxury-shadow-lg: 0 30px 60px rgba(0, 82, 255, 0.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--ox-bg);
    color: var(--ox-text);
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ox-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.25rem 0;
}

.navbar.scrolled {
    padding: 0.1rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ox-text) !important;
    padding: 0.6rem 1.2rem !important;
    transition: all 0.3s ease;
    border-radius: var(--ox-radius);
}

.nav-link:hover {
    color: var(--ox-primary) !important;
    background: var(--ox-primary-soft);
}

/* Typography Enhancements matching Home Page */
h1, h2, h3, .display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 350 !important;
    letter-spacing: -0.01em;
}

h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--ox-primary) 0%, #00A3FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Buttons */
.btn-ox {
    background: var(--ox-primary);
    color: white;
    border: none;
    padding: 14px 32px;
    font-weight: 700;
    border-radius: var(--ox-radius-pill);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 82, 255, 0.3);
}

.btn-ox:hover {
    background: var(--ox-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 82, 255, 0.2);
    color: white;
}

.btn-ox-outline {
    background: transparent;
    border: 2px solid var(--ox-primary);
    color: var(--ox-primary);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: var(--ox-radius-pill);
    transition: all 0.3s;
}

.btn-ox-outline:hover {
    background: var(--ox-primary);
    color: white;
}

/* Cards & Layout */
.ox-card {
    background: var(--ox-white);
    border-radius: var(--ox-radius-lg);
    border: 1px solid var(--ox-border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ox-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ox-shadow-lg);
}

/* Animations */
@keyframes oxFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-ox {
    animation: oxFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Footer Styling */
footer {
    background: #F8F9FA !important;
    color: #374151 !important;
    border-top: 1px solid rgba(0, 82, 255, 0.08);
}

footer h6 {
    color: #111827 !important;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

footer a {
    color: #4B5563 !important;
    padding: 0.3rem 0 !important;
    transition: color 0.2s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--ox-primary) !important;
    background: transparent;
}

/* Navbar Link Visibility on Standard Pages */
.navbar:not(.navbar-luxury) .nav-link {
    color: var(--ox-text) !important;
}

.navbar:not(.navbar-luxury) .nav-link:hover {
    color: var(--ox-primary) !important;
    background: var(--ox-primary-soft) !important;
}

.text-muted {
    color: #4B5563 !important;
}

/* Bootstrap Theme Overrides for PGKing Brand Color */
.btn-primary {
    background-color: var(--ox-primary) !important;
    border-color: var(--ox-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--ox-primary-dark) !important;
    border-color: var(--ox-primary-dark) !important;
    box-shadow: 0 8px 15px rgba(0, 82, 255, 0.2) !important;
}

.text-primary {
    color: var(--ox-primary) !important;
}

.bg-primary {
    background-color: var(--ox-primary) !important;
}

.badge.bg-primary {
    background-color: var(--ox-primary) !important;
}

/* Header Topbar & Wrapper */
.header-wrapper {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1030;
}

.header-topbar {
    background: #0A192F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-topbar a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-topbar a:hover {
    color: var(--ox-primary) !important;
}

/* Scroll Header Transformations */
.header-wrapper.scrolled .header-topbar {
    margin-top: -38px;
    opacity: 0;
    pointer-events: none;
}

.header-wrapper.scrolled .navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Footer Social Icons */
.footer-social-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: rgba(0, 82, 255, 0.05);
    color: var(--ox-primary) !important;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-social-icon:hover {
    background: var(--ox-primary);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 82, 255, 0.2);
}

/* Team Card Styles */
.team-card {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 82, 255, 0.08) !important;
}

.team-card img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card:hover img {
    transform: scale(1.06);
}

.hover-primary {
    transition: color 0.2s ease;
}

.hover-primary:hover {
    color: var(--ox-primary) !important;
}

/* Logo Visual & Visibility Enhancements */
.logo-wrapper {
    background-color: var(--ox-dark); /* Deep navy matching the logo/brand */
    padding: 6px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-logo {
    height: 55px; /* Compact height for perfect alignment */
    width: auto;
    object-fit: contain;
    filter: none !important; /* Keep original crisp white color */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .logo-wrapper {
    padding: 4px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(10, 25, 47, 0.1);
}

.navbar.scrolled .navbar-logo {
    height: 45px; /* Sleeker on scroll */
}

/* On transparent navbar-luxury over dark hero image: keep transparent wrapper */
.navbar-luxury:not(.scrolled) .logo-wrapper {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

.navbar-luxury:not(.scrolled) .navbar-logo {
    height: 70px; /* Larger transparent version at top of home page */
}

.footer-logo-wrapper {
    background-color: var(--ox-dark);
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-flex;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.15);
}

.footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: none !important;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Sidebar logo (dark background: #0F172A) */
.admin-sidebar-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: none !important; /* Keep original crisp white logo */
    transition: transform 0.3s ease;
}

.admin-sidebar-logo:hover {
    transform: scale(1.05);
}

/* Redesigned Properties Split Screen Layout Styles */
.properties-split-container {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 120px);
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--luxury-cream-soft);
}

.properties-listings-pane {
    width: 58%;
    height: 100%;
    overflow-y: auto;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
}

.properties-map-pane {
    width: 42%;
    height: 100%;
    position: relative;
    border-left: 1px solid rgba(0, 82, 255, 0.08);
}

/* Custom Scrollbar for Listings Pane */
.properties-listings-pane::-webkit-scrollbar {
    width: 6px;
}
.properties-listings-pane::-webkit-scrollbar-track {
    background: rgba(0, 82, 255, 0.02);
}
.properties-listings-pane::-webkit-scrollbar-thumb {
    background: rgba(0, 82, 255, 0.12);
    border-radius: 10px;
}
.properties-listings-pane::-webkit-scrollbar-thumb:hover {
    background: var(--ox-primary);
}

/* Luxury Interactive Card overrides */
.luxury-property-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 82, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.01);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.luxury-property-card:hover, .luxury-property-card.active-highlight {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(0, 82, 255, 0.06);
    border-color: rgba(0, 82, 255, 0.15);
}
.luxury-property-card.active-highlight {
    border-color: var(--ox-primary);
    background-color: rgba(0, 82, 255, 0.01);
}

.luxury-card-img-container {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.luxury-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.luxury-property-card:hover .luxury-card-img {
    transform: scale(1.04);
}

/* Custom map price pin styling */
.custom-map-marker-wrapper {
    overflow: visible !important;
}

.map-price-pin {
    background: var(--ox-primary);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    transform-origin: center bottom;
}
.map-price-pin i {
    font-size: 0.72rem;
    opacity: 0.9;
}
.map-price-pin:hover, .map-price-pin.hovered {
    background: var(--ox-primary-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    z-index: 1000 !important;
}
.map-price-pin.selected {
    background: #FF385C !important;
    border-color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 6px 18px rgba(255, 56, 92, 0.4);
    z-index: 1001 !important;
}

/* Mobile Toggle Switcher Button */
.properties-mobile-toggle-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    background: #111827;
    color: #ffffff;
    border: none;
    padding: 14px 26px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase;
}
.properties-mobile-toggle-btn:hover {
    background: #000000;
    transform: translateX(-50%) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive Overrides */
@media(max-width: 991px) {
    .properties-split-container {
        height: auto;
        min-height: calc(100vh - 120px);
        flex-direction: column;
        overflow: visible;
    }
    
    .properties-listings-pane {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        padding: 16px 16px 80px 16px !important;
    }
    
    .properties-map-pane {
        width: 100% !important;
        height: 0 !important;
        display: none;
        border-left: none;
    }
    
    /* View Switcher States on Mobile */
    .properties-split-container.show-map .properties-listings-pane {
        display: none !important;
    }
    .properties-split-container.show-map .properties-map-pane {
        display: block !important;
        height: calc(100vh - 120px) !important;
        width: 100% !important;
    }
    
    .properties-split-container.show-list .properties-listings-pane {
        display: block !important;
    }
    .properties-split-container.show-list .properties-map-pane {
        display: none !important;
        height: 0 !important;
    }
    
    .properties-mobile-toggle-btn {
        display: inline-flex !important;
    }
}