@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&family=Oswald:wght@200..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@import url(../assets/variables.css);
/* =========================================================
   GENEL SIFIRLAMA
========================================================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   SAYFA GENEL ALANI
========================================================= */
.customer-main{
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* =========================================================
   HERO ALANI
========================================================= */
.hero{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;
    padding: 36px 30px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.15);
}

.hero h1{
    font-size: 34px;
    margin-bottom: 10px;
    line-height: 1.2;
    font-family: var(--panel-h);
}

.hero p{
    font-size: 15px;
    color: #dbeafe;
    line-height: 1.6;
    font-family: var(--panel-p);
}

/* =========================================================
   ADMIN KUTUSU
========================================================= */
.admin-box{
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.08);
    padding: 12px 18px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.admin-avatar{
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    font-family: var(--bussines-user);
}

.admin-info h4{
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 3px;
    text-transform: capitalize;
    font-family: var(--bussines-user);
}

.admin-info span{
    font-size: 12px;
    color: #dbeafe;
}

.profile-btn{
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-btn:hover{
    transform: scale(1.05);
}

/* =========================================================
   FİLTRE KUTUSU
========================================================= */
.filter-box{
    display: none;
    background: #ffffff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    margin-bottom: 28px;
}
.filter-box.active{
    display: block;
    animation: fadeDown 0.3s ease;
}

.filter-form{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.filter-group{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label{
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.filter-group input,
.filter-group select{
    width: 100%;
    height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus{
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.filter-actions{
    display: flex;
    gap: 10px;
}

#search{
    color: rgba(0, 0, 0, 0.543);
}

.search-btn,
.clear-btn{
    height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.search-btn{
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

.search-btn:hover{
    transform: translateY(-1px);
}

.clear-btn{
    background: #e2e8f0;
    color: #0f172a;
}

.clear-btn:hover{
    background: #dbe4ee;
}


@keyframes fadeDown{
    from{
        opacity:0;
        transform: translateY(-10px);
    }
    to{
        opacity:1;
        transform: translateY(0);
    }
}

.filter-toggle{
    margin-bottom: 14px;
}

#openFilterBtn{
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: none;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.filter-header{
    display:flex;
    justify-content:flex-end;
    margin-bottom:10px;
}

#closeFilterBtn{
    border:none;
    background:#e2e8f0;
    width:36px;
    height:36px;
    border-radius:10px;
    cursor:pointer;
}

/* =========================================================
   BAŞLIK SATIRI
========================================================= */
.section-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title h2{
    font-size: 24px;
    color: #0f172a;
}

.section-title span{
    font-size: 14px;
    color: #64748b;
}

/* =========================================================
   İŞLETME KART LİSTESİ
========================================================= */
.business-list{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* =========================================================
   İŞLETME KARTI ANA KUTU
   Daha şık, daha kompakt, daha modern görünüm
========================================================= */
.business-card{
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.business-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
    border-color: #cbd5e1;
}

/* =========================================================
   KART GÖRSEL ALANI
========================================================= */
.card-banner{
    position: relative;
    height: 210px;
    overflow: hidden;
    margin: 0;
}

.card-banner img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.business-card:hover .card-banner img{
    transform: scale(1.05);
}

.banner-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.72),
        rgba(15, 23, 42, 0.18),
        rgba(15, 23, 42, 0.02)
    );
}

/* =========================================================
   SOL ÜST KÜÇÜK ROZET
========================================================= */
.store-badge{
    position: absolute;
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #1e3a8a;
    border: 1px solid rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 3;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* =========================================================
   İŞLETME TÜRÜ ETİKETİ
========================================================= */
.business-type{
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.94);
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

/* =========================================================
   KART İÇERİK ALANI
========================================================= */
.card-body{
    display: block;
    padding: 18px 18px 12px;
    margin: 0;
}

/* =========================================================
   İŞLETME ADI
========================================================= */
.business-name{
    font-size: 22px;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* =========================================================
   BİLGİ SATIRLARI
========================================================= */
.info-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.info-item i{
    width: 18px;
    min-width: 18px;
    text-align: center;
    font-size: 14px;
    color: #2563eb;
}

/* =========================================================
   KART ALT BUTON ALANI
========================================================= */
.card-actions{
    display: flex;
    gap: 10px;
    padding: 0 18px 18px;
    margin-top: auto;
    justify-content: center;
}

.detail-btn{
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.detail-btn:hover{
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Eğer sayfada varsa ikinci buton için hazır stil */
.reserve-btn{
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reserve-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

/* Pasif buton için yardımcı sınıf */
.disabled-reserve-btn{
    background: #e2e8f0 !important;
    color: #64748b !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
}

/* =========================================================
   BOŞ DURUM KUTUSU
========================================================= */
.empty-state{
    grid-column: 1 / -1;
    background: #ffffff;
    border-radius: 22px;
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

.empty-state i{
    font-size: 36px;
    margin-bottom: 12px;
    color: #94a3b8;
}

/* =========================================================
   PROFİL SİL BUTONU
========================================================= */
.profile-delete-btn{
    background: none;
    border: none;
    color: red;
    margin: 0 10px;
    cursor: pointer;
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */
@media(max-width: 1100px){
    .filter-form{
        grid-template-columns: 1fr 1fr;
    }

    .business-list{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   RESPONSIVE - ORTA EKRAN
========================================================= */
@media(max-width: 900px){
    .business-name{
        font-size: 20px;
    }

    .business-type{
        font-size: 11px;
        padding: 7px 12px;
    }
}

/* =========================================================
   RESPONSIVE - MOBİL
========================================================= */
@media(max-width: 700px){
    .hero{
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1{
        font-size: 26px;
    }

    .filter-form{
        grid-template-columns: 1fr;
    }

    .filter-actions{
        flex-direction: column;
    }

    .business-list{
        grid-template-columns: 1fr;
    }

    .card-actions{
        flex-direction: column;
    }

    .detail-btn,
    .reserve-btn{
        width: 100%;
    }
}

/* =========================================================
   RESPONSIVE - KÜÇÜK MOBİL
========================================================= */
@media(max-width: 600px){
    .customer-main{
        padding: 20px 14px 50px;
    }

    .filter-box{
        padding: 18px;
        border-radius: 20px;
    }
    .filter-group label{
        font-size: 12px; 
    }

    .filter-group input,
    .filter-group select{
        height: 40px;        
        font-size: 13px;
        border-radius: 10px;
    }

    #search{
        padding: 2px 10px;
        height: 33px;
    }

    .search-btn,
    .clear-btn{
        height: 40px;       
        font-size: 13px;
        padding: 0 12px;
    }

    .business-card{
        border-radius: 20px;
    }

    .card-banner{
        height: 200px;
    }

    .store-badge{
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .business-name{
        font-size: 19px;
    }

    .info-item{
        font-size: 13px;
    }
}


.favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    transition: 0.2s ease;
}

.favorite-btn i {
    font-size: 18px;
}

.favorite-btn:hover {
    transform: scale(1.08);
    color: #ef4444;
}

.favorite-btn.is-favorited {
    background: #ef4444;
    color: #fff;
}

.favorite-btn.is-favorited:hover {
    background: #dc2626;
    color: #fff;
}

.favorite-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

.favorite-toast.show {
    opacity: 1;
    bottom: 34px;
}

@media (max-width: 600px) {
    .favorite-btn {
        width: 38px;
        height: 38px;
        top: 12px;
        right: 12px;
    }

    .favorite-btn i {
        font-size: 16px;
    }
}

.business-card-rating{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:7px;
    margin-bottom:10px;
    flex-wrap:wrap;
}

.business-card-stars{
    display:flex;
    align-items:center;
    gap:2px;
    color:#f59e0b;
    font-size:14px;
}

.business-card-rating span{
    font-size:13px;
    color:#64748b;
    font-weight:700;
}
/* =========================================================
   ÇOK KÜÇÜK EKRAN
========================================================= */
@media(max-width: 530px){
    .hero{
        gap: 20px;
    }
}