/* ===================================================================
   CSS DEDYKOWANY DLA STRONY POJEDYNCZEJ OFERTY (oferta.php)
   Atlas Nieruchomości - Szczegóły oferty
   =================================================================== */

/* SEKCJA SZCZEGÓŁÓW OFERTY */
.offer-details-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.offer-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.offer-title-main {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.offer-location-main {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.offer-price-main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-amount-main {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 5px;
}

.price-per-meter-main {
    font-size: 1rem;
    color: #6c757d;
}

.offer-status-main {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Galeria zdjęć */
.offer-gallery {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.gallery-main-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.thumbnail {
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #4285f4;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Szczegóły techniczne */
.offer-specifications {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.specifications-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #4285f4;
    padding-bottom: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
}

.spec-value {
    color: #495057;
    font-weight: 500;
}

/* Opis oferty */
.offer-description {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.description-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #4285f4;
    padding-bottom: 10px;
}

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

.description-content p {
    margin-bottom: 15px;
}

/* Mapa lokalizacji */
.offer-map {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.map-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #4285f4;
    padding-bottom: 10px;
}

.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* Formularz kontaktowy */
.offer-contact {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #4285f4;
    padding-bottom: 10px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-send,
.btn-call {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-send {
    background: #4285f4;
    color: white;
}

.btn-send:hover {
    background: #3367d6;
    transform: translateY(-1px);
}

.btn-call {
    background: #28a745;
    color: white;
}

.btn-call:hover {
    background: #218838;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #4285f4;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: #6c757d;
}

.breadcrumbs .current {
    color: #6c757d;
}

/* RESPONSYWNOŚĆ - OFERTA SZCZEGÓŁOWA */
@media (max-width: 992px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .offer-title-main {
        font-size: 1.8rem;
    }
    
    .price-amount-main {
        font-size: 1.6rem;
    }
    
    .offer-meta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .offer-price-main {
        align-items: center;
    }
    
    .gallery-main-image {
        height: 250px;
    }
    
    .offer-header,
    .offer-gallery,
    .offer-specifications,
    .offer-description,
    .offer-map,
    .offer-contact {
        padding: 20px;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .offer-title-main {
        font-size: 1.5rem;
    }
    
    .price-amount-main {
        font-size: 1.4rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .thumbnail {
        height: 60px;
    }
}
