/* Styles for Annonce Detail Page */

/* General Layout */
.annonce-detail-title {
    font-weight: 600;
}

.annonce-detail-location {
    font-size: 0.95rem;
    color: #6c757d;
}

hr {
    margin: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

/* Image Grid */
.annonce-image-grid {
    position: relative; /* For positioning the button */
}

.annonce-image-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s ease-in-out;
}

.annonce-image-grid a:hover img {
    filter: brightness(0.9);
}

.grid-item-large {
    height: 400px; /* Adjust height as needed */
}

.grid-item-large img {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.grid-item-small {
    height: 200px; /* Half of the large item height */
}

.grid-item-small .placeholder-bg {
    background-color: #f8f9fa; 
    height: 100%;
    width: 100%;
}

/* Specific rounding for small images */
.grid-item-small:nth-child(2) img, 
.grid-item-small:nth-child(2) .placeholder-bg {
    border-top-right-radius: 0.5rem;
}

.grid-item-small:nth-child(4) img, 
.grid-item-small:nth-child(4) .placeholder-bg {
    border-bottom-right-radius: 0.5rem;
}

/* Show All Photos Button - Airbnb style */
.btn-show-all-photos {
    position: absolute;
    bottom: 20px; /* Adjusted spacing */
    right: 20px; /* Adjusted spacing */
    z-index: 10;
    background-color: #ffffff; /* White background */
    color: #222222; /* Black text */
    border: 1px solid #dddddd; /* Light grey border */
    padding: 0.5rem 1rem; /* Adjusted padding */
    font-size: 0.875rem; /* Standard font size */
    font-weight: 600; /* Slightly bold */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
    transition: all 0.2s ease;
    display: inline-flex; /* Align icon and text */
    align-items: center;
}

.btn-show-all-photos:hover {
    background-color: #f7f7f7; /* Slightly grey on hover */
    border-color: #cccccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.btn-show-all-photos i {
    font-size: 1rem; /* Icon size */
}

/* Main Content Area */
.amenities-list .amenity-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.amenities-list .amenity-item i {
    font-size: 1.1rem;
    width: 25px; /* Align icons */
    text-align: center;
}

/* Sidebar & Host Card */
.host-card-container {
    /* Style for sticky positioning if needed */
}

.host-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.host-profile-img {
    width: 80px; /* Reduced size */
    height: 80px; /* Reduced size */
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.host-verified-badge {
    position: absolute;
    bottom: 0px; /* Adjusted position for smaller image */
    right: 0px; /* Adjusted position for smaller image */
    background-color: #d63384; /* Example pinkish color */
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid white;
}

.host-name {
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.1rem;
}

.host-title {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.host-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
}

.host-stats .stat-item {
    text-align: center;
}

.host-stats .stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

.host-stats .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.host-stats .divider {
    border-left: 1px solid #e9ecef;
    height: 40px;
    margin: 0;
}

/* Image Modal Styles */
#imageModal .modal-dialog {
    max-width: 90vw; /* Adjust as needed */
}

#imageModal .modal-content {
    box-shadow: none;
}

#imageModal .modal-image-content {
    max-height: 90vh;
    object-fit: contain;
}

#imageModal .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1057; /* Above modal content */
    background: rgba(0, 0, 0, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#imageModal .modal-nav:hover {
    opacity: 1;
}

#imageModal .modal-prev {
    left: 15px;
}

#imageModal .modal-next {
    right: 15px;
}

#imageModal .carousel-control-prev-icon,
#imageModal .carousel-control-next-icon {
    filter: invert(1) grayscale(100) brightness(2); /* Make icons white */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .grid-item-large,
    .grid-item-small {
        height: 250px; /* Adjust height for smaller screens */
    }
    .grid-item-large img {
        border-radius: 0.5rem;
        border-bottom-left-radius: 0; /* Reset specific rounding */
    }
    .grid-item-small:nth-child(n) img, 
    .grid-item-small:nth-child(n) .placeholder-bg {
        border-radius: 0; /* Reset specific rounding */
    }
    .btn-show-all-photos {
        bottom: 10px;
        right: 10px;
        font-size: 0.9rem;
    }
}

.price-display {
    color: #212529; /* Set price color to standard dark/black */
    /* Remove or override any previous blue color rules if necessary */
}

/* --- Custom Rounded Style for Detail Page Images --- */
.annonce-image-grid img,
#imageModal .modal-photo-item img {
    border-radius: 24px 8px 24px 8px !important; /* Unique asymmetric rounding */
    box-shadow: 0 4px 16px rgba(0,0,0,0.10); /* Subtle shadow for depth */
    border: 1.5px solid #f1f1f1;
    transition: box-shadow 0.2s, filter 0.2s;
}

.annonce-image-grid a:hover img,
#imageModal .modal-photo-item img:hover {
    filter: brightness(0.92) saturate(1.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

/* Remove default Bootstrap rounding for these images */
.annonce-image-grid img.rounded-start,
.annonce-image-grid img.rounded-top-end,
.annonce-image-grid img.rounded-bottom-end,
#imageModal .modal-photo-item img.rounded {
    border-radius: 24px 8px 24px 8px !important;
} 