/* Rehberler Section - Clean Stack Design */
#recommended-guides {
    display: flex;
    min-height: 0;
    /* Matching overlay (0.6) with other sections for seamless transition */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../../gorsel/tours_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    padding: 80px 50px;
    box-sizing: border-box;
    align-items: center;
    position: relative;
    z-index: 20;
}

.guides-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 80px;
    align-items: center;
    position: relative;
}

/* Navigation Controls */
.guide-nav-controls {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1000;
}

.nav-divider {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(236, 173, 41, 0.5), transparent);
}

.guide-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(236, 173, 41, 0.1);
    border: 2px solid rgba(236, 173, 41, 0.4);
    color: #ecad29;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.guide-nav-btn:hover {
    background: #ecad29;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(236, 173, 41, 0.5);
}

/* Gallery Container - Fixed Center */
/* Gallery Container - Fixed Center */
.guides-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 650px;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.gallery-track {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 550px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Guide Card - Stacked in Center */
.guide-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 550px;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center center;
    pointer-events: none;
}

.guide-card.active-focus {
    pointer-events: auto;
}

/* Card Container */
.layer-main {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #1a1410 0%, #0d0a08 100%);
    border-radius: 25px;
    border: 2px solid rgba(236, 173, 41, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image - Hidden by default */
.layer-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Name on inactive cards */
.guide-name-bg-only {
    color: #ecad29;
    font-family: 'Comfortaa', sans-serif;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-align: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Name at bottom (active card) */
.guide-name-at-bottom {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: 'Comfortaa', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 20;
    opacity: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    transition: opacity 0.5s ease;
}

/* Active Card State */
.guide-card.active-focus {
    z-index: 100;
    transform: scale(1.05);
}

.guide-card.active-focus .layer-main {
    border-color: #ecad29;
    box-shadow: 0 0 60px rgba(236, 173, 41, 0.4), 0 20px 60px rgba(0, 0, 0, 0.8);
}

.guide-card.active-focus .layer-main img {
    opacity: 1;
}

.guide-card.active-focus .guide-name-bg-only {
    opacity: 0;
}

.guide-card.active-focus .guide-name-at-bottom {
    opacity: 1;
}

/* Right Side Info */
.guides-info {
    flex: 0.8;
}

.guide-search-box {
    position: relative;
    margin-bottom: 40px;
}

.guide-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 25px;
    border-radius: 50px;
    color: white;
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.guide-search-input:focus {
    outline: none;
    border-color: #ecad29;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(236, 173, 41, 0.2);
}

.guide-search-box i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #ecad29;
    font-size: 18px;
}

.guides-info h2 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 52px;
    line-height: 1.1;
    margin: 20px 0 30px 0;
    color: #ffffff;
}

.guides-info .u-label {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    color: #ecad29;
    margin-bottom: 10px;
    font-weight: 600;
}

.active-guide-details {
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
}

.detail-row i {
    color: #ecad29;
    width: 20px;
}

.detail-row span {
    color: rgba(255, 255, 255, 0.9);
}

.guide-bio {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.btn-premium {
    display: inline-block;
    background: #ecad29;
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn-premium:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(236, 173, 41, 0.3);
}

.btn-outline {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* NOTE: PC layout should remain side-by-side.
   The site uses 1024px breakpoint to switch to mobile-only UI. */
@media (max-width: 1024px) {
    .guides-wrapper {
        flex-direction: column;
        gap: 60px;
    }

    .guides-gallery {
        max-height: none;
        width: 100%;
    }

    .guide-nav-controls {
        display: none;
    }
}

/* PC: Move guide gallery to the left (requested) */
@media (min-width: 1025px) {
    /* PC layout: gallery LEFT, search/details RIGHT (hard force; avoids conflicts) */
    #recommended-guides .guides-wrapper{
        display: grid !important;
        grid-template-columns: 560px minmax(0, 1fr) !important;
        column-gap: 64px !important;
        align-items: start !important;
    }

    #recommended-guides .guides-gallery{
        width: 560px;
        flex: none !important;
        align-items: flex-start;
        justify-content: flex-start;
        height: 650px;
    }

    #recommended-guides .gallery-track{
        left: 0;
        transform: translate(0, -50%);
    }

    #recommended-guides .guides-info{
        width: 100%;
        padding-top: 8px;
        min-width: 0;
    }
}