/* 
   SporGoat - Style Sheet 
   Premium Glassmorphism & iOS/iPhone Aesthetic (Dark Mode First)
*/

/* Google Fonts - Outfit for a clean, modern geometric sans-serif look */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* === Light Color Palette (Logo-Inspired) === */
    --bg-main: #F5F0E8;          /* Logo’nun krem bej tonu */
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.48);
    --bg-glass-active: rgba(255, 255, 255, 0.82);
    --border-glass: rgba(70, 163, 181, 0.14);
    --border-glass-bright: rgba(70, 163, 181, 0.32);
    
    --primary: #2D8FA0;          /* Koyu teal — logonun en doygun tonu */
    --primary-glow: rgba(45, 143, 160, 0.22);
    --accent: #46A3B5;           /* Orta teal */
    --accent-glow: rgba(70, 163, 181, 0.2);
    --accent-soft: #8DC0BB;      /* Mint — logonun açık tonu */
    
    --text-primary: #1A2E35;     /* Çok koyu teal—hemen siyah hissi */
    --text-secondary: #4A7080;   /* Orta teal */
    --text-muted: #7EA8B4;       /* Açık teal */
    
    /* System Values */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius-ios-sm: 10px;
    --radius-ios-md: 20px;
    --radius-ios-lg: 24px;
    --radius-ios-xl: 32px;
    --shadow-ios: 0 4px 24px 0 rgba(45, 143, 160, 0.10), 0 1px 4px rgba(0,0,0,0.06);
    --shadow-card: 0 2px 12px rgba(45, 143, 160, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Reset & Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 0px;
    position: relative;
}

/* Decoupled background layer for 60-120 FPS GPU hardware acceleration on mobile & Android WebView */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(
            rgba(245, 240, 232, 0.70),
            rgba(245, 240, 232, 0.70)
        ),
        url('../assets/images/bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #E8E2D6;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-soft);
    border-radius: var(--radius-ios-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Background Animated Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;   /* Açık temada daha hafif blob */
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #9EC8BA; /* Mint Green from Logo */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, -50px) scale(0.9); }
}

/* Glassmorphism Helper Class — Light Edition */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-ios-md);
    box-shadow: 0 8px 32px 0 rgba(45, 143, 160, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.glass-panel-interactive {
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-ios-md);
    box-shadow: 0 8px 32px 0 rgba(45, 143, 160, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: var(--transition-bounce);
    cursor: pointer;
}

.glass-panel-interactive:hover {
    background: var(--bg-glass-active);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(45, 143, 160, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.glass-panel-interactive:active {
    transform: scale(0.97);
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Top Header Navigation — Floating Glass Capsule */
.site-header {
    position: sticky;
    top: 16px;
    margin-top: 16px;
    z-index: 1000;
    max-width: 1160px;
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px) saturate(10%);
    -webkit-backdrop-filter: blur(8px) saturate(10%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-ios-xl);
    box-shadow: 0 12px 40px rgba(45, 143, 160, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    /* GPU katmanına al — backdrop-filter titremesini önler */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 16px 48px rgba(45, 143, 160, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transform: translateY(2px) scale(0.99) translateZ(0);
}

.site-header.hide-up {
    transform: translateY(-150%) translateZ(0) !important;
}

.site-header.scrolled .nav-container {
    height: 56px; /* Küçülmüş header yüksekliği */
}

.site-header.scrolled .logo-img {
    height: 60px;
    width: 60px;
    top: -2px;
    left: -35px;
    box-shadow: 0 2px 10px rgba(45, 143, 160, 0.14);
}

.site-header.scrolled .logo-link {
    width: 25px; /* Link genişliğini de küçült */
}

.site-header.scrolled .logo-text {
    margin-left: 32px; /* Yazıyı sola kaydır */
}

.site-header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 66px; /* 1/3 oranında küçültülmüş header yüksekliği (100px -> 66px) */
    position: relative;
    transition: height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    width: 120px; /* Logo genişliği kadar yer kaplasın */
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo-img {
    position: absolute;
    top: 0; /* Üstten sıfırlansın, alta taşsın */
    left: -54px;
    height: 120px; /* Şuanki boyunda kalsın (120px) */
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 4px 20px rgba(45, 143, 160, 0.18);
    z-index: 101;
    transform-origin: center center;
    transition: height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                top 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s ease;
}

.logo-img:hover {
    box-shadow: 0 6px 28px rgba(70, 163, 181, 0.30);
    transform: scale(1.03);
}

.site-header.scrolled .logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 90px;
    white-space: nowrap;
    transition: margin-left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header-nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-ios-sm);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
    background: rgba(70, 163, 181, 0.10);
    box-shadow: inset 0 1px 0 0 rgba(70, 163, 181, 0.15);
}

.nav-item.active {
    border: 1px solid rgba(70, 163, 181, 0.25);
    font-weight: 600;
}

/* Bottom Mobile App Bar (iPhone style) */
.mobile-nav-bar {
    position: fixed;
    bottom: 10px;
    left: 12px;
    right: 12px;
    height: 48px;
    z-index: 1000;
    display: none; /* Desktop hidden */
    justify-content: space-around;
    align-items: center;
    border-radius: var(--radius-ios-lg);
    padding: 0 4px;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-nav-bar.hide-down {
    transform: translateY(150%);
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1A2E35;
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 500;
    gap: 2px;
    height: 100%;
    width: 44px;
    padding: 4px 0 2px 0;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.mobile-nav-btn i, .mobile-nav-btn svg {
    font-size: 1rem;
    width: 18px;
    height: 18px;
    transition: var(--transition-bounce);
}

.mobile-nav-btn:hover, .mobile-nav-btn.active {
    color: var(--primary);
}

.mobile-nav-btn.active i, .mobile-nav-btn.active svg {
    transform: scale(1.12);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 32px 16px 8px 16px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1A2E35 0%, #2D8FA0 50%, #46A3B5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 16px auto;
    font-weight: 400;
}

/* Search Box Container */
.search-container {
    max-width: 600px;
    margin: 0 auto 32px auto;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 1.15rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-ios-xl);
    padding: 14px 20px 14px 28px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-card);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Branch Grid List */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    contain: layout style;
}

.branch-card {
    position: relative;
    height: 160px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 20px;
    text-decoration: none;
    border: 2px solid #f7958252 !important;
    border-radius: var(--radius-ios-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: 160px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.branch-card:hover {
    border-color: #f79582 !important;
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(247, 149, 130, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.8) !important;
}

.branch-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Açık temada bile kart görseli üzerindeki metin okunabilir kalsın */
    background: linear-gradient(to top, rgba(26, 46, 53, 0.95) 10%, rgba(26, 46, 53, 0.3) 60%, transparent 100%);
    z-index: 0;
}

.branch-card:hover .branch-card-bg {
    transform: scale(1.15) rotate(1.5deg);
    filter: brightness(1.15);
}

.branch-info {
    position: relative;
    z-index: 1;
}

.branch-icon-box {
    display: none; /* Icon box hidden — image is the visual */
}

.branch-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;  /* Kart görseli üzerinde her zaman beyaz */
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.branch-card-arrow {
    font-size: 0.9rem;
    color: #8DC0BB;   /* Mint tonu — görsel üzerinde belirgin */
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

.branch-card:hover .branch-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.branch-card-desc {
    display: none; /* Açıklamalar ana sayfada gösterilmiyor */
}

/* Branch Location Count Badge (Bottom Right - Clean number with shadow) */
.branch-count-badge {
    position: absolute;
    bottom: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 300;
    z-index: 2;
    display: inline-block;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.branch-card:hover .branch-count-badge {
    color: var(--accent, #f97316);
    transform: scale(1.15);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 1), 0 0 3px rgba(0, 0, 0, 1);
}

/* Branch Detail View CSS */
.branch-detail-header {
    position: relative;
    height: 350px;
    border-radius: var(--radius-ios-lg);
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-ios);
}

.branch-detail-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.branch-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.48) 0%, rgba(11, 15, 25, 0.1) 60%, transparent 100%);
    z-index: 0;
}

.branch-detail-header-content {
    position: relative;
    z-index: 1;
    padding: 30px 40px;
    width: 100%;
}

.btn-back {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(245, 240, 232, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(70, 163, 181, 0.25);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-ios-xl);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.btn-back:hover {
    background: #FFFFFF;
    border-color: var(--primary);
    transform: translateX(-3px);
}

.branch-title-large {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.branch-desc-large {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* Split Screen Layout (Map and List) */
.branch-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* Left: Finder Form & List */
.finder-controls {
    padding: 24px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--border-glass);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-ios-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.form-select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-select option {
    background: #FFFFFF;
    color: var(--text-primary);
}

.btn-gps {
    width: 100%;
    background: rgba(45, 143, 160, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(45, 143, 160, 0.35);
    color: var(--text-primary);
    padding: 14px;
    border-radius: var(--radius-ios-md);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-gps:hover {
    background: rgba(45, 143, 160, 0.9);
    border-color: var(--primary);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(45, 143, 160, 0.35);
}

.btn-gps:active {
    transform: scale(0.98);
}

/* 2-Button Layout Container */
.finder-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.btn-list-selected {
    background: rgba(45, 143, 160, 0.35);
    border-color: rgba(45, 143, 160, 0.6);
    color: var(--text-primary);
}

.btn-list-selected:hover {
    background: rgba(45, 143, 160, 0.95);
    color: #FFF;
    box-shadow: 0 6px 24px rgba(70, 163, 181, 0.3);
}

/* Locations List */
.locations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-item {
    padding: 20px;
    transition: var(--transition-bounce);
}

.location-item:hover, .location-item.active {
    background: var(--bg-glass-active);
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.location-item.active {
    border: 2px solid var(--primary);
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.location-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.location-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(45, 143, 160, 0.08);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: var(--radius-ios-sm);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(45, 143, 160, 0.2);
}

.location-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-meta-item i {
    color: var(--primary);
    font-size: 0.95rem;
    width: 16px;
}

.location-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.location-actions {
    display: flex;
    gap: 12px;
}

.btn-action-outline {
    flex: 1;
    background: transparent;
    border: 1.5px solid var(--border-glass-bright);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: var(--radius-ios-sm);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.image-lightbox img {
    max-width: 88vw;
    max-height: 85vh;
    border-radius: var(--radius-ios-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.image-lightbox.active img {
    transform: scale(1);
}
.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    line-height: 1;
}

.unread-dot-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
    line-height: 1;
    margin-left: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    vertical-align: middle;
}

.btn-action-outline:hover {
    background: rgba(70, 163, 181, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-map-focus {
    background: rgba(45, 143, 160, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-map-focus:hover {
    background: var(--primary);
    color: white;
}

/* Right: Map Container */
.map-sticky-wrapper {
    position: sticky;
    top: 90px;
    height: calc(100vh - 150px);
    border-radius: var(--radius-ios-lg);
    overflow: hidden;
    box-shadow: var(--shadow-ios);
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
    background: var(--bg-main);
}

/* Leaflet Custom Styles — Light Theme */
.leaflet-container {
    background: #E8F4F6 !important;
}

.leaflet-bar {
    border: 1px solid var(--border-glass-bright) !important;
    box-shadow: var(--shadow-card) !important;
    border-radius: var(--radius-ios-sm) !important;
}

.leaflet-bar a {
    background-color: #FFFFFF !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    transition: var(--transition-smooth);
}

.leaflet-bar a:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-glass-bright) !important;
    border-radius: var(--radius-ios-md) !important;
    box-shadow: var(--shadow-ios) !important;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid var(--border-glass) !important;
}

.popup-card {
    padding: 4px;
}

.popup-card h4 {
    font-weight: 700;
    margin-bottom: 4px;
}

.popup-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.popup-card a {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Branch Detail Trainers Section */
.branch-trainers-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Trainer Card Styles */
.trainer-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    content-visibility: auto;
    contain-intrinsic-size: 250px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.trainer-card-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.trainer-photo-wrapper {
    position: relative;
}

.trainer-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.trainer-exp-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-ios-sm);
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(45,143,160,0.3);
}

.trainer-name-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.trainer-rating-reviews {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.trainer-rating-reviews i {
    color: var(--accent);
}

.trainer-rating-reviews span {
    font-weight: 600;
}

.trainer-rating-reviews .reviews-count {
    color: var(--text-muted);
}

.trainer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.trainer-badge {
    background: rgba(70, 163, 181, 0.08);
    border: 1px solid rgba(70, 163, 181, 0.2);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-ios-sm);
}

.trainer-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trainer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 16px;
    margin-top: auto;
}

.trainer-price {
    display: flex;
    flex-direction: column;
}

.trainer-price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.trainer-price-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-contact {
    background: rgba(45, 143, 160, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(45, 143, 160, 0.3);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: var(--radius-ios-sm);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.btn-contact:hover {
    background: rgba(45, 143, 160, 0.9);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--primary-glow);
}

/* Empty State / No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.no-results p {
    font-size: 0.95rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .branch-content-layout {
        grid-template-columns: 1fr;
    }
    
    .map-sticky-wrapper {
        position: relative;
        top: 0;
        height: 350px;
        order: -1; /* Place map at the top on tablet/mobile */
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 0px; /* Changed as per user request */
    }
    
    .mobile-nav-bar {
        display: flex;
    }
    
    .site-header {
        top: 10px;
        margin-top: 10px;
        width: calc(100% - 24px);
    }
    
    .site-header .nav-container {
        justify-content: flex-end;
        height: 54px;
        padding: 0 16px;
        position: relative;
    }

    .site-header.scrolled .nav-container {
        height: 48px;
    }
    
    .header-nav {
        display: none; /* Hide header links, they are in the bottom app bar */
    }
    
    .logo-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        position: relative;
    }

    .site-header.scrolled .logo-link {
        width: 100%;
    }
    
    .logo-img {
        height: 60px;
        width: 60px;
        position: absolute;
        left: -20px;
        top: -2px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(45, 143, 160, 0.2);
    }
    
    .site-header.scrolled .logo-img {
        height: 60px;
        width: 60px;
        position: absolute;
        left: -20px;
        top: -2px;
    }
    
    .logo-text {
        font-size: 1.3rem;
        margin-left: 0;
    }

    .site-header.scrolled .logo-text {
        margin-left: 0;
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 16px 12px 6px 12px;
        margin-bottom: 10px;
    }
    
    .hero-title {
        font-size: clamp(1.15rem, 5.2vw, 1.75rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 6px;
    }
    
    .hero-subtitle {
        font-size: clamp(0.68rem, 2.5vw, 0.92rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0 auto 8px auto;
    }
    
    .search-container {
        margin: 0 auto 20px auto;
        padding: 0 4px;
    }
    
    .search-input {
        padding: 11px 14px 11px 22px;
        font-size: 0.92rem;
        border-radius: var(--radius-ios-lg);
    }
    
    .search-icon {
        left: 8px;
        font-size: 1.05rem;
    }
    
    .branch-card-title {
        font-size: 0.85rem; /* 2px daha düşürüldü */
        font-weight: 600; /* Font kalınlığı biraz azaltıldı */
    }

    .branch-count-badge {
        top: 10px;
        bottom: auto;
        right: 12px;
        font-size: 0.78rem; /* 2px azaltıldı */
    }
    
    .branch-detail-header {
        height: 250px;
    }
    
    .branch-detail-header-content {
        padding: 20px;
    }
    
    .branch-title-large {
        font-size: 1.75rem;
    }
    
    .branch-desc-large {
        font-size: 0.9rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .finder-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .branch-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 360px) {
    .branch-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PROFILE TABS --- */
.profile-tabs {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.profile-tabs::-webkit-scrollbar {
    height: 4px;
}
.profile-tabs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-glass);
    padding: 10px 16px;
    border-radius: var(--radius-ios-lg);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(45, 143, 160, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* File Upload input style */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}
.file-upload-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}
.file-upload-wrapper button,
.file-upload-wrapper .btn-action-outline {
    pointer-events: none;
}

/* Hide Map Attributions (OpenStreetMap copyright) */
.leaflet-control-attribution {
    display: none !important;
}

/* Header Dropdown */
.header-dropdown-wrap {
    position: relative;
    display: inline-block;
}
.header-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-ios-md);
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 8px 0;
}
.header-dropdown-wrap:hover .header-dropdown-menu,
.header-dropdown-wrap:focus-within .header-dropdown-menu {
    display: block;
}
.header-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.header-dropdown-item:hover {
    background: rgba(255,255,255,0.1);
}
.header-dropdown-item i {
    width: 16px; height: 16px;
}

/* Verified Badge Customization */
.lucide-badge-check {
    fill: #1d9bf0 !important;
    stroke: none !important; /* Removes white border */
}
.lucide-badge-check path:last-child, .lucide-badge-check polyline {
    stroke: #fff !important; /* Keeps checkmark white */
    stroke-width: 2 !important;
}

/* Custom White Ultra-Translucent Glass Tooltip & Popup for User Location */
.custom-blur-tooltip,
.custom-blur-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(8px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 12px !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    padding: 5px 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    text-align: center;
}

.custom-blur-tooltip::before {
    border-top-color: rgba(255, 255, 255, 0.22) !important;
}

.custom-blur-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(8px) !important;
}

/* ==========================================================================
   RESPONSIVE MOBILE STYLES (MESSAGING & ADMIN CMS)
   ========================================================================== */

/* 1. MESSAGING SYSTEM RESPONSIVE */
.chat-main-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
}

.chat-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    text-decoration: none;
    transition: background 0.2s;
}
.chat-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .chat-main-wrapper {
        grid-template-columns: 1fr !important;
        min-height: 480px !important;
        border-radius: 16px !important;
    }
    
    .chat-back-btn {
        display: inline-flex !important;
    }

    /* Active Conversation view: hide conversation list on phone screen */
    .chat-main-wrapper.has-active-chat .chat-sidebar {
        display: none !important;
    }
    .chat-main-wrapper.has-active-chat .chat-main-area {
        display: flex !important;
        width: 100% !important;
    }

    /* List view: show conversation list, hide empty right pane on phone screen */
    .chat-main-wrapper:not(.has-active-chat) .chat-sidebar {
        display: flex !important;
        width: 100% !important;
    }
    .chat-main-wrapper:not(.has-active-chat) .chat-main-area {
        display: none !important;
    }

    #chat-messages-body {
        padding: 14px !important;
        max-height: 380px !important;
    }
}

/* 2. ADMIN CMS PANEL RESPONSIVE */
.admin-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.admin-tabs::-webkit-scrollbar {
    height: 4px;
}
.admin-tabs::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.admin-modal-card {
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .admin-header-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .admin-tabs {
        width: 100%;
    }
    
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .admin-toolbar #admin-search {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .admin-toolbar #admin-add-btn {
        max-width: 100% !important;
        width: 100% !important;
    }

    .admin-table-responsive {
        border-radius: 8px !important;
    }

    .admin-table th, .admin-table td {
        padding: 10px 8px !important;
        font-size: 0.82rem !important;
        white-space: nowrap;
    }

    .admin-modal-card {
        padding: 16px !important;
        width: 95vw !important;
        max-height: 88vh !important;
    }
}

/* 3. PROFILE HEADER 3:2 MOBILE RATIO LAYOUT */
.profile-header-main {
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.profile-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.profile-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.profile-avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.profile-name-wrap {
    min-width: 0;
}

.profile-name-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-sub-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.profile-actions-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.profile-admin-btn {
    color: var(--accent);
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(249, 115, 22, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-ios-xl);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-logout-btn {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-ios-xl);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    /* 3:2 Ratio Grid on Mobile */
    .profile-header-main {
        display: grid !important;
        grid-template-columns: 3fr 2fr !important; /* 60% Left, 40% Right */
        gap: 10px !important;
        padding: 16px !important;
        align-items: center !important;
    }

    .profile-info-left {
        gap: 10px !important;
        min-width: 0 !important;
    }

    .profile-avatar-img,
    .profile-avatar-circle {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
    }

    .profile-name-title {
        font-size: 1rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .profile-sub-title {
        font-size: 0.72rem !important;
    }

    .profile-actions-right {
        flex-direction: column !important;
        gap: 6px !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .profile-admin-btn,
    .profile-logout-btn {
        padding: 6px 10px !important;
        font-size: 0.76rem !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Floating Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 2px 10px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 4px 15px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #fb923c 0%, var(--accent) 100%);
}

.back-to-top-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Mobile Map Close Button & Fixed Modal Overlay */
.mobile-map-close-btn {
    display: none;
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 80px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    /* Fixed Mobile Map Overlay */
    .map-panel.mobile-map-fixed-active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 10000 !important;
        background: rgba(11, 15, 25, 0.94) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }

    .map-panel.mobile-map-fixed-active .map-sticky-wrapper {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .map-panel.mobile-map-fixed-active #map {
        width: 100% !important;
        height: 100% !important;
        border-radius: 20px !important;
    }

    .map-panel.mobile-map-fixed-active .mobile-map-close-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        position: absolute;
        top: 28px;
        right: 28px;
        z-index: 10005;
        background: rgba(15, 23, 42, 0.9);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 8px 16px;
        border-radius: 24px;
        font-weight: 700;
        font-size: 0.85rem;
        cursor: pointer;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }
}

/* Mobile Touch & Hardware Acceleration Performance Optimizations */
html, body {
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

button, a, select, input, .btn, .card, .glass-panel, .trainer-card, .location-item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.trainer-card, .location-item, .glass-panel, .branch-card {
    transform: translateZ(0);
    will-change: transform, opacity;
}




