/* Harita butonu hover durumunda Keşfet butonu gibi efektli beyaz arka plan */
.hero-style7 .btn-group .th-btn:not(.style2) {
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.hero-style7 .btn-group .th-btn:not(.style2):hover {
    background-color: transparent !important;
    color: var(--title-color) !important;
    border: 1px solid var(--white-color);
}

/* Harita butonu için özel before pseudo-element - beyaz arka plan animasyonu */
.hero-style7 .btn-group .th-btn:not(.style2):before {
    background-color: var(--white-color) !important;
    width: 0;
    transition: width 0.5s ease;
}

.hero-style7 .btn-group .th-btn:not(.style2):hover:before {
    width: 110% !important;
}

.swiper-slide {
    height: auto !important;
}

/* Şehir görseli için daha anlamlı kadraj (üst odak) */
.breadcumb-wrapper.city-bg {
    background-size: cover !important;
    background-position: center 28% !important; /* üst kısma odaklan */
    background-repeat: no-repeat !important;
}

@media (max-width: 991.98px) {
    .breadcumb-wrapper.city-bg {
        background-position: center 35% !important;
    }
}

.tour-box.style4 {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Kartların aynı yükseklikte görünmesi için */
.row.gy-30 > [class*="col-"] {
    display: flex;
}

.row.gy-30 > [class*="col-"] > .tour-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.tour-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Mekan adını en fazla 2 satır göster */
.place-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
    margin-bottom: 10px;
}

.tour-box_img {
    flex-shrink: 0;
}

.district-filter-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap; /* yan yana kalsın */
}

.district-filter-area .select2-container {
    width: 100% !important;
    max-width: 250px;
}

.district-filter-area .select2-container--bootstrap-5 .select2-selection {
    border: 1px solid !important; /* mavi kenarlık */
    border-radius: 8px;
    min-height: 45px;
    padding: 8px 12px;
}

.district-filter-area .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    padding-right: 20px;
    line-height: 28px;
    text-align: left;
}

.district-filter-area .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 43px;
    right: 8px;
}

/* Arama butonunun boyunu düzelt */
.search-form button {
    height: 45px;
    width: 40px;
}

.district-filter-area .select2-container--bootstrap-5.select2-container--focus .select2-selection {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

/* Olası hata/invalid kırmızısını bastır */
.district-filter-area .select2-container--bootstrap-5 .select2-selection.is-invalid,
.district-filter-area .is-invalid + .select2-container--bootstrap-5 .select2-selection,
.district-filter-area .select2-container--bootstrap-5 .select2-selection[aria-invalid="true"] {
    border-color: #0d6efd !important;
    box-shadow: none;
}

/* Şehir ve ilçe Select2 genişliği - yan yana eşit dağıt */
#citySelect.select2-hidden-accessible + .select2-container,
#districtSelect.select2-hidden-accessible + .select2-container,
.district-filter-area .select2-container {
    flex: 1 1 0;
    min-width: 140px;
    width: auto !important;
    max-width: none;
}

/* Arama alanını yatayda daralt */
.search-form-area {
    width: 100%;
    max-width: 420px; /* daha az yer kaplasın */
}

/* Breadcrumb ve başlık için transparan arka plan kutusu */
.breadcumb-wrapper .breadcumb-content {
    text-align: center;
}

.breadcumb-wrapper .breadcumb-content-inner {
    display: inline-flex;
    flex-direction: column; /* başlık üstte, breadcrumb altta */
    align-items: center; /* ortalı */
    gap: 10px;
    /*background: rgba(19, 53, 63, 0.55); !* %75 opaklık - banner görünsün *!*/
    padding: 32px 40px; /* her yerden daha fazla padding */
    border-radius: 14px;
    margin: 0 auto; /* kutuyu ortala */
    backdrop-filter: blur(2px); /* hafif bulanıklık efekti */
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); !* gölge ekle *!*/
}

.breadcumb-wrapper .breadcumb-title {
    color: #fff;
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* yazı gölgesi - okunabilirlik */
    font-weight: 700; /* daha kalın yazı */
}

.breadcumb-wrapper .breadcumb-menu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.breadcumb-wrapper .breadcumb-menu li,
.breadcumb-wrapper .breadcumb-menu a {
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* breadcrumb yazı gölgesi */
    font-weight: 500; /* orta kalınlık */
}

.breadcumb-wrapper .breadcumb-menu li::marker {
    color: transparent;
}

.breadcumb-wrapper .breadcumb-menu li {
    list-style: none;
}

.breadcumb-wrapper .breadcumb-menu li + li {
    position: relative;
    padding-left: 0;
}

.breadcumb-wrapper .breadcumb-menu li + li:before {
    content: none;
}

.empty-state-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* görünür alanın ortasında */
    padding: 60px 20px;
    margin: 0 auto;
}

.empty-state-content {
    text-align: center;
    max-width: 500px;
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: pulse 2s infinite;
}

.empty-state-icon i {
    font-size: 32px;
    color: white;
}

.empty-state-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.empty-state-description {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 35px;
}

.empty-state-description strong {
    color: #495057;
    font-weight: 600;
}

.empty-state-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state-actions .th-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.empty-state-actions .th-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.empty-state-actions .th-btn.style2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.empty-state-actions .th-btn.style2:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.empty-state-actions .th-btn.style4 {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
}

.empty-state-actions .th-btn.style4:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

@media (max-width: 768px) {
    .empty-state-content {
        padding: 40px 30px;
        margin: 0 15px;
    }

    .empty-state-title {
        font-size: 24px;
    }

    .empty-state-description {
        font-size: 15px;
    }

    .empty-state-actions {
        flex-direction: column;
        align-items: center;
    }

    .empty-state-actions .th-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Mobilde sayfalama satırları arasında boşluk artır */
@media (max-width: 576px) {
    .th-pagination li {
        margin: 8px 4px;
    }
}

/* Lazy Loading Görsel Optimizasyonu */
.lazy-image-container {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.lazy-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
    pointer-events: none; /* Tıklamayı engelleme */
}

.lazy-image-container.loaded::before {
    animation: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.lazy-image.lazy-loading {
    opacity: 0;
}

.lazy-image.lazy-loaded {
    opacity: 1;
}

.lazy-image.lazy-error {
    opacity: 1;
    filter: grayscale(100%);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Görsel yüklenme animasyonu için hafif bir fade-in */
.lazy-image-container.loaded .lazy-image {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* İl Banner Fotoğrafı Stilleri */
.city-banner-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 0;
}

.city-banner-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-banner-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.city-banner-image {
    width: 100%;
    height: auto;
    max-height: 401px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.city-banner-container:hover .city-banner-image {
    transform: scale(1.02);
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .city-banner-section {
        padding: 20px 0;
    }

    .city-banner-image {
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .city-banner-section {
        padding: 15px 0;
    }

    .city-banner-image {
        max-height: 200px;
    }
}
