/* Dil Seçici Butonu */
.language-selector-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.language-selector-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.language-selector-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Dil Seçici Popup */
.language-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-popup.active {
    opacity: 1;
    visibility: visible;
}

.language-container {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: all 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.language-popup.active .language-container {
    transform: scale(1);
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.language-header h2 {
    color: #333;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

/* Dil Listesi */
.language-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.language-item:hover {
    background-color: #f8f8f8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.language-item.active {
    border: 2px solid #6e8efb;
    background-color: #f0f4ff;
}

.flag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.language-name {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    text-align: center;
}

/* Responsive Ayarlar */
@media (max-width: 600px) {
    .language-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .language-selector-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .language-container {
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .language-list {
        grid-template-columns: 1fr;
    }
}

/* Küçük resimlerin stil */
.gallery img {
    width: 200px;
    height: auto;
    margin: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery img:hover {
    opacity: 0.7;
}

/* Modal (Popup) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1100px;
    max-height: 80vh;
    object-fit: contain;
}

#modalImage {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0.1)
    }

    to {
        transform: scale(1)
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.resim {
    width: 100%;
    border-radius: var(--agrion-bdr-radius);
}

.resimBaslik {
    position: absolute;
    bottom: 5px;
    left: 5px;
    border-radius: var(--agrion-bdr-radius);
    background-color: var(--agrion-extra);
    padding: 10px 20px;
    margin: 0;
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 700;
    font-family: var(--agrion-font);
}

.gallery-container {
    max-width: 1173px;
    margin: 0 auto;
    padding: 10px;
}

/* Main image styles */
.main-image {
    width: 100%;
    height: 483px;
    margin-bottom: 15px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbnail container styles */
.thumbnails-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;
    gap: 10px;
    width: max-content;
    min-width: 100%;
}

/* Desktop styles */
@media (min-width: 992px) {
    .gallery-container {
        display: flex;
        gap: 20px;
        height: 483px;
    }

    .main-image {
        width: 800px;
        height: 100%;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .thumbnails-container {
        width: calc(100% - 820px);
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .thumbnails-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        min-width: unset;
    }
}

/* Thumbnail styles */
.thumbnail {
    width: 170px;
    height: 113px;
    cursor: pointer;
    overflow: hidden;
}

@media (max-width: 991px) {
    .thumbnail {
        width: calc(50vw - 25px);
        height: calc((50vw - 25px) * 0.66);
    }
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.thumbnail:hover img {
    transform: scale(1.03);
}

/* Mobile specific - ensure 2 rows */
@media (max-width: 991px) {
    .thumbnails-grid {
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
    }

    .mobilHide {
        display: none !important;
    }
}

/* Scrollbar styling */
.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--agrion-base);
    border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: var(--agrion-primary);
}



/* Mobile Tabs Styles */
.project-details__mobile-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.project-details__tab-btn {
    flex: 1;
    padding: 12px 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.project-details__tab-btn.active {
    color: #2a2a2a;
    border-bottom-color: var(--agrion-base);
}

/* Tab Content Visibility */
@media (max-width: 991px) {

    #content-tab,
    #details-tab {
        display: none;
    }

    #content-tab.active-tab,
    #details-tab.active-tab {
        display: block;
    }
}

/* Desktop Styles - Override tab behavior */
@media (min-width: 992px) {
    .project-details__mobile-tabs {
        display: none;
    }

    #content-tab,
    #details-tab {
        display: block !important;
    }

}

.direction-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.direction-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.green {
    background-color: #1f6306 !important
}

@media (min-width: 768px) {
    .direction-container {
        grid-template-columns: repeat(4, 1fr);
    }

}

.google-map__one {
    position: relative;
    display: block;
    border: none;
    height: 440px;
    width: 100%;
    border-radius: var(--agrion-bdr-radius);
}