.search-form {
    max-width: 100%;
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form .form-control {
    border: none;
    padding-left: 1.5rem;
    height: 50px;
}

.search-form .btn {
    width: 50px;
    border-radius: 0;
}

.active-filters {
    padding: 1rem;
    border-radius: 12px;
    background-color: rgba(13,110,253,0.08) !important;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(13,110,253,0.2);
    margin: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-remove {
    margin-left: 0.5rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f8f9fa;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.filter-remove:hover {
    background: #dc3545;
    color: white;
}

.filter-clear {
    color: #6c757d;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-clear:hover {
    color: var(--bs-primary);
}

.form-select, .form-control {
    border-color: #dee2e6;
    padding: 0.6rem 1rem;
}

.page-link {
    color: var(--primary);
    border: none;
    margin: 0 0.15rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.page-item.active .page-link {
    background-color: var(--primary);
}

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

.btn-compare-added {
    background-color: var(--success);
    color: white;
}

.btn-compare-added:hover {
    background-color: var(--success);
    opacity: 0.9;
    color: white;
}

/* LGS Badge Styles */
.lgs-badge {
    background: rgba(13,110,253,0.95);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(13,110,253,0.3);
}

/* School card improvements */
.school-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.school-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.school-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.school-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.school-card-image-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.school-card-body {
    padding: 1.5rem;
    flex: 1;
}

.school-card-location {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.school-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.school-card-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.school-card-title a:hover {
    color: var(--bs-primary);
}

.school-card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.school-card-metric {
    text-align: center;
}

.school-card-metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.school-card-metric-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.school-card-footer {
    padding: 0 1.5rem 1.5rem;
}

/* List view styles */
.school-list-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.school-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.school-list-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.school-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.school-list-item:hover .school-list-image img {
    transform: scale(1.1);
}

.school-list-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.school-list-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.school-list-title a:hover {
    color: var(--bs-primary);
}

.school-list-data {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.school-list-data-item {
    font-size: 0.9rem;
}

.school-list-data-item .label {
    color: #6c757d;
    margin-right: 0.5rem;
}

.school-list-data-item .value {
    font-weight: 500;
    color: #212529;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .school-card-image {
        height: 160px;
    }
    
    .school-card-body {
        padding: 1.2rem;
    }
    
    .school-card-footer {
        padding: 0 1.2rem 1.2rem;
    }
    
    .school-card-image-overlay {
        top: 8px;
        right: 8px;
    }
    
    .lgs-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .school-list-item {
        padding: 1.2rem;
    }
    
    .school-list-image {
        width: 60px;
        height: 45px;
    }
    
    .school-card-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .school-card-image {
        height: 140px;
    }
    
    .school-list-image {
        width: 50px;
        height: 38px;
    }
    
    .school-card-title {
        font-size: 1rem;
    }
    
    .school-list-title {
        font-size: 1.1rem;
    }
    
    .school-list-data {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Placeholder for missing images */
.school-card-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.3;
    z-index: 1;
}

.school-card-image img {
    position: relative;
    z-index: 2;
}

.school-list-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.3;
    z-index: 1;
}

/* Liste görünümünde okul adı hover efekti stilleri - ikonları kaldır */
.school-list-title a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s ease;
    position: relative;
}

.school-list-title a:hover {
    color: var(--primary-dark, #0056b3);
    text-decoration: none;
}

.school-list-title a::after {
    display: none !important; /* Hover ikonunu tamamen kaldır */
}

.school-list-title a::before {
    display: none !important; /* Varsa before pseudo-element'ini de kaldır */
}
