/* ============================================
   ROTA GÖSTER SAYFASI - MODERN CSS (OPTIMIZE)
   Prefix: rg- (route-goster)
   /tema/css/pages/rota-goster.css
   ============================================ */

/* ============================================
   GENEL KART STİLİ - TEKRAR KULLANILAN
   ============================================ */
.rg-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ============================================
   HERO KAPAK
   ============================================ */
.rg-hero-cover {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.rg-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-hero-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    pointer-events: none;
}

/* İSTATİSTİK OVERLAY */
.rg-stats-overlay {
    position: absolute;
    bottom: var(--spacing-lg);
    left: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.rg-stat-badge {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rg-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rg-stat-unit {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.rg-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   BAŞLIK VE YAZAR
   ============================================ */
.rg-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.3;
}

/* KULLANICI KARTI */
.rg-author-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: var(--spacing-lg);
}

.rg-author-card,
.rg-location-card,
.rg-feature-item,
.rg-feature-compact {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.rg-author-avatar,
.rg-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.rg-author-avatar {
    overflow: hidden;
    background: var(--bg-primary);
}

.rg-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.rg-author-info {
    flex: 1;
    min-width: 0;
}

.rg-author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rg-author-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.rg-author-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    padding: 4px 8px;
    transition: opacity var(--transition-fast);
}

.rg-author-link:active {
    opacity: 0.7;
}

.rg-link-arrow {
    transition: transform var(--transition-fast);
}

.rg-author-link:active .rg-link-arrow {
    transform: translateX(2px);
}

/* ============================================
   AKSİYON BUTONLARI
   ============================================ */
.rg-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: var(--spacing-lg);
}

.rg-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.rg-action-btn:active {
    transform: scale(0.95);
}

.rg-btn-icon {
    font-size: 1.2rem;
}

.rg-btn-edit {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    border: none;
    color: white;
}

.rg-btn-like.liked {
    background: #fee;
    border-color: var(--danger);
    color: var(--danger);
}

/* ============================================
   SEKSİYON VE İÇERİK
   ============================================ */
.rg-section {
    margin-bottom: var(--spacing-xl);
}

.rg-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* Diğer Rotalar Bölümü - Özel Stil */
.rg-section-other-routes {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-top: 32px;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.rg-section-other-routes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(37, 99, 235, 0.5) 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.rg-section-other-routes .rg-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* AÇIKLAMA */
.rg-description {
    padding: var(--spacing-md);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.rg-description,
.rg-map-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.rg-description p {
    margin-bottom: 1em; /* ya da 1.2em, 16px vs. */
}

/* ============================================
   HARİTA
   ============================================ */
.rg-map-wrapper {
    position: relative;
    overflow: hidden;
}

.rg-map {
    width: 100%;
    height: 300px;
}

.rg-map-marker {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rg-map-marker::before {
    content: '🚴';
    font-size: 16px;
    transform: rotate(45deg);
}

.rg-map-popup {
    font-size: 0.85rem;
    line-height: 1.5;
}

.rg-map-popup strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* Harita Kontrolleri */
.rg-map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rg-map-control-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.rg-map-control-btn:hover {
    background: var(--bg-primary);
    transform: scale(1.05);
    border-color: var(--accent);
}

.rg-map-control-btn:active {
    transform: scale(0.95);
}

[data-theme="dark"] .rg-map-control-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Harita Bilgi Kartı */
.rg-map-info-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--glass-bg);
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 200px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.rg-info-title {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rg-info-stats {
    display: flex;
    gap: 20px;
}

.rg-info-stat {
    flex: 1;
}

.rg-info-value {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent);
    line-height: 1.2;
}

.rg-info-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Tam Ekran Modu */
.rg-map-wrapper.fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: var(--bg-primary);
    overflow-y: auto;
}

/* == HARİTA VE GRAFİK ORANLARI - CSS DEĞİŞKENLERİ(Bu değerleri değiştirerek kolayca ayarlayın)
   == */
.rg-map-wrapper.fullscreen {
    /* Desktop için */
    --map-height-desktop: 65vh;
    --chart-height-desktop: 30vh;
    
    /* Mobil için */
    --map-height-mobile: 70vh;
    --chart-height-mobile: 25vh;
}

.rg-map-wrapper.fullscreen .rg-map {
    height: var(--map-height-desktop) !important;
    border-radius: 0;
    flex-shrink: 0; /* Yükseklik sabitlensin */
}

.rg-map-wrapper.fullscreen ~ .rg-section {
    display: none;
}

.rg-map-wrapper.fullscreen .rg-elevation-wrapper {
    display: block !important;
    height: var(--chart-height-desktop);
    background: var(--bg-secondary);
    padding: 20px;
    overflow: hidden;
    flex-shrink: 0; /* Yükseklik sabitlensin */
}

.rg-map-wrapper.fullscreen .rg-elevation-wrapper canvas {
    max-height: 100% !important;
}

.rg-map-wrapper.fullscreen .rg-map-controls {
    top: 20px;
    right: 20px;
}

.rg-map-wrapper.fullscreen .rg-map-info-card {
    bottom: auto;
    top: 20px;
}

[data-theme="dark"] .rg-map-wrapper.fullscreen {
    background: #0f172a;
}

[data-theme="dark"] .rg-map-wrapper.fullscreen .rg-elevation-wrapper {
    background: #1e293b;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* ============================================
   YÜKSELİŞ GRAFİĞİ
   ============================================ */
.rg-elevation-wrapper {
    background: var(--bg-secondary);
    padding: 2px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    touch-action: none;
}

#elevationChart {
    cursor: crosshair;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

#elevationChart:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.rg-active-popup .leaflet-popup-content-wrapper {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rg-active-popup .leaflet-popup-tip {
    background: rgba(0, 0, 0, 0.85);
}

/* ============================================
   ROTA ÖZELLİKLERİ - KOMPAKT YATAY SCROLL
   ============================================ */
.rg-features-compact {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.rg-features-compact::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.rg-feature-compact {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rg-feature-compact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rg-feature-compact-text {
    flex: 1;
    min-width: 0;
}

.rg-feature-compact-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.rg-feature-compact-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   ESKİ FEATURES STİLİ (SADECE AKORDEON İÇİN)
   Eğer Çözüm 3'ü kullanırsanız bunu tutun
   ============================================ */
.rg-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ============================================
   LOKASYON VE ÖZELLİKLER
   ============================================ */
.rg-location-card,
.rg-feature-item {
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rg-location-icon,
.rg-feature-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
}

.rg-location-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rg-icon-end {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

.rg-feature-icon {
    font-size: 1.8rem;
}

.rg-location-text,
.rg-feature-text {
    flex: 1;
}

.rg-location-label,
.rg-feature-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.rg-location-value,
.rg-feature-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   GALERİ VE VİDEOLAR - ORTAK STİL
   ============================================ */
.rg-gallery,
.rg-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* İlk galeri fotoğrafı tam genişlik */
.rg-gallery .rg-gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.rg-gallery-item,
.rg-video-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    cursor: pointer;
    border: 1px solid var(--border);
    transition: transform var(--transition-fast);
}

.rg-gallery-item {
    aspect-ratio: 1;
}

.rg-video-item {
    aspect-ratio: 9/16;
    position: relative;
}

.rg-gallery-item:active,
.rg-video-item:active {
    transform: scale(0.95);
}

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

.rg-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.rg-video-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 2;
}

/* ============================================
   DİĞER ROTALAR
   ============================================ */
.rg-other-routes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rg-route-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.rg-route-card:active {
    transform: scale(0.98);
}

.rg-route-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-primary);
    overflow: hidden;
}

.rg-route-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-route-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-tertiary);
}

.rg-route-info {
    padding: 10px;
}

.rg-route-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rg-route-distance {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent);
}

/* ============================================
   MODAL - GENEL
   ============================================ */
.rg-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
}

.rg-modal.active {
    display: flex;
}

.rg-modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    padding: var(--spacing-lg);
    position: relative;
}

.rg-modal-close,
.rg-gallery-close {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rg-modal-close {
    top: 12px;
    right: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.rg-gallery-close {
    top: 20px;
    left: 20px;
}

.rg-modal-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.rg-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.rg-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* ============================================
   NAVİGASYON MODAL
   ============================================ */
.rg-nav-info {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.rg-loader {
    text-align: center;
}

.rg-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rg-loader p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rg-error {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.rg-distance {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.rg-dist-item {
    text-align: center;
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    min-width: 100px;
}

.rg-dist-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.rg-dist-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.rg-dist-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.rg-nav-options {
    display: grid;
    gap: 10px;
}

.rg-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-base);
}

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

.rg-nav-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rg-nav-text {
    flex: 1;
}

.rg-nav-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.rg-nav-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.rg-nav-arrow {
    color: var(--text-tertiary);
    font-size: 1.2rem;
}

/* ============================================
   GALERİ VE VİDEO MODAL
   ============================================ */
.rg-gallery-viewer,
.rg-video-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.rg-gallery-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.rg-video-viewer iframe,
.rg-video-viewer video {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-lg);
}

.rg-gallery-counter {
    position: absolute;
    top: 70px;
    left: 40px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rg-gallery-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.rg-nav-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rg-nav-arrow:active {
    background: rgba(0, 0, 0, 0.8);
}

/* ============================================
   KOYU MOD ÖZELLEŞTİRMELERİ
   ============================================ */
[data-theme="dark"] .rg-map-info-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* iOS Safari için backdrop-filter fallback */
@supports not (backdrop-filter: blur(10px)) {
    .rg-map-info-card {
        background: var(--bg-secondary);
    }
    
    [data-theme="dark"] .rg-map-info-card {
        background: rgba(30, 41, 59, 0.95);
    }
}

/* ============================================
   RESPONSIVE - TABLET & DESKTOP
   ============================================ */
@media (min-width: 768px) {
    .rg-hero-cover {
        height: 440px;
    }
    
    .rg-actions {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* YENİ: Kompakt features tablet'te grid'e dönüşüyor */
    .rg-features-compact {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        overflow-x: visible;
    }
    
    .rg-feature-compact {
        min-width: auto;
    }
    
    /* ESKİ: Sadece akordeon için */
    .rg-features {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .rg-gallery,
    .rg-videos {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .rg-other-routes {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   RESPONSIVE - MOBİL
   ============================================ */
@media (max-width: 480px) {
    /* Mobilde farklı oranlar */
    .rg-map-wrapper.fullscreen .rg-map {
        height: var(--map-height-mobile) !important;
    }
    
    .rg-map-wrapper.fullscreen .rg-elevation-wrapper {
        height: var(--chart-height-mobile);
        padding: 15px;
    }
    
    /* Harita kontrolleri daha küçük */
    .rg-map-controls {
        flex-direction: row;
        top: 10px;
        right: 10px;
    }
    
    .rg-map-control-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Bilgi kartı daha kompakt */
    .rg-map-info-card {
        left: 10px;
        bottom: 10px;
        padding: 10px 12px;
        min-width: auto;
    }
    
    .rg-info-stats {
        gap: 12px;
    }
    
    .rg-info-value {
        font-size: 1.1rem;
    }
}

/* ============================================
   VIDEO KALİTE BİLDİRİMİ
   ============================================ */
.rg-video-quality-notice {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
    animation: none;
}

/* Sade fade-in animasyonu */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Sade fade-out animasyonu */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.rg-video-quality-notice-text {
    flex: 1;
}

.rg-video-quality-notice-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rg-video-quality-notice-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .rg-video-quality-notice {
        bottom: 60px;
        left: 10px;
        right: 10px;
        transform: translateX(0);
        font-size: 0.8rem;
        padding: 10px 12px;
    }
}
/* VİDEO KALİTE BİLDİRİMİ SONU */

/* ============================================
   DİĞER ROTALAR - DARK MODE & RESPONSIVE
   ============================================ */
[data-theme="dark"] .rg-section-other-routes {
    background: var(--bg-secondary);
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .rg-section-other-routes::before {
    background: linear-gradient(90deg, var(--accent) 0%, rgba(59, 130, 246, 0.6) 100%);
}

[data-theme="dark"] .rg-section-other-routes .rg-section-title {
    border-bottom-color: var(--border);
}

@media (max-width: 768px) {
    .rg-section-other-routes {
        padding: 20px;
        margin-top: 24px;
    }

    .rg-section-other-routes .rg-section-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .rg-section-other-routes {
        padding: 16px;
        border-radius: var(--radius-lg);
    }

    .rg-section-other-routes .rg-section-title {
        font-size: 1rem;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }
}

/* ============================================
   ÖZEL UYARI/ONAY MODALI
   ============================================ */
.rg-warning-modal-content {
    max-width: 420px;
    padding: 28px 24px 24px;
    text-align: center;
}

.rg-warning-header {
    margin-bottom: 20px;
}

.rg-warning-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    line-height: 1;
    animation: warningPulse 2s ease-in-out infinite;
}

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

.rg-warning-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.rg-warning-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 0 8px;
}

.rg-warning-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.rg-warning-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.rg-warning-btn:active {
    transform: scale(0.97);
}

.rg-warning-btn-cancel {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.rg-warning-btn-cancel:hover {
    background: var(--bg-secondary);
    border-color: var(--text-tertiary);
}

.rg-warning-btn-confirm {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.rg-warning-btn-confirm:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.rg-warning-btn-confirm:active {
    transform: translateY(0) scale(0.97);
}

/* Dark mode desteği */
[data-theme="dark"] .rg-warning-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

[data-theme="dark"] .rg-warning-btn-cancel {
    background: var(--bg-primary);
    border-color: var(--border);
}

[data-theme="dark"] .rg-warning-btn-cancel:hover {
    background: var(--bg-secondary);
}

/* Responsive */
@media (max-width: 480px) {
    .rg-warning-modal-content {
        padding: 24px 20px 20px;
        max-width: 90%;
    }

    .rg-warning-icon {
        font-size: 3rem;
    }

    .rg-warning-title {
        font-size: 1.15rem;
    }

    .rg-warning-message {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .rg-warning-actions {
        flex-direction: column;
        gap: 10px;
    }

    .rg-warning-btn {
        width: 100%;
    }
}

/* ============================================
   HARİTA KİLİT OVERLAY
   ============================================ */
.rg-map-wrapper {
    position: relative; /* zaten varsa tekrar yazmanıza gerek yok */
}

.rg-map-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    border-radius: inherit;

    /* Bulanık cam efekti */
    background: rgba(10, 18, 35, 0.30);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;
}

.rg-map-lock-box {
    text-align: center;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    color: #fff;
    max-width: 300px;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rg-map-lock-icon {
    font-size: 2.8rem;
    margin-bottom: 0.6rem;
    display: block;
}

.rg-map-lock-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.rg-map-lock-desc {
    font-size: 0.875rem;
    opacity: 0.82;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.rg-map-lock-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.15s;
}

.rg-map-lock-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}