@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* Standard Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* Üst bar konumu + tahmini yükseklik + sidebar arası boşluk */
    --app-top-bar-top: 0;
    --app-top-bar-block: 64px;
    --app-header-sidebar-gap: 12px;
    --app-top-ui-offset: calc(var(--app-top-bar-top) + var(--app-top-bar-block) + var(--app-header-sidebar-gap));
    --app-side-margin: 20px;
    /* Seyahat planı paneli ile üst auth şeridi arası (bitişik görünmesin) */
    --travel-plan-top-gap: 12px;
    /* Rotalar: açık akordeon içeriği max yükseklik + kaydırma */
    --routes-acc-panel-max-h: min(300px, calc(100vh - var(--app-top-ui-offset) - 200px));
    --header-ink: #000000;
    --header-muted: #000000;
    --header-cta: #1e293b;
    --header-search-bg: #f1f5f9;
    /* TRIAL cool-blue hover — silinebilir */
    --hover-cool-blue-bg: #eaf5fc;
    --hover-cool-blue-bg-strong: #d7eef9;
    --hover-cool-blue-text: #1a6f9c;
    --hover-cool-blue-border: rgba(70, 160, 210, 0.28);
}

body {
    height: 100vh;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* —— Premium / Lüks Dergi top bar —— */
.app-top-bar {
    position: absolute;
    top: var(--app-top-bar-top);
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    min-height: var(--app-top-bar-block);
    padding: 12px 32px;
    /* #dceef9 — opacity 0.42 (cam efekti) */
    background: rgba(220, 238, 249, 0.42);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
}

.app-top-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    flex: 1 1 0;
    z-index: 1;
}

.app-top-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    flex-shrink: 0;
    text-decoration: none;
    color: #000;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    pointer-events: auto;
}

.app-top-brand {
    display: none;
}

.app-top-primary {
    display: none;
}

.app-top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 2px 4px;
    min-width: 0;
    flex: 0 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.app-top-nav::-webkit-scrollbar {
    display: none;
}

.app-top-nav-item {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--header-muted);
    font-weight: 500;
    font-size: 0.94rem;
    letter-spacing: -0.01em;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease;
}

.app-top-nav-item:hover {
    background: transparent;
    color: var(--header-ink);
}

.app-top-nav-item.is-active {
    background: transparent;
    color: var(--header-ink);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--header-ink);
    border-radius: 0;
    padding-bottom: 6px;
}

.app-top-nav-item--muted,
.app-top-nav-item:disabled {
    opacity: 0.45;
    cursor: default;
}

.app-top-role-action {
    background: transparent;
    color: var(--header-muted);
    border: none;
}

.app-top-role-action:hover {
    background: transparent;
    color: var(--header-ink);
}

.app-top-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 12px;
    flex: 1 1 0;
    flex-shrink: 0;
    margin-left: 0;
    z-index: 1;
}

.app-top-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 180px;
    max-width: 240px;
}

.app-top-search-icon {
    position: absolute;
    left: 14px;
    display: inline-flex;
    color: #000;
    pointer-events: none;
}

.app-top-search-input,
#nav-search {
    width: 100%;
    border: none;
    outline: none;
    background: var(--header-search-bg);
    color: var(--header-ink);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 450;
    padding: 10px 14px 10px 40px;
    border-radius: 999px;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.app-top-search-input::placeholder,
#nav-search::placeholder {
    color: #94a3b8;
}

.app-top-search-input:focus,
#nav-search:focus {
    background: #e8eef5;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.08);
}

.app-top-notify,
#nav-notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #000;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.app-top-notify:hover,
#nav-notification-btn:hover {
    background: var(--header-search-bg);
    color: var(--header-ink);
}

.app-top-notify-dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px #fff;
}

.app-top-auth {
    display: none;
}

.app-top-auth > * {
    flex-shrink: 0;
    white-space: nowrap;
}

.app-top-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: var(--header-cta);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 10px 18px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.app-top-cta:hover {
    background: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}

.app-top-cta:active {
    transform: translateY(0);
}

.app-top-bar .lang-switcher #app-lang-select,
.app-top-bar #app-lang-select {
    color: #000;
    font-weight: 600;
    border-color: rgba(0, 0, 0, 0.15);
    background: transparent;
}

.app-top-auth-link {
    border: none;
    background: transparent;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease;
    cursor: pointer;
    font: inherit;
}

.app-top-auth-link:hover {
    background: var(--header-search-bg);
}

.app-top-auth-home {
    color: var(--header-muted);
}

.app-top-auth-profile {
    color: #000;
    padding-right: 12px;
    font-weight: 700;
}

.app-top-auth-profile #nav-profile-label,
#nav-profile-label {
    color: #000;
    font-weight: 700;
}

.app-top-auth-profile::after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #000;
}

.app-top-auth-editor,
.app-top-auth-admin {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--header-muted);
    padding: 8px 12px;
    border-radius: 999px;
}

.app-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    background: linear-gradient(145deg, #1e293b, #334155);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.app-user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.app-top-auth-logout {
    background: transparent;
    color: var(--header-muted);
    border: none;
    padding: 8px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.84rem;
    display: inline-block;
}

.app-top-auth-login {
    background: var(--header-cta);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

/* Profil açılır menü */
.app-top-profile-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profile-dropdown,
#profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1100;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: none;
}

.profile-dropdown.is-open,
#profile-dropdown-menu.is-open {
    display: block;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--header-ink);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.profile-dropdown-item:hover {
    background: #f8fafc;
}

.profile-dropdown-logout {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    background: transparent;
    color: #dc2626;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.profile-dropdown-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Bildirim çekmecesi */
.notification-panel,
.notification-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 92vw;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    background: #fff;
    z-index: 9999;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.notification-panel.active,
.notification-panel.is-open,
.notification-sidebar.active {
    transform: translateX(0);
}

.notification-panel-backdrop,
.notification-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.28);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.notification-panel-backdrop[hidden],
.notification-sidebar-backdrop[hidden] {
    display: none !important;
}

.notification-panel-header,
.notification-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #eef2f7;
}

.notification-panel-title,
.notification-sidebar-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--header-ink);
    letter-spacing: -0.02em;
}

.notification-panel-close,
.notification-sidebar-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--header-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.notification-panel-close:hover,
.notification-sidebar-close:hover {
    background: #e2e8f0;
    color: var(--header-ink);
}

.notification-panel-body,
.notification-sidebar-body {
    flex: 1;
    overflow: auto;
    padding: 24px 18px;
}

.notification-panel-empty,
.notification-sidebar-empty {
    margin: 0;
    text-align: center;
    color: var(--header-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .app-top-search {
        min-width: 140px;
        max-width: 170px;
    }
}

@media (max-width: 860px) {
    .app-top-bar {
        padding: 10px 14px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .app-top-left {
        flex: 1 1 0;
        min-width: 0;
    }

    .app-top-nav {
        display: none;
    }

    .app-top-search {
        display: none;
    }

    .app-top-controls {
        flex: 1 1 0;
        margin-left: 0;
    }
}

/* Sidebar panel kaydırma (üst menü ↔ sol panel) */
.sidebar-panels-viewport {
    width: 320px;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-panels-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-panels-track {
        transition: none;
    }
}

.sidebar-panel-slot {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.sidebar-panel-slot > #sidebar,
.sidebar-panel-slot > #sidebar-routes,
.sidebar-panel-slot > #sidebar-shopping {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}

#sidebar-routes,
#sidebar-shopping {
    width: 320px;
    height: 100%;
    background-color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#sidebar-routes {
    overflow: hidden;
}

#sidebar-shopping {
    overflow-y: auto;
}

#sidebar-routes > h2,
#sidebar-routes > small,
#sidebar-routes > hr {
    flex-shrink: 0;
}

#sidebar-routes h2,
#sidebar-shopping h2 {
    color: #333;
    margin-bottom: 5px;
}

#sidebar-routes small,
#sidebar-shopping small {
    display: block;
    color: #777;
    margin-bottom: 20px;
}

#sidebar-routes > hr,
#sidebar-shopping > hr {
    margin: 0 0 16px;
    border: none;
    border-top: 1px solid #dee2e6;
}

.sidebar-panel-placeholder {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Rotalar sol menü — akordeon */
.routes-accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    /* Dış liste: sınırda haritaya taşmasın; iç panelden zincirlenmiş kaydırma kabul edilir */
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #adb5bd transparent;
    padding-right: 2px;
}

.routes-accordion::-webkit-scrollbar {
    width: 6px;
}

.routes-accordion::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

.routes-accordion::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.routes-acc-item {
    flex-shrink: 0;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fafbfc;
    overflow: visible;
}

.routes-acc-item.is-open {
    background: #fff;
    border-color: #dee2e6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.routes-acc-trigger,
.routes-sub-trigger,
.routes-country-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border: none;
    background: transparent;
    color: #212529;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.routes-acc-trigger:hover,
.routes-sub-trigger:hover,
.routes-country-toggle:hover {
    background: #f1f3f5;
}

.routes-acc-trigger-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.routes-acc-label {
    min-width: 0;
    line-height: 1.35;
}

.routes-acc-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.routes-acc-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.routes-sub-trigger .routes-acc-icon,
.routes-country-toggle .routes-acc-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.routes-sub-trigger .routes-acc-icon svg,
.routes-country-toggle .routes-acc-icon svg {
    width: 24px;
    height: 24px;
}

.routes-acc-icon--nye { background: linear-gradient(145deg, #fff9db 0%, #ffe066 100%); }
.routes-acc-icon--trekking { background: linear-gradient(145deg, #ebfbee 0%, #b2f2bb 100%); }
.routes-acc-icon--festivals { background: linear-gradient(145deg, #e7f5ff 0%, #a5d8ff 100%); }
.routes-acc-icon--christmas { background: linear-gradient(145deg, #e6fcf5 0%, #96f2d7 100%); }
.routes-acc-icon--day { background: linear-gradient(145deg, #fff9db 0%, #d8f5a2 100%); }
.routes-acc-icon--multi { background: linear-gradient(145deg, #e7f5ff 0%, #d0ebff 100%); }
.routes-acc-icon--country { background: linear-gradient(145deg, #f3f0ff 0%, #d0bfff 100%); }

.routes-acc-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #868e96;
    transition: transform 0.25s ease;
}

.routes-acc-item.is-open > .routes-acc-trigger .routes-acc-chevron,
.routes-sub-item.is-open > .routes-sub-trigger .routes-acc-chevron,
.routes-country-menu.is-open > .routes-country-toggle .routes-acc-chevron {
    transform: rotate(180deg);
}

.routes-acc-panel {
    display: none;
    padding: 0 10px 10px;
}

.routes-acc-item.is-open > .routes-acc-panel {
    display: block;
    max-height: var(--routes-acc-panel-max-h);
    overflow-x: hidden;
    overflow-y: auto;
    /* Sınırda kaydırma dış (.routes-accordion) listeye geçer */
    overscroll-behavior-y: auto;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #868e96 transparent;
}

.routes-acc-item.is-open > .routes-acc-panel::-webkit-scrollbar {
    width: 6px;
}

.routes-acc-item.is-open > .routes-acc-panel::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 3px;
}

.routes-acc-item.is-open > .routes-acc-panel::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}

.routes-sub-item {
    border: 1px solid #edf0f2;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 6px;
}

.routes-sub-item:last-child {
    margin-bottom: 0;
}

.routes-sub-panel {
    display: none;
    padding: 0 8px 8px;
}

.routes-sub-item.is-open > .routes-sub-panel {
    display: block;
}

.routes-country-menu {
    border: 1px solid #edf0f2;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 6px;
}

.routes-country-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 4px 0 6px;
}

.routes-country-menu.is-open .routes-country-list {
    display: block;
}

.routes-country-list li {
    margin: 0;
}

.routes-country-btn,
.routes-link-btn {
    width: 100%;
    display: block;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: #495057;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.routes-country-btn:hover,
.routes-link-btn:hover {
    background: #e7f1ff;
    color: #0d6efd;
}

.routes-link-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.routes-empty-note {
    margin: 2px 0 0;
    padding: 10px 12px;
    color: #6c757d;
    font-size: 0.88rem;
    line-height: 1.45;
}

.routes-detail-body {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.55;
}

.routes-detail-body p {
    margin: 0 0 10px;
}

.routes-detail-body ul {
    margin: 0 0 10px 18px;
    padding: 0;
}

.routes-detail-meta {
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.routes-media-list {
    display: grid;
    gap: 10px;
}

.routes-media-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.routes-media-item img,
.routes-media-item video {
    width: 100%;
    display: block;
    max-height: 220px;
    object-fit: cover;
}

.routes-media-item small {
    display: block;
    padding: 8px 10px;
    color: #6c757d;
    font-size: 0.78rem;
}

/* Sidebar host: holds #premium-sidebar only (no legacy HTML panels) */
#sidebar-container {
    position: fixed;
    top: var(--app-top-bar-block);
    left: 0;
    height: calc(100vh - var(--app-top-bar-block));
    width: 0;
    overflow: visible; /* fixed premium-sidebar must not be clipped */
    z-index: 950;
    pointer-events: none; /* map clicks pass through; .premium-sidebar re-enables */
}

/* —— Premium 3-column expand: L1 | L2 | L3 hepsi yan yana —— */
.premium-sidebar {
    --w-l1: 179px; /* Sol menü */
    --w-l2: 336px; /* Katalog (%20 daraltılmış: 420→336) */
    --w-l3: 480px; /* Detay / reader */
    --premium-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --premium-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--w-l1); /* Sadece L1 */
    max-width: 98vw;
    margin: 0;
    z-index: 950;
    pointer-events: auto;
    border-radius: 0 24px 24px 0;
    background: transparent; /* renkler L1/L2/L3 panellerinde */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.05);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease;
    overflow: hidden;
    font-family: var(--premium-sans);
    color: #334155;
}

/* L1 + L2 */
.premium-sidebar.is-expanded {
    width: calc(var(--w-l1) + var(--w-l2));
}

/* L1 + L2 + L3 — üçü birden görünür (specificity > .is-expanded alone) */
.premium-sidebar.is-expanded.is-detail-open,
.premium-sidebar.is-detail-open {
    width: calc(var(--w-l1) + var(--w-l2) + var(--w-l3));
    max-width: min(99vw, calc(var(--w-l1) + var(--w-l2) + var(--w-l3) + 8px));
}

.premium-sidebar.is-collapsed {
    transform: translateX(calc(-100% + 10px));
    box-shadow: none;
    border-right-color: transparent;
    pointer-events: none;
}

.premium-sidebar.is-collapsed .premium-sidebar-edge {
    pointer-events: auto;
    width: 10px;
    opacity: 1;
}

.premium-sidebar-edge {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(71, 85, 105, 0.75) 100%);
    border-radius: 0 10px 10px 0;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.premium-sidebar-viewport {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.premium-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    flex-shrink: 0;
    padding: 20px 18px 28px;
    -webkit-overflow-scrolling: touch;
}

#panel-level-1 {
    width: var(--w-l1);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(138, 185, 211, 0.70); /* #8ab9d3, opacity korundu */
    padding: 16px 10px 24px 12px;
    text-align: left;
    align-items: stretch;
}

#panel-level-1 .premium-cat-list,
#panel-level-1 .premium-catalog-grid,
#panel-level-1 .premium-shell-note {
    width: 100%;
    text-align: left;
    justify-items: start;
    align-items: stretch;
}

#panel-level-1 .premium-cat-item {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    margin: 4px 0;
    padding: 10px 8px;
    gap: 10px;
    box-sizing: border-box;
}

#panel-level-1 .premium-cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
}

#panel-level-1 .premium-cat-label {
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.25;
}

#panel-level-1 .premium-shell-note {
    margin: 0;
    padding: 0;
}

#panel-level-1 .premium-catalog-grid {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 8px;
}

#panel-level-1 .premium-catalog-card {
    text-align: left;
}

#panel-level-1 .premium-catalog-meta {
    align-items: flex-start;
    text-align: left;
}

#panel-level-2 {
    width: var(--w-l2);
    padding: 0 0 22px; /* chrome L3 ile aynı dış hiza; içerik kendi padding'ini alır */
}

#panel-level-3 {
    width: var(--w-l3);
    padding: 0;
    overflow: hidden;
    --l3-accent: #1f8a4c;
    --l3-accent-soft: #e8f6ee;
    --l3-star: #f5b942;
    --l3-muted: #8b95a5;
    --l3-ink: #111827;
}

/* L2 + L3 aynı yüzey (renk / opacity / kenar) */
#panel-level-2,
#panel-level-3 {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(218, 236, 248, 0.35); /* #daecf8 */
    box-shadow: none;
}

/* L2 + L3 üst chrome: aynı padding / gap / dikey hiza */
#panel-level-2 .premium-panel-header,
#panel-level-2 .premium-panel-header--row,
.premium-l3-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 10px;
    min-height: 54px;
    box-sizing: border-box;
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#panel-level-2 .premium-panel-header--row {
    justify-content: flex-start;
}

.premium-l3-chrome {
    justify-content: space-between;
}

/* L2 back = L3 back (pill yok, aynı tipografi) */
#panel-level-2 .premium-back-btn,
.premium-l3-back {
    flex: 0 0 auto;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px 4px !important;
    border-radius: 8px !important;
    color: #111827 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

#panel-level-2 .premium-back-btn:hover,
.premium-l3-back:hover {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

/* L2 başlık, L3 sekmeleri ile aynı dikey merkez */
#panel-level-2 .premium-panel-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 600;
    min-width: 0;
}

#panel-level-2 .premium-panel-sub {
    margin-top: 5px;
    font-size: 0.7rem;
}

#panel-level-2 .premium-catalog-grid {
    gap: 11px;
    padding: 6px 14px 0;
}

#panel-level-2 .premium-catalog-card {
    border-radius: 13px;
    min-height: 134px;
}

#panel-level-2 .premium-catalog-cover {
    min-height: 134px;
    border-radius: 11px;
    flex: 1 1 auto;
}

#panel-level-2 .premium-catalog-meta {
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.78));
}

#panel-level-2 .premium-catalog-name {
    font-size: 0.84rem;
    color: #fff !important;
}

#panel-level-2 .premium-catalog-count,
#panel-level-2 .premium-catalog-rating {
    margin-top: 3px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

#panel-level-2 .premium-shell-note {
    margin: 13px 14px 0;
    font-size: 0.66rem;
}

/* —— L3: sticky chrome (back + tabs + actions) / scrolling body —— */
.premium-l3 {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.premium-l3-chrome {
    flex: 0 0 auto;
}

.premium-l3-chrome-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.premium-l3-back-arrow {
    margin-right: 4px;
}

.premium-l3-chrome-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.premium-l3-icon-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #4b5563;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.premium-l3-icon-btn:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--l3-ink);
}

.premium-l3-tabs {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.premium-l3-tabs::-webkit-scrollbar {
    display: none;
}

.premium-l3-tabs[hidden] {
    display: none !important;
}

.premium-l3-tab {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #64748b;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.premium-l3-tab:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

.premium-l3-tab.is-active {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.08);
    font-weight: 600;
}

.premium-l3-rule {
    flex: 0 0 auto;
    height: 1px;
    margin: 0 14px;
    background: rgba(15, 23, 42, 0.08);
}

.premium-l3-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 18px 28px;
    text-align: left;
}

/* Avatars */
.premium-l3-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #cbd5e1, #64748b);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-sizing: border-box;
}

.premium-l3-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.premium-l3-avatar--lg { width: 46px; height: 46px; font-size: 1rem; }
.premium-l3-avatar--md { width: 38px; height: 38px; font-size: 0.85rem; }
.premium-l3-avatar--sm { width: 28px; height: 28px; font-size: 0.7rem; margin-left: -8px; }
.premium-l3-avatar--sm:first-child { margin-left: 0; }

/* Author */
.premium-l3-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 16px;
    position: relative;
}

.premium-l3-author-meta {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

.premium-l3-author-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-l3-author-name {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--l3-ink);
    line-height: 1.2;
}

button.premium-l3-author-trigger {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

button.premium-l3-author-trigger:hover,
button.premium-l3-author-trigger[aria-expanded="true"] {
    color: var(--l3-accent, #0f766e);
    text-decoration-color: currentColor;
}

.l3-author-mini-card {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 40;
    width: min(280px, calc(100vw - 48px));
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.l3-author-mini-card-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.l3-author-mini-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.l3-author-mini-card-who {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.l3-author-mini-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.l3-author-mini-card-role {
    font-size: 0.72rem;
    color: #64748b;
}

.l3-author-mini-card-close {
    border: none;
    background: #f1f5f9;
    color: #475569;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.l3-author-mini-card-bio {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #334155;
}

.l3-author-mini-card-bio.is-empty {
    color: #94a3b8;
    font-style: italic;
}

.l3-author-mini-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
}

.l3-author-mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.l3-author-mini-stat-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}

.l3-author-mini-stat-lbl {
    font-size: 0.62rem;
    color: #64748b;
    font-weight: 500;
}

.l3-author-mini-card-loading {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    padding: 6px 2px;
}

.l3-author-mini-card-loading.is-error {
    color: #b91c1c;
}

.premium-l3-verified {
    flex-shrink: 0;
}

.premium-l3-author-title {
    margin: 3px 0 0;
    font-size: 0.8rem;
    color: var(--l3-muted);
    font-weight: 400;
}

.premium-l3-follow-btn {
    flex: 0 0 auto;
    border: 1.5px solid var(--l3-accent);
    background: #fff;
    color: var(--l3-accent);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.premium-l3-follow-btn:hover {
    background: var(--l3-accent-soft);
}

.premium-l3-title {
    text-align: left;
    margin: 0 0 6px;
    font-size: 1.7rem;
    line-height: 1.15;
}

.premium-l3-subtitle {
    margin: 0 0 12px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #6b7280;
    text-align: left;
}

.premium-l3-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 16px;
    text-align: left;
    color: #6b7280;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
}

.premium-l3-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.premium-l3-meta-icon {
    flex-shrink: 0;
    color: #6b7280;
}

.premium-l3-slider {
    position: relative;
    margin: 0 0 16px;
}

.premium-l3-slides {
    position: relative;
}

.premium-l3-slide {
    display: none;
}

.premium-l3-slide.is-active {
    display: block;
}

.premium-l3-slide-cover {
    margin-bottom: 0;
    border-radius: 14px;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 280px;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.premium-l3-slider-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--l3-ink);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
    z-index: 2;
}

.premium-l3-slider-prev { left: 10px; }
.premium-l3-slider-next { right: 10px; }

.premium-l3-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.premium-l3-thumb {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
    cursor: pointer;
    overflow: hidden;
}

.premium-l3-thumb.is-active {
    border-color: var(--l3-accent);
}

.premium-l3-thumb-more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 39, 0.55);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Editor note card */
.premium-l3-note-card {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--l3-accent-soft);
    color: #14532d;
}

.premium-l3-note-card.is-empty {
    background: #f8fafc;
    color: #64748b;
}

.premium-l3-note-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--l3-accent);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.88rem;
}

.premium-l3-note-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #166534;
}

.premium-l3-note-card.is-empty .premium-l3-note-text {
    color: #94a3b8;
}

.premium-l3-note-more {
    margin-top: 8px;
    border: none;
    background: none;
    padding: 0;
    color: var(--l3-accent);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.premium-l3-notes-empty {
    font-style: italic;
}

/* Rating */
.premium-l3-rating-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    margin-bottom: 6px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.premium-l3-rating-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-width: 0;
}

.premium-l3-rating-score {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    color: var(--l3-ink);
}

.premium-l3-rating-count {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    color: var(--l3-muted);
    font-weight: 500;
}

.premium-l3-travelers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.premium-l3-travelers-stack {
    display: flex;
    align-items: center;
}

.premium-l3-travelers-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}

.premium-l3-stars {
    display: inline-flex;
    gap: 1px;
    color: #e5e7eb;
    font-size: 1.05rem;
    line-height: 1;
}

.premium-l3-star {
    color: inherit;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    line-height: 1;
}

.premium-l3-star.is-on {
    color: var(--l3-star);
}

.premium-l3-stars.is-interactive .premium-l3-star {
    cursor: pointer;
    font-size: 1.45rem;
    padding: 2px 3px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.premium-l3-stars.is-interactive .premium-l3-star:hover {
    transform: scale(1.08);
}

/* Comments */
.premium-l3-reviews {
    margin-top: 16px;
}

.premium-l3-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.premium-l3-reviews-head .premium-reader-reviews-title {
    margin: 0;
    font-size: 1.05rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--l3-ink);
}

.premium-l3-see-all {
    border: none;
    background: none;
    padding: 0;
    color: var(--l3-accent);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.premium-l3-reviews-empty {
    margin: 0;
    font-size: 0.88rem;
    color: #94a3b8;
}

.premium-l3-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.premium-l3-review-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.premium-l3-review-main {
    flex: 1 1 auto;
    min-width: 0;
}

.premium-l3-review-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.premium-l3-review-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--l3-ink);
}

.premium-l3-review-time {
    font-size: 0.75rem;
    color: var(--l3-muted);
}

.premium-l3-review-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #4b5563;
}

.premium-l3-review-like {
    flex: 0 0 auto;
    border: none;
    background: none;
    color: #c4c9d2;
    padding: 2px;
    cursor: default;
    margin-top: 2px;
}

.premium-l3-compose {
    margin-top: 22px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.premium-l3-compose-label {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
}

.premium-l3-compose-hint {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.premium-l3-compose-text {
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0f172a;
    resize: vertical;
    min-height: 84px;
}

.premium-l3-compose-text:focus {
    outline: none;
    border-color: rgba(31, 138, 76, 0.45);
    box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.1);
}

.premium-l3-compose-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.premium-l3-compose-count {
    font-size: 0.78rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.premium-l3-compose-submit {
    border: none;
    border-radius: 999px;
    background: var(--l3-accent);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 9px 18px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.premium-l3-compose-submit:hover {
    opacity: 0.92;
}

.premium-l3-compose-msg {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #166534;
}

.premium-l3-compose-msg.is-error {
    color: #b91c1c;
}


/* —— Editör Masası (#editor-sidebar) — same surface as #premium-sidebar (under header) —— */
.editor-sidebar {
    /* Match premium expanded width: L1+L2 = 179+336 = 515 */
    --editor-nav-w: 90px;
    --editor-work-w: 425px;
    position: fixed;
    top: var(--app-top-bar-block);
    left: 0;
    height: calc(100vh - var(--app-top-bar-block));
    max-height: calc(100vh - var(--app-top-bar-block));
    display: flex;
    z-index: 950; /* same layer as premium; header (1000) stays on top */
    border-radius: 0 24px 24px 0;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    width: var(--editor-nav-w);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s ease;
    font-family: 'Inter', system-ui, sans-serif;
    color: #334155;
    pointer-events: auto;
}

.editor-sidebar.is-hidden {
    transform: translateX(-100%);
    pointer-events: none;
    visibility: hidden;
}

.editor-sidebar.is-expanded {
    width: calc(var(--editor-nav-w) + var(--editor-work-w));
}

.editor-nav-col {
    width: var(--editor-nav-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    background: transparent;
}

.editor-nav-header {
    padding: 20px 8px 16px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.editor-user-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}

.editor-user-avatar.app-user-avatar,
.app-user-avatar.editor-user-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    font-size: 1rem;
}

.editor-user-name {
    display: block;
    max-width: 100%;
    padding: 0 4px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    color: #0f172a;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-nav-btn {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.editor-nav-btn:hover,
.editor-nav-btn.is-active {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.editor-nav-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.editor-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
}

.editor-workspace-col {
    width: var(--editor-work-w);
    flex-shrink: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.95); /* Solidify workspace legibility */
}

.editor-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.editor-panel.is-active {
    opacity: 1;
    pointer-events: auto;
}

.editor-panel .premium-panel-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 20px 24px;
}

.editor-sidebar .premium-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.editor-sidebar .premium-input:focus {
    outline: none;
    border-color: rgba(15, 23, 42, 0.35);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.builder-timeline-container {
    margin-top: 8px;
    min-height: 120px;
    border: 1px dashed rgba(15, 23, 42, 0.15);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.35);
}

.premium-sidebar h1,
.premium-sidebar h2,
.premium-sidebar h3,
.premium-panel-title,
.premium-catalog-name,
.premium-reader-title,
.premium-reader-reviews-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* Katalog karti: isim/sayi fotograf uzerinde beyaz kalsin (yukaridaki h3 rengi ezmesin) */
.premium-catalog-meta .premium-catalog-name,
.premium-sidebar .premium-catalog-meta .premium-catalog-name,
.premium-sidebar .premium-catalog-meta h3.premium-catalog-name {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.premium-catalog-meta .premium-catalog-count,
.premium-sidebar .premium-catalog-meta .premium-catalog-count,
.premium-catalog-meta .premium-catalog-rating,
.premium-sidebar .premium-catalog-meta .premium-catalog-rating {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.premium-sidebar p,
.premium-sidebar button,
.premium-sidebar input,
.premium-sidebar select,
.premium-sidebar textarea,
.premium-sidebar label,
.premium-panel-sub,
.premium-cat-label,
.premium-catalog-count,
.premium-catalog-rating,
.premium-shell-note,
.premium-reader-author-name,
.premium-reader-notes {
    font-family: 'Inter', system-ui, sans-serif;
}

.premium-panel-header {
    position: relative;
    flex: 0 0 auto;
    padding: 22px 22px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.22);
}

.premium-panel-header--row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
}

.premium-panel-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
}

.premium-panel-sub {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 400;
}

.premium-collapse-btn,
.premium-back-btn {
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.55);
    color: #475569;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 12px;
    transition: all 0.25s ease;
}

.premium-collapse-btn {
    position: absolute;
    top: 18px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.premium-collapse-btn:hover,
.premium-back-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.premium-panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 8px 24px;
}

.premium-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.premium-cat-item {
    width: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    margin: 8px 16px;
    border-radius: 12px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #334155;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
}

.premium-cat-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(6px);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.premium-cat-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    color: #475569;
    border: 1px solid rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.premium-cat-icon--img {
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
}

.premium-cat-icon--img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.premium-cat-item:hover .premium-cat-icon {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.premium-cat-label {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.premium-catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 10px;
}

.premium-catalog-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
    min-height: 168px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.premium-catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.premium-catalog-cover {
    width: 100%;
    flex: 1 1 auto;
    min-height: 120px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.premium-catalog-cover--a { background-image: linear-gradient(145deg, #cbd5e1, #64748b); }
.premium-catalog-cover--b { background-image: linear-gradient(145deg, #a8a29e, #57534e); }
.premium-catalog-cover--c { background-image: linear-gradient(145deg, #94a3b8, #334155); }
.premium-catalog-cover--d { background-image: linear-gradient(145deg, #d6d3d1, #78716c); }

.premium-catalog-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 12px 12px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.72));
    color: #fff;
}

.premium-catalog-name {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.01em;
}

.premium-catalog-count,
.premium-catalog-rating {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.78rem;
    opacity: 0.85;
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
}

.premium-shell-note {
    margin: 16px 12px 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
}

/* Level 2 filters / search inputs (shell + future controls) */
.premium-sidebar input[type="search"],
.premium-sidebar input[type="text"],
.premium-sidebar input[type="email"],
.premium-sidebar input:not([type]),
.premium-sidebar select,
.premium-sidebar textarea,
.premium-sidebar .premium-filter-input,
.premium-sidebar .premium-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px 16px;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    box-sizing: border-box;
}

.premium-sidebar input[type="search"]:focus,
.premium-sidebar input[type="text"]:focus,
.premium-sidebar input[type="email"]:focus,
.premium-sidebar input:not([type]):focus,
.premium-sidebar select:focus,
.premium-sidebar textarea:focus,
.premium-sidebar .premium-filter-input:focus,
.premium-sidebar .premium-search-input:focus {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

.premium-reader-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.premium-reader-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e293b, #64748b);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.premium-reader-author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.premium-reader-title {
    margin: 0 0 16px;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.premium-reader-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 280px;
    border-radius: 16px;
    margin-bottom: 18px;
    background: linear-gradient(145deg, #94a3b8, #334155);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.premium-reader-notes {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}

.premium-reader-notes p {
    margin: 0 0 12px;
}

.premium-reader-reviews {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.premium-reader-reviews-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

@media (max-width: 720px) {
    .premium-sidebar {
        --w-l1: min(179px, 42vw);
        --w-l2: min(360px, 46vw);
        border-radius: 0 18px 18px 0;
    }

    .premium-sidebar.is-expanded {
        max-width: 92vw;
    }

    .premium-sidebar.is-expanded.is-detail-open,
    .premium-sidebar.is-detail-open {
        max-width: 98vw;
    }

    .premium-cat-item {
        margin: 6px 10px;
        padding: 12px 16px;
    }
}

#content-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Sidebar Styling */
#sidebar {
    width: 320px;
    height: 100%;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#sidebar:not(.profile-sidebar) {
    overflow: hidden;
}

.main-sidebar-header {
    flex: 0 0 auto;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.main-sidebar-header small {
    margin-bottom: 0;
    line-height: 1.4;
}

/* Keşif panelinde eski "Yeni Rota Oluştur" CTA kalıntıları asla görünmesin */
#sidebar-panel-guide #new-route-btn,
#sidebar-panel-guide #route-builder-open-btn,
#sidebar-panel-guide .route-builder-entry,
#sidebar:not(.profile-sidebar) > .route-builder-entry,
#sidebar:not(.profile-sidebar) > #new-route-btn,
#sidebar:not(.profile-sidebar) > #route-builder-open-btn {
    display: none !important;
}

.main-sidebar-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 14px;
    overscroll-behavior: contain;
}

#sidebar h2 {
    color: #333;
    margin-bottom: 5px;
}

#sidebar small {
    display: block;
    color: #777;
    margin-bottom: 20px;
}

/* Profil: tagline ile ilk ayraç arası (#sidebar small 20px margin burada iptal) */
#sidebar.profile-sidebar small {
    margin-bottom: 0;
}

#sidebar.profile-sidebar .profile-sidebar-scroll > hr:first-of-type {
    margin: 0 0 10px;
    border: none;
    border-top: 1px solid #dee2e6;
}

/* Profil: kaydırılabilir gövde (üst panel yüksekliğini aşınca alt içerik erişilebilir) */
#sidebar.profile-sidebar {
    padding: 0;
    overflow: hidden;
    min-height: 0;
}

#sidebar.profile-sidebar .profile-sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px;
    scrollbar-gutter: stable;
}

/* Profil: başlığa tıklanınca açılan paneller */
.profile-accordion {
    border: 1px solid #eef0f2;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fafbfc;
    overflow: hidden;
}

.profile-accordion-summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.profile-accordion-summary::-webkit-details-marker {
    display: none;
}

.profile-accordion-summary::after {
    content: '▾';
    font-size: 0.75rem;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.profile-accordion[open] > .profile-accordion-summary::after {
    transform: rotate(-180deg);
}

.profile-accordion-body {
    padding: 0 14px 14px;
    border-top: 1px solid #eef0f2;
    background: #fff;
}

.profile-settings-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}

.profile-settings-hint {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.45;
    margin: 0 0 14px;
}

.profile-membership-summary {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 4px;
}

.profile-membership-line {
    margin: 6px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
}

.profile-membership-label {
    color: #868e96;
    font-weight: 600;
    min-width: 8.5rem;
}

.profile-settings-hr {
    border: none;
    border-top: 1px solid #eef0f2;
    margin: 16px 0;
}

.profile-form-group {
    margin-bottom: 12px;
}

.profile-photo-editor {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #f8fafc;
}

.profile-photo-preview {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(15, 23, 42, 0.16);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-controls {
    min-width: 0;
}

.profile-photo-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.profile-photo-button:hover {
    border-color: #2563eb;
    color: #1d4ed8;
}

.profile-photo-help {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.35;
}

.profile-msg {
    font-size: 0.85rem;
    margin: 10px 0 0;
    min-height: 1.2em;
}

.profile-msg--ok {
    color: #198754;
    font-weight: 600;
}

.profile-msg--err {
    color: #dc3545;
    font-weight: 600;
}

.profile-route-intro {
    color: #6c757d;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 12px;
}

.profile-route-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.profile-route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.profile-route-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
}

.profile-route-btn--primary {
    background: #0d9488;
    color: #fff;
}

.profile-route-btn--primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.profile-route-btn--secondary {
    background: #17a2b8;
    color: #fff;
}

.profile-trip-date-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #fff;
}

.profile-trip-tempo-select {
    cursor: pointer;
    appearance: auto;
}

.profile-ai-plan-btn.profile-route-btn--primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

.profile-ai-plan-btn.profile-route-btn--primary:hover:not(:disabled) {
    filter: brightness(1.05);
}

.profile-ai-plan-btn .profile-ai-spinner {
    display: none;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tripolog-spin 0.7s linear infinite;
}

.profile-ai-plan-btn.is-loading .profile-ai-spinner {
    display: inline-block;
}

.profile-ai-plan-btn.is-loading {
    pointer-events: none;
    opacity: 0.88;
}

.profile-route-msg {
    font-size: 0.85rem;
    margin: 10px 0 0;
    min-height: 1.2em;
    white-space: normal;
    word-break: break-word;
}

.profile-route-msg--ok {
    color: #198754;
    font-weight: 600;
}

.profile-route-msg--err {
    color: #dc3545;
    font-weight: 600;
}

.profile-route-msg--info {
    color: #0c5460;
    font-weight: 600;
}

.profile-route-summary-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 16px 0 8px;
}

.profile-route-summary {
    font-size: 0.88rem;
    color: #495057;
    line-height: 1.55;
}

.profile-route-summary ul {
    margin: 0;
    padding-left: 1.1rem;
}

.profile-route-summary li {
    margin: 6px 0;
}

.fav-category-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid #eef0f2;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
}

.fav-category-checkboxes label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.fav-category-checkboxes input[type='checkbox'] {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    cursor: pointer;
}

.fav-places-panel {
    margin-top: 6px;
    margin-bottom: 4px;
}

.fav-places-panel-body {
    padding-top: 8px !important;
}

.fav-place-list-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 2px solid #eef0f2;
    background-color: #fff;
    font-size: 0.92rem;
    outline: none;
    box-sizing: border-box;
}

.profile-route-start-pin {
    width: 26px;
    height: 26px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #0d9488;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Form groups and labels */
.city-select-group {
    margin-bottom: 20px;
}

.city-label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    background-color: white;
}

/* Buttons */
.btn {
    text-decoration: none;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #28a745;
    color: white;
}

.btn-secondary:hover {
    background-color: #218838;
}

/* Horizontal line and dynamic content */
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Keşif sol menü: tek ayraç + başlık aralığı (çift hr ve ~20px margin yerine ~yarı) */
#sidebar > hr {
    margin: 10px 0;
}

/* UGC rota oluşturucu (Keşif Rehberi) */
.route-builder-entry {
    margin: 12px 0 16px;
}

.route-builder-open-btn {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: 10px;
    background: #0d9488;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
}

.route-builder-open-btn:hover {
    background: #0f766e;
}

.route-manager-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.route-manager-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.route-manager-heading h3,
.route-manager-waypoints-heading h4 {
    margin: 0;
    color: #1f2937;
}

.route-manager-heading p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.45;
}

.route-manager-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 9px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
}

.route-manager-field label,
.route-manager-tip-label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 0.84rem;
    font-weight: 700;
}

.route-manager-field input,
.route-manager-field textarea,
.route-manager-tip-label textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.4;
    resize: vertical;
}

.route-manager-field input:focus,
.route-manager-field textarea:focus,
.route-manager-tip-label textarea:focus {
    outline: 2px solid rgba(0, 124, 191, 0.18);
    border-color: #007cbf;
}

.route-manager-ai-button {
    width: 100%;
    margin-top: 8px;
    padding: 9px 11px;
    border: 1px solid #c4b5fd;
    border-radius: 9px;
    background: #f5f3ff;
    color: #6d28d9;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.route-manager-ai-button:hover:not(:disabled) {
    background: #ede9fe;
    transform: translateY(-1px);
}

.route-manager-ai-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.route-manager-waypoints-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

#route-manager-waypoint-count {
    min-width: 26px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
}

#waypoint-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.route-manager-waypoint {
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #f8fafc;
}

.route-manager-waypoint-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.route-manager-waypoint-number {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #007cbf;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
}

.route-manager-waypoint-name {
    flex: 1 1 auto;
    min-width: 0;
    color: #1f2937;
    font-size: 0.86rem;
    line-height: 1.35;
}

.route-manager-waypoint-remove {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.route-manager-tip-label {
    margin-bottom: 0;
}

.route-manager-tip-label textarea {
    margin-top: 6px;
    font-weight: 400;
}

.route-manager-message {
    margin: 0;
    padding: 9px 10px;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    line-height: 1.4;
}

.route-manager-message[data-type="success"] {
    background: #ecfdf5;
    color: #047857;
}

.route-manager-message[data-type="error"] {
    background: #fef2f2;
    color: #b91c1c;
}

.explorer-list-heading {
    margin-bottom: 13px;
}

.explorer-list-heading h3 {
    margin: 0 0 4px;
    color: #1f2937;
    font-size: 1rem;
}

.explorer-list-heading p,
.explorer-list-status {
    margin: 0;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.45;
}

.explorer-list-status--error {
    color: #b91c1c;
}

.explorer-route-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.explorer-route-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.explorer-route-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 5px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.explorer-route-card:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.route-favorite-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.route-favorite-btn:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.route-favorite-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.route-favorite-btn.is-favorited {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fef2f2;
}

.route-favorite-icon::before {
    content: '♡';
    font-size: 1.05rem;
    line-height: 1;
}

.route-favorite-btn.is-favorited .route-favorite-icon::before {
    content: '♥';
}

.explorer-reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.route-favorite-btn--reader {
    width: 38px;
    height: 38px;
}

.explorer-route-card-icon,
.explorer-reader-author-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

button.explorer-route-card-icon,
button.explorer-reader-author-icon {
    border: none;
    padding: 0;
    cursor: pointer;
}

button.explorer-route-card-icon:hover,
button.explorer-reader-author-icon:hover {
    filter: brightness(1.08);
    transform: scale(1.04);
}

.explorer-route-card-author {
    color: #64748b;
    font-size: 0.78rem;
}

button.explorer-route-card-author {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

button.explorer-route-card-author:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.explorer-reader-author {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
}

button.explorer-reader-author {
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: #64748b;
}

button.explorer-reader-author:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.user-profile {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background:
        linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.9)),
        #f8fafc;
    border: 1px solid #e2e8f0;
}

.user-profile-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
}

.user-profile-avatar img,
.user-profile-avatar span {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-avatar span {
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.user-profile-meta h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: #0f172a;
}

.user-profile-joined,
.user-profile-stats {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
}

.user-profile-stats {
    margin-top: 4px;
    color: #334155;
    font-weight: 700;
}

.user-profile-load-more {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font-weight: 700;
    cursor: pointer;
}

.user-profile-load-more:hover:not(:disabled) {
    border-color: #93c5fd;
    background: #f8fbff;
}

.user-profile-load-more:disabled {
    opacity: 0.65;
    cursor: wait;
}

.user-profile-status {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
}

.user-profile-status.is-error {
    color: #b91c1c;
}

.explorer-route-card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.explorer-route-card-title {
    overflow: hidden;
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explorer-route-card-author {
    color: #64748b;
    font-size: 0.76rem;
}

.explorer-route-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.72rem;
}

.explorer-route-card-chevron {
    color: #94a3b8;
    font-size: 1.35rem;
    line-height: 1;
}

.explorer-reader-back {
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.explorer-reader-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.explorer-reader-header h3 {
    margin: 0;
    color: #172033;
    font-size: 1.05rem;
    line-height: 1.3;
}

.explorer-reader-author {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 0.78rem;
}

.explorer-reader-description {
    margin: 0 0 12px;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.explorer-reader-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.explorer-reader-stats span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
}

.explorer-reader-timeline {
    display: flex;
    flex-direction: column;
}

.explorer-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 15px;
}

.explorer-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 0;
    left: 13px;
    width: 2px;
    background: #bfdbfe;
}

.explorer-timeline-number {
    position: relative;
    z-index: 1;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
}

.explorer-timeline-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.explorer-timeline-body h4 {
    margin: 0 0 4px;
    color: #1f2937;
    font-size: 0.86rem;
    line-height: 1.35;
}

.explorer-timeline-address {
    margin: 0 0 7px;
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.35;
}

.explorer-timeline-tip {
    margin: 0;
    padding: 7px 8px;
    border-left: 3px solid #14b8a6;
    border-radius: 0 7px 7px 0;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 0.78rem;
    line-height: 1.45;
}

.explorer-reader-status {
    color: #64748b;
    font-size: 0.82rem;
}

.explorer-reader-status.is-error {
    color: #b91c1c;
}

.explorer-reviews {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.explorer-reviews-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 11px;
}

.explorer-reviews-heading h4 {
    margin: 0;
    color: #1f2937;
    font-size: 0.94rem;
}

.explorer-reviews-heading span {
    color: #64748b;
    font-size: 0.76rem;
}

.explorer-review-form {
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #f8fafc;
}

.explorer-review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 9px;
}

.explorer-review-stars button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 1.28rem;
    line-height: 1;
    cursor: pointer;
    transform-origin: center;
    transition: color 0.16s ease, transform 0.16s ease;
}

.explorer-review-stars button:hover,
.explorer-review-stars button:focus-visible {
    color: #f59e0b;
    transform: scale(1.18) rotate(-4deg);
}

.explorer-review-stars button.is-active {
    color: #f59e0b;
}

.explorer-review-form textarea {
    width: 100%;
    min-height: 70px;
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.45;
    resize: vertical;
}

.explorer-review-submit {
    width: 100%;
    margin-top: 8px;
    padding: 9px 11px;
    border: none;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.explorer-review-submit:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.explorer-review-message {
    min-height: 1.2em;
    margin: 7px 0 0;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.4;
}

.explorer-review-message[data-type="success"] { color: #047857; }
.explorer-review-message[data-type="error"] { color: #b91c1c; }

.explorer-review-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 12px;
}

.explorer-review-item {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.explorer-review-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.explorer-review-item-header strong {
    color: #334155;
    font-size: 0.8rem;
}

.explorer-review-item-stars {
    color: #f59e0b;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.explorer-review-item p {
    margin: 0 0 6px;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.explorer-review-item time,
.explorer-review-empty {
    color: #94a3b8;
    font-size: 0.7rem;
}

.explorer-review-empty {
    margin: 0;
}

.explorer-manager-marker {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4);
    font-size: 0.76rem;
    font-weight: 800;
    pointer-events: none;
}

.explorer-search-pin {
    padding: 0;
    border: 2px solid #fff;
    cursor: pointer;
    pointer-events: auto;
}

.explorer-search-pin:hover {
    background: #1d4ed8;
    transform: scale(1.08);
}

.explorer-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.explorer-search-field {
    display: block;
    margin: 0;
}

.explorer-search-field input,
.explorer-search-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #dbe3ec;
    border-radius: 9px;
    background: #fff;
    color: #0f172a;
    font-size: 0.84rem;
}

.explorer-search-field input:focus,
.explorer-search-field select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 1px;
    border-color: #93c5fd;
}

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

@media (min-width: 420px) {
    .explorer-search {
        grid-template-columns: 1.4fr 1fr 1fr;
        align-items: center;
    }

    .explorer-search-field--keyword {
        grid-column: 1 / -1;
    }
}

@media (min-width: 720px) {
    .explorer-search-field--keyword {
        grid-column: auto;
    }
}

.router-placeholder {
    padding: 8px 2px 16px;
}

.router-placeholder h3 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 1.05rem;
}

.router-placeholder p {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.5;
}

.admin-dash {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 18px;
}

.admin-dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.admin-dash-header h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1.12rem;
}

.admin-dash-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
}

.admin-dash-legacy-link {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.admin-dash-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.admin-dash-stat-card {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(160deg, #f8fafc, #fff);
}

.admin-dash-stat-label {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.72rem;
}

.admin-dash-stat-card strong {
    color: #0f172a;
    font-size: 1.2rem;
}

.admin-dash-status {
    min-height: 1.1em;
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
}

.admin-dash-status.is-error {
    color: #b91c1c;
}

.admin-dash-status.is-success {
    color: #047857;
}

.admin-dash-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-dash-tab {
    padding: 8px 10px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-dash-tab.is-active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-dash-panel[hidden] {
    display: none !important;
}

.admin-dash-catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.admin-dash-catalog-grid h4 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 0.9rem;
}

.admin-dash-form {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.admin-dash-form input,
.admin-dash-form button {
    padding: 8px 10px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    font-size: 0.8rem;
}

.admin-dash-form button {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.admin-dash-table-wrap {
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.admin-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
}

.admin-dash-table th,
.admin-dash-table td {
    padding: 8px 9px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: middle;
    color: #334155;
}

.admin-dash-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    white-space: nowrap;
}

.admin-dash-row-btn {
    margin-right: 4px;
    margin-bottom: 2px;
    padding: 5px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-dash-row-btn.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.admin-dash-row-btn.is-restore {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.admin-dash-row-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-dash-empty {
    margin: 0;
    padding: 12px;
    color: #64748b;
    font-size: 0.82rem;
}

.admin-dash-empty.is-error {
    color: #b91c1c;
}

button.app-top-auth-admin {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.editor-desk {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.editor-desk-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editor-desk-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.05rem;
}

.editor-desk-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.editor-desk-new-btn {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: 10px;
    background: #0d9488;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.editor-desk-new-btn:hover {
    background: #0f766e;
}

.editor-desk-status {
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    line-height: 1.4;
}

.editor-desk-status[data-type="error"] {
    background: #fef2f2;
    color: #b91c1c;
}

.editor-desk-status[data-type="success"] {
    background: #ecfdf5;
    color: #047857;
}

.editor-desk-section h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 8px;
    color: #334155;
    font-size: 0.88rem;
}

.editor-desk-section h4 span {
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.editor-desk-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-desk-empty {
    margin: 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.editor-route-row {
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #fff;
}

.editor-route-row-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.editor-route-row-main strong {
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.35;
}

.editor-route-row-meta {
    color: #94a3b8;
    font-size: 0.74rem;
}

.editor-route-row-badge {
    display: inline-flex;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
}

.editor-route-row-badge[data-status="published"] {
    background: #ecfdf5;
    color: #047857;
}

.editor-route-row-badge[data-status="draft"] {
    background: #fff7ed;
    color: #c2410c;
}

.editor-route-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.editor-route-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.editor-route-btn--edit:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #eff6ff;
}

.editor-route-btn--status:hover {
    border-color: #6ee7b7;
    color: #047857;
    background: #ecfdf5;
}

.editor-route-btn--delete {
    color: #b91c1c;
}

.editor-route-btn--delete:hover {
    border-color: #fecaca;
    background: #fef2f2;
}

.app-top-nav-item[data-ui-action].is-active,
.app-top-auth-link[data-ui-action].is-active {
    background: transparent;
    color: var(--header-ink);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--header-ink);
    border-radius: 0;
}

.route-builder-panel {
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    background: #fafbfc;
}

.route-builder-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.route-builder-panel-head strong {
    font-size: 0.95rem;
    color: #222;
}

.route-builder-close-btn {
    border: none;
    background: transparent;
    color: #888;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
}

.route-builder-hint {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: #6c757d;
    line-height: 1.4;
}

.route-builder-textarea {
    resize: vertical;
    min-height: 72px;
    font-family: inherit;
    line-height: 1.4;
}

.route-builder-waypoints-block {
    margin-bottom: 12px;
}

.route-builder-waypoints-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.route-builder-waypoints-empty {
    margin: 0;
    font-size: 0.84rem;
    color: #888;
    line-height: 1.4;
}

.route-builder-waypoint {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.route-builder-waypoint-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.route-builder-waypoint-num {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0d9488;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.route-builder-waypoint-title {
    flex: 1 1 auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.route-builder-waypoint-remove {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 2px;
}

.route-builder-waypoint-remove:hover {
    color: #c0392b;
}

.route-builder-note-label {
    display: block;
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 4px;
}

.route-builder-note-input {
    width: 100%;
    min-height: 56px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.35;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.route-builder-actions {
    margin-top: 8px;
}

.route-builder-add-btn {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 6px;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: #0d9488;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.route-builder-add-btn:hover {
    background: #0f766e;
}

.route-builder-add-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.route-builder-desc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.route-builder-desc-head .city-label {
    margin-bottom: 0;
}

.route-builder-ai-btn {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: 8px;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.route-builder-ai-btn:hover {
    background: #ccfbf1;
}

.route-builder-ai-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.route-builder-ai-status {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: #0f766e;
}

.route-builder-ai-status.is-error {
    color: #b91c1c;
}

.route-builder-ai-status.is-loading::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border: 2px solid #99f6e4;
    border-top-color: #0d9488;
    border-radius: 50%;
    vertical-align: -1px;
    animation: route-builder-spin 0.7s linear infinite;
}

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

/* Keşif Modu — yayınlanmış rota kartları ve detay */
.route-explorer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.route-explorer-card {
    width: 100%;
    text-align: left;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.route-explorer-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
}

.route-explorer-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
}

.route-explorer-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.route-explorer-card-summary {
    margin: 0;
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.4;
}

.route-explorer-back-btn {
    width: 100%;
    margin-bottom: 12px;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.route-explorer-back-btn:hover {
    background: #eef2f7;
}

.route-explorer-detail-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.route-explorer-detail-desc {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.5;
}

.route-explorer-stops {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.route-explorer-stop {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font: inherit;
}

.route-explorer-stop:hover {
    border-color: #93c5fd;
}

.route-explorer-stop.is-active {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.route-explorer-stop-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.route-explorer-stop-num {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.route-explorer-stop-title {
    font-size: 0.88rem;
    color: #1f2937;
    line-height: 1.35;
}

.route-explorer-stop-tip {
    font-size: 0.84rem;
    color: #0f766e;
    background: #f0fdfa;
    border-left: 3px solid #0d9488;
    padding: 8px 10px;
    border-radius: 0 8px 8px 0;
    line-height: 1.4;
}

.route-explorer-stop-tip-empty {
    color: #9ca3af;
    font-style: italic;
}

.route-explorer-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.route-explorer-marker.selected {
    background: #1d4ed8;
    transform: scale(1.08);
}

.route-explorer-popup-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #111827;
}

.route-explorer-popup-tip {
    font-size: 0.82rem;
    color: #0f766e;
    line-height: 1.35;
}

.route-explorer-popup-tip--empty {
    color: #9ca3af;
    font-style: italic;
}

/* Değerlendirmeler */
.route-explorer-reviews {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.route-explorer-reviews-title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #1f2937;
}

.route-explorer-reviews-summary {
    font-size: 0.84rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.route-explorer-review-form {
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.route-explorer-stars {
    display: flex;
    gap: 4px;
    margin: 6px 0 10px;
}

.route-explorer-star {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}

.route-explorer-star.is-active {
    color: #f59e0b;
    border-color: #fcd34d;
    background: #fffbeb;
}

.route-explorer-review-comment {
    width: 100%;
    min-height: 64px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.35;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    margin-bottom: 8px;
}

.route-explorer-review-submit {
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.route-explorer-review-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.route-explorer-review-login-hint {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.route-explorer-review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.route-explorer-review-item {
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #fafbfc;
}

.route-explorer-review-item-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.route-explorer-review-item-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.route-explorer-review-item-comment {
    margin: 0;
    font-size: 0.84rem;
    color: #374151;
    line-height: 1.4;
}

.route-explorer-card-rating {
    font-size: 0.78rem;
    color: #b45309;
    font-weight: 600;
}

#dynamic-title {
    color: #333;
    margin-bottom: 10px;
}

#sidebar:not(.profile-sidebar) #dynamic-title {
    margin-top: 5px;
}

#dynamic-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Map, Popups, Markers */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.marker {
    width: 20px;
    height: 20px;
    background-color: #FF0000;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.marker:hover, .marker.selected {
    transform: scale(1.3);
    background-color: #007bff;
}

/* Right Sidebar Styling */
#right-sidebar {
    position: absolute;
    top: var(--app-top-ui-offset);
    right: -340px;
    width: 300px;
    max-width: min(92vw, 340px);
    height: calc(100vh - var(--app-top-ui-offset) - var(--app-side-margin));
    background-color: white;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    z-index: 900;
    transition: right 0.35s ease;
    overflow: hidden;
}

#right-sidebar.open {
    right: var(--app-side-margin);
}

/* Seyahat plani (yapay zeka onizleme) — sag offcanvas */
.travel-plan-root {
    position: fixed;
    inset: 0;
    z-index: 960;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

/* Kök tam ekran: haritaya tiklamayi engelleme; yalnizca panel tiklanabilir */
.travel-plan-root.open {
    pointer-events: none;
    visibility: visible;
    opacity: 1;
}

.travel-plan-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    opacity: 0;
}

.travel-plan-root.open .travel-plan-backdrop {
    opacity: 0;
}

.travel-plan-panel {
    position: absolute;
    top: calc(var(--app-top-ui-offset) + var(--travel-plan-top-gap));
    right: 0;
    width: min(420px, 94vw);
    height: calc(100vh - var(--app-top-ui-offset) - var(--app-side-margin) - var(--travel-plan-top-gap));
    max-height: calc(100vh - var(--app-top-ui-offset) - var(--app-side-margin) - var(--travel-plan-top-gap));
    margin: 0 var(--app-side-margin) var(--app-side-margin) 0;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
    border-radius: 16px 0 0 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
}

.travel-plan-root:not(.open) .travel-plan-panel {
    pointer-events: none;
}

.travel-plan-root.open .travel-plan-panel {
    transform: translateX(0);
}

.travel-plan-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.05));
    flex-shrink: 0;
}

.travel-plan-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.travel-plan-subtitle {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.travel-plan-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    color: #475569;
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.travel-plan-close:hover {
    background: #fff;
    color: #0f172a;
}

.travel-plan-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px 20px;
}

.travel-plan-day {
    --tp-day: #64748b;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    border-left: 4px solid var(--tp-day);
}

.travel-plan-day-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--tp-day);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    user-select: none;
}

.travel-plan-day-summary-title {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.travel-plan-route-modes {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-right: 4px;
}

.travel-plan-route-modes.is-loading {
    pointer-events: none;
    opacity: 0.55;
}

.travel-plan-route-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    line-height: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.travel-plan-route-mode:hover:not(:disabled) {
    background: #eef2ff;
    color: #4338ca;
    border-color: rgba(67, 56, 202, 0.25);
}

.travel-plan-route-mode.is-active {
    background: #fff;
    color: var(--tp-day);
    border-color: var(--tp-day);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.travel-plan-route-mode:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.travel-plan-route-mode svg {
    display: block;
}

.travel-plan-route-mode--visibility {
    margin-right: 6px;
}

.travel-plan-route-mode--visibility .travel-plan-vis-icon {
    display: none;
    align-items: center;
    justify-content: center;
}

.travel-plan-route-mode--visibility.is-route-visible .travel-plan-vis-icon--on {
    display: inline-flex;
}

.travel-plan-route-mode--visibility:not(.is-route-visible) .travel-plan-vis-icon--off {
    display: inline-flex;
}

.travel-plan-route-mode--visibility.is-route-visible {
    background: #fff;
    color: var(--tp-day);
    border-color: var(--tp-day);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.travel-plan-route-mode--visibility:not(.is-route-visible) {
    opacity: 0.72;
}

.travel-plan-day .travel-plan-day-date {
    color: var(--tp-day);
    opacity: 0.88;
    font-weight: 600;
    font-size: 0.88rem;
}

.travel-plan-day-summary::-webkit-details-marker {
    display: none;
}

.travel-plan-day-summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(-45deg);
    transition: transform 0.25s ease;
}

.travel-plan-day[open] > .travel-plan-day-summary::after {
    transform: rotate(45deg);
}

.travel-plan-day-body {
    padding: 0 16px 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.travel-plan-list {
    margin: 12px 0 0;
    padding: 0 0 0 4px;
    list-style: none;
}

.travel-plan-list li {
    position: relative;
    padding: 8px 0 8px 12px;
    border-left: 3px solid rgba(99, 102, 241, 0.35);
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
}

.travel-plan-day .travel-plan-list li {
    border-left: 3px solid var(--tp-day);
}

.travel-plan-time {
    display: inline-block;
    min-width: 3.2rem;
    font-weight: 600;
    color: #4f46e5;
    margin-right: 6px;
    font-variant-numeric: tabular-nums;
}

.travel-plan-day .travel-plan-time {
    color: var(--tp-day);
}

.travel-plan-day .travel-plan-stop-title {
    color: var(--tp-day);
    font-weight: 600;
}

.travel-plan-hours {
    font-weight: 500;
    font-size: 0.82rem;
    color: #64748b;
    white-space: nowrap;
}

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

.travel-plan-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 8px;
    color: #475569;
    font-size: 0.95rem;
}

.travel-plan-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 3px solid rgba(79, 70, 229, 0.2);
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: tripolog-spin 0.75s linear infinite;
}

.travel-plan-error {
    margin: 12px 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.9rem;
    line-height: 1.45;
}

.travel-plan-error-meta {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #7f1d1d;
    font-weight: 500;
    white-space: pre-wrap;
    word-break: break-word;
}

.travel-plan-error-pre {
    display: block;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow: auto;
    color: #450a0a;
}

.travel-plan-day-date {
    font-weight: 500;
    color: #64748b;
    font-size: 0.88rem;
}

.travel-plan-summary-text {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
}

.travel-plan-day-weather {
    margin: -4px 0 12px;
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.45;
}

.travel-plan-day-weather-label {
    font-weight: 600;
    color: #334155;
}

.travel-plan-stop-title {
    font-weight: 600;
    color: #1e293b;
}

.travel-plan-stop-notes,
.travel-plan-weather-hint {
    margin-top: 4px;
    margin-left: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}

#right-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-top: 4px;
}

.right-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.close-right-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #777;
}

.artifact-btn {
    width: 100%;
    background-color: #eee;
    border: none;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
}

.artifact-btn:hover {
    background-color: #ddd;
}

/* Details button in dynamic content area */
.details-btn {
    width: 100%;
    padding: 10px;
    background-color: #eee;
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s;
}

.details-btn:hover {
    background-color: #ddd;
}

.details-btn.favorite {
    background-color: #ffc107;
    color: #333;
}

.details-btn.favorite:hover {
    background-color: #e0a800;
}

/* Toast notifications */
.tripolog-toast-container {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 3000;
    width: min(380px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.tripolog-toast {
    width: fit-content;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: #1f2937;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tripolog-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tripolog-toast.is-leaving {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
}

.tripolog-toast--success { background: #047857; }
.tripolog-toast--warning { background: #92400e; }
.tripolog-toast--error { background: #b91c1c; }

@media (prefers-reduced-motion: reduce) {
    .tripolog-toast {
        transition: none;
    }
}

/* Modals */
.tripolog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tripolog-modal.open {
    opacity: 1;
    pointer-events: auto;
}

/* Profil modal — glassmorphism */
.profile-modal-glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2200;
    padding: 24px 16px;
}

.profile-modal-card {
    position: relative;
    width: min(860px, 96vw);
    max-height: min(88vh, 820px);
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#profile-modal-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.profile-modal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 480px;
    max-height: min(88vh, 820px);
    height: 100%;
}

.profile-modal-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 28px 16px 24px 20px;
    border-right: 1px solid #e8edf2;
    background: #fafbfc;
}

.profile-modal-nav-title {
    margin: 0 8px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.profile-tab {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    color: #64748b;
    text-align: left;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 11px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.profile-tab.is-active {
    background: #fff;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.profile-modal-content {
    padding: 28px 28px 32px;
    overflow-y: auto;
    min-height: 0;
}

.profile-panel {
    display: none;
}

.profile-panel.is-active {
    display: block;
}

.profile-panel-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.profile-field-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    outline: none;
    font: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-field-input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

.profile-modal-primary-btn,
.profile-modal-secondary-btn {
    width: 100%;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
    font: inherit;
    font-weight: 700;
    color: #fff;
}

.profile-modal-primary-btn {
    background: #1e293b;
}

.profile-modal-primary-btn:hover {
    background: #0f172a;
}

.profile-modal-secondary-btn {
    background: #334155;
}

.profile-modal-secondary-btn:hover {
    background: #1e293b;
}

.profile-membership-summary--modal {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.profile-membership-summary--modal .profile-membership-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}

.profile-membership-summary--modal .profile-membership-line:last-child {
    border-bottom: none;
}

.profile-membership-summary--modal .profile-membership-label {
    color: #64748b;
    font-weight: 500;
}

.profile-membership-summary--modal strong {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 720px) {
    .profile-modal-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .profile-modal-nav {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid #e8edf2;
        padding: 16px;
        gap: 6px;
    }

    .profile-modal-nav-title {
        width: 100%;
        margin: 0 0 4px;
    }

    .profile-tab {
        width: auto;
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.84rem;
        padding: 9px 10px;
    }

    .profile-modal-content {
        padding: 20px 18px 24px;
    }
}

.modal-card {
    background: white;
    width: 450px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

#modal-artifact-desc {
    white-space: pre-wrap;
    line-height: 1.55;
    color: #444;
    margin-top: 12px;
    font-size: 0.95rem;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
}

/* ===== YÖNETİM PANELİ — CORCOM-style dashboard (yalnızca .admin-page) ===== */

html:has(body.admin-page) {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Harita sayfası body{overflow:hidden} admin panelde kaydırmayı kilitler */
body.admin-page {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.admin-page {
    /* —— Design tokens —— */
    --admin-bg-main: #f8f9fa;
    --admin-bg-sidebar: #ffffff;
    --admin-surface: #ffffff;
    --admin-surface-muted: #f3f4f6;
    --admin-surface-tag: #f0f0f0;
    --admin-border: #eaeaea;
    --admin-border-input: #e0e0e0;
    --admin-text: #111111;
    --admin-text-secondary: #666666;
    --admin-text-muted: #888888;
    --admin-accent: #1a1a1a;
    --admin-accent-hover: #333333;
    --admin-danger: #dc3545;
    --admin-danger-hover: #c82333;
    --admin-radius-shell: 40px;
    --admin-radius-card: 18px;
    --admin-radius-control: 12px;
    --admin-radius-pill: 50px;
    --admin-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --admin-sidebar-w: 260px;
    --admin-header-h: 72px;
    --admin-content-max: min(1080px, calc(100% - 64px));

    margin: 0;
    padding: 0;
    font-family: var(--admin-font);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--admin-bg-main);
    color: var(--admin-text);
    -webkit-font-smoothing: antialiased;
}

/* —— Tam sayfa flex: sabit sidebar + kavisli ana alan —— */
.admin-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: none;
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.admin-nav {
    flex: 0 0 var(--admin-sidebar-w);
    width: var(--admin-sidebar-w);
    min-width: var(--admin-sidebar-w);
    max-width: var(--admin-sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: stretch;
    height: 100%;
    max-height: 100vh;
    min-height: 0;
    background: var(--admin-bg-sidebar);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

/* Sidebar marka — üst bar ile aynı hizada (bütünleşik header) */
.admin-nav-brand {
    flex-shrink: 0;
    height: var(--admin-header-h);
    min-height: var(--admin-header-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 22px 0 24px;
    border-bottom: 1px solid var(--admin-border);
    box-sizing: border-box;
}

.admin-nav-brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--admin-text);
    line-height: 1.2;
}

.admin-nav-brand-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--admin-text-muted);
    margin-top: 2px;
}

.admin-nav-menu {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 14px 28px 22px;
}

.admin-nav h2 {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 12px 16px;
    color: var(--admin-text-muted);
}

.admin-nav-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--admin-text-secondary);
    padding: 10px 16px;
    border-radius: var(--admin-radius-pill);
    margin-bottom: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-btn:hover {
    background: var(--admin-surface-muted);
    color: var(--admin-text);
}

.admin-nav-btn.active {
    color: #ffffff;
    background: var(--admin-accent);
    font-weight: 600;
    box-shadow: none;
}

.admin-nav-group,
.admin-nav-subgroup {
    margin: 6px 0;
}

.admin-nav-group-summary,
.admin-nav-subgroup-summary {
    list-style: none;
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--admin-radius-pill);
    color: var(--admin-text);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    user-select: none;
    box-sizing: border-box;
}

.admin-nav-group-summary {
    background: var(--admin-accent);
    color: #fff;
}

.admin-nav-subgroup-summary {
    background: transparent;
    color: var(--admin-text-secondary);
    margin-bottom: 4px;
}

.admin-nav-subgroup-summary:hover {
    background: var(--admin-surface-muted);
    color: var(--admin-text);
}

.admin-nav-group-summary::-webkit-details-marker,
.admin-nav-subgroup-summary::-webkit-details-marker {
    display: none;
}

.admin-nav-group-summary::after,
.admin-nav-subgroup-summary::after {
    content: "–";
    margin-left: auto;
    font-weight: 700;
    color: currentColor;
}

.admin-nav-group:not([open]) > .admin-nav-group-summary::after,
.admin-nav-subgroup:not([open]) > .admin-nav-subgroup-summary::after {
    content: "+";
}

.admin-nav-group-icon,
.admin-nav-sub-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-nav-group-icon svg,
.admin-nav-sub-icon svg {
    width: 20px;
    height: 20px;
}

.admin-nav-subtree {
    position: relative;
    margin: 8px 0 10px 24px;
    padding-left: 15px;
}

.admin-nav-subtree::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 8px;
    width: 1px;
    background: var(--admin-border-input);
}

.admin-nav-subitems {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 2px;
}

.admin-nav-route-group {
    margin: 2px 0 4px;
}

.admin-nav-route-summary {
    min-height: 38px;
    padding: 8px 14px 8px 16px;
    font-size: 0.86rem;
}

.admin-nav-route-items {
    position: relative;
    margin: 4px 0 8px 18px;
    padding-left: 14px;
}

.admin-nav-route-items::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 8px;
    width: 1px;
    background: var(--admin-border-input);
}

.admin-nav-child-btn {
    position: relative;
    padding-left: 16px;
    font-size: 0.86rem;
}

.admin-nav-route-btn {
    font-size: 0.82rem;
    padding-top: 8px;
    padding-bottom: 8px;
}

.admin-nav-child-btn::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--admin-border-input);
}

.admin-nav .btn.btn-secondary {
    margin-top: 16px !important;
    width: 100%;
    background: var(--admin-surface);
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-pill);
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.875rem;
    font-family: inherit;
    box-shadow: none;
}

.admin-nav .btn.btn-secondary:hover {
    background: var(--admin-surface-muted);
    border-color: var(--admin-border-input);
}

/* Sağ ana alan — imza kavis: sol üst köşe */
.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--admin-bg-main);
    border-top-left-radius: var(--admin-radius-shell);
    height: 100%;
    max-height: 100vh;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Üst bar — sidebar markası ile aynı satırda bütünleşik */
.admin-topbar {
    flex-shrink: 0;
    height: var(--admin-header-h);
    min-height: var(--admin-header-h);
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid var(--admin-border);
    background: transparent;
    box-sizing: border-box;
}

.admin-topbar-inner {
    width: 100%;
    max-width: var(--admin-content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

.admin-topbar-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 520px;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--admin-border-input);
    border-radius: var(--admin-radius-pill);
    background: var(--admin-surface);
    color: var(--admin-text-muted);
    box-sizing: border-box;
}

.admin-topbar-search:focus-within {
    border-color: #bbbbbb;
}

.admin-topbar-search-icon {
    flex-shrink: 0;
    color: var(--admin-text-muted);
}

.admin-topbar-search input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 46px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--admin-text);
    font: inherit;
    font-size: 0.9rem;
}

.admin-topbar-search input::-webkit-search-cancel-button {
    display: none;
}

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

.admin-search-clear {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: var(--admin-surface-muted);
    color: var(--admin-text-muted);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.admin-topbar-search.has-value .admin-search-clear {
    display: inline-flex;
}

.admin-search-shortcut {
    flex-shrink: 0;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-pill);
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    background: var(--admin-bg-main);
}

.admin-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(620px, calc(100vw - 320px));
    max-height: min(560px, calc(100vh - 120px));
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    background: var(--admin-surface);
    z-index: 30;
}

.admin-search-summary {
    padding: 12px 16px;
    border-bottom: 1px solid var(--admin-border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--admin-text-muted);
}

.admin-search-results {
    max-height: calc(min(560px, calc(100vh - 120px)) - 45px);
    overflow-y: auto;
    padding: 8px;
}

.admin-search-empty {
    padding: 18px 14px;
    color: var(--admin-text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.admin-search-result {
    width: 100%;
    display: block;
    border: none;
    border-radius: 14px;
    background: transparent;
    padding: 11px 12px;
    text-align: left;
    cursor: pointer;
    color: var(--admin-text);
}

.admin-search-result:hover,
.admin-search-result.is-active {
    background: var(--admin-surface-muted);
}

.admin-search-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--admin-text);
}

.admin-search-result-kind {
    flex-shrink: 0;
    border-radius: var(--admin-radius-pill);
    background: var(--admin-surface-tag);
    color: var(--admin-text-muted);
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 600;
}

.admin-search-result-meta {
    margin-top: 4px;
    color: var(--admin-text-secondary);
    font-size: 0.78rem;
    line-height: 1.45;
}

.admin-search-result mark {
    background: #fff3bf;
    color: inherit;
    border-radius: 4px;
    padding: 0 2px;
}

.admin-search-hit {
    outline: 2px solid rgba(26, 26, 26, 0.18);
    outline-offset: 3px;
    border-radius: 12px;
    transition: outline-color 0.2s ease;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.admin-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 8px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-pill);
    background: var(--admin-surface);
}

.admin-topbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--admin-surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.admin-topbar-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.admin-topbar-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--admin-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.admin-topbar-user-role {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--admin-text-muted);
}

.admin-main-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}

.admin-main-scroll::-webkit-scrollbar {
    width: 8px;
}

.admin-main-scroll::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}

.admin-page-header {
    width: 100%;
    max-width: var(--admin-content-max);
    margin: 0 auto;
    padding: 32px 32px 0;
    box-sizing: border-box;
}

.admin-main-inner {
    width: 100%;
    max-width: var(--admin-content-max);
    margin: 0 auto;
    padding: 24px 32px 48px;
    box-sizing: border-box;
}

.admin-page .admin-main-inner::after {
    content: 'Tripolog Yönetim Paneli';
    display: block;
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--admin-border);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--admin-text-muted);
}

/* Üst başlık / header kartı */
.admin-page .admin-header-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
    background: transparent;
}

.admin-page .admin-header-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--admin-text);
    margin: 0 0 8px;
}

.admin-page .admin-header-card p {
    color: var(--admin-text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
}

/* İçerik kartları — ortalanmış, gölgesiz, ince border */
.admin-page .admin-main-inner .form-card,
.admin-page .admin-header-card {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.admin-page .form-card {
    background: var(--admin-surface);
    padding: 36px 40px;
    border-radius: var(--admin-radius-card);
    box-shadow: none;
    margin-bottom: 24px;
    border: 1px solid var(--admin-border);
}

.admin-page .admin-header-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}

.admin-page .form-card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--admin-text);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.admin-page .form-card p {
    color: var(--admin-text-secondary);
    font-weight: 400;
    line-height: 1.7;
}

.admin-page .form-group {
    margin-bottom: 22px;
}

.admin-inline-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-inline-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.admin-inline-form .btn {
    flex-shrink: 0;
    min-height: 48px;
}

.admin-nested-card {
    padding: 20px 22px;
    margin: 0 0 20px;
    background: var(--admin-bg-main);
}

.admin-nested-card h4 {
    margin: 0 0 14px;
    font-size: 0.95rem;
}

.admin-media-pending {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-media-empty {
    margin: 0;
    color: var(--admin-text-muted);
    font-size: 0.85rem;
}

.admin-media-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-pill);
    background: var(--admin-surface);
    font-size: 0.82rem;
}

.admin-media-chip span {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-media-chip small {
    color: var(--admin-text-muted);
    font-weight: 600;
}

.admin-media-remove {
    border: none;
    background: var(--admin-surface-muted);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.admin-table tr.admin-nested-row td {
    background: #fafafa;
    color: var(--admin-text-secondary);
}

.admin-nested-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 18px;
    font-size: 0.88rem;
}

.admin-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--admin-text-secondary);
    font-size: 0.85rem;
}

.admin-page .form-group input,
.admin-page .form-group textarea,
.admin-page select,
.admin-page .place-search-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-control);
    outline: none;
    transition: border-color 0.15s ease;
    font-size: 0.9rem;
    line-height: 1.55;
    font-family: inherit;
    font-weight: 400;
    background-color: var(--admin-surface);
    color: var(--admin-text);
    box-shadow: none;
}

.admin-page .place-search-input {
    border-radius: var(--admin-radius-pill);
    max-width: 320px;
}

.admin-page .form-group input,
.admin-page select,
.admin-page .place-search-input {
    height: 48px;
}

.admin-page .form-group input:focus,
.admin-page .form-group textarea:focus,
.admin-page select:focus,
.admin-page .place-search-input:focus {
    border-color: #aaaaaa;
    box-shadow: none;
}

.admin-page textarea.admin-openai-prompt-textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    min-height: 280px;
    resize: vertical;
    border-radius: var(--admin-radius-control);
}

/* Butonlar — kapsül (pill) */
.admin-page .btn {
    border-radius: var(--admin-radius-pill);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-page .btn-primary {
    background-color: var(--admin-accent);
    color: #ffffff;
}

.admin-page .btn-primary:hover {
    background-color: var(--admin-accent-hover);
}

.admin-page .btn-secondary {
    background-color: var(--admin-surface);
    color: var(--admin-text);
    border: 1px solid var(--admin-border-input);
}

.admin-page .btn-secondary:hover {
    background-color: var(--admin-surface-muted);
    border-color: #cccccc;
}

.admin-page .del-btn {
    background: var(--admin-danger);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--admin-radius-pill);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    box-shadow: none;
    transition: background 0.15s ease;
}

.admin-page .del-btn:hover {
    background: var(--admin-danger-hover);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-grid.admin-grid-place-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-nav-nav-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav-nav-sublist > li {
    margin: 0;
    padding: 0;
}

.admin-nav-panel {
    display: none;
}

.admin-nav-panel.active {
    display: block;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
    font-size: 0.875rem;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-card);
    overflow: hidden;
    background: var(--admin-surface);
    box-shadow: none;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--admin-border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table th {
    font-weight: 600;
    color: var(--admin-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--admin-bg-main);
}

.admin-table tbody tr:hover td {
    background: #fafafa;
}

.admin-nav-drag-hint {
    margin: 0 0 4px;
    font-size: 0.85rem;
    color: #64748b;
}

.admin-nav-drag-cell {
    width: 36px;
    text-align: center;
    vertical-align: middle;
    cursor: grab;
    user-select: none;
}

.admin-nav-drag-handle {
    display: inline-block;
    color: #94a3b8;
    font-size: 1.1rem;
    letter-spacing: -0.12em;
    line-height: 1;
}

.admin-nav-row.is-dragging {
    opacity: 0.55;
}

.admin-nav-row.is-drag-over td {
    background: #eef6ff !important;
}

.admin-nav-icon-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: block;
}

.admin-table td .btn,
.admin-table td .del-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
}

.admin-table .admin-row-actions {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}

.admin-table .admin-row-actions .btn,
.admin-table .admin-row-actions .del-btn {
    flex: 0 0 auto;
    margin: 0;
    min-width: 5.5rem;
    box-sizing: border-box;
}

.admin-page .admin-city-catalog-scroll,
.admin-page #city-catalog-scroll {
    border: 1px solid var(--admin-border) !important;
    border-radius: var(--admin-radius-card) !important;
    background: var(--admin-bg-main) !important;
    box-shadow: none !important;
}

.admin-page code {
    font-size: 0.84em;
    font-weight: 500;
    background: var(--admin-surface-tag);
    padding: 3px 10px;
    border-radius: var(--admin-radius-pill);
    border: 1px solid var(--admin-border);
    color: var(--admin-text-secondary);
}

.admin-page #admin-message {
    color: var(--admin-text-secondary);
    font-weight: 500;
}

.admin-page hr {
    border: none;
    border-top: 1px solid var(--admin-border);
    margin: 20px 0;
}

/* Inline yardim metinleri — tasarım paletine yaklaştır (içerik aynı) */
.admin-page .form-card p[style],
.admin-page .form-card span[style] {
    color: var(--admin-text-secondary);
}

.admin-page .form-card p[style] {
    font-size: 0.82rem;
    line-height: 1.65;
}

.place-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.place-search-input {
    width: 260px;
    margin: 0 auto;
}

.place-toolbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rs-config-hint {
    font-size: 0.9rem;
    color: var(--admin-text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
}

.rs-config-hint code {
    font-size: 0.85em;
    background: var(--admin-surface-tag);
    padding: 3px 10px;
    border-radius: var(--admin-radius-pill);
    border: 1px solid var(--admin-border);
}

.rs-config-table textarea.rs-item-modal-body {
    min-height: 72px;
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    border: 1px solid var(--admin-border-input);
    border-radius: var(--admin-radius-control);
    font-size: 0.85rem;
    resize: vertical;
    background: var(--admin-surface);
    box-shadow: none;
}

.rs-config-table input[type="text"] {
    min-width: 0;
    width: 100%;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--admin-border-input);
    border-radius: var(--admin-radius-control);
    font-size: 0.85rem;
    background: var(--admin-surface);
    box-shadow: none;
}

/* Responsive / Mobil Ayarları */
@media (max-width: 1100px) {
    .admin-page .admin-grid { grid-template-columns: 1fr; }
    .admin-page .admin-grid.admin-grid-place-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-page .admin-layout {
        flex-direction: column;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    .admin-page .admin-nav {
        position: static;
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: auto;
        padding: 20px 16px;
        border-bottom: 1px solid var(--admin-border);
    }
    body.admin-page {
        height: auto;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .admin-page .admin-layout {
        height: auto;
        max-height: none;
        overflow: visible;
    }
    .admin-page .admin-nav {
        height: auto;
        max-height: none;
        align-self: flex-start;
    }
    .admin-page .admin-main {
        height: auto;
        max-height: none;
        min-height: 50vh;
        overflow: visible;
        border-top-left-radius: var(--admin-radius-shell);
        border-top-right-radius: var(--admin-radius-shell);
    }
    .admin-page .admin-main-scroll {
        overflow: visible;
        min-height: auto;
    }
    .admin-page .admin-topbar {
        padding: 0 16px;
        height: auto;
        min-height: var(--admin-header-h);
    }
    .admin-page .admin-topbar-search {
        max-width: none;
    }
    .admin-page .admin-nav-brand {
        height: auto;
        min-height: var(--admin-header-h);
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .admin-page .admin-page-header,
    .admin-page .admin-main-inner {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
    .admin-page .admin-main-inner {
        padding-bottom: 36px;
    }
    #sidebar-container {
        top: var(--app-top-bar-block);
        bottom: auto;
        left: 0;
        width: 0;
        overflow: hidden;
        height: calc(100vh - var(--app-top-bar-block));
        z-index: 950;
        pointer-events: none;
    }
    #sidebar-container.is-legacy-open {
        width: 100%;
        max-width: 100%;
        overflow: visible;
        pointer-events: auto;
    }
    .sidebar-panels-viewport { width: 100%; border-radius: 20px 20px 0 0; }
    #sidebar { width: 100%; height: 100%; border-radius: 0; }
    #sidebar-routes,
    #sidebar-shopping { width: 100%; height: 100%; border-radius: 0; }
    #right-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
        border-radius: 12px 12px 0 0;
        top: var(--app-top-ui-offset);
        height: calc(100vh - var(--app-top-ui-offset));
        max-height: calc(100vh - var(--app-top-ui-offset));
        z-index: 1100;
    }
    #right-sidebar.open { right: 0; }
    .travel-plan-panel {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        height: min(78vh, 560px);
        max-height: min(78vh, 560px);
        transform: translateY(110%);
    }
    .travel-plan-root.open .travel-plan-panel {
        transform: translateY(0);
    }
    .travel-plan-root {
        z-index: 1200;
    }
}

.editor-create-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.editor-create-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.editor-new-route-btn {
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #fff;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}
.editor-new-route-btn:hover {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.28);
}

/* —— Editor Desk route builder form —— */
.editor-form-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}
.editor-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.editor-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}
.editor-upload-box {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.editor-upload-box:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}
.editor-upload-box.is-dragover {
    border-color: #2563eb;
    background: #eff6ff;
}
.editor-upload-box.has-preview {
    padding: 0;
    border-style: solid;
    border-color: #cbd5e1;
    background: #0f172a;
}
.editor-upload-box.has-preview:hover {
    border-color: #94a3b8;
}
.editor-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
.editor-upload-box .upload-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0;
}
.editor-upload-box p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}
.editor-cover-preview {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    pointer-events: none;
}
.editor-cover-change {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
}
.editor-upload-box.has-preview .editor-upload-placeholder {
    display: none;
}
.editor-upload-box.has-preview .editor-cover-preview,
.editor-upload-box.has-preview .editor-cover-change {
    display: block;
}
.editor-flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}
.editor-meta-block {
    gap: 12px;
}
.editor-route-stats-section {
    gap: 8px;
}
.editor-route-stats-hint {
    margin: 0 0 4px;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}
.editor-route-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    width: 100%;
}
.editor-route-stats-grid .premium-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.editor-destination-auto {
    background: #f8fafc !important;
    color: #475569;
    cursor: default;
}
.editor-destination-auto:focus {
    outline: none;
    box-shadow: none;
    border-color: #e2e8f0;
}
@media (max-width: 520px) {
    .editor-route-stats-grid {
        grid-template-columns: 1fr;
    }
}
.editor-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: start;
    width: 100%;
}
.editor-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.editor-meta-grid .editor-label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-height: 1.2em;
}
.editor-sidebar .editor-select.premium-input,
.editor-meta-grid .editor-select {
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 28px 0 10px;
    line-height: 40px;
    font-size: 0.82rem;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.editor-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.editor-char-count {
    font-size: 0.75rem;
    color: #94a3b8;
}
.builder-drag-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* —— Editor Route Stops (Add Stop timeline) —— */
.editor-stops-section {
    gap: 10px;
}
.editor-stops-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.editor-stops-hint {
    font-size: 0.72rem;
    color: #94a3b8;
}
.editor-stops-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: editor-stop;
}
.editor-stop-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    padding: 0 0 14px;
    position: relative;
    counter-increment: editor-stop;
}
.editor-stop-card.is-dragging {
    opacity: 0.55;
}
.editor-stop-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}
.editor-stop-rail::after {
    content: '';
    position: absolute;
    top: 28px;
    bottom: -14px;
    left: 50%;
    width: 0;
    border-left: 2px dashed #cbd5e1;
    transform: translateX(-50%);
}
.editor-stop-card:last-child .editor-stop-rail::after {
    display: none;
}
.editor-stop-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1f6b45;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.editor-stop-num::before {
    content: counter(editor-stop);
}
.editor-stop-body {
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: grab;
}
.editor-stop-body:active {
    cursor: grabbing;
}
.editor-stop-top {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    gap: 8px;
    align-items: start;
}
.editor-stop-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(145deg, #e2e8f0, #f8fafc);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.editor-stop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.editor-stop-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.editor-stop-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.editor-stop-fields .editor-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}
.editor-sidebar .editor-stop-fields .premium-input {
    padding: 8px 10px;
    font-size: 0.82rem;
    border-radius: 8px;
    min-height: 0;
    resize: vertical;
}
.editor-sidebar .editor-stop-fields textarea.premium-input {
    min-height: 52px;
}
.stop-location-host {
    width: 100%;
    min-width: 0;
}
.stop-location-host .editor-place-autocomplete,
.stop-location-host gmp-place-autocomplete {
    width: 100%;
    display: block;
    max-width: 100%;
}
.stop-location-host .stop-location-fallback {
    width: 100%;
}
.editor-stop-menu {
    position: relative;
    display: flex;
    justify-content: flex-end;
}
.editor-stop-menu-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
}
.editor-stop-menu-btn:hover {
    background: #f1f5f9;
    color: #475569;
}
.editor-stop-menu-pop {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 5;
    min-width: 120px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 4px;
    display: none;
}
.editor-stop-menu-pop.is-open {
    display: block;
}
.editor-stop-menu-pop button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #b91c1c;
    cursor: pointer;
}
.editor-stop-menu-pop button:hover {
    background: #fef2f2;
}
.editor-stop-media {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 56px;
}
.editor-stop-media-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.editor-stop-media-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.editor-stop-media-slide {
    position: relative;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}
.editor-stop-media-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.editor-stop-media-loc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 4px 3px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.82));
    color: #fff;
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.editor-stop-media-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}
.editor-stop-add-media {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px dashed #86efac;
    background: #f0fdf4;
    color: #15803d;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.editor-stop-add-media:hover {
    background: #dcfce7;
}
.editor-stop-media-hint {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}
.editor-add-stop-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px dashed #86efac;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.editor-add-stop-btn:hover {
    background: #dcfce7;
    border-color: #4ade80;
}
.editor-add-stop-plus {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #166534;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}
.stop-item {
    padding: 0;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
}
.stop-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
}
.stop-item-addr {
    font-size: 0.75rem;
    color: #64748b;
}
.stop-item-coord {
    font-size: 0.7rem;
    color: #94a3b8;
}
/* Google Places dropdown above editor sidebar (z-index 1300) */
.pac-container {
    z-index: 1400 !important;
}
.premium-modal-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.premium-modal-primary-btn:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   TRIAL: açık soğuk mavi hover
   Beğenilmezse bu bloğu + :root içindeki --hover-cool-blue-* değişkenlerini sil.
   ========================================================================== */
.app-top-nav-item:hover:not(:disabled):not(.is-active),
.app-top-role-action:hover,
.app-top-auth-link:hover,
.app-top-notify:hover,
#nav-notification-btn:hover,
.app-top-cta:hover,
.profile-dropdown-item:hover,
.premium-cat-item:hover,
.premium-back-btn:hover,
.premium-collapse-btn:hover,
.premium-l3-tab:hover:not(.is-active),
.premium-l3-icon-btn:hover,
.premium-l3-follow-btn:hover,
.premium-l3-slider-btn:hover,
.editor-nav-btn:hover,
.editor-add-stop-btn:hover,
.editor-stop-add-media:hover,
.editor-stop-menu-btn:hover,
.routes-acc-trigger:hover,
.routes-sub-trigger:hover,
.routes-country-toggle:hover,
.routes-country-btn:hover,
.routes-link-btn:hover,
.btn-secondary:hover,
.close-modal-btn:hover,
.notification-panel-close:hover,
.notification-sidebar-close:hover {
    background: var(--hover-cool-blue-bg) !important;
    color: var(--hover-cool-blue-text) !important;
    border-color: var(--hover-cool-blue-border);
}

.premium-cat-item:hover .premium-cat-icon {
    background: var(--hover-cool-blue-bg-strong) !important;
    color: var(--hover-cool-blue-text) !important;
    border-color: var(--hover-cool-blue-border) !important;
}

.premium-catalog-card:hover {
    box-shadow: 0 8px 22px rgba(70, 160, 210, 0.22);
    outline: 1.5px solid var(--hover-cool-blue-border);
    outline-offset: 2px;
}

.premium-l3-tab.is-active:hover,
.app-top-nav-item.is-active:hover {
    color: var(--hover-cool-blue-text) !important;
}

.editor-nav-btn.is-active:hover {
    background: var(--hover-cool-blue-bg-strong) !important;
    color: var(--hover-cool-blue-text) !important;
}

button.premium-l3-author-trigger:hover,
button.premium-l3-author-trigger[aria-expanded="true"] {
    color: var(--hover-cool-blue-text) !important;
}

.l3-author-mini-card-close:hover,
.editor-stop-media-remove:hover {
    background: var(--hover-cool-blue-bg-strong) !important;
    color: var(--hover-cool-blue-text) !important;
}

.premium-modal-primary-btn:hover,
.btn-primary:hover {
    background: #3b9fd4 !important;
}