/* ===========================================
   MAĞAZA BULUCU v2 — BUCKIN STYLE
   Flatsome tema uyumlu, kurumsal tasarım
   =========================================== */
:root {
    --sl-primary: #7B2030;
    --sl-secondary: #1B2A4A;
    --sl-bg: #f8f8f8;
    --sl-white: #ffffff;
    --sl-border: #e8e8e8;
    --sl-text: #333333;
    --sl-muted: #888888;
    --sl-hover: #fdf6f7;
}

.sl-locator, .sl-single, .sl-grid { color: var(--sl-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.sl-locator *, .sl-single *, .sl-grid * { box-sizing: border-box; }

/* ============================================
   HARITA SAYFASI
   ============================================ */
.sl-locator { max-width: 1200px; margin: 40px auto; overflow: hidden !important; }

/* Toolbar */
.sl-toolbar { background: var(--sl-secondary) !important; padding: 0 !important; margin: 0 !important; display: block !important; border: 1px solid var(--sl-border); border-bottom: none; }
.sl-toolbar-inner { display: flex !important; flex-wrap: nowrap !important; width: 100% !important; margin: 0 !important; padding: 0 !important; gap: 0 !important; box-sizing: border-box !important; }
.sl-search-box { flex: 1 1 auto !important; min-width: 0 !important; position: relative !important; display: flex !important; align-items: center !important; background: var(--sl-white) !important; margin: 0 !important; padding: 0 !important; border: none !important; box-sizing: border-box !important; }
.sl-search-box svg { position: absolute !important; left: 14px !important; width: 16px !important; height: 16px !important; color: var(--sl-muted) !important; pointer-events: none !important; }
.sl-search-box input {
    width: 100% !important; max-width: 100% !important;
    border: none !important; border-radius: 0 !important;
    padding: 14px 14px 14px 42px !important; margin: 0 !important;
    font-size: 14px !important; font-family: inherit !important;
    color: var(--sl-text) !important; background: transparent !important;
    outline: none !important; box-shadow: none !important;
    -webkit-appearance: none !important; appearance: none !important;
    height: auto !important; line-height: normal !important;
    box-sizing: border-box !important;
}
.sl-search-box input::placeholder { color: #bbb !important; }

#sl-city-filter {
    flex: 0 0 240px !important;
    width: 240px !important; max-width: 240px !important;
    border: none !important; border-left: 1px solid var(--sl-border) !important; border-radius: 0 !important;
    padding: 14px 40px 14px 16px !important; margin: 0 !important;
    font-size: 14px !important; font-family: inherit !important;
    color: var(--sl-text) !important; outline: none !important;
    cursor: pointer !important;
    background: var(--sl-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
    height: auto !important; line-height: normal !important;
    box-shadow: none !important; box-sizing: border-box !important;
}

/* Body Layout */
.sl-body { display: grid; grid-template-columns: 1fr 420px; border: 1px solid var(--sl-border); overflow: hidden; background: var(--sl-white); }
.sl-map-wrap { position: relative; }
#sl-map { width: 100% !important; height: 100% !important; min-height: 560px; z-index: 1; }

/* Leaflet */
.sl-pin { background: none !important; border: none !important; }
.sl-popup { font-family: inherit; padding: 4px 0; }
.sl-popup strong { display: block; font-size: 14px; color: var(--sl-secondary); margin-bottom: 2px; }
.sl-popup em { display: block; font-style: normal; font-size: 11px; color: var(--sl-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.sl-popup span { display: block; font-size: 12px; color: var(--sl-muted); line-height: 1.4; }
.sl-popup a { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: #fff; background: var(--sl-primary); padding: 5px 14px; text-decoration: none; transition: opacity .2s; }
.sl-popup a:hover { opacity: .85; }

/* Sidebar */
.sl-sidebar { background: var(--sl-white); border-left: 1px solid var(--sl-border); overflow-y: auto; max-height: 600px; }
.sl-sidebar::-webkit-scrollbar { width: 3px; }
.sl-sidebar::-webkit-scrollbar-track { background: transparent; }
.sl-sidebar::-webkit-scrollbar-thumb { background: #ddd; }

.sl-sidebar-head {
    padding: 14px 22px;
    background: var(--sl-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sl-sh-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.7);
    font-size: 13px;
}
.sl-sh-left svg { color: rgba(255,255,255,.5); }
.sl-sh-left strong { color: #fff; font-weight: 700; }

/* Store Item */
.sl-item {
    padding: 20px 22px;
    border-bottom: 1px solid var(--sl-border);
    cursor: pointer;
    transition: background .15s;
    position: relative;
}
.sl-item:last-of-type { border-bottom: none; }
.sl-item:hover { background: #fdf6f7; }
.sl-item.active { background: #fdf6f7; }
.sl-item.active::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sl-primary); }

.sl-item-body { min-width: 0; }
.sl-item-city { font-size: 11px; font-weight: 700; color: var(--sl-primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.sl-item-name { font-size: 15px; font-weight: 600; color: var(--sl-secondary); margin: 0 0 8px; line-height: 1.3; }

.sl-item-meta {
    font-size: 13px;
    color: var(--sl-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 5px;
    line-height: 1.45;
}
.sl-item-meta svg { flex-shrink: 0; margin-top: 2px; color: #bbb; }

.sl-item-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sl-primary);
    text-decoration: none;
    margin-top: 10px;
    padding: 6px 16px;
    border: 1px solid var(--sl-primary);
    transition: all .2s;
}
.sl-item-link:hover { background: var(--sl-primary); color: #fff; }
.sl-item-link span { transition: transform .2s; display: inline-block; }
.sl-item-link:hover span { transform: translateX(3px); }

.sl-empty { padding: 48px 20px; text-align: center; color: var(--sl-muted); font-size: 14px; }

/* ============================================
   DETAY SAYFASI — v5
   ============================================ */
.sd-page { max-width: 1200px; margin: 0 auto; padding: 0 24px 72px; }

/* GALLERY CARD */
.sd-gallery-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--sl-white);
    border: 1px solid var(--sl-border);
    cursor: pointer;
    margin-bottom: 32px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.sd-gallery-card:hover { border-color: var(--sl-primary); box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.sd-gc-preview { display: flex; gap: 0; flex-shrink: 0; }
.sd-gc-thumb { width: 80px; height: 72px; overflow: hidden; border-right: 1px solid var(--sl-border); background: var(--sl-bg); display: flex; align-items: center; justify-content: center; }
.sd-gc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-gc-thumb-vid { background: var(--sl-secondary); }
.sd-gc-more { background: var(--sl-secondary); color: #fff; font-size: 15px; font-weight: 700; }

.sd-gc-info { flex: 1; padding: 14px 16px; min-width: 0; }
.sd-gc-title { display: block; font-size: 15px; font-weight: 700; color: var(--sl-secondary); margin-bottom: 2px; }
.sd-gc-meta { display: block; font-size: 13px; color: var(--sl-muted); }

.sd-gc-arrow { flex-shrink: 0; padding: 0 18px; color: var(--sl-border); transition: color .2s, transform .2s; }
.sd-gallery-card:hover .sd-gc-arrow { color: var(--sl-primary); transform: translateX(3px); }

/* 2 KOLON LAYOUT */
.sd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.sd-main { min-width: 0; }
.sd-aside { min-width: 0; }

/* BLOCKS */
.sd-block { margin-bottom: 32px; }
.sd-block h3 {
    font-size: 18px; font-weight: 700; color: var(--sl-secondary);
    margin: 0 0 18px; padding-bottom: 12px;
    border-bottom: 1px solid var(--sl-border); position: relative;
}
.sd-block h3::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 44px; height: 2px; background: var(--sl-primary); }
.sd-desc { font-size: 15px; line-height: 1.8; color: #555; }
.sd-desc p { margin: 0 0 12px; }

/* INFO LIST */
.sd-info-list { display: flex; flex-direction: column; }
.sd-irow { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sl-border); align-items: flex-start; }
.sd-irow:first-child { padding-top: 0; }
.sd-irow:last-child { border-bottom: none; padding-bottom: 0; }
.sd-iico { flex-shrink: 0; width: 36px; height: 36px; background: var(--sl-bg); display: flex; align-items: center; justify-content: center; color: var(--sl-primary); }
.sd-iico svg { width: 17px; height: 17px; }
.sd-ilbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sl-muted); margin-bottom: 2px; }
.sd-ival { font-size: 14px; color: var(--sl-text); line-height: 1.5; }
.sd-ival a { color: var(--sl-text); text-decoration: none; }
.sd-ival a:hover { color: var(--sl-primary); }

/* BUTTONS */
.sd-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.sd-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; font-size: 14px; font-weight: 600;
    font-family: inherit; text-decoration: none; transition: all .2s; letter-spacing: .01em;
}
.sd-btn-primary { background: var(--sl-primary); color: #fff; border: 1px solid var(--sl-primary); }
.sd-btn-primary:hover { background: var(--sl-secondary); border-color: var(--sl-secondary); color: #fff; }
.sd-btn-outline { background: transparent; color: var(--sl-secondary); border: 1px solid var(--sl-border); }
.sd-btn-outline:hover { border-color: var(--sl-primary); color: var(--sl-primary); }
.sd-btn-wa { background: #25D366; color: #fff; border: 1px solid #25D366; }
.sd-btn-wa:hover { background: #1fb855; border-color: #1fb855; color: #fff; }

/* MAP */
.sd-map-box { width: 100%; height: 440px; border: 1px solid var(--sl-border); overflow: hidden; }
.sd-map-box iframe { width: 100% !important; height: 100% !important; border: 0 !important; display: block; }

.sd-map-soon {
    width: 100%;
    height: 440px;
    border: 1px solid var(--sl-border);
    background: var(--sl-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 32px;
}
.sd-map-soon svg { color: var(--sl-muted); opacity: .4; }
.sd-map-soon span { font-size: 14px; font-weight: 600; color: var(--sl-muted); }
.sd-map-soon p { font-size: 13px; color: var(--sl-muted); opacity: .7; margin: 0; line-height: 1.5; }

/* ============================================
   GALLERY LIGHTBOX
   ============================================ */
.sd-lb { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.sd-lb.on { opacity: 1; visibility: visible; }
.sd-lb-bg { position: absolute; inset: 0; background: rgba(0,0,0,.95); cursor: pointer; }
.sd-lb-box { position: relative; z-index: 2; width: 94vw; max-width: 1100px; display: flex; flex-direction: column; align-items: center; }

.sd-lb-top { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 0 12px; }
.sd-lb-counter { font-size: 13px; color: rgba(255,255,255,.5); font-weight: 500; }
.sd-lb-x { width: 36px; height: 36px; border: none; background: none; color: rgba(255,255,255,.6); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color .15s; padding: 0; }
.sd-lb-x:hover { color: #fff; }

.sd-lb-stage { width: 100%; min-height: 300px; display: flex; align-items: center; justify-content: center; }

.sd-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border: none; background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s; padding: 0;
}
.sd-lb-nav:hover { background: rgba(255,255,255,.15); color: #fff; }
.sd-lb-prev { left: -60px; }
.sd-lb-next { right: -60px; }

@media (max-width: 1200px) {
    .sd-lb-prev { left: 8px; }
    .sd-lb-next { right: 8px; }
    .sd-lb-nav { background: rgba(0,0,0,.5); }
}

/* ============================================
   GRİD LİSTESİ
   ============================================ */
.sl-grid { display: grid; gap: 24px; max-width: 1200px; margin: 0 auto; }
.sl-grid-2 { grid-template-columns: repeat(2,1fr); }
.sl-grid-3 { grid-template-columns: repeat(3,1fr); }
.sl-grid-4 { grid-template-columns: repeat(4,1fr); }
.sl-grid-card { border: 1px solid var(--sl-border); background: var(--sl-white); overflow: hidden; transition: border-color .2s; }
.sl-grid-card:hover { border-color: var(--sl-primary); }
.sl-grid-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.sl-grid-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.sl-grid-card:hover .sl-grid-img img { transform: scale(1.03); }
.sl-grid-body { padding: 20px; }
.sl-grid-body h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.sl-grid-body h3 a { color: var(--sl-secondary); text-decoration: none; }
.sl-grid-body h3 a:hover { color: var(--sl-primary); }
.sl-grid-body p { font-size: 13px; color: var(--sl-muted); margin: 0 0 4px; line-height: 1.5; }
.sl-grid-link { display: inline-block; font-size: 13px; font-weight: 600; color: var(--sl-primary); text-decoration: none; margin-top: 10px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .sl-body { grid-template-columns: 1fr; }
    .sl-sidebar { border-left: none; border-top: 1px solid var(--sl-border); max-height: 400px; }
    #sl-map { min-height: 400px !important; }
    .sd-layout { grid-template-columns: 1fr; }
    .sd-map-box { height: 360px; }
}
@media (max-width: 768px) {
    .sl-toolbar-inner { flex-direction: column !important; }
    .sl-search-box { width: 100% !important; }
    #sl-city-filter { flex: 1 1 auto !important; width: 100% !important; max-width: 100% !important; border-left: none !important; border-top: 1px solid var(--sl-border) !important; }
    .sd-lb-box { width: 96vw; }
    .sd-btns { flex-direction: column; }
    .sd-btn { justify-content: center; }
}
@media (max-width: 640px) {
    .sl-locator { margin: 20px auto; padding: 0 10px !important; }
    .sl-item { flex-direction: column; }
    .sl-item-img { width: 100%; height: 180px; }
    .sl-grid-2, .sl-grid-3, .sl-grid-4 { grid-template-columns: 1fr; }
    .sd-page { padding: 0 16px 48px; }
    .sd-layout { margin-top: 28px; gap: 28px; }
    .sd-map-box { height: 280px; }
}