/* Tekne tipi: Viravira tarzı — sidebar içinde her zaman 3 sütun, kompakt kutu */
.tg-boat-type-section-title {
    margin-bottom: 8px;
}

.tg-boat-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tg-boat-type-grid--compact {
    gap: 8px;
}

.tg-boat-type-card {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    min-width: 0;
}

/* Görsel üstte (kare), isim/adet kartın altında */
.tg-boat-type-card--visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.tg-boat-type-card input {
    display: none;
}

.tg-boat-type-inner {
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    padding: 8px 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tg-boat-type-card--visual .tg-boat-type-inner {
    padding: 0;
    aspect-ratio: 1;
    width: 100%;
    flex-shrink: 0;
}

.tg-boat-type-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    text-align: center;
    padding: 0 2px;
    min-width: 0;
}

.tg-boat-type-inner::before {
    display: none;
}

.tg-boat-type-card:hover .tg-boat-type-inner {
    border-color: #CBD5E1;
    background: #F8FAFC;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.tg-boat-type-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #2563EB;
    background: #F8FAFC;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.tg-boat-type-card--visual .tg-boat-type-icon {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    border-radius: 7px;
    box-sizing: border-box;
}

.tg-boat-type-icon--photo {
    background: #F1F5F9;
}

.tg-boat-type-card--visual .tg-boat-type-icon:not(.tg-boat-type-icon--photo) {
    font-size: clamp(1.25rem, 4.2vw, 1.75rem);
}

.tg-boat-type-name {
    font-size: 11px;
    font-weight: 600;
    color: #1F2937;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-boat-type-count {
    font-size: 10px;
    color: #9CA3AF;
    font-weight: 500;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.tg-boat-type-card input:checked + .tg-boat-type-inner {
    border-color: #2563EB;
    background: #EFF6FF;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.tg-boat-type-card input:checked + .tg-boat-type-inner .tg-boat-type-icon {
    background: #2563EB;
    border-color: #1D4ED8;
    color: #FFFFFF;
}

.tg-boat-type-card input:checked + .tg-boat-type-inner .tg-boat-type-icon--photo {
    background: #1D4ED8;
}

.tg-boat-type-card--visual input:checked ~ .tg-boat-type-meta .tg-boat-type-name {
    color: #1E3A8A;
}

.tg-boat-type-card--visual input:checked ~ .tg-boat-type-meta .tg-boat-type-count {
    color: #3B82F6;
}

/* Çok dar ekranda 2 sütun (mobil tam genişlik sidebar) */
@media (max-width: 380px) {
    .tg-boat-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tg-filter-border {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E5E7EB 50%, transparent 100%);
    margin: 28px 0;
}

.tg-filter-price-input {
    margin-top: 24px;
}

.tg-filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.tg-price-visual {
    width: 100%;
    background: #F9FAFB;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

.tg-price-histogram {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
    margin-bottom: 12px;
}

.tg-price-histogram .bar {
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tg-price-histogram .bar:hover {
    opacity: 1;
    transform: scaleY(1.05);
}

.tg-price-histogram .bar-sm {
    height: 25%;
}

.tg-price-histogram .bar-md {
    height: 45%;
}

.tg-price-histogram .bar-lg {
    height: 65%;
}

.tg-price-histogram .bar-xl {
    height: 85%;
}

.tg-price-slider {
    position: relative;
    height: 32px;
    margin-top: 10px;
}

.tg-price-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #D1D5DB;
    z-index: 1;
}

.tg-price-selection {
    position: absolute;
    left: 12%;
    right: 10%;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    z-index: 2;
    pointer-events: none;
}

.tg-price-thumb {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 3px solid #2563EB;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25), 0 0 0 4px rgba(37, 99, 235, 0.1);
    cursor: grab;
    transition: all 0.2s ease;
    z-index: 3;
    touch-action: none;
}

.tg-price-thumb:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4), 0 0 0 6px rgba(37, 99, 235, 0.15);
}

.tg-price-thumb.thumb-min {
    left: 12%;
}

.tg-price-thumb.thumb-max {
    left: 90%;
}

.dvdr {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
}

.dvdr svg path {
    stroke: #D1D5DB;
}

.tg-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.tg-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #F3F4F6;
}

.tg-toggle-item:last-child {
    border-bottom: none;
}

.tg-toggle-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-toggle-info {
    flex: 1;
}

.tg-toggle-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tg-toggle-title .star-icon {
    color: #EF4444;
    font-size: 14px;
}

.tg-toggle-description {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.4;
}

.tg-toggle-count {
    font-size: 18px;
    font-weight: 700;
    color: #6B7280;
    min-width: 32px;
    text-align: center;
}

.tg-toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.tg-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tg-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #D1D5DB;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.tg-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tg-toggle-switch input:checked+.tg-toggle-slider {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tg-toggle-switch input:checked+.tg-toggle-slider:before {
    transform: translateX(22px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.tg-toggle-switch:hover .tg-toggle-slider {
    opacity: 0.9;
}

.tg-toggle-switch input:checked+.tg-toggle-slider:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

.tg-cabin-section {
    margin-top: 24px;
}

.tg-cabin-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.tg-cabin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tg-cabin-btn {
    position: relative;
    cursor: pointer;
}

.tg-cabin-btn input {
    display: none;
}

.tg-cabin-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    color: #4B5563;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    min-height: 55px;
    flex-direction: column;
    text-align: center;
    height: 100%;
}

.tg-cabin-btn:hover .tg-cabin-btn-inner {
    border-color: #93C5FD;
    background: #F8FAFC;
    transform: translateY(-1px);
}

.tg-cabin-btn input:checked+.tg-cabin-btn-inner {
    border-color: #2563EB;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #1E40AF;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 2px 8px rgba(37, 99, 235, 0.15);
}

.tg-cabin-btn-plus .tg-cabin-btn-inner {
    font-size: 18px;
    color: #6B7280;
}

.tg-cabin-btn-plus input:checked+.tg-cabin-btn-inner {
    color: #2563EB;
}

@media (max-width: 767.98px) {
    .tg-cabin-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .tg-cabin-btn-inner {
        padding: 5px 6px;
        font-size: 10px;
    }
}


.tg-cabin-btn-inner img {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

/* Tekne tipi ikon görseli (DB'den gelen) */
.tg-boat-type-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tg-boat-type-card--visual .tg-boat-type-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.tg-boat-type-card input:checked + .tg-boat-type-inner .tg-boat-type-img {
    filter: brightness(0) invert(1);
}

.tg-boat-type-card--visual input:checked + .tg-boat-type-inner .tg-boat-type-img {
    filter: none;
    opacity: 0.92;
}

/* Puan (Rating) Filtresi - Interaktif Yıldız Seçici */
.tg-interactive-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 16px;
    background: #F9FAFB;
    border-radius: 14px;
}

.tg-star-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.tg-star-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tg-star-icon {
    font-size: 36px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: block;
    pointer-events: none;
}

.tg-star-icon.tg-star-filled {
    color: #F59E0B;
}

.tg-star-icon.tg-star-half {
    color: #F59E0B;
}

.tg-star-icon.tg-star-empty-icon {
    color: #D1D5DB;
}

.tg-hovering .tg-star-icon {
    transform: scale(1.08);
}

.tg-star-hit {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 2;
}

.tg-star-hit-left {
    left: 0;
}

.tg-star-hit-right {
    right: 0;
}

.tg-star-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-star-value-text {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.tg-star-clear {
    border: none;
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: pointer;
    font-size: 11px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.tg-star-clear:hover {
    color: #EF4444;
    background: #FEE2E2;
}

/* Kapasite Stepper */
.tg-capacity-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    max-width: 180px;
}

.tg-stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: #F9FAFB;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tg-stepper-btn:hover {
    background: #EFF6FF;
    color: #2563EB;
}

.tg-stepper-btn:active {
    background: #DBEAFE;
}

.tg-stepper-value {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    border: none;
    outline: none;
    background: transparent;
    width: 60px;
    -moz-appearance: textfield;
}

.tg-stepper-value::-webkit-outer-spin-button,
.tg-stepper-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Collapsible filter sections */
.tg-collapsible .tg-collapsible-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.tg-collapse-chevron {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.25s ease;
}

.tg-collapsible-open .tg-collapse-chevron {
    transform: rotate(180deg);
}

.tg-collapsible .tg-collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 0;
}

.tg-collapsible-open .tg-collapsible-content {
    max-height: 2000px;
    opacity: 1;
}

/* Tekneler: tam genişlik (Viravira tarzı), kenar boşlukları kontrollü */
.tg-boats-page-fluid {
    width: 100%;
    max-width: 100%;
}

/* Tekneler listesi: dar filtre sütunu, geniş kart alanı */
@media (min-width: 992px) {
    .tg-boats-filter-col .tg-filter-sidebar {
        padding: 20px 14px 18px 14px;
    }
    .tg-boats-listing-inner.tg-listing-item-box-wrap {
        margin-left: 0.65rem !important;
    }
}
@media (min-width: 1200px) {
    .tg-boats-listing-inner.tg-listing-item-box-wrap {
        margin-left: 0.85rem !important;
    }
}
@media (min-width: 1400px) {
    .tg-boats-listing-inner.tg-listing-item-box-wrap {
        margin-left: 1rem !important;
    }
}