/* ==========================================================================
   eTrip Design System: Ocean Blue (#0066CC) & Emerald Mint (#10B981)
   ========================================================================== */

:root {
    --primary: #0066CC;
    --primary-hover: #0052A3;
    --primary-light: #E0F2FE;
    --accent: #10B981;
    --accent-hover: #059669;
    --accent-light: #D1FAE5;
    
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-subtle: #F1F5F9;
    
    --text-main: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    --border: #E2E8F0;
    --border-focus: #38BDF8;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 102, 204, 0.12);
    --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   Navigation Bar & Search
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.nav-brand span span {
    color: var(--accent);
}

/* Unified Search Bar in Nav */
.nav-search-wrapper {
    flex: 1;
    max-width: 440px;
    position: relative;
}

.nav-search-input-box {
    display: flex;
    align-items: center;
    background: var(--bg-subtle);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    padding: 8px 16px;
    transition: var(--transition);
}

.nav-search-input-box:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.nav-search-input-box .search-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-right: 10px;
}

.nav-search-input-box input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    max-height: 440px;
    overflow-y: auto;
    display: none;
    z-index: 1050;
    text-align: left;
}

.search-group-title {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-subtle);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    border-bottom: 1px solid #F1F5F9;
}

.search-item:hover {
    background: var(--primary-light);
}

.search-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.search-item-info {
    flex: 1;
}

.search-item-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.search-item-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-selector {
    position: relative;
}

.lang-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: #E2E8F0;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    min-width: 140px;
    z-index: 1050;
}

.lang-dropdown a {
    display: block;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--text-body);
    text-decoration: none;
}

.lang-dropdown a:hover, .lang-dropdown a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.user-avatar-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    cursor: pointer;
}

.user-avatar-badge img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    min-width: 140px;
    z-index: 1050;
}

.user-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #DC2626;
    text-decoration: none;
}

.user-dropdown a:hover {
    background: #FEE2E2;
}

/* ==========================================================================
   Buttons & Core Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.35);
}

.btn-secondary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-secondary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: white;
    border-color: var(--border);
    color: var(--text-body);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-body);
}

.btn-ghost:hover {
    background: var(--bg-subtle);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pulse-hover:hover {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(0, 102, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

/* ==========================================================================
   Hero & Landing Views (Prominent Centered Search Bar)
   ========================================================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0A2540 0%, #004D99 50%, #0066CC 100%);
    color: white;
    padding: 70px 24px 60px;
    overflow: hidden;
}

.hero-backdrop-glow {
    position: absolute;
    top: -50%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(0, 102, 204, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #CBD5E1;
    max-width: 680px;
    margin: 0 auto 30px;
}

/* Big Hero Centered Search Bar */
.hero-search-container {
    max-width: 680px;
    margin: 0 auto 16px;
    position: relative;
}

.hero-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    padding: 8px 12px 8px 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.hero-search-box:focus-within {
    background: #FFFFFF;
    border-color: #34D399;
    box-shadow: 0 16px 44px rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
}

.hero-search-icon {
    color: var(--primary);
    font-size: 1.35rem;
    margin-right: 14px;
}

.hero-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    padding: 6px 0;
}

.hero-search-box input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.hero-search-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 8px;
}

.hero-search-submit-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.hero-search-submit-btn:hover {
    transform: scale(1.05);
}

.hero-quick-keywords {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #CBD5E1;
}

.kw-label {
    font-weight: 600;
}

.kw-chip {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #F8FAFC;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.kw-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats-bar {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 36px;
    border-radius: var(--radius-lg);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #34D399;
}

.stat-label {
    font-size: 0.78rem;
    color: #E2E8F0;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */
.main-content {
    flex: 1;
}

.section-container {
    max-width: 1320px;
    margin: 48px auto;
    padding: 0 24px;
}

.bg-subtle-box {
    background: #F1F5F9;
    padding: 48px 24px;
    border-radius: var(--radius-lg);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 20px;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.subpage-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-link:hover {
    text-decoration: underline;
}

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-green { color: #10B981; }
.text-blue { color: #0A84FF; }
.text-muted { color: var(--text-muted); }

/* City Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.city-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.city-img-box {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.city-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.city-card:hover .city-img-box img {
    transform: scale(1.05);
}

.city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.city-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.city-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.city-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.city-en {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.city-desc {
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: 20px;
    flex: 1;
}

.city-footer {
    display: flex;
    gap: 10px;
}

.city-footer .btn {
    flex: 1;
}

/* Itinerary Grid */
.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

/* Country List Grid */
.country-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.itinerary-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.itinerary-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.it-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.it-author img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    font-size: 0.88rem;
}

.it-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.badge-city {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}

.itinerary-title a {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.4;
    transition: var(--transition);
}

.itinerary-title a:hover {
    color: var(--primary);
}

.itinerary-meta {
    display: flex;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 14px 0 20px;
}

.itinerary-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.itinerary-actions .btn {
    flex: 1;
}

/* Category Tabs & Spots Grid */
.theme-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.theme-tab {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.theme-tab:hover, .theme-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.spot-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.spot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.spot-img-box {
    height: 180px;
    position: relative;
}

.spot-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spot-rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #FCD34D;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.spot-save-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.spot-save-btn:hover, .spot-save-btn.saved {
    background: var(--accent);
    color: white;
}

.spot-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.spot-category-label {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.spot-title a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.spot-title a:hover {
    color: var(--primary);
}

.spot-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 6px 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spot-footer-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-body);
    font-weight: 600;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: auto;
}

/* ==========================================================================
   Country & City Hero & Widgets
   ========================================================================== */
.country-hero, .city-hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 24px 40px;
}

.country-hero-container, .city-hero-container {
    max-width: 1320px;
    margin: 0 auto;
}

.country-title-row, .city-hero-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.country-flag {
    font-size: 4rem;
}

.country-name, .city-hero-name {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.country-code, .city-hero-en {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.85;
}

.country-summary, .city-hero-desc {
    max-width: 760px;
    font-size: 1rem;
    color: #E2E8F0;
    margin-top: 8px;
}

.country-widgets-bar, .city-top-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.live-clock-card, .quick-exchange-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.clock-icon, .rate-icon {
    font-size: 1.5rem;
    color: #34D399;
}

.clock-label, .rate-label {
    font-size: 0.75rem;
    color: #CBD5E1;
}

.clock-display {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: monospace;
    color: #F8FAFC;
}

.rate-value {
    font-size: 1.05rem;
    font-weight: 700;
}

.rate-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: #93C5FD;
}

/* Travel Prep Grid */
.prep-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.prep-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.prep-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.prep-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.prep-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.travel-tips-box {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: var(--radius-md);
    padding: 24px;
}

.travel-tips-box h4 {
    color: #92400E;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.tips-list {
    display: grid;
    gap: 14px;
}

.tip-item {
    display: flex;
    gap: 12px;
    font-size: 0.88rem;
    color: #78350F;
}

.tip-item i {
    font-size: 1.1rem;
    color: #D97706;
    margin-top: 3px;
}

/* ==========================================================================
   Weather & Climate Widget
   ========================================================================== */
.weather-widget-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.weather-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.weather-widget-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

.weather-subtext {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.weather-current-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.curr-temp {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
}

.curr-cond {
    font-size: 0.75rem;
}

.historical-weather-banner {
    background: #EFF6FF;
    border-left: 4px solid var(--primary);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #1E40AF;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .forecast-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

.forecast-day-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    text-align: center;
}

.forecast-day-card.today {
    background: #F0FDF4;
    border-color: var(--accent);
}

.day-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.weather-icon {
    font-size: 1.4rem;
    margin: 8px 0;
}

.day-temp {
    font-size: 0.82rem;
    font-weight: 700;
}

.rain-prob {
    font-size: 0.72rem;
    color: #0284C7;
    margin-top: 4px;
}

/* ==========================================================================
   Spot Detail View
   ========================================================================== */
.spot-hero-container {
    position: relative;
    height: 380px;
    overflow: hidden;
}

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

.spot-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
}

.spot-hero-info {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    color: white;
}

.breadcrumb-trail {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.breadcrumb-trail a {
    color: #93C5FD;
    text-decoration: none;
}

.spot-hero-category {
    font-size: 0.85rem;
    font-weight: 700;
    color: #34D399;
}

.spot-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 4px 0 8px;
}

.spot-hero-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.spot-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .spot-detail-layout {
        grid-template-columns: 1fr;
    }
}

.content-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.card-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spot-full-desc {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 24px;
}

.spot-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: var(--bg-subtle);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.highlight-item {
    text-align: center;
}

.hl-icon {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.hl-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hl-val {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Reviews List */
.reviews-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.review-source-tabs {
    display: flex;
    gap: 6px;
}

.rev-tab {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

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

.reviews-list-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-item-card {
    background: var(--bg-subtle);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.rev-user-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.rev-author { font-weight: 700; }
.rev-date { color: var(--text-muted); font-size: 0.78rem; }
.rev-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.rev-content { font-size: 0.88rem; color: var(--text-body); }

/* Sidebar: Plan B & Actions */
.side-action-card, .side-planb-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.side-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

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

.badge-planb {
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.planb-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.planb-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.planb-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.planb-item img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
}

.planb-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
    text-decoration: none;
}

.planb-name:hover {
    color: var(--primary);
}

.planb-meta {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   Itinerary Interactive Editor (Split Layout & Drag/Drop)
   ========================================================================== */
.editor-header-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    position: sticky;
    top: 65px;
    z-index: 900;
}

.editor-header-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.editor-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    text-decoration: none;
}

.editor-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}

.editor-subtext {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge-tag {
    background: #FEF3C7;
    color: #92400E;
    padding: 1px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Split View */
.editor-container {
    max-width: 1500px;
    margin: 20px auto;
    padding: 0 20px;
}

.editor-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 960px) {
    .editor-split-layout {
        grid-template-columns: 1fr;
    }
}

.editor-map-col {
    position: sticky;
    top: 150px;
}

.map-sticky-wrapper {
    height: calc(100vh - 180px);
    min-height: 480px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
}

.itinerary-map-canvas {
    width: 100%;
    height: 100%;
}

.map-overlay-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 500;
}

.map-ctrl-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

/* Leaflet zoom control (moved to bottom-left) styled to match the app */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    color: var(--text-body) !important;
}

/* Days List Column */
.day-tabs-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.day-tab-btn {
    background: white;
    border: 1.5px solid var(--border);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.day-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.day-spots-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
}

.day-tab-btn.active .day-spots-count {
    background: rgba(255, 255, 255, 0.25);
}

.day-action-toolbar {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.day-info-text h3 {
    font-size: 1.1rem;
    font-weight: 800;
}

.day-toolbar-buttons {
    display: flex;
    gap: 8px;
}

/* Sort Dropdown */
.sort-dropdown-wrapper {
    position: relative;
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    width: 300px;
    display: none;
    z-index: 1050;
    overflow: hidden;
}

.sort-opt {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid #F1F5F9;
    transition: var(--transition);
}

.sort-opt:hover {
    background: var(--accent-light);
}

.sort-opt i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 2px;
}

.sort-opt strong {
    font-size: 0.85rem;
    display: block;
}

.sort-opt small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Draggable Spot Card */
.day-spots-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.it-spot-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: grab;
    position: relative;
}

.it-spot-card.dragging {
    opacity: 0.4;
    border-color: var(--primary);
}

.it-spot-card.drag-over {
    border-top: 3px solid var(--primary);
}

.spot-card-inner {
    display: flex;
    gap: 14px;
}

.spot-handle-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.spot-order-pin {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
}

.drag-grip-icon {
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: grab;
}

.spot-details-col {
    flex: 1;
}

.spot-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.spot-heading {
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-main);
}

.spot-heading:hover {
    color: var(--primary);
}

.spot-item-actions {
    display: flex;
    gap: 6px;
}

.item-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
}

.item-action-btn:hover {
    color: var(--primary);
    background: var(--bg-subtle);
}

.item-action-btn.delete-btn:hover {
    color: #DC2626;
    background: #FEE2E2;
}

.spot-addr-line {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 4px 0 8px;
}

.spot-bottom-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px dashed var(--border);
    padding-top: 10px;
    margin-top: 8px;
}

.stay-time-input-box {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-body);
}

.stay-time-input-box select {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.82rem;
}

.btn-plan-b {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-plan-b:hover {
    background: var(--accent);
    color: white;
}

.inter-distance-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    margin: 2px 0;
}

/* Spot Search Drawer */
.spot-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1200;
    display: none;
}

.spot-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 460px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 1250;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.spot-drawer.open {
    right: 0;
}

.spot-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spot-drawer-filter {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}

.drawer-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    margin-bottom: 10px;
}

.drawer-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.88rem;
}

.drawer-category-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.drawer-cat-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

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

.spot-drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-spot-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    align-items: center;
}

.drawer-spot-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.drawer-spot-info {
    flex: 1;
}

.drawer-spot-name {
    font-weight: 700;
    font-size: 0.92rem;
}

.drawer-spot-addr {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Plan B Modal */
.planb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1300;
    display: none;
}

.planb-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 580px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1350;
    display: none;
    overflow: hidden;
}

.planb-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.planb-modal-body {
    padding: 20px 24px;
    max-height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.planb-candidate-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    align-items: center;
}

.planb-candidate-card img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.planb-cand-info {
    flex: 1;
}

.planb-cand-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ==========================================================================
   Public Itinerary View Mode
   ========================================================================== */
.view-hero-banner {
    background: linear-gradient(135deg, #004D99, #0066CC);
    color: white;
    padding: 40px 24px;
}

.view-hero-container {
    max-width: 1320px;
    margin: 0 auto;
}

.view-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.view-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.view-meta-row {
    display: flex;
    gap: 16px;
    font-size: 0.88rem;
    color: #E0F2FE;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.view-actions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.day-view-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.day-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.day-view-header h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.view-spot-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.spot-index-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.view-spot-body {
    flex: 1;
}

.view-spot-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.view-spot-name a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.spot-cat-badge {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.view-spot-addr {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.view-spot-memo {
    background: #FEF9C3;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #854D0E;
    margin: 8px 0;
}

.view-spot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-top: 8px;
}

.nav-deep-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.view-dist-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Forms & Auth
   ========================================================================== */
.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.form-header {
    margin-bottom: 24px;
}

.form-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 8px;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-field {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.social-login-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google {
    background: white;
    border: 1px solid #CBD5E1;
    color: #334155;
}

.btn-naver {
    background: #03C75A;
    color: white;
}

.divider-text {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.divider-text span {
    position: relative;
    background: white;
    padding: 0 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.alert-box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.alert-box.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 60px 24px 30px;
    margin-top: auto;
    border-top: 1px solid #1E293B;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

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

.footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.88rem;
    margin: 10px 0 16px;
    color: #64748B;
}

.copyright {
    font-size: 0.78rem;
    color: #475569;
}

.footer-col h5 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

/* ==========================================
   Map Pin Highlight & Pulse Animations
   ========================================== */
/*
   Teardrop pins (classic "map marker" silhouette) instead of flat circles —
   these read clearly as location markers against any base map color
   (roads, parks, water) instead of blending in like a plain dot.
*/
.pin-teardrop {
    position: relative;
    width: 44px;
    height: 56px;
    cursor: pointer;
    transform-origin: 50% 100%;
    filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.5));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-teardrop-svg {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    /* The path touches the viewBox edges, so the outer half of the white
       stroke sits outside it — without this it gets clipped by the SVG's
       default viewport clipping, cutting off the top/bottom/left/right edge. */
    overflow: visible;
}

.pin-teardrop-svg path {
    fill: #0066CC;
    stroke: #FFFFFF;
    stroke-width: 3;
    paint-order: stroke fill;
}

.pin-teardrop-label {
    position: absolute;
    top: 21px;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 800;
    font-size: 21px;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Small category-icon badge on the route (numbered) pin — the number is the
   primary, always-legible glyph; this is secondary detail in the corner. */
.pin-category-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #F97316;
    color: white;
    border: 2px solid #FFFFFF;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 2;
}

.custom-map-pin:hover .pin-teardrop {
    transform: scale(1.12) translateY(-2px);
}

.custom-map-pin.active-highlight,
.explore-map-pin.active-highlight {
    z-index: 1000 !important;
}

.custom-map-pin.active-highlight .pin-teardrop,
.explore-map-pin.active-highlight .pin-teardrop {
    transform: scale(1.3) translateY(-4px);
    animation: pin-pulse 1.6s infinite ease-in-out;
}

.custom-map-pin.active-highlight .pin-teardrop-svg path,
.explore-map-pin.active-highlight .pin-teardrop-svg path {
    fill: #F97316;
}

@keyframes pin-pulse {
    0% {
        filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.45)) drop-shadow(0 0 0 rgba(249, 115, 22, 0.7));
    }
    70% {
        filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.45)) drop-shadow(0 0 10px rgba(249, 115, 22, 0));
    }
    100% {
        filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.45)) drop-shadow(0 0 0 rgba(249, 115, 22, 0));
    }
}

.it-spot-card.spot-card-active,
.view-spot-card.spot-card-active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-light), 0 8px 24px rgba(0, 102, 204, 0.15) !important;
    background: #F0F7FF !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* ==========================================
   Interactive On-Map Spot Explorer
   ========================================== */
.map-top-search-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 1000;
    pointer-events: auto;
}

.map-search-input-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    gap: 8px;
}

.map-search-input-box i {
    color: var(--primary);
    font-size: 0.95rem;
}

.map-search-input-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

.map-search-clear-btn {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.8rem;
}

.map-category-pills-bar {
    position: absolute;
    top: 60px;
    left: 14px;
    right: 14px;
    z-index: 1000;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    pointer-events: auto;
    scrollbar-width: none;
}

.map-category-pills-bar::-webkit-scrollbar {
    display: none;
}

.map-cat-pill {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-cat-pill:hover,
.map-cat-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.leaflet-div-icon.explore-map-pin,
.leaflet-div-icon.custom-map-pin {
    background: transparent !important;
    border: none !important;
}

/* Explore Green / Theme Teardrop Pins on Map (candidate spots not yet added) */
.explore-pin-teardrop {
    width: 36px;
    height: 47px;
}

.explore-pin-teardrop .pin-teardrop-svg path {
    fill: #10B981;
    stroke-width: 2.5;
}

.explore-pin-teardrop .pin-teardrop-label {
    top: 18px;
    font-size: 19px;
}

.explore-map-pin:hover .explore-pin-teardrop {
    transform: scale(1.25) translateY(-2px);
}

.explore-map-pin:hover .explore-pin-teardrop .pin-teardrop-svg path {
    fill: #047857;
}

.explore-popup-box {
    min-width: 210px;
    font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', sans-serif;
}

.explore-popup-thumb {
    width: 100%;
    height: 95px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.explore-popup-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.explore-popup-meta {
    font-size: 0.75rem;
    color: #64748B;
    margin-bottom: 8px;
    line-height: 1.3;
}

.explore-popup-add-btn {
    width: 100%;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.explore-popup-add-btn:hover {
    background: #0052A3;
}

/* ==========================================
   Live Map Search & Category Spot Results Panel
   ========================================== */
.map-spots-results-panel {
    position: absolute;
    top: 104px;
    left: 14px;
    right: 14px;
    max-height: calc(100% - 170px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInSlideDown 0.2s ease-out;
}

@keyframes fadeInSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.map-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.map-results-close-btn {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.map-results-close-btn:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
}

.map-results-list {
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
}

.map-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-result-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
    transform: translateY(-1px);
    background: #F8FAFC;
}

.map-result-thumb {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.map-result-info {
    flex: 1;
    min-width: 0;
}

.map-result-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.map-result-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-result-add-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.map-result-add-btn:hover {
    background: #0052A3;
}

/* ==========================================================================
   Responsive / Mobile Adjustments
   Applies across the whole site: PC, tablet, and phone widths.
   ========================================================================== */

/* ---- Tablet (<=1024px): tighten a few wide layouts ---- */
@media (max-width: 1024px) {
    .nav-container {
        padding: 12px 16px;
    }

    .nav-search-wrapper {
        max-width: 300px;
    }

    .editor-map-col {
        top: 120px;
    }

    .map-sticky-wrapper {
        height: calc(100vh - 150px);
    }
}

/* ---- Navbar (<=900px): search bar drops to its own full-width row ---- */
@media (max-width: 900px) {
    .nav-container {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .nav-search-wrapper {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }

    .nav-actions {
        margin-left: auto;
    }
}

/* ---- Small tablet / large phone (<=768px) ---- */
@media (max-width: 768px) {
    .hero-section {
        padding: 48px 18px 40px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
        padding: 14px 20px;
    }

    .stat-divider {
        display: none;
    }

    .section-container {
        margin: 32px auto;
        padding: 0 16px;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .spot-highlight-grid {
        grid-template-columns: 1fr 1fr;
    }

    .editor-header-bar {
        top: 0;
        position: static;
        padding: 10px 16px;
        flex-shrink: 0;
    }

    /* Collapse the editor header to a single compact row on mobile: hide the
       destination/date/author subtext and shrink action buttons to icon-only,
       so this bar doesn't eat into the fixed-viewport app-shell budget. */
    .editor-subtext {
        display: none;
    }

    .editor-title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60vw;
    }

    .action-label-text {
        display: none;
    }

    .editor-actions .btn-sm {
        padding: 7px 10px;
    }

    .spot-drawer {
        width: 100%;
        right: -100%;
    }

    .sort-dropdown-menu {
        width: min(300px, 90vw);
        right: -12px;
    }

    /* ---- Itinerary editor "app shell" ----
       Instead of stacking a full map above a full day-list (which forces
       scrolling past one to reach the other), the page is capped to the
       viewport and a Map/List tab switches which single panel fills the
       remaining space, with only that panel scrolling internally. */
    html:has(.editor-split-layout),
    body:has(.editor-split-layout) {
        height: 100vh;
        overflow: hidden;
    }

    /* The site-wide marketing footer doesn't belong in this in-app editing
       screen, and would otherwise eat into the fixed 100vh budget above. */
    body:has(.editor-split-layout) .footer {
        display: none;
    }

    body:has(.editor-split-layout) .main-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .editor-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    .editor-split-layout {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        gap: 0;
    }

    .editor-map-col {
        position: static;
        flex: 1;
        width: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .map-sticky-wrapper {
        flex: 1;
        height: auto;
        min-height: 0;
        border-radius: 0;
        border-width: 0;
    }

    .editor-list-col {
        flex: 1;
        width: 100%;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px 16px;
    }

    .mobile-view-toggle {
        display: flex;
        gap: 8px;
        padding: 8px 16px;
        background: white;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .mobile-view-btn {
        flex: 1;
        padding: 9px;
        border-radius: var(--radius-sm);
        border: 1.5px solid var(--border);
        background: var(--bg-subtle);
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--text-body);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        transition: var(--transition);
    }

    .mobile-view-btn.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    /* Default view = map; JS toggles .mobile-show-list on the split layout */
    .editor-split-layout:not(.mobile-show-list) .editor-list-col {
        display: none;
    }

    .editor-split-layout.mobile-show-list .editor-map-col {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-view-toggle {
        display: none;
    }
}

/* ---- Phone (<=640px) ---- */
@media (max-width: 640px) {
    /* Collapse secondary nav text to icon-only buttons to fit the row */
    .nav-label-text {
        display: none;
    }

    .user-name {
        display: none;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn-sm,
    .lang-btn {
        padding: 7px 10px;
    }

    .country-select-btn {
        padding: 7px 10px !important;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .city-grid,
    .itinerary-grid,
    .spots-grid,
    .country-list-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px 20px;
    }

    .editor-header-container {
        justify-content: flex-start;
    }

    .editor-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .editor-actions .btn {
        flex: 1 1 auto;
    }

    .day-action-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .day-toolbar-buttons {
        flex-wrap: wrap;
    }

    .day-toolbar-buttons .btn {
        flex: 1 1 auto;
    }

    .spot-card-inner {
        gap: 10px;
    }

    .planb-modal,
    .planb-modal[style*="max-width"] {
        width: 92%;
    }

    .map-category-pills-bar {
        top: 56px;
    }
}

/* ---- Small phone (<=420px) ---- */
@media (max-width: 420px) {
    .hero-search-box {
        padding: 6px 8px 6px 16px;
    }

    .hero-quick-keywords {
        gap: 6px;
    }

    .spot-highlight-grid {
        grid-template-columns: 1fr;
    }

    .country-nav-menu {
        display: none;
    }
}



