/* ===================================================================
   CSS DEDYKOWANY DLA STRONY WSZYSTKICH OFERT (wszystkie-oferty.php)
   Atlas Nieruchomości - Wszystkie oferty
   =================================================================== */

/* NAGŁÓWEK STRONY */
.page-header {
    padding: 80px 0 60px 0;
    background: linear-gradient(135deg, #1c3e5f 0%, #173049 100%);
    color: white;
    text-align: center;
    margin-top: 5rem;
}

.page-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.page-header-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* SEKCJA GŁÓWNA OFERT */
.offers-main-section {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.offers-main-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.offers-main-section .section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filtry i sortowanie */
.offers-filters {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

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

.filters-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.btn-search,
.btn-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

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

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-reset:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* SEKCJA FILTRÓW */
.filter-bar {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filters-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

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

.filter-select:hover {
    border-color: #4285f4;
}

/* Siatka ofert */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Karty ofert */
.offer-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.offer-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.offer-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background: #28a745;
    color: white;
}

.status-reserved {
    background: #ffc107;
    color: #212529;
}

.status-sold {
    background: #dc3545;
    color: white;
}

.offer-content {
    padding: 2px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.offer-location {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Usunięto - używamy stylów z modern-offers.css */

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #495057;
}

.detail-item i {
    color: #4285f4;
    width: 16px;
    text-align: center;
}

.offer-price {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

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

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

.offer-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-details,
.btn-contact {
    flex: 1;
    padding: 15px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

.btn-details {
    flex: 1;
    background: #0a2342;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(10, 35, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-details:hover {
    background: #2c508a;
    color: white;
    text-decoration: none;
}

.btn-contact {
    background: transparent;
    color: #4285f4;
    border: 1px solid #4285f4;
}

.btn-contact:hover {
    background: #4285f4;
    color: white;
    text-decoration: none;
}

/* Paginacja */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    color: #4285f4;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.pagination .current {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

/* Komunikat braku ofert */
.no-offers {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    margin: 40px 0;
}

.no-offers h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-offers p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* SEKCJA OFERT */
.offers {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 50vh;
}

.offers .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.results-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    margin-top: 0rem;
}

.per-page-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.per-page-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.per-page-options a {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.per-page-options a:hover,
.per-page-options a.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results p {
    font-size: 1.1rem;
    margin: 0;
}

/* RESPONSYWNOŚĆ - WSZYSTKIE OFERTY */
@media (max-width: 992px) {
    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .filter-container {
        padding: 20px;
        gap: 15px;
    }
    
    .filters-form {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .offers-main-section .section-title {
        font-size: 2rem;
    }
    
    .offers-filters {
        padding: 20px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filters-actions {
        grid-column: 1;
        justify-content: stretch;
    }
    
    .btn-search,
    .btn-reset {
        flex: 1;
    }
    
    /* Filter-bar responsywność */
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }
    
    .filters-form {
        justify-content: center;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: center;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    /* Usunięto - używamy stylów z modern-offers.css */
    
    .offer-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 40px 0;
        margin-top: 4rem;
    }
    
    .page-header-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .page-header-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .offers {
        padding: 20px 0;
    }
    
    .offers .container {
        padding: 0 15px;
    }
    
    .results-count {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .per-page-selector {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .per-page-options {
        justify-content: center;
    }
    
    .offers-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-top: 20px !important;
        padding: 0 !important;
    }
    
    .offer-card {
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .offer-content {
        padding: 20px;
    }
    
    .offer-title {
        font-size: 1.2rem;
    }
    
    .price-amount {
        font-size: 1.3rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Filter-bar na małych ekranach */
    .filter-container {
        padding: 15px;
    }
    
    .filters-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        gap: 5px;
    }
    
    .filter-label {
        font-size: 0.9rem;
    }
    
    .filter-select {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* Bardzo małe telefony */  
@media (max-width: 360px) {
    .page-header-content h1 {
        font-size: 1.6rem;
    }
    
    .offers {
        padding: 15px 0;
    }
    
    .offers .container {
        padding: 0 10px;
    }
    
    .offers-grid {
        gap: 10px !important;
    }
    
    .filter-container {
        padding: 10px;
        margin: 0 5px;
    }
    
    .per-page-options a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .results-count {
        font-size: 0.95rem;
    }
}

/* ANIMACJE WSZYSTKIE OFERTY */
.offer-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
