/* Apartment Details CSS */

/* Breadcrumb */
.breadcrumb-container {
    background-color: #f5f5f5;
    padding: 15px 0;
    margin-top: 70px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #999;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb li:last-child {
    color: #777;
    font-weight: 500;
}

/* Apartment Details */
.apartment-details {
    padding: 50px 0 80px;
}

.apartment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.apartment-header h1 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin: 0;
}

.price-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Gallery */
.gallery-container {
    position: relative;
    margin-bottom: 40px;
}

.main-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.03);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.gallery-control {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    pointer-events: auto;
    font-size: 1rem;
}

.gallery-control:hover {
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Apartment Content */
.apartment-content h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.apartment-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.apartment-content h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 25px 0 15px;
}

.apartment-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.apartment-description p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.features-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Specs Card */
.specs-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.specs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
}

.spec-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.9rem;
    color: #777;
}

.spec-value {
    font-weight: 600;
    color: var(--dark-color);
}

/* Rules List */
.rules-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.rule-item {
    display: flex;
    align-items: center;
}

.rule-item i {
    color: var(--dark-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Reservation Box */
.reservation-box {
    background-color: var(--primary-color);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.reservation-box h3 {
    color: white;
    margin-top: 0;
}

.contact-info {
    margin: 15px 0;
}

.contact-info div {
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
}

.btn-reserve {
    background-color: white;
    color: var(--primary-color);
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.btn-reserve:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* Location Section */
.location-section {
    margin-bottom: 60px;
}

.location-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    height: 450px;
}

.location-features {
    list-style: none;
    padding: 0;
}

.location-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.location-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.address {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
}

.address i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

/* Similar Apartments */
.similar-apartments {
    margin-top: 60px;
}

/* Responsive Styling */
@media (max-width: 992px) {
    .main-image-container {
        height: 400px;
    }

    .apartment-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .location-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .apartment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .thumbnail {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .main-image-container {
        height: 250px;
    }
    
    .apartment-content h2 {
        font-size: 1.5rem;
    }
    
    .apartment-content h3 {
        font-size: 1.3rem;
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
}