/* apartments/static/apartments/css/details/apartment_details.css */

/* Main content container styling */
.details-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--secondary-color);
}

/* Styling for the web page carousel */
#apartmentCarousel .carousel-inner img {
    height: 65vh;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

#apartmentCarousel {
    margin-bottom: 20px;
}

.carousel-indicators li {
    background-color: #fff;
}

.carousel-indicators li.active {
    background-color: var(--accent-color); /* Gold indicator */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 10px;
}

/* Fullscreen modal styling */
#imageModal .modal-dialog {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    margin: 0;
}

#imageModal .modal-content {
    background-color: black;
    border: none;
    height: 100vh;
    
}

#imageModal .carousel-item img {
    height: 100vh;
    object-fit: contain;
    width: auto;
    max-width: 100%;
    margin: auto;
    border-radius: 5px;
}

#imageModal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 3rem;
}

/* Typography */
body {
    font-family: 'Lato', sans-serif;
}

.apartment-name {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.location {
    font-size: 1.3rem;
    color: #555;
    text-align: center;
}

.key-features h3 {
    font-size: 1.8rem;
    color: #444;
    font-family: 'Playfair Display', serif;
}

.feature-item span {
    font-size: 1.1rem;
    color: #666;
}

.btn-primary {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #555;
}

/* Key Features */
.key-features {
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.key-features h3 {
    color: var(--primary-color);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-color); /* Gold for luxury look */
}

.feature-item span {
    color: var(--primary-color);
}

/* Availability Box */
.luxury-availability-box {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--accent-color); /* Gold accent */
}

.luxury-availability-box h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.luxury-availability-box p {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
}

#calendar {
    margin-top: 20px;
}

/* Map Section */
.apartment-map-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

#apartment-map {
    height: 400px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apartment-name {
        font-size: 2rem;
    }

    .location {
        font-size: 1rem;
    }

    .key-features .section-title,
    .description h3 {
        text-align: center;
    }

    .feature-item {
        text-align: center;
        align-items: center;
    }

    .description p {
        text-align: center;
    }

    /* Carousel Images */
    #apartmentCarousel .carousel-item img {
        height: 300px;
    }

    #imageModal .carousel-item img {
        display: flex;
        justify-content: center;
        align-items: center;
        object-fit: contain; /* Ensures image fits within the modal without distortion */
        }
}

/* General Styling */
:root {
    --primary-color: #333;
    --secondary-color: #f5f5f5;
    --accent-color: #b29600; /* Muted gold for accents */
}


