/* --- 1. FONTY I KOLORYSTKA (Styl Premium) --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* DOMINUJĄCY: Głęboka Leśna Zieleń */
    --primary: #1B4332; 
    
    /* AKCENT: Złoty/Miedziany */
    --accent: #D4A373;
    
    /* Tło i Tekst */
    --bg-light: #F8F9FA;
    --text-dark: #2D3436;
    --text-muted: #636E72;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* --- 2. TYPOGRAFIA --- */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* --- 3. NADPISANIE KOLORÓW BOOTSTRAPA --- */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.icon-accent { color: var(--accent) !important; }

/* --- 4. NAWIGACJA (HEADER) --- */
.navbar {
    background-color: #fff !important;
    border-bottom: 1px solid rgba(27, 67, 50, 0.1);
    
    /* ZMIANA: Zmniejszono padding z 1.5rem na 0.5rem */
    padding: 0.5rem 0; 
    
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.navbar-brand {
    font-weight: 700;
    /* ZMIANA: Usuwamy domyślne marginesy Bootstrapa dla brandu, żeby było jeszcze ciaśniej */
    padding-top: 0;
    padding-bottom: 0;
}

.nav-link {
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-dark) !important;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
}

.nav-link i {
    font-size: 1.1rem;
    color: var(--accent);
}

/* --- 5. PRZYCISKI --- */
.btn-primary-custom {
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    border-radius: 2px;
    padding: 10px 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #0F281E;
    border-color: #0F281E;
    color: #fff;
}

.btn-outline-primary-custom {
    color: var(--primary);
    border: 1px solid var(--primary);
    background: transparent;
    border-radius: 2px;
    padding: 8px 20px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary);
    color: #fff;
}

/* --- 6. HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 7rem 0;
    margin-bottom: 4rem;
    background-color: var(--primary);
}

.hero-section h1 {
    color: #fff !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.search-form {
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem !important;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.search-form .form-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.search-form .form-control, .search-form .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 2px; 
    padding: 0.8rem;
    background-color: #fcfcfc;
}

.search-form .form-control:focus, .search-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: none;
    background-color: #fff;
}

/* --- 7. KARTY OGŁOSZEŃ (POPRAWKA ZDJĘĆ) --- */
.property-item {
    border: none;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: #fff;
    overflow: hidden;
    transition: all 0.4s ease;
}

.property-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* KLUCZOWA ZMIANA: WYMUSZENIE WYSOKOŚCI I PRZYCINANIE ZDJĘĆ */
.property-item .card-img-top, 
.property-item .property-image {
    height: 260px !important; /* Sztywna wysokość */
    width: 100%;
    object-fit: cover; /* Zdjęcie wypełni ramkę (przycięcie) */
    object-position: center; /* Centrowanie zdjęcia */
    border-radius: 4px 4px 0 0;
}

/* Upewnienie się, że karuzela nie psuje wysokości */
.property-item .carousel-inner, 
.property-item .carousel-item {
    height: 260px;
}

.card-body {
    padding: 1.5rem;
}

.property-title {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color 0.3s;
    /* Obcinanie zbyt długich tytułów */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-item:hover .property-title {
    color: var(--primary);
}

.price-tag {
    color: var(--accent);
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
}

.badge-custom {
    background-color: var(--primary);
    color: #fff;
    border-radius: 2px;
    padding: 6px 12px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- 8. PAGINACJA --- */
.pagination .page-link {
    border: none;
    color: var(--text-muted);
    background: transparent;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 0 5px;
}

.pagination .page-item.active .page-link {
    background-color: transparent;
    color: var(--primary);
    font-weight: bold;
    border-bottom: 2px solid var(--accent);
    box-shadow: none;
}

/* --- 9. STOPKA --- */
.site-footer {
    background-color: #151515;
    color: #bbb;
    border-top: 4px solid var(--accent);
}

.footer-heading {
    color: #fff;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.footer-links a {
    color: #888;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* --- 10. DETALE NA STRONIE OFERTY --- */
.offer-description h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

.offer-description h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.price-box {
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.price-box .price-value {
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}