/* ===== 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); height: calc(100dvh - 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-back-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--gray-100); color: var(--navy);
    font-size: 16px; margin-bottom: 16px; transition: all 0.2s;
    text-decoration: none;
}
.rota-back-btn:hover { background: var(--orange); color: #fff; }
.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-popup, .rota-sidebar-body { scrollbar-width: none; -ms-overflow-style: none; }
    .rota-popup::-webkit-scrollbar, .rota-sidebar-body::-webkit-scrollbar { display: none; }
    .rota-builder { flex-direction: column; height: auto; min-height: calc(100vh - 60px); min-height: calc(100dvh - 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: 12px; }
    .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; }

    /* Popup typography — smaller text for mobile */
    .rota-popup { border-radius: 16px; }
    .rota-popup-step1 { padding: 26px 20px; }
    .rota-popup-step1 h2 { font-size: 18px; }
    .rota-popup-step1 p { font-size: 12.5px; margin-bottom: 20px; }
    .rota-popup-choices { gap: 10px; }
    .rota-popup-choice { padding: 14px; gap: 12px; border-radius: 12px; }
    .rota-popup-choice-icon { width: 44px; height: 44px; border-radius: 11px; font-size: 18px; }
    .rota-popup-choice h3 { font-size: 14px; }
    .rota-popup-choice span { font-size: 12px; }
    .rota-popup-step1b { padding: 24px 20px; }
    .rota-popup-step1b h2 { font-size: 17px; }
    .rota-popup-step1b > p { font-size: 12px; }
    .rota-popup-tab { padding: 12px 10px; font-size: 13px; }
    .rota-popup-form { padding: 20px 20px; }
    .rota-popup-form h2 { font-size: 17px; }
    .rota-popup-form > p { font-size: 12px; margin-bottom: 18px; }
    .rpf-field label { font-size: 12px; }
    .rpf-field select, .rpf-field input { font-size: 13px; padding: 10px 12px; }
    .rpf-chips-label { font-size: 12px; }
    .rpf-chip { font-size: 12px; padding: 8px 14px; }
    .rpf-extras-toggle { font-size: 12px; }
}

/* ===== ROTA POPUP MODAL ===== */
.rota-popup-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 10000; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(4px);
}
.rota-popup-overlay.active { display: flex; }
.rota-popup {
    background: var(--white); border-radius: 20px; width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: rotaPopupIn 0.3s ease; transition: max-width 0.3s ease;
    scrollbar-width: thin; scrollbar-color: var(--gray-300) transparent;
}
.rota-popup::-webkit-scrollbar { width: 5px; }
.rota-popup::-webkit-scrollbar-track { background: transparent; }
.rota-popup::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
.rota-popup::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
.rota-popup.wide { max-width: 920px; }
@keyframes rotaPopupIn { from { opacity:0; transform: scale(0.92) translateY(20px); } to { opacity:1; transform: none; } }
.rota-popup-close {
    position: absolute; top: 14px; right: 14px; background: var(--gray-100);
    border: none; width: 36px; height: 36px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer; font-size: 16px;
    color: var(--gray-500); transition: all 0.2s; z-index: 2;
}
.rota-popup-close:hover { background: var(--gray-200); color: var(--navy); }

/* Popup Step 1 - Choice */
.rota-popup-step1 { padding: 40px 40px; text-align: center; }
.rota-popup-step1 h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.rota-popup-step1 p { font-size: 14px; color: var(--gray-500); margin-bottom: 28px; }
.rota-popup-choices { display: flex; flex-direction: column; gap: 14px; }
.rota-popup-choice {
    display: flex; align-items: center; gap: 16px; padding: 20px;
    border: 2px solid var(--gray-200); border-radius: 16px; cursor: pointer;
    transition: all 0.2s; text-align: left; background: none; width: 100%;
}
.rota-popup-choice:hover { border-color: var(--orange); background: rgba(245,158,11,0.03); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.rota-popup-choice-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.rota-popup-choice-icon.manual { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.rota-popup-choice-icon.surprise { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; }
.rota-popup-choice-icon.city { background: linear-gradient(135deg, #10b981, #0ea5e9); color: #fff; }

/* ===== Şehri Ben Seçeceğim - City Picker ===== */
.rota-popup-step1b { display: none; padding: 32px 36px; }
.rota-popup-step1b h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.rota-popup-step1b > p { font-size: 13px; color: var(--gray-500); margin: 0 0 16px; }
.rcp-search-wrap { position: relative; margin-bottom: 14px; }
.rcp-search-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 14px; pointer-events: none; }
.rcp-search { width: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--gray-200); border-radius: 10px; font-size: 14px; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.rcp-search:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.12); }
.rcp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px 2px; }
.rcp-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px; color: var(--gray-500); font-size: 13px; }
.rcp-empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--gray-500); font-size: 13px; }
.rcp-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--gray-700); text-align: left; cursor: pointer; transition: all .2s; }
.rcp-item:hover { border-color: #10b981; background: #ecfdf5; color: #065f46; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(16,185,129,0.15); }
.rcp-item i { color: #10b981; font-size: 12px; }
.rcp-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Seçilen şehir bandı (Step 2 üstü) */
.rcp-selected-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(135deg, #ecfdf5, #dbeafe); border: 1px solid #a7f3d0; border-radius: 10px; margin: 18px 24px 0; font-size: 13px; color: #065f46; }
.rcp-selected-banner > i { color: #10b981; font-size: 14px; }
.rcp-selected-banner span { flex: 1; }
.rcp-selected-banner strong { color: var(--navy); font-weight: 700; }
.rcp-selected-clear { background: transparent; border: none; color: #ef4444; cursor: pointer; font-size: 14px; padding: 4px 6px; border-radius: 6px; transition: background .2s; }
.rcp-selected-clear:hover { background: rgba(239,68,68,0.1); }

@media (max-width: 576px) {
    .rcp-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); max-height: 320px; }
    .rcp-item { font-size: 12px; padding: 9px 10px; }
}
.rota-popup-choice h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.rota-popup-choice span { font-size: 13px; color: var(--gray-500); }

/* Popup Step 2 - Kararsız Tatilci */
.rota-popup-step2 { display: none; position: relative; }
.rota-popup-tabs {
    display: flex; border-bottom: 2px solid var(--gray-100);
    margin: 0 24px;
}
.rota-popup-tab {
    flex: 1; padding: 16px; text-align: center; font-size: 14px; font-weight: 600;
    color: var(--gray-400); background: none; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.rota-popup-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.rota-popup-tab:hover:not(.active) { color: var(--gray-600); }
.rota-popup-form { padding: 28px 40px; }
.rota-popup-form h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.rota-popup-form > p { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; }

/* Form fields */
.rpf-row { display: flex; gap: 14px; margin-bottom: 20px; }
.rpf-field { flex: 1; }
.rpf-field label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.rpf-field select, .rpf-field input {
    width: 100%; padding: 12px 14px; border: 2px solid var(--gray-200); border-radius: 12px;
    font-size: 14px; color: var(--navy); background: var(--white); outline: none;
    transition: border-color 0.2s; appearance: none; -webkit-appearance: none;
}
.rpf-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.rpf-field select:focus, .rpf-field input:focus { border-color: var(--orange); }

/* Chip groups */
.rpf-chips-label { font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 10px; }
.rpf-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.rpf-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
    border: 2px solid var(--gray-200); border-radius: 50px; font-size: 13px;
    font-weight: 600; color: var(--gray-600); background: var(--white);
    cursor: pointer; transition: all 0.2s; user-select: none;
}
.rpf-chip:hover { border-color: var(--orange); color: var(--orange); }
.rpf-chip.active { border-color: var(--orange); background: rgba(245,158,11,0.08); color: var(--orange); }
.rpf-chip .chip-emoji { font-size: 16px; }

/* Extra preferences toggle */
.rpf-extras-toggle {
    display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
    color: var(--orange); cursor: pointer; margin-bottom: 12px; background: none;
    border: none; padding: 0;
}
.rpf-extras-toggle i { font-size: 10px; transition: transform 0.2s; }
.rpf-extras-toggle.open i { transform: rotate(180deg); }
.rpf-extras-wrap { display: none; margin-bottom: 20px; }
.rpf-extras-wrap.open { display: flex; flex-wrap: wrap; gap: 10px; }

/* Action buttons */
.rpf-actions { display: flex; gap: 12px; margin-bottom: 8px; }
.rpf-btn-back {
    flex: 1; padding: 14px; border: 2px solid var(--gray-200); border-radius: 14px;
    font-size: 14px; font-weight: 600; color: var(--gray-600); background: var(--white);
    cursor: pointer; transition: all 0.2s;
}
.rpf-btn-back:hover { border-color: var(--gray-300); background: var(--gray-50); }
.rpf-btn-surprise {
    flex: 1; padding: 14px; border: 2px solid var(--gray-200); border-radius: 14px;
    font-size: 14px; font-weight: 600; color: var(--gray-600); background: var(--white);
    cursor: pointer; transition: all 0.2s;
}
.rpf-btn-surprise:hover { border-color: #8b5cf6; color: #8b5cf6; background: rgba(139,92,246,0.04); }
.rpf-btn-submit {
    width: 100%; padding: 16px; border: none; border-radius: 14px; font-size: 16px;
    font-weight: 700; color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444);
    cursor: pointer; transition: all 0.2s; display: flex; align-items: center;
    justify-content: center; gap: 8px;
}
.rpf-btn-submit:hover { box-shadow: 0 8px 24px rgba(245,158,11,0.35); transform: translateY(-1px); }

/* Kişisel Öneri tab */
.rota-popup-personal { display: none; padding: 28px 40px; text-align: center; }
.rota-popup-personal.active { display: block; }
.rota-popup-personal h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.rota-popup-personal p { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
.rpf-personal-input {
    width: 100%; padding: 14px 16px; border: 2px solid var(--gray-200); border-radius: 14px;
    font-size: 14px; color: var(--navy); outline: none; resize: none; height: 120px;
    transition: border-color 0.2s; margin-bottom: 16px; font-family: inherit;
}
.rpf-personal-input:focus { border-color: var(--orange); }

/* Loading state */
.rpf-loading { display: none; flex-direction: column; align-items: center; padding: 48px 32px; text-align: center; }
.rpf-loading.active { display: flex; }
.rpf-loading-spinner {
    width: 56px; height: 56px; border: 4px solid var(--gray-200);
    border-top-color: var(--orange); border-radius: 50%;
    animation: rpfSpin 0.8s linear infinite; margin-bottom: 20px;
}
@keyframes rpfSpin { to { transform: rotate(360deg); } }
.rpf-loading h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.rpf-loading p { font-size: 13px; color: var(--gray-500); }

/* ===== SUGGESTION RESULTS ===== */
.rpf-suggestions { display: none; padding: 24px; }
.rpf-suggestions.active { display: block; }
.rpf-suggestions-title {
    font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 2px; text-align: center;
    background: linear-gradient(135deg, var(--navy), var(--orange));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rpf-suggestions-sub { font-size: 13px; color: var(--gray-400); margin-bottom: 22px; text-align: center; font-weight: 500; }
.rpf-suggestions-grid { display: flex; gap: 16px; margin-bottom: 20px; }
.rpf-suggestion-card {
    flex: 1; background: var(--white); border: 1.5px solid var(--gray-100); border-radius: 14px;
    padding: 22px 16px 18px; text-align: center; transition: all 0.25s; position: relative; overflow: hidden;
}
.rpf-suggestion-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ef4444); opacity: 0; transition: opacity 0.25s;
}
.rpf-suggestion-card:hover { border-color: var(--orange); box-shadow: 0 8px 28px rgba(245,158,11,0.12); transform: translateY(-3px); }
.rpf-suggestion-card:hover::before { opacity: 1; }
.rpf-suggestion-globe {
    width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 12px;
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(239,68,68,0.08)); display: flex;
    align-items: center; justify-content: center; font-size: 22px;
}
.rpf-suggestion-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 10px; }
.rpf-suggestion-tag {
    display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px;
    font-size: 10px; font-weight: 600; letter-spacing: 0.2px;
}
.rpf-suggestion-tag.match { background: rgba(245,158,11,0.08); color: #ea580c; border: 1px solid rgba(245,158,11,0.15); }
.rpf-suggestion-tag.visa { background: rgba(22,163,106,0.06); color: #16a34a; border: 1px solid rgba(22,163,106,0.12); }
.rpf-suggestion-city { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 6px; letter-spacing: -0.3px; }
.rpf-suggestion-country { font-size: 12px; color: var(--gray-400); margin-bottom: 10px; }
.rpf-suggestion-desc {
    font-size: 12px; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px;
    min-height: 48px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Mekan Önerileri */
.rpf-highlights { margin-bottom: 14px; }
.rpf-highlights-title {
    font-size: 11px; font-weight: 700; color: var(--orange);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.rpf-highlights-title i { font-size: 12px; }
.rpf-highlights-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.rpf-highlight-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px; border-radius: 8px;
    background: var(--gray-50); border: 1px solid var(--gray-100);
    transition: all 0.2s;
}
.rpf-highlight-item:hover { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.2); }
.rpf-highlight-item i {
    font-size: 12px; color: var(--orange); flex-shrink: 0;
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    background: rgba(245,158,11,0.1); border-radius: 6px;
}
.rpf-hl-name { display: block; font-size: 11px; font-weight: 600; color: var(--gray-800); line-height: 1.3; }
.rpf-hl-cat { display: block; font-size: 10px; color: var(--gray-400); line-height: 1.2; }

.rpf-suggestion-stats {
    display: flex; justify-content: center; gap: 16px; padding: 10px 0;
    border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); margin-bottom: 14px;
}
.rpf-suggestion-stat { text-align: center; flex: 1; }
.rpf-suggestion-stat strong { display: block; font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.rpf-suggestion-stat small { font-size: 10px; color: var(--gray-400); }
.rpf-suggestion-actions { display: flex; gap: 8px; justify-content: center; }
.rpf-btn-create-route {
    padding: 9px 16px; border: none; border-radius: 10px; font-size: 12px; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); cursor: pointer;
    transition: all 0.25s; display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 2px 8px rgba(245,158,11,0.2);
}
.rpf-btn-create-route:hover { box-shadow: 0 6px 20px rgba(245,158,11,0.35); transform: translateY(-2px); }
.rpf-btn-details {
    padding: 9px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 12px;
    font-weight: 600; color: var(--gray-500); background: var(--white); cursor: pointer; transition: all 0.25s;
}
.rpf-btn-details:hover { border-color: var(--orange); color: var(--orange); background: rgba(245,158,11,0.03); }
.rpf-suggestions-back {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 9px 20px;
    border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 12px; font-weight: 600;
    color: var(--gray-500); background: var(--white); cursor: pointer; transition: all 0.25s;
}
.rpf-suggestions-back:hover { border-color: var(--orange); color: var(--orange); }

/* AI Route Generation Loading */
.rpf-ai-loading { display: none; text-align: center; padding: 40px 30px; }
.rpf-ai-loading.active { display: block; }
.rpf-ai-loading-icon {
    width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ef4444); display: flex; align-items: center;
    justify-content: center; font-size: 32px; animation: rpfAiPulse 2s ease-in-out infinite;
}
@keyframes rpfAiPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.rpf-ai-loading h3 { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.rpf-ai-loading-sub { font-size: 13px; color: var(--orange); font-weight: 600; margin-bottom: 2px; }
.rpf-ai-loading-detail { font-size: 12px; color: var(--gray-400); margin-bottom: 20px; }
.rpf-ai-progress-wrap { position: relative; margin-bottom: 16px; }
.rpf-ai-progress-bar {
    width: 100%; height: 10px; border-radius: 6px; background: var(--gray-100); overflow: hidden;
}
.rpf-ai-progress-fill {
    height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b);
    background-size: 200% 100%; animation: rpfProgressShimmer 2s linear infinite;
    transition: width 0.6s ease;
}
@keyframes rpfProgressShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.rpf-ai-progress-pct {
    position: absolute; right: 0; top: -20px; font-size: 13px; font-weight: 700; color: var(--orange);
}
.rpf-ai-steps {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 20px;
}
.rpf-ai-step-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--gray-200); transition: all 0.3s;
}
.rpf-ai-step-dot.done { background: var(--orange); }
.rpf-ai-step-dot.active { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.5); }

@media (max-width: 768px) {
    .rpf-suggestions-grid { flex-direction: column; }
    .rpf-suggestion-card { padding: 20px 14px; }
    .rpf-suggestions { padding: 16px; }
    .rpf-highlights-list { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .rota-popup { border-radius: 16px 16px 0 0; max-height: 95vh; align-self: flex-end; }
    .rota-popup-step1 { padding: 32px 24px; }
    .rota-popup-form { padding: 24px 22px; }
    .rota-popup-personal { padding: 24px 22px; }
    .rota-popup-step1b { padding: 24px 20px; }
    .rota-popup-tabs { margin: 0 16px; }
    .rcp-selected-banner { margin: 14px 16px 0; }
    .rpf-row { flex-direction: column; gap: 12px; }
    .rota-popup-choice { padding: 16px; }
    .rota-popup-choice-icon { width: 48px; height: 48px; font-size: 20px; }
}

/* Dark mode */
[data-theme="dark"] .rota-popup { background: var(--card-bg); }
[data-theme="dark"] .rota-popup-choice { border-color: var(--gray-200); }
[data-theme="dark"] .rota-popup-choice:hover { background: rgba(245,158,11,0.05); }
[data-theme="dark"] .rpf-chip { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .rpf-field select, [data-theme="dark"] .rpf-field input { background: var(--card-bg); border-color: var(--gray-200); color: var(--text-primary); }
[data-theme="dark"] .rpf-personal-input { background: var(--card-bg); border-color: var(--gray-200); color: var(--text-primary); }
[data-theme="dark"] .rpf-btn-back, [data-theme="dark"] .rpf-btn-surprise { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .rpf-suggestion-card { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .rpf-suggestion-card::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
[data-theme="dark"] .rpf-suggestions-title { background: linear-gradient(135deg, #e2e8f0, var(--orange)); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .rpf-suggestion-city { color: var(--text-primary); }
[data-theme="dark"] .rpf-suggestion-stat strong { color: var(--text-primary); }
[data-theme="dark"] .rpf-highlight-item { background: rgba(255,255,255,0.04); border-color: var(--gray-200); }
[data-theme="dark"] .rpf-highlight-item:hover { background: rgba(245,158,11,0.08); }
[data-theme="dark"] .rpf-hl-name { color: var(--text-primary); }
[data-theme="dark"] .rpf-hl-cat { color: var(--gray-400); }
[data-theme="dark"] .rpf-btn-details { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .rpf-suggestions-back { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .rpf-ai-progress-bar { background: var(--gray-200); }
[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); }
