/**
 * Style dla strony szczegółów oferty nieruchomości
 */

/* Główny układ strony */
.offer-details-page {
    padding-bottom: 3rem;
    background-color: #f9f9f9;
}

.page-header {
    background: linear-gradient(135deg, #1c3e5f 0%, #173049 100%);
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    margin-top: 6rem;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.offer-content-section {
    padding: 1rem 0 3rem;
}

.offer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1rem;
    align-items: start;
}

.offer-gallery {
    position: sticky;
    top: 20px;
}

/* Sekcja nagłówka oferty */
.offer-location-header {
    font-size: 1rem;
    color: #666;
    margin-top: -0.4rem;
    display: flex;
    align-items: center;
}

.offer-location-header i {
    color: #0a2342;
    margin-right: 10px;
    font-size: 1.25rem;
}

/* Sekcja informacji o ofercie */
.offer-info {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.offer-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.offer-header h2 {
    font-size: 2rem;
    margin: 0 0 1.2rem 0;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

.price-container {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.offer-price {
    font-size: 2.2rem;
    color: #0a2342; /* Fallback dla starszych przeglądarek */
    background: linear-gradient(135deg, #0a2342 0%, #304d7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.offer-price-per-m2 {
    font-size: 1.2rem;
    color: #555;
    margin: 0;
    position: relative;
    padding-left: 0.75rem;
}

.offer-price-per-m2::before {
    content: '|';
    position: absolute;
    left: 0;
    color: #ddd;
}

/* Ikony z podstawowymi informacjami */
.offer-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.feature-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.feature-item i {
    font-size: 28px;
    color: #0a2342;
    margin-bottom: 12px;
}

.feature-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.feature-name {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sekcja opisu */
.offer-description {
    margin-bottom: 2rem;
}

.offer-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 0.75rem;
}

.offer-description h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0a2342;
    border-radius: 2px;
}

.description-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

/* Sekcja szczegółów */
.offer-details {
    margin-bottom: 2rem;
}

.offer-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 0.75rem;
}

.offer-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0a2342;
    border-radius: 2px;
}

.details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.details-table th, 
.details-table td {
    padding: 1rem 1.2rem;
    text-align: left;
}

.details-table tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.details-table tr:nth-child(even) {
    background-color: #fff;
}

.details-table th {
    font-weight: 600;
    color: #555;
    width: 40%;
}

.details-table td {
    color: #333;
    font-weight: 500;
}

.additional-info {
    background-color: #f0f7ff;
    border-radius: 10px;
    padding: 1.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0a2342;
}

.additional-info h4 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.additional-info p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 0;
}

/* Sekcja CTA (Call to Action) */
.offer-contact-cta {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-image: linear-gradient(135deg, #f5f7fa 0%, #ebf3ff 100%);
}

.offer-contact-cta h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.offer-contact-cta p {
    color: #555;
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-buttons .btn {
    min-width: 180px;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #0a2342;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.2);
}

.btn-primary:hover {
    background-color: #2c508a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
    background-color: #fff;
    color: #0a2342;
    border: 2px solid #0a2342;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #f0f7ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.btn-outline:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ccc;
    transform: translateY(-3px);
}

.btn i {
    margin-right: 8px;
}

/* Responsywność */
@media (max-width: 992px) {
    .offer-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .offer-gallery {
        position: static;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .offer-header h2 {
        font-size: 1.8rem;
    }
    
    .offer-price {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .offer-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-table th {
        width: 50%;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .offer-header h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .offer-features {
        grid-template-columns: 1fr;
    }
    
    .offer-price {
        font-size: 1.75rem;
    }
    
    .offer-price-per-m2 {
        font-size: 1.1rem;
        padding-left: 0;
    }
    
    .offer-price-per-m2::before {
        display: none;
    }
    
    .page-header {
        padding: 1.5rem 0;
    }
    
    .offer-info {
        padding: 1.5rem;
    }
}

/* Sekcja z podobnymi ofertami */
.similar-properties {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid #eee;
}

.similar-properties h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
    font-weight: 700;
}

.similar-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
} 