body {
    font-family: 'Arial', sans-serif;
    background-color: #F9FAFB;
    color: #1F2A44;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: relative;
    z-index: 1000;
}

/* Arama Önerileri */
.search-box {
    position: relative;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.suggestions div {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1F2A44;
    transition: background-color 0.3s ease;
}

.suggestions div:hover {
    background-color: #EDF2F7;
}

.suggestions img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}

/* Ana Layout */
.main-wrapper {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    min-height: calc(100vh - 200px);
}

/* Filtre Paneli */
.filter-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    width: 300px;
    position: sticky;
    top: 20px;
    height: fit-content;
    transition: transform 0.3s ease;
    z-index: 1100;
}

.filter-panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3182CE;
    margin-bottom: 1.5rem;
}

.filter-group {
    margin-bottom: 1.25rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    padding-right: 35px;
    box-sizing: border-box;
}

.clear-filter {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #FC8181;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.clear-filter.active {
    opacity: 1;
    visibility: visible;
}

.clear-filter:hover {
    background: #F56565;
}

#apply-filter {
    width: 100%;
    padding: 0.75rem;
    background: #3182CE;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

#apply-filter:hover {
    background: #2B6CB0;
}

#close-filter {
    width: 100%;
    padding: 0.75rem;
    background: #E53E3E;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    transition: background 0.3s ease;
}

#close-filter:hover {
    background: #C53030;
}

/* Filtre Toggle Butonu */
.filter-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1200;
    background: #3182CE;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Mesafe Giriş Alanı Stilleri */
#radius-filter {
    display: block;
    height: 34px;
    padding-right: 0 !important;
    padding-left: 0 !important;
    width: 100%;
    appearance: none;
    background: #E2E8F0;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
}

/* Track stilini güncelle */
#radius-filter::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #3182CE 0%, #3182CE 100%);
    border-radius: 4px;
    padding: 0;
    margin: 0;
}

#radius-filter::-moz-range-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #3182CE 0%, #3182CE 100%);
    border-radius: 4px;
    padding: 0;
    margin: 0;
}

#radius-filter::-ms-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #3182CE 0%, #3182CE 100%);
    border-radius: 4px;
    padding: 0;
    margin: 0;
}
/* Thumb (kaydırıcı top) stilini ayarla */
#radius-filter::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #3182CE;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
}

#radius-filter::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3182CE;
    border-radius: 50%;
    cursor: pointer;
}

#radius-filter::-ms-thumb {
    width: 16px;
    height: 16px;
    background: #3182CE;
    border-radius: 50%;
    cursor: pointer;
}
/* Responsive Tasarım */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .filter-group #radiusValue {
        font-size: 14px;
        min-width: 60px;
    }

    .filter-group #radius-input {
        width: 80px;
    }

    .filter-toggle-btn {
        display: flex;
        z-index: 1201; /* Diğer elementlerin üstünde kalması için */
    }

    .filter-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        z-index: 1100;
        transform: translateX(-100%);
        border-radius: 0;
        overflow-y: auto;
        box-sizing: border-box;
        background: #fff; /* Arka plan rengi eklenerek görünürlük sağlandı */
        transition: transform 0.3s ease-in-out; /* Daha akıcı animasyon */
    }

    .filter-panel.open {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .filter-group #radiusValue {
        font-size: 12px;
        min-width: 50px;
    }

    .filter-group #radius-input {
        width: 60px;
    }
}

/* İçerik Alanı */
.content-area {
    flex: 1;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.content-area h1 {
    font-size: 2rem;
    color: #3182CE;
    font-weight: 600;
    margin: 0;
}

/* Ürünler */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5625rem;
    width: 100%;
    padding: 0;
}

/* Arama Mesajı Stili */
.search-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin: 0 auto;
}

.search-prompt i {
    font-size: 3rem;
    color: #3182CE;
    margin-bottom: 1rem;
}

.search-prompt p {
    font-size: 1.5rem;
    color: #1F2A44;
    font-weight: 500;
}

.product {
    background-color: #F5F7FA;
    border-radius: 0.75rem;
    padding: 0.9375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product .swiper-container {
    width: 100%;
    height: 13.75rem;
    margin-bottom: 0.9375rem;
    border-radius: 0.625rem;
    overflow: hidden;
    position: relative;
}

.product .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.625rem;
    display: block;
}

.product .swiper-pagination {
    margin-top: 0.625rem;
}

.product .swiper-button-prev, 
.product .swiper-button-next {
    color: #FFFFFF;
    width: 2.5rem;
    height: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 144, 226, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.product .swiper-button-prev:hover,
.product .swiper-button-next:hover {
    background: #357ABD;
}

.product .swiper-button-prev {
    left: 0.625rem;
}

.product .swiper-button-next {
    right: 0.625rem;
}

.product .swiper-container.single-image .swiper-button-prev,
.product .swiper-container.single-image .swiper-button-next {
    display: none;
}

.product h3 {
    font-size: 1.4rem;
    color: #333333;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product p {
    font-size: 1rem;
    color: #7F8C8D;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product .city {
    color: #4A90E2;
    font-weight: bold;
    font-size: 1rem;
}

.product .city i {
    margin-right: 0.3125rem;
}

.product-info {
    padding: 0.625rem 0;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
        padding: 1rem;
    }

    .filter-toggle-btn {
        display: flex;
    }

    .filter-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        z-index: 1100;
        transform: translateX(-100%);
        border-radius: 0;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .filter-panel.open {
        transform: translateX(0);
    }

    .content-area {
        margin-top: 1rem;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.9375rem;
        padding: 0 0.5rem;
    }

    .product {
        padding: 0.625rem;
    }

    .product .swiper-container {
        height: 10rem;
        width: 100%;
    }

    .product h3 {
        font-size: 1.2rem;
    }

    .product p {
        font-size: 0.9rem;
    }

    .product .swiper-button-prev, 
    .product .swiper-button-next {
        width: 1.875rem;
        height: 1.875rem;
    }

    .search-prompt i {
        font-size: 2.5rem;
    }

    .search-prompt p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.625rem;
        padding: 0 0.25rem;
    }

    .product .swiper-container {
        height: 9rem;
        width: 100%;
    }

    .search-prompt i {
        font-size: 2rem;
    }

    .search-prompt p {
        font-size: 1rem;
    }
}

@media (max-width: 270px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.625rem;
        padding: 0 0.25rem;
    }

    .product .swiper-container {
        height: 8rem;
        width: 100%;
    }

    .search-prompt i {
        font-size: 1.5rem;
    }

    .search-prompt p {
        font-size: 0.9rem;
    }
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 300px;
}

.modal-button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-button#allowLocation {
    background-color: #3182CE;
    color: #fff;
}

.modal-button#allowLocation:hover {
    background-color: #2B6CB0;
}

.modal-button#denyLocation {
    background-color: #F56565;
    color: #fff;
}

.modal-button#denyLocation:hover {
    background-color: #C53030;
}

#sortHint {
    display: none;
    position: fixed;
    background-color: #3182CE;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    font-size: 14px;
    text-align: center;
    max-width: 250px;
    word-wrap: break-word;
}

#sortHint button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #fff;
    color: #3182CE;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#sortHint button:hover {
    background-color: #e0e0e0;
}