/* ===== ROTA TASARLA PAGE ===== */
/* Landing / My Routes page */
.rota-landing-hero {
    text-align: center; padding: 48px 20px;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(239,68,68,0.06));
    border-radius: 16px; margin-bottom: 32px;
}
.rota-landing-hero .rota-icon-wrap {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
    background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
}
.rota-landing-hero h1 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.rota-landing-hero p { font-size: 15px; color: var(--gray-700); margin-bottom: 24px; }
.btn-rota-create {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
    background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
    border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-rota-create:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.35); }

/* Rota page menu */
/* Rota tasarla wrapper */
.rota-tasarla-wrapper {
    display: flex; flex-direction: column;
}
.rota-tasarla-wrapper .rota-page-menu { order: 2; }
.rota-tasarla-wrapper .rota-landing-hero { order: 1; }

.rota-page-menu {
    display: flex; gap: 12px; margin-bottom: 28px;
    justify-content: center; flex-wrap: wrap;
}
.rota-menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 12px;
    font-size: 15px; font-weight: 600; text-decoration: none;
    color: var(--navy); background: var(--white);
    border: 2px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.rota-menu-btn i { font-size: 16px; color: var(--orange); }
.rota-menu-btn:hover {
    border-color: var(--orange); color: var(--orange);
    box-shadow: 0 4px 16px rgba(245,158,11,0.15);
    transform: translateY(-1px);
}
.rota-menu-btn.active {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}
.rota-menu-btn.active i { color: #fff; }

/* Route list cards */
.rota-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.rota-list-card {
    background: var(--white); border-radius: 14px; padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.2s;
    border: 1.5px solid var(--gray-200); position: relative;
}
.rota-list-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.rota-list-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.rota-list-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0; }
.rota-list-card-meta { display: flex; gap: 12px; font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.rota-list-card-meta i { margin-right: 4px; }
.rota-status-badge {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.rota-status-badge.taslak { background: #fef3c7; color: #92400e; }
.rota-status-badge.yayinda { background: #d1fae5; color: #065f46; }
.rota-list-card-actions { display: flex; gap: 8px; }
.rota-list-card-actions a, .rota-list-card-actions button,
.rota-detay-actions a, .rota-detay-actions button {
    padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: none; cursor: pointer; text-decoration: none; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 4px;
}
.btn-rota-edit { background: var(--orange); color: #fff; }
.btn-rota-edit:hover { background: #d97706; }
.btn-rota-share { background: var(--gray-100); color: var(--navy); }
.btn-rota-share:hover { background: var(--gray-200); }
.btn-rota-delete { background: none; color: var(--gray-400); font-size: 14px; padding: 8px 10px; }
.btn-rota-delete:hover { color: #ef4444; }
.btn-rota-view { background: none; color: var(--gray-400); font-size: 14px; padding: 8px 10px; }
.btn-rota-view:hover { color: var(--orange); }

/* ===== ROTA KEŞFET ===== */
.rota-explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.rota-explore-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1.5px solid var(--gray-200);
    transition: box-shadow 0.2s, transform 0.2s;
}
.rota-explore-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.rota-explore-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 0;
}
.rota-explore-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 600;
}
.rota-explore-user i { font-size: 20px; color: var(--gray-300); }
.rota-explore-card-body {
    display: block;
    padding: 14px 18px 18px;
    text-decoration: none;
    color: inherit;
}
.rota-explore-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px;
}
.rota-explore-desc {
    font-size: 13px;
    color: var(--gray-700);
    margin: 0 0 10px;
    line-height: 1.4;
}
.rota-explore-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--gray-500);
}
.rota-explore-meta i { margin-right: 3px; }

/* Like button */
.btn-rota-like {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}
.btn-rota-like:hover { border-color: #ef4444; color: #ef4444; }
.btn-rota-like.liked { border-color: #ef4444; color: #ef4444; }
.btn-rota-like.liked i { color: #ef4444; }
.btn-rota-like .like-count { font-size: 12px; }

@media (max-width: 600px) {
    .rota-explore-grid { grid-template-columns: 1fr; }
}

/* ===== ROTA BUILDER (create/edit) ===== */
.rota-builder { display: flex; height: calc(100vh - 80px); overflow: hidden; }
.rota-sidebar {
    width: 420px; min-width: 420px; background: var(--white);
    border-right: 1.5px solid var(--gray-200); display: flex; flex-direction: column;
    overflow: hidden;
}
.rota-sidebar-header {
    padding: 20px; border-bottom: 1px solid var(--gray-200);
    background: #fafafa;
}
.rota-sidebar-header input[type="text"] {
    width: 100%; border: none; background: transparent; font-size: 18px;
    font-weight: 700; color: var(--navy); outline: none; padding: 4px 0;
}
.rota-sidebar-header textarea {
    width: 100%; border: none; background: transparent; font-size: 13px;
    color: var(--gray-500); outline: none; resize: none; padding: 4px 0; height: 36px;
}
.rota-sidebar-body { flex: 1; overflow-y: auto; padding: 16px; }
.rota-sidebar-footer {
    padding: 16px; border-top: 1px solid var(--gray-200);
    display: flex; gap: 8px; background: #fafafa;
}
.rota-sidebar-footer button {
    flex: 1; padding: 12px; border-radius: 10px; font-size: 14px;
    font-weight: 600; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-rota-save { background: var(--gray-100); color: var(--navy); }
.btn-rota-save:hover { background: var(--gray-200); }
.btn-rota-publish { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.btn-rota-publish:hover { box-shadow: 0 4px 16px rgba(245,158,11,0.35); }

/* Day cards */
.rota-day-card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: 12px; margin-bottom: 12px; overflow: hidden;
}
.rota-day-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; cursor: pointer; user-select: none;
    background: #fafafa; transition: background 0.2s;
}
.rota-day-header:hover { background: var(--gray-100); }
.rota-day-header .day-label {
    font-size: 14px; font-weight: 700; color: var(--navy);
    display: flex; align-items: center; gap: 8px;
}
.rota-day-header .day-label .day-dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.rota-day-header .day-actions { display: flex; gap: 6px; }
.rota-day-header .day-actions button {
    background: none; border: none; color: var(--gray-400); cursor: pointer;
    font-size: 13px; padding: 4px 6px; border-radius: 4px; transition: all 0.2s;
}
.rota-day-header .day-actions button:hover { color: var(--navy); background: var(--gray-200); }
.rota-day-body { padding: 12px 16px; display: none; }
.rota-day-card.open .rota-day-body { display: block; }
.rota-day-card.open .rota-day-header { border-bottom: 1px solid var(--gray-200); }

/* Stop items */
.rota-stop-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}
.rota-stop-item:last-child { border-bottom: none; }
.rota-stop-icon {
    width: 32px; height: 32px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; font-size: 14px;
    flex-shrink: 0; color: #fff;
}
.rota-stop-icon.otel { background: #3b82f6; }
.rota-stop-icon.restoran { background: #ef4444; }
.rota-stop-icon.gezilecek_yer { background: #f59e0b; }
.rota-stop-icon.aktivite { background: #8b5cf6; }
.rota-stop-icon.diger { background: #6b7280; }
.rota-stop-info { flex: 1; min-width: 0; }
.rota-stop-info .stop-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.rota-stop-info .stop-meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.rota-stop-actions { display: flex; gap: 4px; flex-shrink: 0; }
.rota-stop-actions button {
    background: none; border: none; color: var(--gray-400); cursor: pointer;
    font-size: 12px; padding: 4px; border-radius: 4px;
}
.rota-stop-actions button:hover { color: var(--navy); background: var(--gray-100); }

/* Add stop button */
.btn-add-stop {
    display: flex; align-items: center; gap: 6px; width: 100%;
    padding: 10px; margin-top: 8px; border: 1.5px dashed var(--gray-300);
    border-radius: 8px; background: none; color: var(--gray-500);
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-add-stop:hover { border-color: var(--orange); color: var(--orange); background: rgba(245,158,11,0.04); }
.btn-add-day {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px; border: 2px dashed var(--gray-300);
    border-radius: 12px; background: none; color: var(--gray-500);
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-add-day:hover { border-color: var(--orange); color: var(--orange); }

/* Stop form modal */
.rota-stop-form {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: 10px; padding: 14px; margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.rota-stop-form .form-row { margin-bottom: 10px; }
.rota-stop-form label { font-size: 12px; font-weight: 600; color: var(--gray-600); margin-bottom: 4px; display: block; }
.rota-stop-form input, .rota-stop-form select, .rota-stop-form textarea {
    width: 100%; padding: 8px 12px; border: 1.5px solid var(--gray-200);
    border-radius: 8px; font-size: 13px; outline: none; transition: border-color 0.2s;
}
.rota-stop-form input:focus, .rota-stop-form select:focus, .rota-stop-form textarea:focus { border-color: var(--orange); }
.rota-stop-form textarea { resize: none; height: 60px; }
.rota-stop-form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.rota-stop-form-actions button {
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: none; cursor: pointer;
}

/* Address autocomplete */
.address-autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 999;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 2px;
}
.address-autocomplete-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-100);
}
.address-autocomplete-item:last-child { border-bottom: none; }
.address-autocomplete-item:hover { background: var(--gray-50); }
.address-autocomplete-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.address-no-result {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--gray-400);
    text-align: center;
}

/* Map container */
.rota-map-container { flex: 1; position: relative; }
.rota-map-container #rotaMap { width: 100%; height: 100%; }

/* Mobile tabs for builder */
.rota-mobile-tabs {
    display: none; background: var(--white); border-bottom: 1.5px solid var(--gray-200);
}
.rota-mobile-tabs button {
    flex: 1; padding: 12px; text-align: center; font-size: 14px; font-weight: 600;
    color: var(--gray-500); background: none; border: none; cursor: pointer;
    border-bottom: 2px solid transparent;
}
.rota-mobile-tabs button.active { color: var(--orange); border-bottom-color: var(--orange); }

/* Rota detay (view) page */
.rota-detay-hero {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(239,68,68,0.06));
    border-radius: 16px; padding: 32px; margin-bottom: 24px;
}
.rota-detay-hero h1 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.rota-detay-hero .rota-author { font-size: 14px; color: var(--gray-500); margin-bottom: 4px; }
.rota-detay-hero .rota-desc { font-size: 15px; color: var(--gray-600); margin-bottom: 16px; }
.rota-detay-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rota-detay-map { height: 400px; border-radius: 14px; overflow: hidden; margin-bottom: 24px; border: 1.5px solid var(--gray-200); }

.rota-detay-day {
    background: var(--white); border-radius: 14px; padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 16px;
    border: 1.5px solid var(--gray-200);
}
.rota-detay-day h3 {
    font-size: 16px; font-weight: 700; color: var(--navy);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.rota-detay-day h3 .day-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rota-detay-stop {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.rota-detay-stop:last-child { border-bottom: none; }

/* Toast notification */
.rota-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: var(--navy); color: #fff; padding: 12px 24px;
    border-radius: 10px; font-size: 14px; font-weight: 600;
    z-index: 9999; opacity: 0; transition: opacity 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.rota-toast.show { opacity: 1; }

/* Empty state */
.rota-empty {
    text-align: center; padding: 48px 20px;
}
.rota-empty i { font-size: 48px; color: var(--gray-300); margin-bottom: 16px; display: block; }
.rota-empty h3 { font-size: 18px; font-weight: 700; color: var(--gray-600); margin-bottom: 8px; }
.rota-empty p { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; }

/* ===== ROTA RESPONSIVE ===== */
@media (max-width: 768px) {
    .rota-builder { flex-direction: column; height: auto; min-height: calc(100vh - 60px); }
    .rota-sidebar { width: 100%; min-width: 100%; max-height: none; border-right: none; }
    .rota-map-container { height: 300px; min-height: 300px; }
    .rota-mobile-tabs { display: flex; }
    .rota-builder .rota-sidebar[style*="display: none"] { display: none !important; }
    .rota-builder .rota-map-container[style*="display: none"] { display: none !important; }
    .rota-list-grid { grid-template-columns: 1fr; }
    .rota-landing-hero { padding: 32px 16px; }
    .rota-landing-hero h1 { font-size: 22px; }
    .rota-page-menu { gap: 8px; }
    .rota-menu-btn { padding: 10px 20px; font-size: 14px; flex: 1; justify-content: center; min-width: 0; }
    .rota-tasarla-wrapper .rota-page-menu { order: 1; margin-bottom: 0; }
    .rota-tasarla-wrapper .rota-landing-hero { order: 2; }
    .rota-detay-map { height: 250px; }
    .rota-detay-hero { padding: 20px; }
    .rota-detay-hero h1 { font-size: 20px; }
}

/* Dark mode */
[data-theme="dark"] .address-autocomplete-list { background: var(--card-bg); }
[data-theme="dark"] .rota-card { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .rota-landing-hero { background: linear-gradient(135deg, rgba(245,158,11,0.05), rgba(16,185,129,0.03)); }
[data-theme="dark"] .rota-builder { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .rota-detay-hero { background: var(--card-bg); }
