/* ── Acaip Soslu Döner - Şubeler Sayfası ────────────── */
:root {
    --br-bg: #0d0e10;
    --br-card-bg: #16171b;
    --br-card-border: #292a2f;
    --br-card-hover: #382428;
    --br-red: #e9252b;
    --br-red-hover: #c81c25;
    --br-yellow: #ffd522;
    --br-text: #fff8ed;
    --br-muted: #a6a5ad;
}

.branches-page {
    color: var(--br-text);
    background: var(--br-bg);
    overflow-x: hidden;
    min-height: 520px;
    padding-block: 56px 80px;
}

.branches-container {
    width: min(1320px, calc(100% - 60px));
    margin-inline: auto;
}

.branches-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── 4. Şubeler Izgarası & Kartları ─────────────────────── */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.branch-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--br-card-border);
    border-radius: 18px;
    background: var(--br-card-bg);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.branch-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 37, 43, .65);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 25px rgba(233, 37, 43, .12);
}

.branch-card-photo {
    position: relative;
    overflow: hidden;
    background: #1f2025;
    aspect-ratio: 16 / 10;
}

.branch-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s cubic-bezier(.2, 0, .2, 1);
}

.branch-card:hover .branch-card-photo img {
    transform: scale(1.06);
}

.branch-photo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(13, 14, 16, .85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 213, 34, .3);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.branch-photo-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.branch-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.branch-card h2 {
    margin: 0 0 20px;
    color: #fff5df;
    font-family: var(--menu-font, "Nunito Sans", sans-serif);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.branch-details {
    display: grid;
    align-content: start;
    flex: 1;
    gap: 16px;
}

.branch-detail {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
    color: #c5c5cc;
    font-size: 15px;
    line-height: 1.7;
}

.branch-detail svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 3px;
    color: var(--br-yellow);
}

.branch-detail address {
    margin: 0;
    font-style: normal;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.branch-detail span {
    overflow-wrap: anywhere;
}

.branch-phone {
    color: var(--br-yellow);
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.branch-phone:hover {
    color: #fff;
    text-decoration: underline;
}

.branch-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #28292e;
}

.branch-directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--br-red);
    color: #ffffff;
    font-family: var(--menu-font, "Nunito Sans", sans-serif);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.branch-directions svg {
    width: 18px;
    height: 18px;
}

.branch-directions span {
    font-size: 18px;
    line-height: 1;
}

.branch-directions:hover {
    background: var(--br-red-hover);
    transform: translateY(-2px);
    color: #ffffff;
}

.branch-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 213, 34, .12);
    border: 1px solid rgba(255, 213, 34, .25);
    color: var(--br-yellow);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.branch-call-btn svg {
    width: 20px;
    height: 20px;
}

.branch-call-btn:hover {
    background: var(--br-yellow);
    color: #0d0e10;
    transform: translateY(-2px);
}

.branches-page a:focus-visible,
.branches-page button:focus-visible {
    outline: 2px solid var(--br-yellow);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ── 5. Boş Durum (Empty State) ────────────────────────── */
.branches-empty {
    display: grid;
    justify-items: center;
    padding: 70px 30px;
    border: 1px dashed #3a3b42;
    border-radius: 18px;
    background: #16171b;
    text-align: center;
    max-width: 650px;
    margin: 20px auto 0;
}

.branches-empty > svg {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    color: var(--br-yellow);
}

.branches-empty h2 {
    margin: 0 0 10px;
    color: #fff5df;
    font-family: var(--menu-font, "Nunito Sans", sans-serif);
    font-size: 28px;
    line-height: 1.3;
}

.branches-empty p {
    margin: 0;
    color: #b8b8bf;
    font-size: 16px;
    line-height: 1.8;
}

/* ── 6. Alt Franchise / Davet Bannerı ─────────────────── */
.branches-cta-banner {
    margin-top: 80px;
    padding: 45px 44px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1f1214 0%, #16171b 60%, #1e1913 100%);
    border: 1px solid #3c2428;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
}

.branches-cta-content {
    max-width: 680px;
}

.branches-cta-eyebrow {
    color: var(--br-yellow);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.branches-cta-content h3 {
    margin: 8px 0 10px;
    color: #ffffff;
    font-family: var(--menu-font, "Nunito Sans", sans-serif);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
}

.branches-cta-content p {
    margin: 0;
    color: #b6b5be;
    font-size: 16px;
    line-height: 1.7;
}

.branches-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 34px;
    border-radius: 12px;
    background: var(--br-yellow);
    color: #0d0e10;
    font-family: var(--menu-font, "Nunito Sans", sans-serif);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255, 213, 34, .35);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.branches-cta-btn:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(255, 255, 255, .4);
    color: #0d0e10;
}

/* ── 7. Responsive Tasarım ────────────────────────────── */
@media (max-width: 1000px) {
    .branches-container { width: calc(100% - 50px); }
    .branches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .branches-cta-banner { padding: 36px 30px; }
}

@media (max-width: 640px) {
    .branches-page { padding-top: 32px; }
    .branches-container { width: calc(100% - 32px); }
    .branches-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .branch-card-content { padding: 22px; }
    .branch-card h2 { font-size: 24px; margin-bottom: 16px; }
    .branches-cta-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .branches-cta-btn { justify-content: center; }
}
