.apartment-header {
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 70px;
}

.apartment-header-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.apartment-header-content p {
    font-size: 20px;
    opacity: 0.9;
}

.apartment-details {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.apartment-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.apartment-description {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.apartment-description h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.apartment-description p {
    color: #777;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.apartment-sidebar {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.price-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.price-section .amount {
    font-size: 36px;
    font-weight: bold;
    color: var(--aqua);
}

.price-section .per-night {
    color: #999;
    font-size: 16px;
}

.apartment-features {
    margin-bottom: 30px;
}

.apartment-features h3 {
    margin-bottom: 15px;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.feature-item i {
    margin-right: 8px;
    color: var(--aqua);
}

.gallery-section {
    margin: 50px 0;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.gallery-item {
    cursor: pointer;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.amenities-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.amenities-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.amenity-item {
    text-align: center;
    padding: 20px;
}

.amenity-item i {
    font-size: 30px;
    color: var(--aqua);
    margin-bottom: 15px;
}

.amenity-item h4 {
    margin-bottom: 10px;
    color: #333;
}

.amenity-item p {
    color: #777;
    font-size: 14px;
}

.location-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #f5f5f5;
    color: #333;
}

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

.modal img {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .apartment-info {
        grid-template-columns: 1fr;
    }
    
    .apartment-header-content h1 {
        font-size: 36px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}