/* ============================================================
   Sana En Yakın Üreticiler (Hiper-Yerel) — bölüm + sayfa
   Tasarım sistemi: green #1A6355, pink #b9475e, orange #e79275,
   beige #FFF3E5, gold #bf833a, gray #7d91a3
   ============================================================ */

:root {
    --nb-green: #1A6355;
    --nb-pink: #b9475e;
    --nb-orange: #e79275;
    --nb-beige: #FFF3E5;
    --nb-gold: #bf833a;
    --nb-gray: #7d91a3;
}

/* ---- Kendini tamamlayan giriş animasyonu (JS gerektirmez) ---- */
@keyframes nbIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* ---- Ana sayfa bölüm kapsayıcısı ---- */
.nearby-section {
    margin: 26px auto 10px;
    padding: 20px 22px 22px;
    background: linear-gradient(180deg, var(--nb-beige) 0%, #fff 78%);
    border: 1px solid #f0e4d4;
    border-radius: 14px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .06);
    animation: nbIn .55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- Başlık satırı ---- */
.nearby-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.nearby-title {
    font-family: 'Barlow Condensed', 'Fira Sans', sans-serif;
    font-size: 26px;
    line-height: 1.15;
    color: var(--nb-green);
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nearby-leaf { font-size: 22px; }
.nearby-loc-pill {
    display: inline-block;
    background: var(--nb-green);
    color: #fff;
    font-family: 'Fira Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 16px;
    letter-spacing: .2px;
}
.nearby-all {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--nb-pink);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}
.nearby-all:hover { color: var(--nb-orange); }

/* ---- Ürün şeridi: grid widget çıktısını sarar; kartlara dokunmadan
        yalnızca kademeli görünürlük ekler ---- */
.nearby-strip { position: relative; }
.nearby-strip .box {
    animation: nbIn .5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nearby-strip .box:nth-child(1)  { animation-delay: .02s; }
.nearby-strip .box:nth-child(2)  { animation-delay: .06s; }
.nearby-strip .box:nth-child(3)  { animation-delay: .10s; }
.nearby-strip .box:nth-child(4)  { animation-delay: .14s; }
.nearby-strip .box:nth-child(5)  { animation-delay: .18s; }
.nearby-strip .box:nth-child(6)  { animation-delay: .22s; }
.nearby-strip .box:nth-child(n+7){ animation-delay: .26s; }

/* ---- Konum yok: davet kartı ---- */
.nearby-invite {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.nearby-invite-icon {
    font-size: 34px;
    line-height: 1;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.12));
}
.nearby-invite-text { flex: 1 1 260px; min-width: 200px; }
.nearby-invite-text h3 {
    font-family: 'Barlow Condensed', 'Fira Sans', sans-serif;
    font-size: 22px;
    color: var(--nb-green);
    margin: 0 0 3px;
    font-weight: 600;
}
.nearby-invite-text p {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    color: #6c6c6c;
    margin: 0;
    line-height: 1.45;
}
.nearby-invite-btn {
    flex: 0 0 auto;
    background: var(--nb-pink);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 11px 22px;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.nearby-invite-btn:hover { background: var(--nb-orange); transform: translateY(-1px); }
.nearby-invite-btn:active { transform: translateY(0); }

/* ---- Boş durum ---- */
.nearby-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px dashed #e2d5c4;
    border-radius: 10px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    color: #555;
}
.nearby-empty-icon { font-size: 24px; }
.nearby-empty-sub { display: block; color: var(--nb-gray); font-size: 13px; margin-top: 2px; }

/* ============================================================
   /yakinimdakiler tam liste sayfası
   ============================================================ */
.nearby-page { padding-top: 22px; }
.nearby-page-head {
    text-align: center;
    max-width: 720px;
    margin: 8px auto 26px;
    animation: nbIn .5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nearby-page-title {
    font-family: 'Barlow Condensed', 'Fira Sans', sans-serif;
    font-size: 34px;
    color: var(--nb-green);
    margin: 0 0 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.nearby-page-sub {
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    color: #6c6c6c;
    margin: 0;
    line-height: 1.5;
}
.nearby-invite-lg,
.nearby-empty-lg {
    max-width: 560px;
    margin: 30px auto;
    flex-direction: column;
    text-align: center;
    padding: 34px 26px;
    background: var(--nb-beige);
    border: 1px solid #f0e4d4;
    border-radius: 14px;
}
.nearby-empty-lg .nearby-empty-icon { font-size: 46px; opacity: .55; margin-bottom: 6px; }
.nearby-empty-lg h3 {
    font-family: 'Barlow Condensed', 'Fira Sans', sans-serif;
    font-size: 24px; color: var(--nb-green); margin: 0 0 6px; font-weight: 600;
}
.nearby-empty-lg .nearby-empty-sub { font-size: 14px; margin-bottom: 16px; }
.nearby-empty-btn,
.nearby-invite-lg .nearby-invite-btn {
    display: inline-block;
    text-decoration: none;
    background: var(--nb-pink);
    color: #fff;
    border-radius: 3px;
    padding: 11px 24px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    transition: background .2s ease;
}
.nearby-empty-btn:hover { background: var(--nb-orange); }
.nearby-page .box { animation: nbIn .5s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ---- Erişilebilirlik: hareket azaltma tercihi ---- */
@media (prefers-reduced-motion: reduce) {
    .nearby-section, .nearby-page-head, .nearby-strip .box, .nearby-page .box { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 670px) {
    .nearby-section { padding: 16px 14px 18px; border-radius: 10px; }
    .nearby-title { font-size: 22px; }
    .nearby-page-title { font-size: 27px; }
    .nearby-invite { gap: 12px; }
    .nearby-invite-btn { width: 100%; text-align: center; }
}
