/**
 * ALH Real Estate Tab Slider Stylesheet
 * High-End Luxury Real Estate Tab Slider Widget for Elementor
 */

.alh-real-estate-tab-slider-container {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    font-family: inherit;
}

/* =========================================
   1. HEADER TABS NAVIGATION BAR
   ========================================= */
.alh-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
    padding: 0;
    list-style: none;
    position: relative;
}

.alh-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2d274c;
    padding: 12px 0 16px 0;
    position: relative;
    transition: color 0.3s ease;
    user-select: none;
}

.alh-tab-btn:hover {
    color: #38b6ff;
}

.alh-tab-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #38b6ff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease;
}

.alh-tab-btn.alh-tab-active {
    color: #38b6ff;
}

.alh-tab-btn.alh-tab-active::after {
    transform: scaleX(1);
}

/* =========================================
   2. CONTENT LAYOUT & PANEL STRUCTURE
   ========================================= */
.alh-tabs-content {
    position: relative;
    width: 100%;
}

.alh-tab-panel {
    width: 100%;
}

.alh-tab-panel[hidden] {
    display: none !important;
}

.alh-tab-panel.alh-panel-active {
    display: block;
    animation: alhTabFadeIn 0.45s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes alhTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alh-tab-content-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: stretch;
    box-sizing: border-box;
    overflow: hidden;
}

/* =========================================
   3. LEFT SIDE PANEL & LOGO
   ========================================= */
.alh-side-panel {
    flex: 0 0 32%;
    max-width: 32%;
    background-color: #211c38;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.alh-side-logo {
    margin-bottom: 40px;
    max-width: 100%;
    width: 100%;
    text-align: left;
}

.alh-side-logo a {
    display: inline-block;
    text-decoration: none;
    max-width: 100%;
}

.alh-side-logo img {
    max-width: 220px;
    width: auto;
    height: auto;
    display: inline-block;
    object-fit: contain;
}

.alh-side-logo-caption {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #a09ab5;
}

.alh-side-subtitle {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 16px 0;
    padding: 0;
}

.alh-side-description {
    color: #c3bece;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 40px 0;
    padding: 0;
}

.alh-side-description p {
    margin: 0 0 12px 0;
}

.alh-side-description p:last-child {
    margin-bottom: 0;
}

.alh-side-button {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.alh-side-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #38b6ff;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.alh-side-button:hover {
    opacity: 0.85;
}

.alh-side-button:hover::after {
    transform: scaleX(1.05);
}

/* =========================================
   4. RIGHT GALLERY WRAPPER, FEATURED IMAGE & PATTERN
   ========================================= */
.alh-gallery-wrapper {
    flex: 0 0 68%;
    max-width: 68%;
    position: relative;
    padding: 16px;
    box-sizing: border-box;
    background-color: #f8f8fb;
    display: flex;
    align-items: center;
}

.alh-gallery-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Decorative Background Pattern Overlay */
.alh-pattern-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.12'%3E%3Cpath d='M30 30c0-16.569 13.431-30 30-30v60c-16.569 0-30-13.431-30-30zM0 30C0 13.431 13.431 0 30 0v60C13.431 60 0 46.569 0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 80px 80px;
    background-position: center center;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

/* Featured Single Big Image Box */
.alh-featured-image-box {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 2px;
    text-align: center;
}

.alh-featured-image-box a {
    display: inline-block;
    max-width: 100%;
}

.alh-featured-image-box img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.alh-featured-image-box:hover img {
    transform: scale(1.03);
}

.alh-featured-image-caption {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Multi-Image Grid */
.alh-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
}

.alh-gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 2px;
}

.alh-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* =========================================
   5. RESPONSIVE BREAKPOINTS
   ========================================= */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .alh-tab-content-wrapper {
        flex-direction: column;
    }

    .alh-side-panel,
    .alh-gallery-wrapper {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .alh-side-panel {
        padding: 35px 30px;
    }

    .alh-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
    .alh-tabs-nav {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        padding-bottom: 0;
    }

    .alh-tab-btn {
        white-space: normal;
        font-size: 13px;
        padding: 8px 12px 12px 12px;
        text-align: center;
    }

    .alh-side-panel {
        padding: 25px 20px;
    }

    .alh-side-subtitle {
        font-size: 18px;
    }

    .alh-side-description {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .alh-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .alh-gallery-item img {
        height: 160px;
    }

    .alh-featured-image-box img {
        height: 220px;
    }
}
