/* Tur Detay Sayfası için CSS Stilleri */

/* Fancybox için özel stiller */
.tg-tour-details-gallery-thumb {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.tg-tour-details-gallery-thumb img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.tg-tour-details-gallery-thumb:hover img {
    transform: scale(1.05);
}

/* İlişkili Ürünler Seçimi Stilleri */
.related-products-selection {
    margin-top: 25px;
}

.related-product-item {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    padding: 15px;
    position: relative;
}

.related-product-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.related-product-item .form-check {
    margin-bottom: 0;
}

.related-product-item .form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.related-product-item .form-check-label {
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    color: #333;
}

.related-product-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e5e5e5;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.related-product-details img {
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.related-product-details .form-select {
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.related-product-details .price-tag {
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    font-size: 14px;
    color: #333;
    margin-top: 5px;
}

.related-product-details .input-group {
    max-width: 200px;
    margin-left: auto;
}

.related-product-details .input-group-text {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    color: #555;
    font-weight: 600;
}

.related-product-details .form-control {
    border-color: #d0d0d0;
    text-align: center;
    font-weight: 600;
}

.related-product-details .btn-outline-secondary {
    border-color: #d0d0d0;
    color: #555;
    background-color: #f5f5f5;
    font-weight: bold;
}

.related-product-details .btn-outline-secondary:hover {
    background-color: #e5e5e5;
}

.related-product-subtotal {
    font-size: 14px;
    color: #555;
}

.related-subtotal {
    color: #ff5722;
    font-size: 16px;
}

/* Toplam fiyat bölümü */
.tg-tour-about-coast {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    margin: 20px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.total-price {
    color: #ff5722;
    font-size: 24px;
    font-weight: 700;
}

#addToCartBtn {
    font-size: 18px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#addToCartBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Yıldız derecelendirme sistemi için stiller */
.rating-icon i {
    cursor: pointer;
    color: #ddd;
    margin-right: 3px;
    font-size: 20px;
    transition: color 0.2s ease;
}

.rating-icon i.active,
.rating-icon i.hover {
    color: #ffc107; /* Sarı yıldız rengi */
}

/* Yorum bölümü stilleri */
.review-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.rating-item {
    background-color: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
}

/* Progress bar stilleri */
.progress {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background-color: #4CAF50;
    transition: width 0.6s ease;
}

/* Yorum formu stilleri */
.textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    min-height: 120px;
    resize: vertical;
}

.textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* İlişkili ürünler stilleri */
.related-services-list {
    margin-top: 15px;
}

.related-service-item .card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-service-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.related-service-item .card-img-top {
    height: 140px;
    object-fit: cover;
}

.related-service-item .card-body {
    padding: 15px;
}

.related-service-item .card-title {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.related-service-item .card-text {
    color: #666;
    margin-bottom: 10px;
}

.related-service-item .price {
    font-weight: 700;
    color: #4CAF50;
    font-size: 16px;
}

.related-service-item .btn-primary {
    background-color: #ff5722;
    border-color: #ff5722;
    font-size: 12px;
    padding: 5px 10px;
}

.related-service-item .btn-primary:hover {
    background-color: #f4511e;
    border-color: #f4511e;
}

/* Fancybox özelleştirmeleri */
.fancybox__container {
    --fancybox-bg: rgba(24, 24, 27, 0.95);
}

/* Fancybox kapanış düğmesi için özel stil */
.fancybox__toolbar__items--right .f-button {
    color: #fff;
    opacity: 0.8;
}

.fancybox__toolbar__items--right .f-button:hover {
    opacity: 1;
}

/* Fancybox alt bilgi çubuğu */
.fancybox__infobar {
    color: #fff;
    opacity: 0.8;
}

/* Fancybox küçük resimler (thumbnails) */
.fancybox__thumbs {
    background: rgba(24, 24, 27, 0.8);
}

.fancybox__thumb {
    border-radius: 4px;
    opacity: 0.5;
}

.fancybox__thumb.is-selected {
    opacity: 1;
    border: 2px solid #fff;
}


/* Mobil görünüm için uyarlamalar */
@media (max-width: 768px) {
    .tg-tour-about-wrap {
        margin-right: 0;
    }
    
    .tg-tour-details-video-share {
        text-align: left !important;
        margin-top: 15px;
    }
    
    .review-ratings {
        flex-direction: column;
        gap: 5px;
    }
    
    .related-service-item .card-img-top {
        height: 120px;
    }
    
    .related-service-item .card-body {
        padding: 10px;
    }
    
    .related-service-item .card-title {
        font-size: 14px;
    }
    
    .related-service-item .price {
        font-size: 14px;
    }
    
    .related-product-details .input-group {
        margin-left: 0;
        margin-top: 10px;
    }
} 


.tg-listing-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.tg-listing-card-actions .btn {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 12px;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tg-listing-card-actions .btn:hover {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#urunDetayModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

#urunDetayModal .modal-title {
    font-weight: 600;
    color: #333;
}

#urunDetayModal .badge {
    font-size: 14px;
    padding: 6px 10px;
}

#urunDetayModal #modal-urun-fiyat {
    font-size: 24px;
    font-weight: 600;
}

/* İlişkili Ürünler Bölümü Stilleri */
.related-products-section {
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.related-products-section h4 {
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-bottom: 8px;
    font-size: 18px;
}

.related-products-section h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--tg-theme-primary);
}

.related-products-container {
    margin-top: 10px;
}

.related-product-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--tg-theme-primary);
}

.related-product-header {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.related-product-title {
    font-weight: 600;
    color: #333;
    margin-left: 8px;
    font-size: 16px;
    display: block;
    line-height: 1.4;
}

.related-product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-details {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-product-price {
    margin-bottom: 15px;
}

.price-tag {
    font-weight: 600;
    color: var(--tg-theme-primary);
    font-size: 16px;
}

.related-product-quantity {
    margin-bottom: 10px;
    height: 40px;
}

.related-product-subtotal {
    text-align: center;
    padding-top: 10px;
    border-top: 1px dashed #e9ecef;
    font-size: 15px;
}

.related-subtotal {
    color: var(--tg-theme-primary);
    font-weight: 600;
}

.related-product-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.related-product-checkbox:checked + label .related-product-title {
    color: var(--tg-theme-primary);
}

/* Responsive ayarlamalar */
@media (max-width: 767px) {
    .related-product-card {
        margin-bottom: 20px;
    }
    
    .related-product-image {
        height: 140px;
    }
}

/* Checkbox özel stili */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-input:checked {
    background-color: var(--tg-theme-primary);
    border-color: var(--tg-theme-primary);
}

.badge.bg-info {
    background-color: #17a2b8 !important;
    font-weight: 500;
    font-size: 11px;
    padding: 3px 6px;
}

.related-product-card.selected {
    border-color: var(--tg-theme-primary);
    box-shadow: 0 5px 15px rgba(255, 124, 91, 0.2);
}

.related-product-card.selected .related-product-header {
    background-color: rgba(255, 124, 91, 0.1);
}

/* İlişkili ürün adet arttırma/azaltma butonları için özel stil */
.related-product-quantity .input-group {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    height: 40px;
}

.related-product-quantity .input-group-text {
    flex: 0 0 auto;
    width: auto;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.related-product-quantity .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    font-weight: 600;
    font-size: 16px;
    padding: 0.375rem 0;
    min-width: 36px;
    transition: all 0.2s ease;
}

.related-product-quantity .btn:hover {
    background-color: var(--tg-theme-primary);
    border-color: var(--tg-theme-primary);
    color: #fff;
}

.related-product-quantity .form-control {
    flex: 2;
    text-align: center;
    font-weight: 500;
    border-left: 0;
    border-right: 0;
    border-color: #dee2e6;
    height: 40px;
    background-color: #fff;
    padding: 0.375rem 0.5rem;
}

.related-product-quantity .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

/* Mobil görünüm için uyarlamalar */
@media (max-width: 767px) {
    .related-product-quantity .input-group {
        max-width: 100%;
    }
    
    .related-product-quantity .btn {
        padding: 0.25rem 0;
        min-width: 30px;
    }
}

/* İlişkili Ürünler Bölümü Stilleri - Yatay Tasarım */
.related-product-card-horizontal {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 0;
    margin-bottom: 10px;
    min-height: 120px;
}

.related-product-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--tg-theme-primary);
}

.related-product-card-horizontal.selected {
    border-color: var(--tg-theme-primary);
    box-shadow: 0 5px 15px rgba(255, 124, 91, 0.2);
}

.related-product-card-horizontal .form-check {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 10;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.related-product-card-horizontal .form-check-input {
    margin: 0;
    width: 16px;
    height: 16px;
}

.related-product-image-horizontal {
    flex: 0 0 150px;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.related-product-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-product-card-horizontal:hover .related-product-image-horizontal img {
    transform: scale(1.05);
}

.related-product-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.related-product-header-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.related-product-title-horizontal {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin: 0;
    cursor: pointer;
    padding-right: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-product-details-horizontal {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed #e9ecef;
}

/* Mobil görünüm için uyarlamalar */
@media (max-width: 767px) {
    .related-product-card-horizontal {
        flex-direction: column;
        min-height: auto;
    }
    
    .related-product-image-horizontal {
        flex: 0 0 auto;
        height: 140px;
        width: 100%;
    }
    
    .related-product-content {
        padding: 12px;
    }
    
    .related-product-details-horizontal .row {
        flex-direction: column;
    }
    
    .related-product-details-horizontal .col-md-6 {
        margin-bottom: 10px;
    }
}


.form-check .related-product-checkbox {
    margin-left: -1.5em;
}

/* Devre dışı bırakılmış adet kontrolleri için stil */
.related-product-quantity .btn:disabled {
    background-color: #f0f0f0;
    border-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.7;
}

.related-product-quantity .form-control:disabled {
    background-color: #f0f0f0;
    border-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

/* Seçilen İlişkili Ürünler Listesi Stilleri */
.selected-related-products {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.selected-products-list {
    max-height: 180px;
    overflow-y: auto;
}

.selected-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #e9ecef;
}

.selected-product-item:last-child {
    border-bottom: none;
}

.selected-product-info {
    flex: 1;
}

.selected-product-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 1px;
    display: block;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.selected-product-details {
    font-size: 11px;
    color: #666;
    display: flex;
    gap: 6px;
}

.selected-product-price {
    font-weight: 600;
    color: var(--tg-theme-primary);
    font-size: 13px;
    white-space: nowrap;
    text-align: right;
}

/* Scrollbar stilleri */
.selected-products-list::-webkit-scrollbar {
    width: 6px;
}

.selected-products-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.selected-products-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.selected-products-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* İlişkili ürün detayları için daha kompakt tasarım */
.related-product-details-horizontal .row {
    margin-left: -8px;
    margin-right: -8px;
}

.related-product-details-horizontal .col-md-6 {
    padding-left: 8px;
    padding-right: 8px;
}

.related-product-details-horizontal .form-group {
    margin-bottom: 8px;
}

.related-product-details-horizontal .form-select {
    height: 32px;
    padding: 4px 8px;
    font-size: 13px;
}

.related-product-details-horizontal .price-tag {
    font-size: 14px;
    padding: 4px 10px;
}

/* İlişkili ürün adet arttırma/azaltma butonları için daha kompakt stil */
.related-product-quantity .input-group {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    height: 32px;
}

.related-product-quantity .input-group-text {
    flex: 0 0 auto;
    width: auto;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    font-size: 12px;
}

.related-product-quantity .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    padding: 0.25rem 0;
    min-width: 30px;
    transition: all 0.2s ease;
}

.related-product-quantity .form-control {
    flex: 2;
    text-align: center;
    font-weight: 500;
    border-left: 0;
    border-right: 0;
    border-color: #dee2e6;
    height: 32px;
    background-color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 13px;
}

.related-product-subtotal {
    font-size: 12px;
    margin-top: 5px;
}

.related-subtotal {
    color: var(--tg-theme-primary);
    font-weight: 600;
}

/* İlişkili ürün kartının içindeki badge için özel stil */
.related-product-header-horizontal .badge {
    margin-left: 5px;
    align-self: flex-start;
    white-space: nowrap;
}

/* İlişkili ürünler için View Details butonu */
.related-product-view-details {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.related-product-view-details i {
    font-size: 11px;
}

.related-product-view-details:hover {
    background-color: var(--tg-theme-primary);
    color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}