/* Hero & Search — Modern 2026 */
.hero-modern {
    position: relative;
    z-index: 1;
    --hero-accent: #4f46e5;
    --hero-accent-hover: #4338ca;
    --hero-dark: #0f172a;
    --hero-muted: #64748b;
    --hero-radius: 20px;
    --hero-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    font-family: "Plus Jakarta Sans", "Kanit", system-ui, sans-serif;
}

.hero-modern .carousel-item {
    height: clamp(480px, 72vh, 680px);
}

.hero-modern .carousel-item img {
    object-fit: cover;
    object-position: 68% center;
}

.hero-modern .carousel-item::after {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.35) 45%,
        rgba(15, 23, 42, 0.75) 100%
    );
    height: 100%;
}

.hero-modern .sliderIcerik {
    display: none;
}

.hero-modern .carousel-control-prev,
.hero-modern .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.hero-modern:hover .carousel-control-prev,
.hero-modern:hover .carousel-control-next {
    opacity: 1;
}

.hero-modern .carousel-control-prev-icon,
.hero-modern .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.hero-modern .slider-multi-content {
    position: absolute;
    inset: 0;
    top: auto;
    bottom: 0;
    padding: 0 0 clamp(2rem, 5vw, 3.5rem);
    align-items: flex-end;
    z-index: 5;
}

.hero-search-wrap .container {
    max-width: 960px;
}

.hero-il-sabit {
    display: flex;
    align-items: center;
    min-height: calc(1.5em + 0.75rem + 2px);
    background: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    color: #0f766e;
    cursor: default;
}

.hero-search-modern {
    width: 100%;
}

.hero-search-head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-search-title {
    margin: 0.75rem 0 0;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-search-subtitle {
    margin: 0.5rem 0 0;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
}

/* İlan tipi sekmeleri */
.hero-type-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0;
}

.hero-type-tabs .hero-tab {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.hero-type-tabs .hero-tab input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hero-type-tabs .hero-tab span {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hero-type-tabs .hero-tab input:checked + span,
.hero-type-tabs .hero-tab:hover span {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-type-tabs .hero-tab input:checked + span {
    background: linear-gradient(135deg, var(--hero-accent) 0%, #7c3aed 100%);
    border-color: transparent;
}

/* Arama kartı */
.hero-search-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--hero-radius);
    box-shadow: var(--hero-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 0.5rem;
    overflow: hidden;
}

.hero-search-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr 1fr auto;
    gap: 0.5rem;
    align-items: stretch;
}

.hero-field {
    min-width: 0;
}

.hero-field .form-group {
    margin: 0;
    height: 100%;
}

.hero-field select,
.hero-field .input--style-4,
.hero-field .form-control {
    width: 100%;
    height: 52px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: var(--hero-dark) !important;
    padding: 0 1rem !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-field select:focus,
.hero-field .input--style-4:focus,
.hero-field .form-control:focus {
    outline: none;
    border-color: var(--hero-accent) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.hero-field .input--style-4::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.hero-field .rs-select2,
.hero-field .select2-container {
    width: 100% !important;
}

.hero-field .select2-selection--single {
    height: 52px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
}

.hero-field .select2-selection__rendered {
    line-height: 50px !important;
    padding-left: 1rem !important;
    color: var(--hero-dark) !important;
    font-weight: 500 !important;
}

.hero-field .select2-selection__arrow {
    height: 50px !important;
}

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
    height: 52px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 14px;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--hero-accent) 0%, #7c3aed 100%);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.hero-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.45);
    color: #fff;
}

.hero-search-btn i {
    font-size: 1rem;
}

/* Eski stilleri sıfırla */
.hero-search-modern .radio-container,
.hero-search-modern label.radio-container.h5 {
    all: unset;
}

.hero-search-modern .bg-transparent.main-sea.rch-top,
.hero-search-modern .main-sea {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hero-search-modern .input-group.m-auto {
    display: none;
}

.hero-search-modern .row.no-gutters {
    display: contents;
}

.hero-search-modern .arama-4-item {
    padding: 0 !important;
}

/* Mobil */
@media (max-width: 991px) {
    .hero-search-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-search-grid .hero-field:nth-child(3) {
        grid-column: 1 / -1;
    }

    .hero-search-btn-wrap {
        grid-column: 1 / -1;
    }

    .hero-search-btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .hero-modern .carousel-item {
        height: 520px;
    }

    .hero-search-grid {
        grid-template-columns: 1fr;
    }

    .hero-type-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .hero-search-head {
        text-align: left;
    }
}
