/* ===========================================
   TARSUS GEZİ REHBERİ - ANA STİL DOSYASI
   Modern, Harita Tabanlı Tasarım
   =========================================== */

/* CSS Variables */
:root {
    /* Ana Renkler - Tarihi ve Sıcak Palet */
    --primary: #C45C26;
    --primary-dark: #9A4520;
    --primary-light: #E8845A;
    --secondary: #2C5F2D;
    --accent: #D4A574;
    --gold: #C9A227;
    
    /* Nötr Renkler */
    --dark: #1A1A2E;
    --dark-light: #16213E;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    
    /* Durum Renkleri */
    --success: #2E7D32;
    --warning: #ED6C02;
    --danger: #D32F2F;
    --info: #0288D1;
    
    /* Tipografi */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Z-index - Leaflet'ten yüksek olmalı (Leaflet: 400-1000 arası kullanıyor) */
    --z-dropdown: 1100;
    --z-header: 1050;
    --z-sidebar: 1040;
    --z-modal: 1060;
    --z-tooltip: 1070;
}

/* ===========================================
   RESET & BASE
   =========================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-100);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

/* ===========================================
   MAP PAGE - ANA SAYFA
   =========================================== */

.map-page {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Harita Header - Sabit Navbar */
.map-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(135deg, rgba(26,26,46,0.98) 0%, rgba(22,33,62,0.98) 100%);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    z-index: 1050;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.map-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.header-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    gap: var(--space-md);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.header-toggle-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    color: var(--white);
    letter-spacing: 0.5px;
}

.header-center {
    flex: 1;
    max-width: 450px;
}

/* Header Show Button (navbar gizliyken) */
.header-show-btn {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header-show-btn.visible {
    opacity: 1;
    visibility: visible;
}

.header-show-btn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.search-box input::placeholder {
    color: var(--gray-500);
}

.search-box input:focus {
    outline: none;
    background: rgba(255,255,255,0.12);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.2);
}

/* Header Right - Nav Buttons */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-btn i {
    font-size: 1rem;
}

.nav-btn .lang-flag {
    font-size: 1.2rem;
}

.nav-btn-text {
    display: inline;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    margin-top: var(--space-sm);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background: var(--gray-100);
}

.search-result-item:last-child {
    border-bottom: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Dil Seçici */
.language-selector {
    position: relative;
}

/* Dil butonu - Tüm sayfalarda çalışır */
.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Place/Page header'daki dil butonu */
.page-header .lang-btn,
.static-page .lang-btn {
    background: rgba(255,255,255,0.15);
    padding: 8px 14px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 180px;
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 16px;
    color: var(--gray-800);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.lang-item:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.lang-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.lang-item .flag {
    font-size: 1.3rem;
}

.lang-item .name {
    font-weight: 500;
}

/* ===========================================
   HARITA
   =========================================== */

.full-map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Harita üzerindeki Leaflet kontrolleri */
.leaflet-top {
    top: 80px !important;
}

.map-page .leaflet-control-zoom {
    margin-top: 10px !important;
    margin-left: 10px !important;
}

/* Custom Marker */
.custom-marker {
    position: relative;
}

.marker-icon {
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.marker-pin {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.marker-pin::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid currentColor;
}

/* Rota Marker */
.route-marker .marker-pin {
    width: 44px;
    height: 44px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.marker-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    margin-top: 4px;
}

/* Popup */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

@media (max-width: 767px) {
    .leaflet-popup-content-wrapper {
        box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }
}

.leaflet-popup-content {
    margin: 0;
    min-width: 280px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .leaflet-popup-content {
        min-width: 320px;
        max-width: 400px;
    }
}

.popup-content {
    padding: 0;
}

.popup-image-container {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.popup-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.popup-image-placeholder {
    border-radius: 8px 8px 0 0;
    width: 100%;
    min-height: 140px;
    max-height: 300px;
}

/* Mobil Popup Görsel Düzenlemeleri */
@media (max-width: 767px) {
    .leaflet-popup-content-wrapper {
        border-radius: 12px;
        max-width: calc(100vw - 40px) !important;
        margin: 0 auto;
    }
    
    .leaflet-popup-content {
        min-width: 280px;
        max-width: calc(100vw - 40px) !important;
        width: calc(100vw - 40px) !important;
    }
    
    .popup-image-container {
        max-height: 220px;
        min-height: 160px;
        border-radius: 12px 12px 0 0;
        width: 100%;
    }
    
    .popup-image {
        max-height: 220px;
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
    
    .popup-image-placeholder {
        max-height: 220px;
        min-height: 160px;
        border-radius: 12px 12px 0 0;
        width: 100%;
    }
    
    .popup-body {
        padding: 14px;
    }
    
    .popup-title {
        font-size: 1.05rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .popup-description {
        font-size: 0.85rem;
        margin-bottom: 14px;
        line-height: 1.4;
    }
    
    .popup-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .popup-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* Popup'ı mobilde daha merkezi konumlandır */
    .leaflet-popup {
        margin-left: 0 !important;
        margin-top: -10px !important;
    }
    
    .leaflet-popup-tip {
        width: 16px;
        height: 16px;
    }
    
    /* Popup'ın ekrandan taşmaması için */
    .leaflet-popup-pane {
        max-width: 100vw;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    .leaflet-popup-content-wrapper {
        max-width: calc(100vw - 20px) !important;
    }
    
    .leaflet-popup-content {
        min-width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
    }
    
    .popup-image-container {
        max-height: 200px;
        min-height: 140px;
        border-radius: 10px 10px 0 0;
    }
    
    .popup-image {
        max-height: 200px;
    }
    
    .popup-image-placeholder {
        max-height: 200px;
        min-height: 140px;
        border-radius: 10px 10px 0 0;
    }
    
    .popup-body {
        padding: 12px;
    }
    
    .popup-title {
        font-size: 1rem;
    }
    
    .popup-description {
        font-size: 0.8rem;
    }
    
    .popup-btn {
        padding: 11px 14px;
        font-size: 0.85rem;
    }
}

.popup-body {
    padding: var(--space-md);
}

.popup-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.popup-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.popup-actions {
    display: flex;
    gap: var(--space-sm);
}

.popup-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
}

.popup-btn-primary {
    background: var(--primary);
    color: var(--white);
}

.popup-btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.popup-btn-vr {
    background: var(--secondary);
    color: var(--white);
}

.popup-btn-vr:hover {
    background: #234a24;
    color: var(--white);
}

/* ===========================================
   SIDEBAR
   =========================================== */

.sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 360px;
    height: calc(100% - 64px);
    background: var(--white);
    box-shadow: 4px 0 30px rgba(0,0,0,0.2);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s ease, top 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    transform: translateX(0);
}

/* Mobil için sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 360px;
    }
}

.sidebar-header {
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.3);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-tab {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.sidebar-tab i {
    font-size: 1.1rem;
}

.sidebar-tab:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.sidebar-tab.active {
    background: var(--white);
    color: var(--primary);
}

.sidebar-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.tab-count {
    background: var(--gray-300);
    color: var(--gray-700);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sidebar-tab.active .tab-count {
    background: var(--primary);
    color: var(--white);
}

/* Tab Content */
.sidebar-tab-content {
    display: none;
}

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

.tab-header {
    margin-bottom: var(--space-md);
}

.tab-description {
    font-size: 0.85rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-description i {
    color: var(--primary);
}

/* Places List */
.places-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.place-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.place-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.place-card-number {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.place-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.place-card-info {
    flex: 1;
    min-width: 0;
}

.place-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card-actions {
    display: flex;
    gap: 4px;
}

.place-card-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.place-card-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.place-card-btn.vr-btn {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.place-card-btn.vr-btn:hover {
    background: #9c27b0;
    color: var(--white);
}

/* Route Section - Legacy Support */
.route-section, .other-section, .category-section {
    margin-bottom: var(--space-xl);
}

.route-section h3, .other-section h3, .category-section h3 {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Route List */
.route-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.route-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.route-item:hover {
    background: var(--gray-200);
    transform: translateX(5px);
}

.route-item::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 100%;
    width: 2px;
    height: 8px;
    background: var(--primary);
}

.route-item:last-child::before {
    display: none;
}

.route-number {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.route-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.route-info span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Other List */
.other-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.other-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.other-item:hover {
    background: var(--gray-100);
}

.other-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.category-btn {
    padding: 8px 14px;
    border-radius: var(--radius-xl);
    background: var(--gray-200);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--transition-fast);
}

.category-btn:hover {
    background: var(--gray-300);
}

.category-btn.active {
    background: var(--cat-color, var(--primary));
    color: var(--white);
}

/* ===========================================
   MAP CONTROLS
   =========================================== */

.map-controls {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 1030;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-800);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.control-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* ===========================================
   MODALS
   =========================================== */

.place-modal, .vr-modal, .gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
}

.place-modal.active, .vr-modal.active, .gallery-modal.active {
    display: block;
}

.modal-overlay, .vr-overlay, .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-close, .vr-close, .gallery-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover, .vr-close:hover, .gallery-close:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.modal-body {
    padding: var(--space-xl);
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

/* VR Modal */
.vr-content {
    position: absolute;
    inset: 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
}

.panorama-container {
    width: 100%;
    height: 100%;
    background: #111;
}

/* Pannellum override */
.pnlm-container {
    background: #111 !important;
}

.pnlm-load-box {
    background: rgba(0,0,0,0.8) !important;
}

.pnlm-lmsg {
    color: #fff !important;
}

/* Map Scroll Hint */
.map-scroll-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 16px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90%;
}

.map-scroll-hint i {
    font-size: 1.2rem;
    color: var(--primary);
}

.map-scroll-hint.visible {
    opacity: 1;
}

/* Mobil için hint stili */
@media (max-width: 768px) {
    .map-scroll-hint {
        padding: 12px 20px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .map-scroll-hint i {
        font-size: 1rem;
    }
}

/* Gallery Modal */
.gallery-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 95vh;
}

.gallery-view img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.gallery-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-close:hover {
    background: rgba(0,0,0,0.9);
}

/* Mobil Galeri - Tam Ekran */
@media (max-width: 768px) {
    .gallery-view {
        max-width: 100vw;
        max-height: 100vh;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    
    .gallery-view img {
        max-width: 100%;
        max-height: 85vh;
        width: auto;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    }
    
    .gallery-close {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(10px);
    }
    
    .gallery-overlay {
        background: rgba(0,0,0,0.95);
    }
}

/* ===========================================
   PLACE PAGE - MEKAN DETAY
   =========================================== */

.place-page, .static-page, .search-page, .error-page {
    min-height: 100vh;
    background: var(--gray-100);
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(26,26,46,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    z-index: 1050;
}

.page-header .header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.page-header .language-selector {
    position: relative;
}

.page-header .lang-dropdown {
    z-index: 1100;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.page-title-header h1 {
    color: var(--white);
    font-size: 1.25rem;
}

/* Place Hero */
.place-hero {
    height: 60vh;
    min-height: 400px;
    background: var(--dark) center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: var(--space-2xl);
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.place-category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.place-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.place-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-vr {
    background: var(--secondary);
    color: var(--white);
}

.btn-vr:hover {
    background: #234a24;
    color: var(--white);
}

.btn-directions {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-directions:hover {
    background: var(--white);
    color: var(--dark);
}

/* Place Content */
.place-content {
    padding: var(--space-2xl);
    max-width: 1400px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
}

.content-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
}

.content-section h2 i {
    font-size: 1.2rem;
}

.description, .history, .tips {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.tips-section {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-left: 4px solid var(--gold);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Mini Map */
.mini-map {
    height: 200px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
}

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

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.info-list li i {
    color: var(--primary);
    margin-top: 3px;
}

.info-list li a {
    color: var(--gray-800);
}

.info-list li a:hover {
    color: var(--primary);
}

/* VR Card */
.btn-vr-full {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary) 0%, #1B5E20 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-fast);
}

.btn-vr-full:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Video Embed */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Related Places */
.related-places {
    margin-top: var(--space-2xl);
}

.related-places h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.related-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.related-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.related-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ===========================================
   STATIC PAGE
   =========================================== */

.page-content {
    padding: calc(70px + var(--space-2xl)) var(--space-xl) var(--space-2xl);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-article {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

.page-article h1, .page-article h2, .page-article h3 {
    margin: var(--space-xl) 0 var(--space-md);
}

.page-article p {
    margin-bottom: var(--space-md);
}

/* ===========================================
   SEARCH PAGE
   =========================================== */

.search-content {
    padding: calc(70px + var(--space-2xl)) var(--space-xl) var(--space-2xl);
}

.search-form-large {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 0 var(--space-md);
    max-width: 600px;
}

.search-form-large i {
    color: var(--gray-500);
}

.search-form-large input {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
}

.search-form-large input::placeholder {
    color: var(--gray-500);
}

.search-form-large input:focus {
    outline: none;
}

.search-form-large button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 800px;
    margin: var(--space-xl) auto;
}

.search-result-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.search-result-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
}

.result-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.result-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.no-results {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--gray-600);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

/* ===========================================
   ERROR PAGE
   =========================================== */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.error-content {
    text-align: center;
    padding: var(--space-2xl);
}

.error-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.error-content h1 {
    font-size: 8rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-content h2 {
    font-size: 2rem;
    color: var(--gray-400);
    margin-bottom: var(--space-md);
}

.error-content p {
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}

/* ===========================================
   FOOTER
   =========================================== */

.site-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: var(--space-2xl) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-md);
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo-icon {
    font-size: 2rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
}

.footer-brand p {
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a,
.footer-contact li {
    color: var(--gray-400);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: var(--space-md);
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom .footer-extra {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 100%;
    }
    
    .header-center {
        max-width: 280px;
    }
    
    .nav-btn-text {
        display: none;
    }
    
    .nav-btn {
        padding: 10px;
    }
    
    .place-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .map-header {
        height: 56px;
    }
    
    .header-container {
        padding: 0 var(--space-md);
    }
    
    .header-center {
        display: none;
    }
    
    .logo-text {
        display: none;
    }
    
    .header-toggle-btn {
        width: 32px;
        height: 32px;
    }
    
    .nav-btn {
        padding: 8px;
    }
    
    .nav-btn i {
        font-size: 1.1rem;
    }
    
    .header-show-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .leaflet-top {
        top: 70px !important;
    }
    
    .sidebar {
        top: 56px;
        height: calc(100% - 56px);
    }
    
    .place-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .place-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .place-content {
        padding: var(--space-lg);
    }
    
    .content-sidebar {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .map-controls {
        bottom: var(--space-lg);
        right: var(--space-md);
    }
    
    .control-btn {
        width: 42px;
        height: 42px;
    }
    
    .place-title {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: var(--space-lg);
    }
}

/* ===========================================
   ANIMATIONS
   =========================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* ===========================================
   LEAFLET OVERRIDES
   =========================================== */

/* Leaflet container z-index'i düşür */
.leaflet-container {
    z-index: 1 !important;
}

.leaflet-pane {
    z-index: 1 !important;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 1000 !important;
}

.leaflet-control {
    z-index: 1000 !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
    display: none !important; /* Kendi kontrollerimizi kullanıyoruz */
}

.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    color: var(--gray-800) !important;
    border-radius: var(--radius-md) !important;
}

.leaflet-control-zoom a:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

.leaflet-control-zoom a:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
}

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

.leaflet-popup-close-button {
    color: var(--gray-600) !important;
    font-size: 20px !important;
    padding: 8px !important;
}

/* Popup z-index */
.leaflet-popup {
    z-index: 1001 !important;
}

/* ===========================================
   PAGE GALLERY - Sayfa Galeri Slider
   =========================================== */
.page-gallery {
    margin-bottom: 2rem;
}

.gallery-slider {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .gallery-main {
        height: 300px;
    }
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-nav:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #111;
    overflow-x: auto;
    justify-content: center;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    flex-shrink: 0;
    border: 2px solid transparent;
    background: #222;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page Downloads - PDF İndirme */
.page-downloads {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.page-downloads h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-downloads h3 i {
    color: var(--primary);
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.download-item:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.download-item i {
    font-size: 2rem;
    color: #dc3545;
}

.download-name {
    flex: 1;
    font-weight: 500;
}

.download-btn {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-item:hover .download-btn {
    background: var(--primary-dark);
}

/* Mobil Galeri */
@media (max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 45px;
    }
    
    .download-item {
        flex-wrap: wrap;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* ===========================================
   SITE POPUP
   =========================================== */
.site-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.site-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.popup-container {
    position: relative;
    max-width: 400px;
    width: 85vw;
    animation: popupZoomIn 0.3s ease;
}

@keyframes popupZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s;
    z-index: 10;
}

.popup-close:hover {
    background: #f44336;
    color: #fff;
    transform: rotate(90deg);
}

.popup-link {
    display: block;
}

.popup-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: block;
}

/* Mobile Popup */
@media (max-width: 768px) {
    .site-popup {
        padding: 15px;
    }
    
    .popup-container {
        max-width: 320px;
        width: 85vw;
    }
    
    .popup-close {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .popup-image {
        border-radius: 10px;
    }
}

/* Küçük mobil */
@media (max-width: 400px) {
    .popup-container {
        max-width: 280px;
        width: 80vw;
    }
}
