/* 
 * NestQuestSA Premium Theme
 * Global styles for the "World Class" look (Universally applied)
 */

/* ===== Variables (Synced with Landing) ===== */
:root {
    --theme-font-display: 'Fraunces', Georgia, serif;
    --theme-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Primary palette - Deep teal/forest */
    --theme-primary: #0D4F4F;
    --theme-primary-dark: #083838;
    --theme-primary-light: #1A6B6B;
    
    /* Accent - Warm amber/gold */
    --theme-accent: #E5A84B;
    --theme-accent-light: #F0C168;
    --theme-accent-dark: #C4872A;
    
    /* Neutrals */
    --theme-dark: #1A1F2B;
    --theme-text: #2D3142;
    --theme-text-muted: #6B7280;
    --theme-light: #F7F8FA;
    --theme-white: #FFFFFF;
    --theme-border: #E5E7EB;
    
    /* Shadows */
    --theme-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --theme-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --theme-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--theme-font-body);
    color: var(--theme-text);
    background-color: var(--theme-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--theme-font-display);
    color: var(--theme-dark);
}

/* ===== Global Premium Navbar ===== */
/* Override default bootstrap background with Premium Teal */
.navbar-custom {
    background-color: var(--theme-primary-dark) !important;
    padding: 0.75rem 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1030;
    /* Ensure sticky/fixed behavior is handled by page-specifics or base */
}

/* Nav Links Styling */
.navbar-custom .nav-link {
    font-family: var(--theme-font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.show {
    color: var(--theme-accent) !important;
    transform: translateY(-1px);
}

.navbar-custom .nav-link i {
    color: var(--theme-accent);
    opacity: 0.8;
    margin-right: 6px;
    transition: opacity 0.2s ease;
}

.navbar-custom .nav-link:hover i {
    opacity: 1;
}

/* Dropdown Menus */
.navbar-custom .dropdown-menu {
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    margin-top: 10px;
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-custom .dropdown-item {
    font-family: var(--theme-font-body);
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    color: var(--theme-text);
    transition: all 0.2s ease;
    font-weight: 500;
}

.navbar-custom .dropdown-item:hover {
    background-color: rgba(13, 79, 79, 0.05); /* theme-primary very light */
    color: var(--theme-primary);
    transform: translateX(3px);
}

.navbar-custom .dropdown-item i {
    width: 20px;
    color: var(--theme-text-muted);
    transition: color 0.2s ease;
}

.navbar-custom .dropdown-item:hover i {
    color: var(--theme-primary);
}

.navbar-custom .dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--theme-font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ===== Reusable Components (Cards) ===== */

/* Premium Property Card */
.property-card {
    background: var(--theme-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--theme-shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--theme-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    box-shadow: var(--theme-shadow-lg);
    transform: translateY(-5px);
    border-color: rgba(13, 79, 79, 0.2);
}

.property-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.property-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.item-badge-new { background-color: #10B981; }
.item-badge-featured { background-color: var(--theme-accent); color: var(--theme-dark); }
.item-badge-sale { background-color: var(--theme-primary); }

.reduced-ribbon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #EF4444;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.property-details {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-family: var(--theme-font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.property-price {
    font-family: var(--theme-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin-bottom: 0.5rem;
}

.property-location {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-location i { color: var(--theme-accent); }

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border);
}

.feature-item {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.feature-item i { color: var(--theme-primary-light); }

.view-details-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    background-color: var(--theme-light);
    color: var(--theme-primary);
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.property-card:hover .view-details-btn {
    background-color: var(--theme-primary);
    color: white;
}

/* Premium Suburb/Area Card */
.suburb-card {
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--theme-shadow-sm) !important;
    background: var(--theme-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.suburb-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--theme-shadow-lg) !important;
}

.suburb-placeholder {
    /* Fallback elegant gradient if no image */
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%) !important;
    position: relative;
    overflow: hidden;
}

.suburb-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}
