/*
Theme Name: Benchmark Management Group
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: A custom theme for Benchmark Management Group.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: benchmark-management-group
*/

@import 'css/base.css';
@import 'css/header.css';
@import 'css/navigation.css';
@import 'css/hero-sections.css';
@import 'css/properties.css';
@import 'css/promotional.css';
@import 'css/residential.css';
@import 'css/property-showcase.css';
@import 'css/apartment.css';
@import 'css/footer.css';
@import 'css/property-modal.css';
@import 'css/property-management.css';
@import 'css/company.css';
@import 'css/commercial-page.css';

/* Highlight focused image in small gallery carousels */
.apartment-gallery-carousel .slick-slide.slick-center img,
.commercial-gallery-carousel .slick-slide.slick-center img {
    transform: scale(1.35);
    box-shadow: 0 8px 32px rgba(53, 118, 168, 0.22), 0 2px 12px rgba(0,0,0,0.13);
    border: 2.5px solid #3576a8;
    z-index: 3;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s, border 0.25s;
    filter: none;
    opacity: 1;
    object-fit: contain;
    background: #f8f8f8;
}

/* All slides: fixed height, stretch images */
.apartment-gallery-carousel .slick-slide,
.commercial-gallery-carousel .slick-slide {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    background: none;
    /* border: 2px dashed #e74c3c; For debugging, remove if not needed */
    box-sizing: border-box;
    /* overflow: hidden; Add this to prevent image overflow */
}
.apartment-gallery-carousel .slick-slide > div,
.commercial-gallery-carousel .slick-slide > div {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    overflow: hidden; /* Add this to prevent image overflow */
}
.apartment-gallery-carousel .slick-slide img,
.commercial-gallery-carousel .slick-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 6px;
    background: #f8f8f8;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
    flex: 1; /* Add this to ensure image stretches */
    min-width: 100%; /* Add this to ensure image fills width */
}

/* Remove object-fit: contain for focused image */
.apartment-gallery-carousel .slick-slide.slick-center img,
.commercial-gallery-carousel .slick-slide.slick-center img {
    object-fit: cover !important;
    background: #f8f8f8;
    min-width: 100%; /* Add this to ensure focused image fills width */
    z-index: 10; /* Add this to bring focused image to front */
    position: relative; /* Required for z-index to work */
}

/* Add z-index to the center slide container */
.apartment-gallery-carousel .slick-slide.slick-center,
.commercial-gallery-carousel .slick-slide.slick-center {
    z-index: 5; /* Add this to ensure container is above other slides */
    position: relative; /* Required for z-index to work */
}

/* Remove overlay for focused image if any overlay is present */
.apartment-gallery-carousel .slick-slide.slick-center:before,
.commercial-gallery-carousel .slick-slide.slick-center:before {
    display: none !important;
    opacity: 0 !important;
}

/* Slick carousel arrows: larger and always visible on mobile */
.slick-arrow {
    z-index: 10;
    background: #990f1b !important;
    color: #fff !important;
    border-radius: 50%;
    border: none;
    width: 56px !important;
    height: 56px !important;
    font-size: 2.2rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    opacity: 0.98;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slick-arrow svg {
    display: block;
    margin: 0 auto;
    background: none !important;
}
.slick-arrow:hover {
    background: #3576a8 !important;
    color: #fff !important;
}

/* Hide default Slick arrow icon when using custom SVG arrows */
.slick-prev:before,
.slick-next:before {
    display: none !important;
}

@media (max-width: 600px) {
    .apartment-gallery-carousel-section,
    .commercial-gallery-carousel-section {
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    .apartment-gallery-carousel,
    .commercial-gallery-carousel {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
    }
    .apartment-gallery-carousel .slick-slide,
    .commercial-gallery-carousel .slick-slide {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }
    .apartment-gallery-carousel .slick-slide img,
    .commercial-gallery-carousel .slick-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: none !important;
        max-height: none !important;
        min-width: 100%; /* Add this to ensure image fills width on mobile */
    }
    .apartment-gallery-carousel .slick-arrow,
    .commercial-gallery-carousel .slick-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
        left: 8px;
        right: 8px;
    }
    .apartment-gallery-carousel .slick-prev {
        left: 8px !important;
        right: auto !important;
    }
    .apartment-gallery-carousel .slick-next {
        right: 8px !important;
        left: auto !important;
    }
    .apartment-gallery-carousel .slick-dots,
    .commercial-gallery-carousel .slick-dots {
        position: relative;
        bottom: 0;
        width: 100vw;
        text-align: center;
        left: 0;
        margin: 8px auto 0 auto;
        padding-bottom: 8px;
    }
}

/* Center the X in the modal close button */
.gallery-modal-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 1.5rem !important;
}

/* Center the arrows in the modal navigation buttons */
.gallery-modal-prev,
.gallery-modal-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 2rem !important;
}

/* Unified page title bar style */
.page-title-bar {
    background: #990f1b;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}
.page-title-bar h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}