/* ========== HERO SLIDER WITH SEARCH OVERLAY ========== */

/* Variables */
:root {
    --slider-gold-primary: #d4a574;
    --slider-gold-secondary: #f5e6d3;
    --slider-gold-dark: #b8956a;
    --slider-gold-glow: rgba(212, 165, 116, 0.3);
    --slider-dark-bg: #0d0d0d;
    --slider-dark-secondary: #1a1a1a;
    --slider-text-primary: #e8e8e8;
    --slider-text-secondary: rgba(255, 255, 255, 0.7);
    --slider-border: rgba(212, 165, 116, 0.3);
}

/* ========== HERO SECTION WRAPPER ========== */
.hero-slider-section {
    position: relative;
    width: 100%;
    background: var(--slider-dark-bg);
}

.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ========== SLIDER VIEWPORT ========== */
.hero-slider-viewport {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slider-dark-secondary) 0%, var(--slider-dark-bg) 100%);
}

.hero-slider-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 8s ease;
}

.hero-slider-image.loading {
    opacity: 0.3;
}

/* Subtle zoom animation on active slide */
.hero-slider-image.active-zoom {
    transform: scale(1.05);
}

/* Dark overlay for better text readability */
.hero-slider-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.4) 100% );
    pointer-events: none;
    z-index: 1;
}

/* ========== SLIDE INFO (Bottom) ========== */
.hero-slide-info {
    position: absolute;
    bottom: 100px;
    left: 50px;
    z-index: 5;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.hero-slider-viewport:hover .hero-slide-info,
.hero-slide-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-slide-title span {
    color: var(--slider-gold-primary);
}

.hero-slide-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* RTL Support */
[dir="rtl"] .hero-slide-info {
    left: auto;
    right: 50px;
}

/* ========== NAVIGATION ARROWS ========== */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid var(--slider-gold-primary);
    border-radius: 50%;
    color: var(--slider-gold-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.hero-slider-nav:hover {
    background: var(--slider-gold-primary);
    color: var(--slider-dark-bg);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 25px var(--slider-gold-glow);
}

.hero-slider-nav.prev {
    left: 25px;
}

.hero-slider-nav.next {
    right: 25px;
}

[dir="rtl"] .hero-slider-nav.prev {
    left: auto;
    right: 25px;
}

[dir="rtl"] .hero-slider-nav.next {
    right: auto;
    left: 25px;
}

/* ========== DOTS/INDICATORS ========== */
.hero-slider-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.hero-slider-dot.active {
    background: var(--slider-gold-primary);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--slider-gold-glow);
}

/* ========== COUNTER ========== */
.hero-slider-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slider-counter .current {
    color: var(--slider-gold-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

[dir="rtl"] .hero-slider-counter {
    right: auto;
    left: 20px;
}

/* ========== EXPAND BUTTON ========== */
.hero-slider-expand-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--slider-border);
    border-radius: 8px;
    color: var(--slider-gold-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.hero-slider-expand-btn:hover {
    background: var(--slider-gold-primary);
    color: var(--slider-dark-bg);
}

[dir="rtl"] .hero-slider-expand-btn {
    left: auto;
    right: 20px;
}

[dir="rtl"] .hero-slider-counter {
    right: auto;
    left: 70px;
}

/* ========== SEARCH OVERLAY ========== */
.hero-search-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    width: 90%;
    max-width: 900px;
}

.hero-search-box {
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px 35px;
    border: 1px solid var(--slider-border);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.hero-search-title {
    text-align: center;
    margin-bottom: 25px;
}

.hero-search-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.hero-search-title h2 span {
    background: linear-gradient(135deg, var(--slider-gold-primary), var(--slider-gold-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-search-title p {
    font-size: 0.95rem;
    color: var(--slider-text-secondary);
    margin: 0;
}

.hero-search-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.hero-search-field {
    flex: 1;
    min-width: 150px;
}

.hero-search-field label {
    display: block;
    color: var(--slider-gold-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hero-search-field input,
.hero-search-field select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--slider-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    color: #1a1a2e;
    transition: all 0.3s;
}

.hero-search-field input:focus,
.hero-search-field select:focus {
    outline: none;
    border-color: var(--slider-gold-primary);
    box-shadow: 0 0 0 3px var(--slider-gold-glow);
}

.hero-search-field input::placeholder {
    color: rgba(108, 117, 125, 0.5);
    font-style: italic;
}

.hero-search-field select option {
    background: white;
    color: #1a1a2e;
}

.hero-search-btn {
    background: linear-gradient(135deg, var(--slider-gold-primary) 0%, var(--slider-gold-dark) 100%);
    color: var(--slider-dark-bg);
    border: none;
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.hero-search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--slider-gold-glow);
}

.hero-search-btn i {
    font-size: 1.1rem;
}

/* ========== QUICK STATS (Optional) ========== */
.hero-quick-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slider-gold-primary);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--slider-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== LOADING SPINNER ========== */
.hero-slider-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--slider-gold-primary);
    font-size: 2.5rem;
    z-index: 5;
}

.hero-slider-loading .spin {
    animation: heroSpin 1s linear infinite;
}

@keyframes heroSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== PLACEHOLDER (No Images) ========== */
.hero-slider-placeholder {
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--slider-dark-secondary) 0%, var(--slider-dark-bg) 100%);
    color: rgba(255, 255, 255, 0.4);
    gap: 15px;
}

.hero-slider-placeholder i {
    font-size: 5rem;
    color: rgba(212, 165, 116, 0.3);
}

.hero-slider-placeholder span {
    font-size: 1.1rem;
}

/* ========== EXPANDED/FULLSCREEN MODE ========== */
.hero-slider-section.expanded {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.98);
}

.hero-slider-section.expanded .hero-slider-viewport {
    height: 100vh;
}

.hero-slider-section.expanded .hero-slider-image {
    object-fit: contain;
}

.hero-slider-section.expanded .hero-search-overlay {
    display: none;
}

.hero-slider-section.expanded .hero-slider-nav {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
}

.hero-slider-section.expanded .hero-slider-nav.prev {
    left: 40px;
}

.hero-slider-section.expanded .hero-slider-nav.next {
    right: 40px;
}

.hero-slider-section.expanded .hero-slide-info {
    opacity: 1;
    transform: translateY(0);
    bottom: 120px;
    left: 60px;
    max-width: 600px;
}

.hero-slider-section.expanded .hero-slide-title {
    font-size: 2.5rem;
}

.hero-slider-section.expanded .hero-slide-desc {
    font-size: 1.1rem;
}

[dir="rtl"] .hero-slider-section.expanded .hero-slide-info {
    left: auto;
    right: 60px;
}

[dir="rtl"] .hero-slider-section.expanded .hero-slider-nav.prev {
    left: auto;
    right: 40px;
}

[dir="rtl"] .hero-slider-section.expanded .hero-slider-nav.next {
    right: auto;
    left: 40px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .hero-slider-viewport {
        height: 450px;
    }

    .hero-search-box {
        padding: 25px 30px;
    }

    .hero-search-title h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .hero-slider-viewport {
        height: 550px;
    }

    .hero-search-overlay {
        top: 50%;
        width: 95%;
    }

    .hero-search-row {
        flex-direction: column;
    }

    .hero-search-field {
        min-width: 100%;
    }

    .hero-search-btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }

    .hero-slide-info {
        left: 30px;
        bottom: 80px;
        max-width: 400px;
    }

    [dir="rtl"] .hero-slide-info {
        left: auto;
        right: 30px;
    }

    .hero-slide-title {
        font-size: 1.5rem;
    }

    .hero-slide-desc {
        font-size: 0.9rem;
    }

    .hero-quick-stats {
        gap: 20px;
    }

    .hero-stat-value {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-viewport {
        height: 600px;
    }

    .hero-search-box {
        padding: 20px;
        border-radius: 16px;
    }

    .hero-search-title {
        margin-bottom: 20px;
    }

    .hero-search-title h2 {
        font-size: 1.3rem;
    }

    .hero-search-title p {
        font-size: 0.85rem;
    }

    .hero-slider-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .hero-slider-nav.prev {
        left: 15px;
    }

    .hero-slider-nav.next {
        right: 15px;
    }

    [dir="rtl"] .hero-slider-nav.prev {
        left: auto;
        right: 15px;
    }

    [dir="rtl"] .hero-slider-nav.next {
        right: auto;
        left: 15px;
    }

    .hero-slide-info {
        left: 20px;
        right: 20px;
        bottom: 70px;
        max-width: none;
    }

    [dir="rtl"] .hero-slide-info {
        left: 20px;
        right: 20px;
    }

    .hero-slide-title {
        font-size: 1.3rem;
    }

    .hero-quick-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-stat {
        flex: 1 1 40%;
    }

    .hero-slider-counter {
        top: 15px;
        right: 15px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .hero-slider-expand-btn {
        top: 15px;
        left: 15px;
        width: 36px;
        height: 36px;
    }

    [dir="rtl"] .hero-slider-expand-btn {
        left: auto;
        right: 15px;
    }

    [dir="rtl"] .hero-slider-counter {
        right: auto;
        left: 60px;
    }
}

@media (max-width: 576px) {
    .hero-slider-viewport {
        height: 550px;
    }

    .hero-search-overlay {
        width: 95%;
    }

    .hero-search-box {
        padding: 18px 15px;
    }

    .hero-search-title h2 {
        font-size: 1.1rem;
    }

    .hero-search-field input,
    .hero-search-field select {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .hero-slider-indicators {
        bottom: 15px;
        padding: 8px 15px;
        gap: 8px;
    }

    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }

    .hero-slide-info {
        display: none;
    }

    .hero-quick-stats {
        display: none;
    }

    /* Expanded mode mobile */
    .hero-slider-section.expanded .hero-slider-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .hero-slider-section.expanded .hero-slider-nav.prev {
        left: 15px;
    }

    .hero-slider-section.expanded .hero-slider-nav.next {
        right: 15px;
    }

    .hero-slider-section.expanded .hero-slide-info {
        display: block;
        left: 20px;
        right: 20px;
        bottom: 80px;
    }

    .hero-slider-section.expanded .hero-slide-title {
        font-size: 1.5rem;
    }
}
