/* ============================================
   APARTMENT PAGES STYLES
   ============================================ */

/* Apartment Header Section */
.apartment-header {
    background: linear-gradient(135deg, #3C3C3C 0%, #4a4a4a 100%);
    color: white;
    padding: 3rem 0;
    margin-top: 0;
}

.apartment-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.apartment-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ED8411;
}

.status-badge {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #ED8411, #ff9933);
    color: white;
    box-shadow: 0 5px 15px rgba(237, 132, 17, 0.4);
}

.status-badge.unavailable {
    background: linear-gradient(45deg, #666, #888);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(237, 132, 17, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #3C3C3C;
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.hidden.show {
    display: block;
}

.show-more-btn {
    text-align: center;
    margin-top: 2rem;
}

.show-more-button {
    display: inline-block;
    background: linear-gradient(45deg, #ED8411, #ff9933);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.show-more-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(237, 132, 17, 0.4);
}

.show-more-button.hidden {
    display: none;
}

/* Price Section */
.price-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #F5F1E8 0%, rgba(237, 132, 17, 0.1) 100%);
}

.price-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.price-main {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ED8411;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ED8411;
    margin-bottom: 0.5rem;
}

.price-period {
    font-size: 1.2rem;
    color: #3C3C3C;
}

.price-details {
    display: grid;
    gap: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #F5F1E8;
    border-radius: 10px;
}

.price-item-label {
    font-weight: bold;
    color: #3C3C3C;
}

.price-item-value {
    font-size: 1.3rem;
    color: #ED8411;
    font-weight: bold;
}

.price-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(237, 132, 17, 0.1);
    border-radius: 10px;
    border-left: 4px solid #ED8411;
}

.price-note p {
    margin-bottom: 0.5rem;
}

.price-note p:last-child {
    margin-bottom: 0;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: #F5F1E8;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(237, 132, 17, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(32, 11, 106, 0.1);
}

.info-card h3 {
    color: #ED8411;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ED8411;
    font-weight: bold;
}

.info-card p {
    color: #3C3C3C;
    line-height: 1.8;
}

.specs-list {
    display: grid;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
}

.spec-label {
    font-weight: bold;
    color: #3C3C3C;
}

.spec-value {
    color: #3C3C3C;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #3C3C3C 0%, #4a4a4a 100%);
    color: white;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    color: #ED8411;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-button {
    display: inline-block;
    background: linear-gradient(45deg, #ED8411, #ff9933);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(237, 132, 17, 0.4);
}

/* Modal for gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(237, 132, 17, 0.8);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    z-index: 1001;
}

.modal-nav:hover {
    background: rgba(237, 132, 17, 1);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close:hover {
    color: #ED8411;
    background: rgba(0, 0, 0, 0.8);
}

.modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 1002;
}

/* Responsive for apartment pages */
@media (max-width: 768px) {
    .apartment-title {
        flex-direction: column;
        text-align: center;
    }

    .apartment-number {
        font-size: 2.5rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        padding: 2rem;
    }

    .modal-nav {
        font-size: 24px;
        padding: 12px 16px;
    }

    .modal-nav.prev {
        left: 10px;
    }

    .modal-nav.next {
        right: 10px;
    }

    .modal-counter {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .apartment-number {
        font-size: 2rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .price-card {
        padding: 1.5rem;
    }
}

