﻿/* ========================================
   ZMIENNE GLOBALNE (Zaktualizowane wg style1.css)
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1a365d;
    --primary-dark: #0f2137;
    --secondary: #2d3748;
    --accent: #c5a467;
    --accent-hover: #b08d55;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1a202c;
    --text-muted: #718096;
    --success: #38a169;
    --warning: #dd6b20;
    --danger: #c53030;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ========================================
   PODSTAWOWE UTILITKI I KOMPONENTY
   ======================================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Przyciski */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    font-size: 0.95rem;
}
.btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--secondary);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26, 54, 93, 0.05);
}
.btn-hero-primary {
    background: var(--accent);
    color: #ffffff;
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-weight: 600;
}
.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-hero-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 8px;
    margin-left: 15px;
    background: transparent;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}
.btn-bid {
    background: var(--accent);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn-bid:hover {
    background: var(--accent-hover);
}

/* Dropdowny */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 10px; 
    margin-bottom: -10px;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    background-color: var(--card-bg);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    border: 1px solid var(--border);
    z-index: 100;
    overflow: hidden;
}
.dropdown-content a {
    color: var(--text);
    padding: 12px 20px;
    display: block;
    font-size: 0.95rem;
    transition: background 0.2s;
    text-decoration: none;
}
.dropdown-content a:hover {
    background: var(--bg);
    color: var(--primary);
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* Menu użytkownika */
.user-dropdown {
    float: right;
}
.user-menu-content {
    position: absolute;
    right: 0;
    left: auto !important;
    min-width: 240px !important;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    z-index: 1001;
    top: 100%;
    margin-top: 10px;
}
.user-menu-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}
.user-balance-info {
    padding: 12px 15px;
    background-color: var(--bg);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}
.user-balance-info strong {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
}
.user-menu-content hr {
    margin: 8px 0;
    border: 0;
    border-top: 1px solid var(--border);
}
.logout-link {
    color: var(--danger) !important;
    font-weight: 500;
}
.logout-link:hover {
    background-color: #fff5f5 !important;
    border-radius: 8px;
}
.user-menu-content i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}
.user-balance {
    background: rgba(56, 161, 105, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--success);
    border: 1px solid rgba(56, 161, 105, 0.2);
    font-size: 0.85rem;
}

/* ========================================
   NAWIGACJA I NAGŁÓWEK
   ======================================== */
.search-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.nav-pills .nav-link {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--secondary);
    font-weight: 600;
    margin-right: 8px;
    border-radius: 12px 12px 0 0;
    padding: 12px 28px;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.nav-pills .nav-link.active {
    background-color: var(--card-bg);
    color: var(--primary);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}

.search-box {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 0 16px 16px 16px;
    box-shadow: var(--shadow-hover);
}

.search-box .form-control, 
.search-box .form-select,
.search-box .input-group-text {
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    height: 50px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
}
.search-box .form-control:focus, 
.search-box .form-select:focus {
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    border-color: var(--primary);
    background-color: var(--card-bg);
}
.search-box .input-group-text i {
    font-size: 1.1rem;
    color: var(--text-muted);
}
.search-btn {
    height: 50px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    background-color: var(--primary);
    color: #fff;
    border: none;
}
.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background-color: var(--primary-dark);
}

.header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav-menu a, .dropbtn {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.nav-menu a:hover {
    color: var(--primary);
}
.nav-menu i {
    font-size: 1.1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}
.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    display: block;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.logo-dot {
    color: var(--accent);
    font-weight: 800;

    font-size: 1.5rem;
}
.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
}

@media (max-width: 992px) {
    .hamburger { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        padding: 20px;
        box-shadow: var(--shadow);
        z-index: 99;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.active { display: flex; gap: 16px; }
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: block;
        background: transparent;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    background: url('/public/images/hero-bg.jpg') no-repeat center center/cover;
    padding: 100px 0;
    color: #ffffff;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 33, 55, 0.95) 0%, rgba(26, 54, 93, 0.85) 100%);
    z-index: 1;
}
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 0 5%;
}
.hero-badge {
    background: rgba(197, 164, 103, 0.15);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
    border: 1px solid rgba(197, 164, 103, 0.3);
}
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}
.text-gradient {
    background: linear-gradient(90deg, var(--accent) 0%, #e0c99f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.7;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}
.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}
.stat-label {
    color: #cbd5e1;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-visual {
    display: flex;
    justify-content: center;
}
.visual-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transform: rotate(2deg);
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-hover);
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(4deg); }
}
/* ==========================================
   KALKULATOR INWESTYCYJNY
   ========================================== */
.calculator-section {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    padding: 40px;
    max-width: 1100px; /* Optymalna szerokość dla czytelności */
    margin: 60px auto; /* Wyśrodkowanie na stronie */
    /* Domyślnie ukryte, zmieniane przez JS */
}

/* Klasa pomocnicza jeśli Twój JS dodaje klasę 'active' do pokazywania kalkulatora */
.calculator-section.active {
    display: block;
    animation: slideDownFade 0.4s ease-out forwards;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.calculator-section .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.calculator-section .chart-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary); /* Granatowy akcent */
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

.calc-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s ease;
}

.calc-input-group input:focus {
    border-color: var(--primary);
    background: var(--card-bg);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Sekcja wyników na dole */
.calc-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    /* Delikatny złoto-granatowy gradient w tle wyników */
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.03) 0%, rgba(197, 164, 103, 0.08) 100%);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(197, 164, 103, 0.2);
}

.calc-result {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.calc-result:hover {
    transform: translateY(-3px);
    border-color: var(--accent); /* Złota ramka na hover */
}

.calc-result-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary); /* Granatowe wartości */
    margin-bottom: 8px;
}

/* Wyróżnienie najważniejszego wyniku (Cashflow / ROI) na złoto, jeśli chcesz */
#resultCashflow, #resultRoi {
    color: var(--accent);
}

.calc-result-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsywność dla telefonów */
@media (max-width: 768px) {
    .calculator-section {
        padding: 24px;
        margin: 20px 10px;
    }
    .calculator-section .chart-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .calc-results {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }
    .calc-result-value {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .calc-results {
        grid-template-columns: 1fr;
    }
}
.favorite-btn {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #64748b; 
    font-size: 1.2rem;
    transition: all 0.2s ease;
    padding: 0;
}

.favorite-btn:hover {
    transform: scale(1.1);
    color: #dc3545 !important;
}

/* Wymuszenie czerwonego koloru i wypełnienia dla AKTYWNEGO przycisku */
.favorite-btn.active,
.favorite-btn.active i,
.favorite-btn.active svg {
    color: #dc3545 !important; 
    fill: #dc3545 !important; 
}

/* Wymuszenie "grubości" FontAwesome (zmienia z pustego na pełne) */
.favorite-btn.active i {
    font-weight: 900 !important;
}
/* ========================================
   SEKCJA: JAK TO DZIAŁA
   ======================================== */
.how-it-works {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}
.how-it-works::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    z-index: 10;
}
.section-title {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
    font-size: 2rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    margin-top: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5%;
}
.steps-line {
    position: absolute;
    top: 80px; left: 10%; right: 10%; height: 2px;
    background: var(--border);
    z-index: 1;
    display: none;
}
@media (min-width: 992px) { .steps-line { display: block; } }

.step-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
}
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
.step-icon-wrapper { position: relative; margin-bottom: 30px; }
.step-icon {
    width: 70px; height: 70px;
    background: var(--bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.step-card:hover .step-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
}
.step-number {
    position: absolute;
    top: -15px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 34px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; color: #ffffff;
    z-index: 10;
}
.step-title {
    font-size: 1.3rem; font-weight: 600; color: var(--primary); margin-bottom: 12px;
}
.step-description {
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px;
}
.step-features { list-style: none; padding: 0; margin: 0; text-align: left; }
.step-features li {
    padding: 6px 0; font-size: 0.9rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 8px;
}
.step-features li::before {
    content: "✓"; color: var(--success); font-weight: bold;
}
.btn-icon {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
}

/* ========================================
   STRONA LOGOWANIA/REJESTRACJI
   ======================================== */
.auth-page { background: var(--bg); min-height: 100vh; }
.auth-layout { display: flex; min-height: 100vh; }
.auth-side-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { max-width: 420px; width: 100%; background: var(--card-bg); padding: 40px; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.auth-card h1 { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 30px; text-align: center; }
.form-group-custom { margin-bottom: 20px; }
.form-group-custom label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--secondary); font-size: 0.9rem; }
.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-wrapper input {
    width: 100%; padding: 12px 16px 12px 45px;
    border: 1px solid var(--border); border-radius: 8px;
    transition: all 0.2s; font-size: 0.95rem; background: var(--bg);
}
.input-wrapper input:focus {
    border-color: var(--primary); background: var(--card-bg); outline: none; box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}
.auth-side-info {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff; display: flex; align-items: center; justify-content: center; padding: 60px;
}
.extra-header { font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
.full-logo-gradient { color: var(--accent); }
.benefit-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.b-icon {
    min-width: 48px; height: 48px; background: rgba(255, 255, 255, 0.1); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent);
}

/* ========================================
   SEKCJA: NAJNOWSZE OFERTY I AUKCJE
   ======================================== */
.latest-section { padding: 80px 5%; background-color: var(--bg); position: relative; max-width: 1400px; margin: 0 auto; }
.section-header { position: relative; z-index: 2; margin-bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.highlight-text { color: var(--accent); }
.highlight-warning { color: var(--warning); }
.section-subtitle { color: var(--text-muted); font-weight: 400; font-size: 0.95rem; margin-top: 8px; }

.badge-pill-custom {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
}
.badge-pill-custom.primary { background-color: rgba(26, 54, 93, 0.08); color: var(--primary); }
.badge-pill-custom.warning { background-color: rgba(221, 107, 32, 0.08); color: var(--warning); }

.listings-grid, .auctions-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-bottom: 40px;
}

/* Karta Nieruchomości / Oferty */
.estate-card, .offer-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
    display: flex; flex-direction: column; height: 100%;
    cursor: pointer;
}
.estate-card:hover, .offer-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-hover);
}
.estate-image-wrapper, .offer-img-container, .estate-image {
    position: relative; height: 200px; display: block; overflow: hidden; background-color: var(--bg);
}
.estate-img, .offer-img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease;
}
.estate-card:hover .estate-img, .offer-card:hover .offer-img, .estate-card:hover .estate-image img {
    transform: scale(1.05);
}
.no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.no-photo i { font-size: 2.5rem; color: var(--border); }

/* Badges */
.estate-badge, .badge-overlay {
    position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.estate-badge.type-sale { background: var(--primary); }
.estate-badge.type-buy { background: var(--success); }
.estate-badge { background: var(--accent); } /* Fallback */
.badge-left { left: 12px; background: rgba(255,255,255,0.95); color: var(--primary); }
.badge-right { right: 12px; background: rgba(0,0,0,0.7); color: #fff; backdrop-filter: blur(4px); left: auto; }

.estate-content, .card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.estate-price, .offer-price { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.estate-title, .offer-title {
    font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin: 0 0 12px 0; color: var(--text);
}
.estate-title a, .offer-title { color: var(--text); text-decoration: none; transition: color 0.2s; }
.estate-title a:hover, .offer-title:hover { color: var(--primary); }

.estate-meta, .offer-meta {
    margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
    display: flex; gap: 12px; font-size: 0.85rem; color: var(--text-muted);
}
.estate-meta span { display: flex; align-items: center; gap: 6px; }

/* Karta Aukcji */
.auction-card {
    background: var(--card-bg); border-radius: 16px; padding: 24px;
    border: 1px solid var(--border); border-left: 4px solid var(--accent);
    position: relative; box-shadow: var(--shadow); transition: all 0.3s ease;
    height: 100%; overflow: hidden;
}
.auction-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.auction-bg-icon { position: absolute; top: -10px; right: -10px; font-size: 5rem; color: rgba(197, 164, 103, 0.05); transform: rotate(15deg); pointer-events: none; }
.auction-budget { margin-bottom: 12px; }
.auction-budget small { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.auction-budget { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.auction-title { display: block; font-size: 1.05rem; font-weight: 600; color: var(--text); text-decoration: none; margin-bottom: 16px; line-height: 1.4; position: relative; z-index: 1; }
.auction-title:hover { color: var(--accent); }
.auction-meta { display: flex; gap: 12px; font-size: 0.85rem; color: var(--text-muted); }
.auction-meta span { display: flex; align-items: center; gap: 6px; }
.auction-meta i { color: var(--accent); }

/* Custom Buttons dla ofert */
.btn-primary-custom { background-color: var(--primary); color: #ffffff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.btn-primary-custom:hover { background-color: var(--primary-dark); transform: translateY(-1px); color: #ffffff; }
.btn-warning-custom { background: var(--warning); color: #ffffff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.btn-warning-custom:hover { transform: translateY(-1px); background: #c05621; color: #ffffff; }

/* Dashboard / Statystyki dodatkowe */
.offers-header { background: var(--card-bg); padding: 24px 5%; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.stat-card {
    background: var(--card-bg); border-radius: 16px; padding: 24px; text-align: center;
    border: 1px solid var(--border); box-shadow: var(--shadow); height: 100%; transition: transform 0.2s;
    border-left: 4px solid var(--accent);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-top: 8px; }
.stat-icon { font-size: 1.5rem; margin-bottom: 12px; color: var(--accent); }
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 12px; }

/* Elementy dodatkowe (n2-card, statusy) dopasowane do koncepcji */
.n2-card-wrapper { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 10; }
.n2-card {
    width: 340px; padding: 30px; background: var(--card-bg); border-radius: 16px;
    box-shadow: var(--shadow-hover); color: var(--text); border: 1px solid var(--border);
}
.status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.portal-status { display: flex; align-items: center; color: var(--success); background: rgba(56, 161, 105, 0.1); padding: 4px 10px; border-radius: 20px; }
.pulsing-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; margin-right: 6px; box-shadow: 0 0 4px var(--success); animation: pulse 2s infinite; }
.users-online { color: var(--text-muted); }
.brand-tag { color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.hero-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.hero-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.cat-item { background: var(--bg); padding: 12px 5px; border-radius: 8px; text-align: center; border: 1px solid var(--border); transition: 0.2s; }
.cat-item:hover { background: rgba(26, 54, 93, 0.05); border-color: var(--primary); }
.cat-item .icon { font-size: 1.2rem; margin-bottom: 4px; color: var(--primary); }
.cat-item span { font-size: 0.75rem; color: var(--secondary); font-weight: 500; }
.action-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-primary-action { background: var(--primary); color: #ffffff; text-align: center; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: 0.2s; }
.btn-primary-action:hover { background: var(--primary-dark); transform: translateY(-1px); color: #ffffff;}
.btn-secondary-action { background: transparent; color: var(--secondary); text-align: center; padding: 12px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; text-decoration: none; border: 1px solid var(--border); transition: 0.2s; }
.btn-secondary-action:hover { border-color: var(--primary); color: var(--primary); }
@keyframes pulse { 0% { transform: scale(0.95); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.5; } 100% { transform: scale(0.95); opacity: 1; } }

.article-card { transition: all 0.2s; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card-bg); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.view-all-link { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.view-all-link:hover { color: var(--primary); }
.stat-icon-wrapper.company { background: rgba(26, 54, 93, 0.08); color: var(--primary); }

/* ========================================
   STOPKA
   ======================================== */
.footer { background: var(--primary-dark); color: var(--text-muted); padding-top: 60px; font-size: 0.9rem; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; gap: 40px; max-width: 1400px; margin: 0 auto; padding: 0 5%; padding-bottom: 50px; }
.footer-brand .logo-main { font-size: 1.5rem; font-weight: 700; color: #ffffff; }
.footer-desc { margin: 20px 0; line-height: 1.6; color: #cbd5e1; }
.footer-links h4, .footer-contact h4 { color: var(--accent); text-transform: uppercase; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 20px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; font-weight: 500; }
.footer-links ul li a:hover { color: #ffffff; padding-left: 4px; }
.snofru-link { text-decoration: none; display: inline-block; transition: transform 0.2s ease; }
.snofru-badge { margin-top: 20px; display: inline-block; padding: 8px 16px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; border-left: 3px solid var(--accent); font-size: 0.85rem; color: #cbd5e1; transition: all 0.2s; }
.snofru-link:hover .snofru-badge { background: rgba(255, 255, 255, 0.1); border-left-color: var(--accent-hover); box-shadow: var(--shadow); }
.snofru-link:hover { transform: translateY(-2px); }
.footer-bottom { background: #0b1828; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.bottom-flex { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.legal-links a { color: var(--text-muted); margin-left: 20px; text-decoration: none; transition: color 0.2s; font-size: 0.85rem; }
.legal-links a:hover { color: #ffffff; }

/* ========================================
   MEDIA QUERIES (Responsywność)
   ======================================== */
@media (max-width: 1024px) {
    .n2-card-wrapper { position: static; transform: none; margin: 40px auto; display: flex; justify-content: center; }
}
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 30px; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .auth-side-info { display: none; }
    .auth-layout { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .listings-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; margin-top: 40px; }
    .step-card { padding: 30px 20px; }
}
@media (max-width: 768px) {
    .nav-menu, .nav-buttons { display: none; }
    .hamburger { display: flex; }
    .listings-grid, .auctions-grid { grid-template-columns: 1fr; gap: 20px; }
    .estate-image-wrapper, .offer-img-container { height: 180px; }
    .section-title { font-size: 1.6rem; }
    .search-wrapper { max-width: 100%; padding: 0 10px; }
    .search-box { border-radius: 16px; padding: 20px; }
    .nav-pills .nav-link { width: 48%; text-align: center; margin-bottom: 5px; }
    .stat-card { margin-bottom: 15px; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .bottom-flex { flex-direction: column; text-align: center; gap: 15px; }
    .legal-links a { margin-left: 0; display: block; margin: 8px 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .how-it-works { padding: 40px 0; }
    .btn-primary { width: 100%; text-align: center; }
}