* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --shiba-orange: #f5a962;
    --shiba-cream: #fff8f0;
    --shiba-brown: #c4834c;
    --shiba-light: #ffe4c9;
    --shiba-warm: #ffecd9;
    --card: #ffffff;
    --text: #4a3728;
    --text-light: #8b7355;
    --accent: #e8945a;
    --accent-light: #f5b98a;
    --accent-dark: #d4783e;
    --success: #22c55e;
    --success-light: #dcfce7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --border: #f0e6dc;
    --sidebar-bg: #5c4033;
    --sidebar-text: #fff8f0;
    --shadow: 0 8px 32px rgba(92,64,51,0.08);
    --shadow-hover: 0 16px 48px rgba(92,64,51,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    height: 100vh;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--shiba-cream) 0%, var(--shiba-warm) 50%, var(--shiba-light) 100%);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--shiba-cream) 0%, var(--shiba-warm) 50%, var(--shiba-light) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--shiba-orange);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 200;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.02em;
}

/* Header Itinerary Selector */
.header-itinerary-selector {
    position: relative;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.header-itinerary-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.2s;
    max-width: 200px;
}

.header-itinerary-btn:hover {
    border-color: var(--accent);
    background: white;
}

.header-itinerary-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.header-itinerary-arrow {
    font-size: 0.7rem;
    color: var(--text-light);
    transition: transform 0.2s;
}

.header-itinerary-selector.open .header-itinerary-arrow {
    transform: rotate(180deg);
}

.header-itinerary-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    max-width: 350px;
    max-height: 60vh;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.header-itinerary-selector.open .header-itinerary-dropdown {
    display: block;
}

.header-itinerary-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.header-itinerary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-light);
}

.header-itinerary-item:last-child {
    border-bottom: none;
}

.header-itinerary-item:hover {
    background: var(--bg);
}

.header-itinerary-item.active {
    background: #fff8f0;
}

.header-itinerary-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
    padding: 4px 0;
}

.header-itinerary-item-icon {
    font-size: 1.2rem;
}

.header-itinerary-item-info {
    flex: 1;
    min-width: 0;
}

.header-itinerary-item-title {
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-itinerary-item-meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

.header-itinerary-item-check {
    color: var(--accent);
    font-size: 1rem;
}

.header-itinerary-delete-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
    font-size: 0.9rem;
    border-radius: 4px;
}

.header-itinerary-delete-btn:hover {
    opacity: 1;
    background: #fee2e2;
    transform: scale(1.1);
}

.header-itinerary-new {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--accent);
    font-weight: 500;
    border-top: 1px solid var(--border);
    transition: background 0.2s;
}

.header-itinerary-new:hover {
    background: #fff8f0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

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

.login-icon {
    font-size: 1.1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--shiba-light);
    border-radius: 20px;
}

.user-avatar {
    font-size: 1.2rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.logout-btn {
    padding: 4px 10px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-light);
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
}

/* Sidebar - Wanderlog Style with Shibatabi Brand Colors */
.sidebar {
    width: 200px;
    background: linear-gradient(180deg, #5c4033 0%, #4a3528 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex: 0 0 200px;
    height: calc(100vh - 60px);
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 100;
    border-right: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    min-height: 0;
}

/* Wanderlog Section */
.wl-section {
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.wl-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.wl-section-header:hover {
    background: rgba(255,255,255,0.1);
}

.wl-section-icon {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    transition: transform 0.2s;
}

.wl-section.collapsed .wl-section-icon {
    transform: rotate(-90deg);
}

.wl-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.wl-section-content {
    padding: 0 0 8px 0;
}

.wl-section.collapsed .wl-section-content {
    display: none;
}

/* Nav Items */
.wl-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 28px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all 0.15s;
}

.wl-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.wl-nav-item.active {
    background: rgba(245,169,98,0.3);
    color: #f5a962;
    font-weight: 500;
}

.wl-nav-arrow {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* Budget Summary in Sidebar */
.wl-budget-summary {
    padding: 12px;
    text-align: center;
}

.wl-budget-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(230, 126, 34, 0.1));
    border-radius: 12px;
    margin-bottom: 12px;
}

.wl-budget-total-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.wl-budget-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5a962;
}

.wl-budget-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.wl-budget-category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.wl-budget-category-icon {
    font-size: 1rem;
}

.wl-budget-category-label {
    flex: 1;
    text-align: left;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.wl-budget-category-amount {
    font-weight: 600;
    color: #f5a962;
    font-size: 0.9rem;
}

.wl-budget-detail-btn {
    width: 100%;
    padding: 10px;
    background: rgba(245, 169, 98, 0.2);
    border: 1px solid rgba(245, 169, 98, 0.3);
    border-radius: 8px;
    color: #f5a962;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wl-budget-detail-btn:hover {
    background: rgba(245, 169, 98, 0.3);
}

.wl-budget-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Settlements */
.wl-budget-settlements {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wl-budget-settlements-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-align: left;
}

.wl-budget-settlement-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(230, 126, 34, 0.15);
    border-radius: 8px;
    margin-bottom: 6px;
}

.wl-settlement-from {
    font-size: 0.85rem;
    color: #ff6b6b;
    font-weight: 500;
}

.wl-settlement-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.wl-settlement-to {
    font-size: 0.85rem;
    color: #51cf66;
    font-weight: 500;
}

.wl-settlement-amount {
    margin-left: auto;
    font-weight: 600;
    color: #f5a962;
    font-size: 0.9rem;
}

/* Day List */
.wl-day-list {
    display: flex;
    flex-direction: column;
}

.wl-day-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 28px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    /* ホバー時のみトランジション */
}

.wl-day-item:not(.active) {
    transition: background 0.15s, color 0.15s;
}

.wl-day-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.wl-day-item.active {
    background: rgba(245,169,98,0.3);
    color: #f5a962;
    font-weight: 500;
}

.wl-day-label {
    font-weight: 500;
    flex-shrink: 0;
}

.wl-day-date {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: auto;
}

.wl-day-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.wl-day-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Day tab date label */
.day-date-label {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 4px;
}

/* Sidebar Footer */
.wl-sidebar-footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wl-footer-btn {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.wl-footer-btn:hover {
    background: rgba(245,169,98,0.3);
    border-color: #f5a962;
    color: #f5a962;
}

/* Legacy styles kept for compatibility */
.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: none;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--shiba-orange);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-tagline {
    font-size: 0.75rem;
    opacity: 0.7;
    letter-spacing: 2px;
}

.sidebar-section {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    margin-bottom: 12px;
}

.itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.itinerary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.itinerary-item:hover { background: rgba(255,255,255,0.15); }
.itinerary-item.active { background: var(--accent); color: white; }
.itinerary-item.shared { border-left: 3px solid #3498db; }
.itinerary-item.shared.active { border-left-color: white; }

.itinerary-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.itinerary-item-delete {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
}

.itinerary-item-delete:hover { opacity: 1; }

.new-itinerary-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 8px;
    color: var(--sidebar-text);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    margin-top: 10px;
}

.new-itinerary-btn:hover { background: rgba(255,255,255,0.2); border-color: var(--accent-light); }

.sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hotel-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4a90a4, #3498db);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.hotel-btn:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    transform: translateY(-1px);
}

.share-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

/* Main Content */
.main-content {
    margin-left: 200px;
    margin-top: 60px;
    display: flex;
    flex: 1 1 0%;
    height: calc(100vh - 60px);
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

/* Left Panel - LP Style */
.left-panel {
    width: 540px;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8eaed;
    flex: 0 0 540px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    min-height: 0;
}

/* ========================================
   LP Section Styles
   ======================================== */
.lp-section {
    border-bottom: 1px solid #e8eaed;
}

/* Hero Image */
.lp-hero {
    position: relative;
    width: 100%;
    height: 180px;
}

.lp-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.lp-hero-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.15s, background 0.15s;
}

.lp-hero-edit:hover {
    transform: scale(1.1);
    background: #fff;
}

/* Trip Card */
.lp-trip-card {
    padding: 20px;
    background: #fff;
    margin-top: -40px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.lp-trip-title {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 600;
    border: none;
    outline: none;
    color: #202124;
    margin-bottom: 12px;
}

.lp-trip-title::placeholder {
    color: #9aa0a6;
}

.lp-trip-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lp-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s;
}

.lp-date-row:hover {
    background: #f1f3f4;
}

.lp-date-icon {
    font-size: 1.1rem;
}

.lp-date-display {
    font-size: 1rem;
    color: #5f6368;
}

/* Calendar Picker Dropdown */
.calendar-picker-dropdown {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 20px;
    max-width: 95vw;
}

.calendar-months {
    display: flex;
    gap: 32px;
}

.calendar-month {
    width: 260px;
}

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

.calendar-month-title {
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
}

.calendar-nav {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #5f6368;
    cursor: pointer;
    transition: background 0.15s;
}

.calendar-nav:hover {
    background: #f1f3f4;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    font-size: 0.75rem;
    color: #5f6368;
    font-weight: 500;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #202124;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s;
}

.calendar-day:hover:not(.empty) {
    background: #e8f0fe;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    font-weight: 600;
    color: #1a73e8;
}

.calendar-day.start,
.calendar-day.end {
    background: #1a73e8;
    color: #fff;
    font-weight: 500;
}

.calendar-day.in-range {
    background: #e8f0fe;
    border-radius: 0;
}

.calendar-day.start {
    border-radius: 50% 0 0 50%;
}

.calendar-day.end {
    border-radius: 0 50% 50% 0;
}

.calendar-day.start.end {
    border-radius: 50%;
}

@media (max-width: 600px) {
    .calendar-months {
        flex-direction: column;
        gap: 20px;
    }
    .calendar-month {
        width: 100%;
    }
}

/* Photo Picker Modal */
.photo-picker-modal {
    width: 600px;
    max-width: 95vw;
    max-height: 85vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photo-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.photo-picker-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #202124;
}

.photo-picker-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e8eaed;
    padding: 0 20px;
}

.photo-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #5f6368;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
}

.photo-tab:hover {
    color: #1a73e8;
}

.photo-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
    font-weight: 500;
}

.photo-picker-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.photo-tab-content {
    display: none;
}

.photo-tab-content.active {
    display: block;
}

/* Upload Tab */
.photo-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.photo-upload-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.photo-upload-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

.photo-upload-desc {
    font-size: 0.9rem;
    color: #5f6368;
    margin-bottom: 20px;
}

.photo-upload-btn {
    padding: 12px 24px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.photo-upload-btn:hover {
    background: #1557b0;
}

/* Photo Grid */
.photo-select-hint {
    font-size: 0.85rem;
    color: #5f6368;
    margin-bottom: 16px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.photo-grid-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.15s;
}

.photo-grid-item:hover {
    border-color: #1a73e8;
    transform: scale(1.02);
}

.photo-grid-item.selected {
    border-color: #1a73e8;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-grid-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

.photo-selected-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    background: #1a73e8;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

/* Web Search */
.photo-search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.photo-search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dadce0;
    border-radius: 24px;
    font-size: 0.95rem;
    outline: none;
}

.photo-search-box input:focus {
    border-color: #1a73e8;
}

.photo-search-btn {
    padding: 10px 16px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 1rem;
}

.photo-search-btn:hover {
    background: #1557b0;
}

.photo-search-hint {
    font-size: 0.8rem;
    color: #5f6368;
    margin-bottom: 16px;
    line-height: 1.4;
}

.lp-users-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lp-participants {
    display: flex;
    align-items: center;
}

.lp-participant {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--shiba-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    border: 2px solid #fff;
    margin-right: -8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s;
    overflow: hidden;
}

.lp-participant:hover {
    transform: scale(1.1);
    z-index: 10;
}

.lp-participant img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lp-participant:last-child {
    margin-right: 8px;
}

.lp-invite-btn {
    width: 36px;
    height: 36px;
    background: #f1f3f4;
    border: 2px dashed #dadce0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.15s;
    font-size: 1rem;
}

.lp-invite-btn:hover {
    border-color: #1a73e8;
    background: #e8f0fe;
}

.lp-invite-plus {
    font-size: 0.6rem;
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: #1a73e8;
    color: #fff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LP Subsections */
.lp-subsection {
    padding: 16px 20px;
    border-top: 1px solid #f1f3f4;
}

.lp-subsection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.lp-subsection-toggle {
    color: #5f6368;
    font-size: 0.8rem;
}

.lp-subsection-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #202124;
}

/* Explore Button */
.lp-explore-content {
    display: flex;
    justify-content: flex-end;
}

.lp-explore-btn {
    padding: 8px 16px;
    background: var(--shiba-orange);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-explore-btn:hover {
    background: var(--shiba-brown);
}

/* Explore Section Toggle */
.lp-explore-section {
    padding: 0;
}

.lp-explore-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-explore-header:hover {
    background: #f8f9fa;
}

.lp-explore-toggle {
    font-size: 1rem;
    color: #5f6368;
    transition: transform 0.2s;
    display: inline-block;
}

.lp-explore-toggle.open {
    transform: rotate(90deg);
}

.lp-explore-header .lp-explore-btn {
    margin-left: auto;
}

.lp-explore-content {
    display: none;
    padding: 0 20px 20px;
}

.lp-explore-content.open {
    display: block;
}

/* Article Grid */
.lp-article-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.lp-article-card {
    min-width: 200px;
    max-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

.lp-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.lp-article-image {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.lp-article-info {
    padding: 12px;
}

.lp-article-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
    line-height: 1.3;
}

.lp-article-info p {
    font-size: 0.75rem;
    color: #5f6368;
    margin-bottom: 8px;
}

.lp-article-source {
    font-size: 0.75rem;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Article Detail Modal */
.article-modal {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
}

.article-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.article-back-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #5f6368;
    padding: 8px;
}

.article-share-btn {
    padding: 8px 16px;
    background: var(--shiba-orange);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
}

.article-modal-content {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}

.article-modal-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-modal-content p {
    font-size: 0.95rem;
    color: #5f6368;
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-modal-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #202124;
    margin: 24px 0 12px;
}

.article-spot-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
}

.article-spot-number {
    width: 28px;
    height: 28px;
    background: var(--shiba-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

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

.article-spot-info h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.article-spot-add-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #202124;
    cursor: pointer;
    white-space: nowrap;
}

.article-spot-add-btn:hover {
    background: #f1f3f4;
}

.article-spot-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-top: 12px;
}

/* Booking Icons */
.lp-booking-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lp-booking-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 70px;
}

.lp-booking-icon:hover {
    border-color: #1a73e8;
    background: #f8f9ff;
}

.lp-booking-icon span:first-child {
    font-size: 1.5rem;
}

.lp-booking-label {
    font-size: 0.7rem;
    color: #5f6368;
}

/* Booking Dropdown */
.lp-booking-dropdown {
    position: relative;
}

.lp-booking-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 100;
    margin-top: 8px;
    padding: 8px 0;
}

.lp-booking-menu.show {
    display: block;
}

.lp-booking-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.9rem;
    color: #202124;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-booking-menu button:hover {
    background: #f1f3f4;
}

/* Budget Section */
.lp-budget-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.lp-budget-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-budget-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #202124;
}

.lp-budget-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--shiba-orange);
}

.lp-budget-detail-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: #5f6368;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.lp-budget-detail-btn:hover {
    color: var(--shiba-orange);
}

/* Memo Section */
.lp-memo-section {
    padding: 0;
}

.lp-memo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-memo-header:hover {
    background: #f8f9fa;
}

.lp-memo-toggle {
    font-size: 1rem;
    color: #5f6368;
    transition: transform 0.2s;
    display: inline-block;
}

.lp-memo-toggle.open {
    transform: rotate(90deg);
}

.lp-memo-content {
    display: none;
    padding: 0 20px 20px;
}

.lp-memo-content.open {
    display: block;
}

.lp-memo-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #5f6368;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
}

.lp-memo-textarea:focus {
    border-color: var(--shiba-orange);
}

.lp-memo-textarea::placeholder {
    color: #9aa0a6;
}

/* Packing Section */
.lp-packing-section {
    padding: 0;
}

.lp-packing-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-packing-header:hover {
    background: #f8f9fa;
}

.lp-packing-toggle {
    font-size: 1rem;
    color: #5f6368;
    transition: transform 0.2s;
    display: inline-block;
}

.lp-packing-toggle.open {
    transform: rotate(90deg);
}

.lp-packing-content {
    display: none;
    padding: 0 20px 20px;
}

.lp-packing-content.open {
    display: block;
}

.lp-packing-textarea {
    width: 100%;
    min-height: 200px;
    max-height: 300px;
    padding: 12px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #5f6368;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
    line-height: 1.6;
}

.lp-packing-textarea:focus {
    border-color: var(--shiba-orange);
}

/* Highlight flash effect for sidebar navigation */
.highlight-flash {
    animation: highlightFlash 1s ease-out;
}

@keyframes highlightFlash {
    0% {
        background-color: rgba(245, 169, 98, 0.3);
    }
    100% {
        background-color: transparent;
    }
}

/* Places Section */
.lp-places-section {
    padding: 0;
}

.lp-places-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-places-header:hover {
    background: #f8f9fa;
}

.lp-places-toggle {
    font-size: 1rem;
    color: #5f6368;
    transition: transform 0.2s;
    display: inline-block;
}

.lp-places-toggle.open {
    transform: rotate(90deg);
}

.lp-section-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #5f6368;
}

.lp-places-content {
    display: none;
    padding: 0 20px 20px;
}

.lp-places-content.open {
    display: block;
}

/* Place Card */
.lp-place-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f8fbff;
    border-radius: 12px;
    border-left: 4px solid var(--shiba-orange);
    margin-bottom: 16px;
}

.lp-place-left {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.lp-place-number {
    width: 28px;
    height: 28px;
    background: var(--shiba-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.lp-place-info {
    flex: 1;
    min-width: 0;
}

.lp-place-title {
    font-size: 1rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 4px;
}

.lp-place-memo {
    width: 100%;
    min-height: 40px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #5f6368;
    background: transparent;
    resize: none;
    outline: none;
    margin-bottom: 8px;
}

.lp-place-memo:hover {
    border-color: #e8eaed;
}

.lp-place-memo:focus {
    border-color: var(--shiba-orange);
    background: #fff;
}

.lp-place-memo::placeholder {
    color: #9aa0a6;
}

.lp-place-desc {
    font-size: 0.85rem;
    color: #9aa0a6;
    margin-bottom: 8px;
}

.lp-place-wiki {
    font-size: 0.8rem;
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 8px;
}

.lp-place-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.lp-place-visited {
    font-size: 0.8rem;
    color: #34a853;
    cursor: pointer;
}

.lp-place-time {
    font-size: 0.8rem;
    color: #5f6368;
}

.lp-place-actions {
    display: flex;
    gap: 8px;
}

.lp-place-reaction {
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.lp-place-reaction:hover {
    opacity: 1;
}

.lp-place-image {
    width: 100px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Add Place Input */
.lp-add-place {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
}

.lp-add-place-icon {
    font-size: 1.2rem;
}

.lp-add-place-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 0.9rem;
    color: #5f6368;
    outline: none;
}

.lp-add-place-input::placeholder {
    color: #9aa0a6;
}

.lp-add-place-buttons {
    display: flex;
    gap: 8px;
}

.lp-add-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #5f6368;
    padding: 4px;
}

.lp-add-btn:hover {
    color: var(--shiba-orange);
}

/* Suggested Places */
.lp-suggested-places {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
}

.lp-suggested-toggle {
    font-size: 0.9rem;
    color: #5f6368;
}

.lp-suggested-title {
    font-size: 0.85rem;
    color: #5f6368;
}

.lp-suggested-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.lp-suggested-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s;
}

.lp-suggested-item:hover {
    border-color: var(--shiba-orange);
}

.lp-suggested-item span {
    font-size: 0.85rem;
    color: #202124;
}

.lp-suggested-add {
    background: none;
    border: none;
    color: #5f6368;
    font-size: 1rem;
    cursor: pointer;
}

/* Place Search Box */
.lp-search-box {
    margin-bottom: 16px;
}

.lp-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    transition: border-color 0.15s;
}

.lp-search-input-wrapper:focus-within {
    border-color: var(--shiba-orange);
}

.lp-search-icon {
    font-size: 1.2rem;
}

.lp-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1rem;
    color: #202124;
    outline: none;
}

.lp-search-input::placeholder {
    color: #9aa0a6;
}

.lp-search-results {
    display: none;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
}

.lp-search-results.show {
    display: block;
}

.lp-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-search-result:hover {
    background: #f8f9fa;
}

.lp-result-icon {
    font-size: 1.1rem;
    color: #5f6368;
}

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

.lp-result-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #202124;
}

.lp-result-detail {
    display: block;
    font-size: 0.8rem;
    color: #5f6368;
}

.lp-result-arrow {
    font-size: 1.2rem;
    color: #5f6368;
}

/* List Controls */
.lp-list-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.lp-new-list-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--shiba-orange);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.lp-new-list-btn:hover {
    background: #e09a5a;
    transform: translateY(-1px);
}

/* Stock List */
.lp-stock-list {
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    overflow: hidden;
}

.lp-stock-list-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    cursor: pointer;
    border-left: 4px solid var(--list-color, var(--shiba-orange));
}

.lp-stock-list-toggle {
    font-size: 1rem;
    color: #5f6368;
    transition: transform 0.2s;
    width: 16px;
}

.lp-stock-list.collapsed .lp-stock-list-toggle {
    transform: rotate(0deg);
}

.lp-stock-list:not(.collapsed) .lp-stock-list-toggle {
    transform: rotate(90deg);
}

.lp-stock-list-name {
    flex: 1;
    font-weight: 500;
    color: #202124;
    cursor: text;
}

.lp-stock-list-name:hover {
    text-decoration: underline;
}

.lp-stock-list-count {
    font-size: 0.8rem;
    color: #5f6368;
    background: #e8eaed;
    padding: 2px 8px;
    border-radius: 10px;
}

.lp-stock-list-menu {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #5f6368;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.lp-stock-list-header:hover .lp-stock-list-menu {
    opacity: 1;
}

.lp-stock-list-menu:hover {
    background: #e8eaed;
}

.lp-stock-list-content {
    padding: 12px;
    min-height: 40px;
}

.lp-stock-list.collapsed .lp-stock-list-content {
    display: none;
}

/* Per-list search row */
.lp-stock-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    margin-bottom: 8px;
}

.lp-stock-search-icon {
    font-size: 1rem;
    color: #5f6368;
}

.lp-stock-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 0.9rem;
    color: #202124;
    outline: none;
}

.lp-stock-search-input::placeholder {
    color: #9aa0a6;
}

.lp-stock-memo-add-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.lp-stock-memo-add-btn:hover {
    background: #e8eaed;
}

/* Memo input row */
.lp-stock-memo-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff8f0;
    border: 2px solid var(--shiba-orange);
    border-radius: 8px;
    margin-bottom: 8px;
}

.lp-stock-memo-title-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 0.9rem;
    color: #202124;
    outline: none;
}

.lp-stock-memo-title-input::placeholder {
    color: #9aa0a6;
}

.lp-stock-memo-confirm {
    padding: 6px 14px;
    background: var(--shiba-orange);
    border: none;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-stock-memo-confirm:hover {
    background: #e09a5a;
}

.lp-stock-memo-cancel {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #5f6368;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.lp-stock-memo-cancel:hover {
    background: #f1f3f4;
}

/* New List Button (full width) */
.lp-new-list-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--shiba-orange);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 8px;
}

.lp-new-list-btn-full:hover {
    background: #e09a5a;
    transform: translateY(-1px);
}

/* New List Input Wrapper */
.lp-new-list-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 2px solid var(--shiba-orange);
    border-radius: 12px;
    margin-top: 8px;
}

.lp-new-list-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 0.95rem;
    color: #202124;
    outline: none;
}

.lp-new-list-input::placeholder {
    color: #9aa0a6;
}

.lp-new-list-confirm,
.lp-new-list-cancel {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-new-list-confirm {
    background: var(--shiba-orange);
    color: #fff;
}

.lp-new-list-confirm:hover {
    background: #e09a5a;
}

.lp-new-list-cancel {
    background: #f8f9fa;
    color: #5f6368;
}

.lp-new-list-cancel:hover {
    background: #e8eaed;
}

/* List Context Menu */
.lp-list-menu {
    position: absolute;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 150px;
    overflow: hidden;
}

.lp-list-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #202124;
    transition: background 0.15s;
}

.lp-list-menu-item:hover {
    background: #f8f9fa;
}

.lp-list-menu-item.danger {
    color: #ea4335;
}

.lp-list-menu-item.danger:hover {
    background: #fef2f2;
}

/* Stock Card */
.lp-stock-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8fbff;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: grab;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.lp-stock-card:hover {
    border-color: var(--shiba-orange);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lp-stock-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.lp-stock-card-image {
    width: 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: #e8eaed;
}

.lp-stock-card-info {
    flex: 1;
    min-width: 0;
}

.lp-stock-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-stock-card-address {
    font-size: 0.8rem;
    color: #5f6368;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-stock-card-memo {
    width: 100%;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    color: #5f6368;
    background: transparent;
    resize: none;
    outline: none;
}

.lp-stock-card-memo:hover {
    border-color: #e8eaed;
}

.lp-stock-card-memo:focus {
    border-color: var(--shiba-orange);
    background: #fff;
}

.lp-stock-card-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.lp-stock-add-btn {
    width: 32px;
    height: 32px;
    background: var(--shiba-orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.lp-stock-add-btn:hover {
    background: #e09a5a;
    transform: scale(1.1);
}

.lp-stock-delete-btn {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    color: #5f6368;
    border: 1px solid #e8eaed;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.lp-stock-delete-btn:hover {
    background: #ea4335;
    color: #fff;
    border-color: #ea4335;
}

/* Stock card header with checkbox */
.lp-stock-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.lp-stock-visited-check {
    cursor: pointer;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: 2px solid #9aa0a6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    background: #fff;
}

.lp-stock-visited-check:hover {
    border-color: #34a853;
    background: #f0fdf4;
}

.lp-stock-visited-check.checked {
    background: #34a853;
    border-color: #34a853;
}

.lp-stock-check-icon {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.lp-stock-card-title {
    cursor: pointer;
    transition: color 0.15s;
}

.lp-stock-card-title:hover {
    color: var(--shiba-orange);
}

.lp-stock-card-title.visited {
    text-decoration: line-through;
    color: #9aa0a6;
}

.lp-stock-card-image {
    cursor: pointer;
}

.lp-stock-card.visited {
    background: #f8f9fa;
    border-left: 3px solid #34a853;
}

.lp-stock-visited-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e6f4ea;
    color: #34a853;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 8px;
}

/* Web info */
.lp-stock-card-webinfo {
    font-size: 0.8rem;
    color: #5f6368;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Meta items (time, cost) */
.lp-stock-card-meta {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.lp-stock-meta-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f3f4;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.15s;
}

.lp-stock-meta-btn:hover {
    background: #e8eaed;
    border-color: #dadce0;
}

.lp-stock-meta-btn span:last-child {
    color: #202124;
}

.lp-stock-meta-icon {
    font-size: 0.85rem;
}

/* Time/Cost Modal */
.lp-time-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lp-time-modal {
    background: #fff;
    border-radius: 16px;
    width: 320px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
}

.lp-time-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
    font-weight: 500;
    font-size: 1rem;
}

.lp-time-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #5f6368;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.lp-time-modal-close:hover {
    background: #f1f3f4;
}

.lp-time-modal-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.lp-time-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-time-row label {
    font-size: 0.75rem;
    color: #5f6368;
    font-weight: 500;
}

.lp-time-select {
    padding: 10px 14px;
    border: 2px solid #e8eaed;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #202124;
    background: #fff;
    cursor: pointer;
    min-width: 100px;
}

.lp-time-select:focus {
    outline: none;
    border-color: var(--shiba-orange);
}

.lp-time-separator {
    color: #9aa0a6;
    font-size: 1.2rem;
    margin-top: 20px;
}

.lp-time-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #e8eaed;
    background: #f8f9fa;
}

.lp-time-btn-clear {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.15s;
}

.lp-time-btn-clear:hover {
    background: #f1f3f4;
}

.lp-time-btn-save {
    padding: 10px 24px;
    background: var(--shiba-orange);
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.lp-time-btn-save:hover {
    background: #e09a5a;
}

/* Cost input */
.lp-cost-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e8eaed;
    border-radius: 8px;
    width: 100%;
}

.lp-cost-prefix {
    font-size: 1.1rem;
    color: #5f6368;
    font-weight: 500;
}

.lp-cost-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: #202124;
    outline: none;
}

.lp-cost-input::placeholder {
    color: #9aa0a6;
}

.lp-cost-presets {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.lp-cost-presets button {
    padding: 6px 12px;
    background: #e8eaed;
    border: none;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.15s;
}

.lp-cost-presets button:hover {
    background: #dadce0;
}

/* Empty list placeholder */
.lp-stock-empty {
    padding: 20px;
    text-align: center;
    color: #9aa0a6;
    font-size: 0.85rem;
}

/* Drag over styles */
.lp-stock-list-content.drag-over {
    background: rgba(245, 169, 98, 0.1);
    border: 2px dashed var(--shiba-orange);
    border-radius: 8px;
}

/* LP Section Headers */
.lp-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
}

.lp-section-toggle {
    color: #5f6368;
    font-size: 0.9rem;
}

.lp-section-title {
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
}

.lp-section-count {
    font-size: 0.85rem;
    color: #5f6368;
    margin-left: auto;
}

.lp-section-menu {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1rem;
}

/* ========================================
   LP Itinerary Section (Wanderlog style)
   ======================================== */
.lp-itinerary-section {
    background: #fff;
    flex-grow: 1;
}

.lp-itinerary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.lp-itinerary-date-range {
    font-size: 0.85rem;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.lp-itinerary-date-range:hover {
    background: #d2e3fc;
    border-color: #1a73e8;
}

.lp-itinerary-content {
    padding: 0;
}

.lp-day-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.lp-day-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-day-weekday {
    font-size: 1.1rem;
    font-weight: 600;
    color: #202124;
}

.lp-spots-list {
    padding: 0;
}

.lp-spot-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-spot-item:hover {
    background: #f8f9fa;
}

.lp-spot-s-rank {
    background: linear-gradient(135deg, #fffdf5, #fff9e6);
    border-left: 3px solid #FFD700;
}

.lp-spot-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.lp-spot-content {
    flex: 1;
    min-width: 0;
}

.lp-spot-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.lp-spot-desc {
    font-size: 0.8rem;
    color: #5f6368;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-spot-hours {
    font-size: 0.75rem;
    color: #1a73e8;
    margin-top: 4px;
}

.lp-spot-photo {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.lp-spot-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.lp-spot-item:hover .lp-spot-actions {
    opacity: 1;
}

.lp-spot-action-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
}

.lp-spot-action-btn:hover {
    background: #e8eaed;
}

/* Travel row between spots */
.lp-travel-row {
    display: flex;
    align-items: center;
    padding: 0 20px 0 34px;
    height: 40px;
}

.lp-travel-line {
    width: 2px;
    height: 100%;
    border-left: 2px dashed #dadce0;
    margin-right: 20px;
}

.lp-travel-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #5f6368;
    background: #f1f3f4;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
}

.lp-travel-info:hover {
    background: #e8eaed;
}

.lp-travel-mode {
    font-size: 0.9rem;
}

.lp-travel-expand {
    font-size: 0.6rem;
    opacity: 0.6;
}

/* Add spot row */
.lp-add-spot-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid #e8eaed;
}

.lp-add-spot-icon {
    font-size: 1.1rem;
    opacity: 0.6;
}

.lp-add-spot-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: #5f6368;
    background: transparent;
}

.lp-add-spot-input::placeholder {
    color: #9aa0a6;
}

/* Empty state */
.lp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #5f6368;
}

.lp-empty-state p {
    margin: 8px 0;
}

/* PC版 空状態ガイド */
.lp-empty-state-guide {
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
    border-radius: 16px;
    padding: 40px 30px;
    margin: 20px;
}

.lp-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    animation: bounce 2s ease-in-out infinite;
}

.lp-empty-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--shiba-brown, #c4834c);
    margin-bottom: 24px !important;
}

.lp-empty-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto 24px;
    text-align: left;
}

.lp-empty-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0d5c9;
}

.lp-empty-step:hover {
    background: #fff8f0;
    border-color: var(--shiba-orange, #f5a962);
    transform: translateX(4px);
}

.lp-empty-step-num {
    width: 24px;
    height: 24px;
    background: var(--shiba-orange, #f5a962);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.lp-empty-step-text {
    font-size: 0.9rem;
    color: var(--text, #4a3728);
}

.lp-empty-step.completed {
    background: #e8f5e9;
    border-color: #4caf50;
}

.lp-empty-step.completed .lp-empty-step-num {
    background: #4caf50;
}

.lp-empty-step.active {
    background: #fff3e0;
    border-color: var(--shiba-orange, #f5a962);
    box-shadow: 0 2px 8px rgba(245, 169, 98, 0.3);
}

.lp-empty-step.active .lp-empty-step-num {
    animation: pulse 1.5s infinite;
}

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

.lp-empty-hints {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lp-empty-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: white;
    border: 1px solid #e0d5c9;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text, #4a3728);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lp-empty-hint:hover {
    background: var(--shiba-orange, #f5a962);
    color: white;
    border-color: var(--shiba-orange, #f5a962);
    transform: scale(1.05);
}

/* ========================================
   LP Day Row (Wanderlog style collapsible days)
   ======================================== */
.lp-day-row {
    border-bottom: 1px solid #e8eaed;
}

.lp-day-row-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-day-row-header:hover {
    background: #f8f9fa;
}

.lp-day-row-toggle {
    color: #5f6368;
    font-size: 0.9rem;
    transition: transform 0.2s;
    width: 12px;
}

.lp-day-row-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #202124;
}

.lp-day-row-spots {
    flex: 1;
    font-size: 0.85rem;
    color: #5f6368;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 8px;
}

.lp-day-row-menu {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0;
    transition: opacity 0.15s;
}

.lp-day-row-header:hover .lp-day-row-menu {
    opacity: 1;
}

.lp-day-row-content {
    padding: 0 20px 12px 40px;
    background: #fafafa;
}

/* Itinerary Spot Card - Stock style */
.lp-day-spot-card {
    display: flex;
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.15s ease;
    position: relative;
}

.lp-day-spot-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #dadce0;
}

.lp-day-spot-card.spot-card-s-rank {
    background: linear-gradient(135deg, #fffdf5, #fff9e6);
    border: 2px solid #FFD700;
}

.lp-day-spot-rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #6B4423;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 10;
}

.lp-day-spot-image {
    width: 100px;
    min-height: 80px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.lp-day-spot-image.image-error {
    display: none;
}

.lp-day-spot-card {
    cursor: pointer;
}

.lp-day-spot-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-day-spot-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-day-spot-num {
    width: 24px;
    height: 24px;
    background: #e8945a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.lp-day-spot-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #202124;
    cursor: pointer;
    transition: color 0.15s;
}

.lp-day-spot-name:hover {
    color: #e8945a;
}

.lp-day-spot-image {
    cursor: pointer;
    transition: opacity 0.15s;
}

.lp-day-spot-image:hover {
    opacity: 0.85;
}

/* Drag & Drop styles */
.lp-day-spot-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.lp-day-spot-card.drag-over {
    border: 2px dashed #e8945a;
    background: #fff8f0;
}

.lp-day-spot-card {
    cursor: grab;
}

.lp-day-spot-card:active {
    cursor: grabbing;
}

.lp-day-drop-zone {
    min-height: 40px;
    border: 2px dashed transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    transition: all 0.2s;
    margin: 4px 0;
}

.lp-day-drop-zone.drag-over {
    border-color: #e8945a;
    background: #fff8f0;
    color: #e8945a;
}

.lp-day-row-header.drag-over {
    background: #fff8f0 !important;
    border: 2px dashed #e8945a;
    border-radius: 8px;
}

/* Sidebar Undo Button */
.sidebar-undo-container {
    position: absolute;
    bottom: 16px;
    left: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e8945a 0%, #d4783e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(232, 148, 90, 0.4);
    transition: all 0.2s ease;
}

.sidebar-undo-container.visible {
    display: flex;
}

.sidebar-undo-container:hover {
    background: linear-gradient(135deg, #d4783e 0%, #c06a30 100%);
    box-shadow: 0 4px 12px rgba(232, 148, 90, 0.5);
    transform: translateY(-1px);
}

.sidebar-undo-container:active {
    transform: translateY(0);
}

.sidebar-undo-container .undo-icon {
    font-size: 1rem;
}

.sidebar-undo-container .undo-text {
    font-size: 0.85rem;
}

/* Cost Modal - Wanderlog Style */
.cost-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.cost-modal {
    background: white;
    border-radius: 12px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.cost-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.cost-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.cost-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cost-modal-close:hover {
    color: #333;
}

.cost-modal-body {
    padding: 8px 0;
}

.cost-row {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-amount-row {
    padding: 16px 20px;
}

.cost-currency {
    font-size: 1.5rem;
    color: #333;
    margin-right: 8px;
}

.cost-amount-input {
    font-size: 1.5rem;
    border: none;
    outline: none;
    width: 100%;
    color: #333;
}

.cost-amount-input::placeholder {
    color: #ccc;
}

.cost-select-row {
    cursor: pointer;
    transition: background 0.15s;
}

.cost-select-row:hover {
    background: #f8f8f8;
}

.cost-row-icon {
    font-size: 1.2rem;
    margin-right: 12px;
}

.cost-row-label {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
}

.cost-row-label-small {
    color: #888;
    font-size: 0.85rem;
    margin-right: 12px;
    white-space: nowrap;
}

.cost-row-arrow {
    color: #ccc;
    font-size: 1.2rem;
}

.cost-input-row {
    gap: 8px;
}

.cost-title-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
    background: transparent;
}

.cost-title-input::placeholder {
    color: #999;
}

.cost-payer-select {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.cost-payer-avatar {
    font-size: 1rem;
}

.cost-split-row {
    gap: 12px;
}

.cost-split-select {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.cost-date-row {
    gap: 8px;
}

.cost-date-select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.cost-date-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Cost Category Dropdown */
.cost-category-row {
    position: relative;
    flex-wrap: wrap;
}

.cost-category-select {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.cost-category-select:hover {
    background: #f5f5f5;
}

.cost-category-icon {
    font-size: 1.2rem;
}

.cost-category-label {
    flex: 1;
    color: #333;
}

.cost-category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.cost-category-dropdown.show {
    display: block;
}

.cost-category-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.cost-category-option:hover {
    background: #f5f5f5;
}

.cost-category-option.selected {
    background: #fff8f0;
    color: #e8945a;
}

/* Cost Payer */
.cost-payer-row {
    gap: 12px;
}

.cost-payer-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.cost-payer-dropdown {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.cost-add-participant-btn {
    width: 36px;
    height: 36px;
    border: 2px dashed #e8945a;
    border-radius: 50%;
    background: transparent;
    color: #e8945a;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s;
}

.cost-add-participant-btn:hover {
    background: #fff8f0;
}

/* Cost Split Options */
.cost-split-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.cost-split-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cost-split-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.85rem;
}

.cost-split-option:has(input:checked) {
    border-color: #e8945a;
    background: #fff8f0;
    color: #e8945a;
}

.cost-split-option input {
    display: none;
}

.cost-split-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    width: 100%;
}

.cost-split-member {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.85rem;
}

.cost-split-member:has(input:checked) {
    border-color: #e8945a;
    background: #fff8f0;
}

.cost-split-member input {
    accent-color: #e8945a;
}

.cost-modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #e8eaed;
    gap: 12px;
}

.cost-btn-delete {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.cost-btn-delete:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.cost-btn-save {
    background: linear-gradient(135deg, #e8945a 0%, #d4783e 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 32px;
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.cost-btn-save:hover {
    background: linear-gradient(135deg, #d4783e 0%, #c06a30 100%);
}

/* Multiple Cost Entries */
.cost-modal-multi {
    width: 450px;
    max-width: 95vw;
}

.cost-modal-multi .cost-modal-body {
    padding: 16px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

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

.cost-entry {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e0e0e0;
}

.cost-entry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cost-entry-category {
    font-size: 1.2rem;
}

.cost-entry-title {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
}

.cost-entry-delete {
    width: 24px;
    height: 24px;
    border: none;
    background: #ff5252;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cost-entry-delete:hover {
    background: #d32f2f;
}

.cost-entry-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.cost-entry-amount-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 8px;
    flex: 1;
}

.cost-entry-amount-wrap span {
    color: #666;
    font-weight: 500;
}

.cost-entry-amount {
    width: 100%;
    padding: 8px 4px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.cost-entry-amount:focus {
    outline: none;
}

.cost-entry-category-select {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    min-width: 120px;
}

.cost-entry-payer {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

.cost-entry-date {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

.cost-entry-date-btn {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.cost-entry-date-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.cost-entry-split {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.cost-entry-split-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.cost-entry-split-members {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cost-entry-split-member {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.cost-entry-split-member:has(input:checked) {
    background: #e8f4fd;
    color: #1a73e8;
}

.cost-entry-split-member input {
    width: 14px;
    height: 14px;
    accent-color: #1a73e8;
}

.cost-entry-split-member span {
    white-space: nowrap;
}

/* Custom Date Picker Dropdown */
.cost-date-picker-dropdown {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 10001;
    min-width: 180px;
    overflow: hidden;
}

.cost-date-picker-title {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
}

.cost-date-picker-options {
    max-height: 250px;
    overflow-y: auto;
}

.cost-date-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.cost-date-option:hover {
    background: #f5f5f5;
}

.cost-date-option.selected {
    background: #e8f4fd;
}

.cost-date-day {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a73e8;
}

.cost-date-value {
    font-size: 0.85rem;
    color: #666;
}

.cost-date-other {
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cost-date-other:hover {
    background: #f0f0f0;
}

.cost-date-other .cost-date-day {
    color: #666;
}

/* Custom Calendar Dropdown */
.cost-calendar-dropdown {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    padding: 12px;
    min-width: 260px;
}

.cost-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cost-calendar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.cost-calendar-nav {
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    color: #666;
    transition: all 0.15s;
}

.cost-calendar-nav:hover {
    background: #e0e0e0;
}

.cost-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.cost-calendar-weekdays span {
    font-size: 0.75rem;
    color: #999;
    padding: 4px;
}

.cost-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cost-calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.cost-calendar-day:hover:not(.empty) {
    background: #f0f0f0;
}

.cost-calendar-day.empty {
    cursor: default;
}

.cost-calendar-day.today {
    border: 2px solid #e8945a;
}

.cost-calendar-day.selected {
    background: #1a73e8;
    color: white;
}

/* Auto Time Schedule Modal */
.auto-time-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.auto-time-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.auto-time-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.auto-time-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.auto-time-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.auto-time-modal-body {
    padding: 20px;
}

.auto-time-setting {
    margin-bottom: 16px;
}

.auto-time-setting label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 6px;
}

.auto-time-setting input,
.auto-time-setting select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.auto-time-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin-top: 16px;
}

.auto-time-preview-title {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.auto-time-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.auto-time-preview-item:last-child {
    border-bottom: none;
}

.auto-time-preview-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a73e8;
    min-width: 100px;
}

.auto-time-preview-name {
    font-size: 0.85rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auto-time-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.auto-time-cancel-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

.auto-time-apply-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: #1a73e8;
    color: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

/* 旅程スポットの時間表示（ブランドカラー） */
.lp-day-spot-schedule {
    margin: 8px 0;
    cursor: pointer;
}

.lp-day-spot-schedule-time {
    display: inline-block;
    background: linear-gradient(135deg, #e8945a 0%, #d4784a 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(232, 148, 90, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.lp-day-spot-schedule-time:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 148, 90, 0.4);
}

.lp-day-spot-schedule-empty {
    display: inline-block;
    background: #f5f5f5;
    color: #999;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 2px dashed #ddd;
    transition: all 0.15s;
}

.lp-day-spot-schedule-empty:hover {
    background: #fff;
    border-color: #e8945a;
    color: #e8945a;
}

.cost-add-entry-btn {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.cost-add-entry-btn:hover {
    background: #e8f4fd;
    border-color: #4285f4;
    color: #4285f4;
}

.cost-modal-multi .cost-modal-footer {
    align-items: center;
}

.cost-total {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.cost-total span {
    color: #e8945a;
    font-size: 1.2rem;
}

/* Route Connector - Google Maps Style */
.route-connector {
    display: flex;
    align-items: flex-start;
    padding: 8px 0 8px 20px;
    position: relative;
}

.route-connector.hidden .route-modes-row,
.route-connector.hidden .route-summary,
.route-connector.hidden .other-mode-panel {
    display: none !important;
}

.route-line {
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.route-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 24px;
    flex: 1;
}

.route-modes-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.route-modes {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.route-mode-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.route-mode-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.route-mode-btn.active {
    background: #e8f4fd;
    border-color: #4285f4;
}

.route-directions-btn {
    padding: 6px 12px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.route-directions-btn:hover {
    background: #3367d6;
}

.route-summary {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: #666;
    padding: 4px 0;
}

.route-time-display {
    font-weight: 600;
    color: #333;
}

.route-distance-display {
    color: #888;
}

.route-toggle-btn {
    font-size: 0.8rem;
    color: #5a9fd4;
    cursor: pointer;
    padding: 4px 0;
}

.route-toggle-btn:hover {
    color: #4285f4;
}

/* その他モード入力パネル */
.other-mode-panel {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
}

.other-icon-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.other-icon-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.15s;
}

.other-icon-btn:hover {
    border-color: #999;
}

.other-icon-btn.active {
    border-color: #4285f4;
    background: #e8f4fd;
}

.other-time-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.other-time-adj {
    width: 36px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
}

.other-time-adj:hover {
    background: #f0f0f0;
}

.other-time-adj:active {
    background: #e0e0e0;
}

.other-time-input {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.other-time-input:focus {
    outline: none;
    border-color: #4285f4;
}

.other-time-unit {
    font-size: 0.85rem;
    color: #666;
}

/* Add to Itinerary Modal */
.add-itinerary-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.add-itinerary-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.add-itinerary-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.add-itinerary-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.add-itinerary-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.add-itinerary-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.add-itinerary-spot-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.add-itinerary-spot-photo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.add-itinerary-spot-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.add-itinerary-section {
    margin-bottom: 20px;
}

.add-itinerary-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.add-itinerary-days {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.add-itinerary-day-btn {
    padding: 10px 16px;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.add-itinerary-day-btn:hover {
    background: #e8e8e8;
}

.add-itinerary-day-btn.active {
    background: #e8f4fd;
    border-color: #4285f4;
    color: #4285f4;
}

.add-itinerary-day-count {
    font-size: 0.75rem;
    color: #888;
}

.add-itinerary-day-btn.active .add-itinerary-day-count {
    color: #4285f4;
}

.add-itinerary-positions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.add-itinerary-position-btn {
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}

.add-itinerary-position-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.add-itinerary-position-btn.active {
    background: #e8f4fd;
    border-color: #4285f4;
    color: #4285f4;
}

.add-itinerary-position-spot {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-left: 3px solid #ddd;
    margin-left: 8px;
}

.position-number {
    width: 24px;
    height: 24px;
    background: #e8945a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.position-name {
    font-size: 0.85rem;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.position-icon {
    font-size: 0.8rem;
}

.add-itinerary-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.add-itinerary-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.add-itinerary-cancel-btn {
    flex: 1;
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
}

.add-itinerary-cancel-btn:hover {
    background: #e0e0e0;
}

.add-itinerary-confirm-btn {
    flex: 1;
    padding: 12px;
    background: #ea4335;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

.add-itinerary-confirm-btn:hover {
    background: #d33426;
}

/* Add Note Modal */
.add-note-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.add-note-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.add-note-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.add-note-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.add-note-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

.add-note-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.add-note-section {
    margin-bottom: 20px;
}

.add-note-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.add-note-templates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.add-note-template-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.add-note-template-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.add-note-template-btn:active {
    background: #e8f4fd;
    border-color: #4285f4;
}

.add-note-template-icon {
    font-size: 1.2rem;
}

.add-note-template-label {
    font-size: 0.85rem;
    color: #333;
}

.add-note-custom {
    display: flex;
    gap: 8px;
}

.add-note-icon-input {
    width: 50px;
    padding: 10px;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.add-note-text-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.add-note-text-input:focus,
.add-note-icon-input:focus {
    outline: none;
    border-color: #4285f4;
}

.add-note-positions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.add-note-position-btn {
    padding: 8px 14px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #666;
    transition: all 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.add-note-position-btn:hover {
    background: #f0f0f0;
}

.add-note-position-btn.active {
    background: #e8f4fd;
    border-color: #4285f4;
    color: #4285f4;
}

.add-note-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.add-note-cancel-btn {
    flex: 1;
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
}

.add-note-confirm-btn {
    flex: 1;
    padding: 12px;
    background: #4285f4;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

.add-note-confirm-btn:hover {
    background: #3367d6;
}

/* Add Note Button in Day */
.lp-day-add-spot {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lp-day-add-note-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    background: #fff8f0;
    border: 2px solid #e8945a;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.lp-day-add-note-btn:hover {
    background: #e8945a;
}

/* Note Spot Card Style */
.lp-day-spot-card.note-card {
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
    border-left: 4px solid #e8945a;
}

.lp-day-spot-card.note-card .lp-day-spot-image {
    display: none;
}

.lp-day-spot-card.note-card .lp-day-spot-num {
    background: #e8945a;
}

/* Stock card drag & drop */
.lp-stock-card {
    cursor: grab;
}

.lp-stock-card:active {
    cursor: grabbing;
}

.lp-stock-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.lp-stock-card.drag-over {
    border: 2px dashed #e8945a !important;
    background: #fff8f0 !important;
}

.lp-day-spot-rank-toggle {
    display: flex;
    gap: 4px;
}

.lp-day-rank-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #dadce0;
    background: white;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.lp-day-rank-btn.rank-s { color: #B8860B; }
.lp-day-rank-btn.rank-a { color: #808080; }
.lp-day-rank-btn.rank-b { color: #CD853F; }

.lp-day-rank-btn.rank-s.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #B8860B;
    color: white;
}

.lp-day-rank-btn.rank-a.active {
    background: #C0C0C0;
    border-color: #808080;
    color: white;
}

.lp-day-rank-btn.rank-b.active {
    background: #CD853F;
    border-color: #8B4513;
    color: white;
}

.lp-day-spot-memo {
    width: 100%;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.85rem;
    resize: none;
    min-height: 40px;
    font-family: inherit;
}

.lp-day-spot-memo:focus {
    outline: none;
    border-color: #e8945a;
}

.lp-day-spot-meta {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
}

.lp-day-meta-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #e8eaed;
    background: #f8f9fa;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.15s;
}

.lp-day-meta-btn:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
}

.lp-day-spot-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8px;
}

.lp-day-spot-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f3f4;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: #5f6368;
    transition: all 0.15s;
}

.lp-day-spot-delete:hover {
    background: #ffebee;
    color: #d32f2f;
}

.lp-day-spot-empty {
    font-size: 0.85rem;
    color: #9aa0a6;
    padding: 12px;
    text-align: center;
}

.lp-day-add-spot {
    margin-top: 8px;
}

.lp-day-add-input {
    width: 100%;
    border: 1px solid #dadce0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}

.lp-day-add-input:focus {
    border-color: #4285f4;
}

/* ========================================
   LP Budget Section
   ======================================== */
.lp-budget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.lp-budget-add-btn {
    background: #e8945a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-budget-add-btn:hover {
    background: #d4824e;
}

.lp-budget-content {
    padding: 20px;
}

.lp-budget-total {
    margin-bottom: 16px;
}

.lp-budget-amount {
    font-size: 2rem;
    font-weight: 600;
    color: #202124;
}

.lp-budget-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.lp-budget-action {
    background: #f1f3f4;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
}

.lp-budget-action:hover {
    background: #e8eaed;
}

.lp-budget-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.lp-budget-links a {
    font-size: 0.85rem;
    color: #1a73e8;
    text-decoration: none;
}

.lp-budget-links a:hover {
    text-decoration: underline;
}

/* ========================================
   LP Expenses Section
   ======================================== */
.lp-expenses-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid #e8eaed;
}

.lp-expenses-toggle {
    color: #5f6368;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.lp-expenses-sort {
    margin-left: auto;
    font-size: 0.85rem;
    color: #5f6368;
}

.lp-expenses-sort select {
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.85rem;
    outline: none;
}

.lp-expenses-content {
    padding: 20px;
}

.lp-expenses-empty {
    font-size: 0.9rem;
    color: #5f6368;
}

/* Legacy panel-header - hidden */
.panel-header {
    display: none;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Trip meta row - dates and budget in one line */
.trip-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.budget-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.budget-total-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 6px 10px;
    border-radius: 16px;
    border: 1px solid #ffcc80;
}

.budget-other-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.budget-other-compact:hover {
    background: #e0e0e0;
}

.budget-label-sm {
    font-size: 0.7rem;
    color: #888;
}

.budget-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e65100;
}

.budget-value-sm {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.budget-yen {
    font-size: 0.7rem;
    color: #888;
}

.budget-edit {
    font-size: 0.7rem;
    opacity: 0.6;
}

.trip-title-input {
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    background: transparent;
    width: 100%;
    color: var(--text);
    margin-bottom: 12px;
}

.trip-title-input:focus { outline: none; }
.trip-title-input::placeholder { color: #ccc; }

.panel-header-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.panel-header-top .trip-title-input {
    margin-bottom: 0;
}

.undo-btn {
    padding: 10px 16px;
    background: linear-gradient(145deg, #fff, var(--shiba-light));
    border: 2px solid var(--shiba-orange);
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 
        0 3px 10px rgba(232, 148, 90, 0.15),
        inset 0 1px 2px rgba(255,255,255,0.8);
}

.undo-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, var(--shiba-light), #fff);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(232, 148, 90, 0.25),
        inset 0 1px 2px rgba(255,255,255,0.8);
}

.undo-btn:active:not(:disabled) {
    transform: translateY(0);
}

.undo-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ccc;
    box-shadow: none;
}

.trip-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.date-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.date-input {
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #fff8f0, #fff);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.date-input:focus { 
    outline: none; 
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 148, 90, 0.1);
}

.date-input::-webkit-calendar-picker-indicator {
    filter: hue-rotate(330deg);
    cursor: pointer;
}

.budget-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.budget-total-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 10px 16px;
    border-radius: 16px;
    border: 2px solid var(--shiba-orange);
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.2);
}

.budget-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e65100;
}

.budget-badge {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.other-costs-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.other-costs-group:hover {
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    border-color: #bdbdbd;
}

.other-costs-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.other-costs-input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.8rem;
    background: white;
    text-align: right;
}

.other-costs-input:focus {
    outline: none;
    border-color: var(--accent);
}

.other-costs-yen {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Search Box */
.search-box {
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 180px;
    z-index: 9;
}

.search-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 180px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.search-input:focus { outline: none; border-color: var(--accent); }

.search-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.search-add-btn {
    padding: 10px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-add-btn:hover { background: var(--accent-light); }
.search-add-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Spots List */
.spots-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.spot-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

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

/* S-rank card styling */
.spot-card-s-rank {
    border: 2px solid #FFD700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.spot-card-s-rank:hover {
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.4);
}

.spot-rank-badge-s {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #FFD700, #FFF8DC, #FFD700);
    color: #6B4423;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.spot-card-header {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}

/* Rank toggle buttons */
.spot-rank-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.rank-btn {
    padding: 4px 8px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 0.7rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
}

.rank-btn:hover {
    transform: scale(1.05);
}

.rank-btn.rank-s {
    border-color: #B8860B;
}

.rank-btn.rank-s.active {
    background: linear-gradient(135deg, #FFD700, #FFFACD, #FFD700);
    border-color: #B8860B;
    color: #6B4423;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.rank-btn.rank-a {
    border-color: #C0C0C0;
}

.rank-btn.rank-a.active {
    background: linear-gradient(135deg, #E8E8E8, #C0C0C0);
    border-color: #A0A0A0;
    color: #333;
    font-weight: 600;
}

.rank-btn.rank-b.active {
    background: var(--shiba-orange);
    border-color: var(--shiba-orange);
    color: white;
}

/* Stock spot rank toggle */
.stock-rank-toggle {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.stock-rank-btn {
    padding: 2px 6px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 0.65rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
}

.stock-rank-btn:hover {
    transform: scale(1.1);
}

.stock-rank-btn.rank-s.active {
    background: linear-gradient(135deg, #FFD700, #FFFACD);
    border-color: #B8860B;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.4);
}

.stock-rank-btn.rank-a.active {
    background: linear-gradient(135deg, #E8E8E8, #C0C0C0);
    border-color: #A0A0A0;
}

.stock-rank-btn.rank-b.active {
    background: var(--shiba-orange);
    border-color: var(--shiba-orange);
    color: white;
}

/* S-rank stock card styling */
.stock-card-s-rank {
    border: 2px solid #FFD700 !important;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3) !important;
}

.stock-rank-badge-s {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #FFD700, #FFFACD, #FFD700);
    color: #6B4423;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* ランクフィルターバー */
.stock-rank-filter {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8eaed;
    position: sticky;
    top: 0;
    z-index: 10;
}

.stock-filter-btn {
    padding: 6px 14px;
    border: 1px solid #dadce0;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.stock-filter-btn:hover {
    background: #f1f3f4;
    transform: translateY(-1px);
}

.stock-filter-btn.active {
    background: var(--shiba-orange);
    border-color: var(--shiba-orange);
    color: white;
}

.stock-filter-btn.filter-s.active {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    border-color: #B8860B;
    color: #6B4423;
}

.stock-filter-btn.filter-a.active {
    background: linear-gradient(135deg, #E8E8E8, #C0C0C0);
    border-color: #A0A0A0;
    color: #333;
}

.stock-filter-btn.filter-b.active {
    background: var(--shiba-orange);
    border-color: var(--shiba-orange);
    color: white;
}

.spot-number {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.spot-time-badge {
    background: var(--shiba-light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--shiba-brown);
}

.spot-time-range {
    background: linear-gradient(135deg, var(--shiba-orange), var(--accent-light));
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.spot-delete-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 6px;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.spot-delete-btn:hover { color: #ff6b6b; }

.spot-card-body { padding: 16px; }

.spot-name-input {
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    background: transparent;
    width: 100%;
    color: var(--text);
    margin-bottom: 8px;
}

.spot-name-input:focus { outline: none; }
.spot-name-input::placeholder { color: #bbb; }

.spot-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.spot-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

/* Shiba Custom Input Design */
.shiba-details {
    background: linear-gradient(135deg, #fff8f0, #fff);
    padding: 16px;
    border-radius: 16px;
    border: 2px solid rgba(232, 148, 90, 0.2);
}

.shiba-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shiba-detail-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--shiba-brown);
}

.shiba-input {
    padding: 10px 14px;
    border: 2px solid rgba(232, 148, 90, 0.3);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    background: white;
    color: var(--shiba-brown);
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.shiba-input:focus {
    outline: none;
    border-color: var(--shiba-orange);
    box-shadow: 0 0 0 4px rgba(232, 148, 90, 0.15);
    background: #fffaf5;
}

.shiba-input:hover {
    border-color: var(--shiba-orange);
}

.shiba-time-input {
    text-align: center;
}

.shiba-duration-input,
.shiba-budget-input {
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 2px solid rgba(232, 148, 90, 0.3);
    border-radius: 12px;
    padding: 0 10px;
    transition: all 0.3s;
}

.shiba-duration-input:focus-within,
.shiba-budget-input:focus-within {
    border-color: var(--shiba-orange);
    box-shadow: 0 0 0 4px rgba(232, 148, 90, 0.15);
}

.shiba-duration-input .shiba-input,
.shiba-budget-input .shiba-input {
    border: none;
    padding: 10px 4px;
    background: transparent;
    text-align: right;
}

.shiba-duration-input .shiba-input:focus,
.shiba-budget-input .shiba-input:focus {
    box-shadow: none;
}

.shiba-unit,
.shiba-yen {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--shiba-orange);
}

.shiba-textarea {
    border: 2px solid rgba(232, 148, 90, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s;
    resize: vertical;
    min-height: 60px;
}

.shiba-textarea:focus {
    outline: none;
    border-color: var(--shiba-orange);
    box-shadow: 0 0 0 4px rgba(232, 148, 90, 0.15);
}

/* AI Summary Section */
.spot-ai-summary {
    background: linear-gradient(135deg, #fff5e6, #fff);
    border: 2px solid rgba(232, 148, 90, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.ai-summary-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--shiba-orange);
    margin-bottom: 8px;
}

.ai-summary-content {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
}

.spot-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spot-detail-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spot-detail-input {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    background: #f8f9fa;
}

.spot-detail-input:focus { outline: none; border-color: var(--accent); background: white; }

.spot-comment-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    background: #f8f9fa;
    resize: none;
    min-height: 60px;
    font-family: inherit;
}

.spot-comment-input:focus { outline: none; border-color: var(--accent); background: white; }

/* Travel Connector */
.travel-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    gap: 12px;
}

.travel-line {
    width: 2px;
    height: 20px;
    background: var(--border);
}

.travel-mode-selector {
    display: flex;
    gap: 4px;
    background: white;
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.travel-mode-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.travel-mode-btn:hover { background: #f0f0f0; }
.travel-mode-btn.active { background: var(--accent); color: white; }

.travel-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.travel-time-input {
    width: 45px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
    background: white;
    color: var(--text);
    font-weight: 600;
}

.travel-time-input:focus {
    outline: none;
    border-color: var(--accent);
}

.travel-time-label {
    font-weight: 600;
    color: var(--text);
}

.travel-cost { 
    color: var(--success); 
    font-size: 0.75rem;
    margin-left: 6px;
}

/* Add Spot Button */
.add-spot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: transparent;
    border: 2px dashed var(--border);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
}

.add-spot-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(224,122,95,0.05); }

/* Right Panel - Map */
.right-panel {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: white;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.map-container {
    flex: 1;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: white;
}

#mainMap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.map-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.map-btn:hover { background: #f0f0f0; transform: scale(1.05); }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show { opacity: 1; visibility: visible; }

.modal {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: all 0.3s;
}

.modal-overlay.show .modal { transform: translateY(0); }

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

.modal-title { font-size: 1.2rem; font-weight: 600; }

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-close:hover { color: var(--text); }

.modal-body { margin-bottom: 20px; }

.share-url-box {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 12px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-btn-primary { background: var(--accent); color: white; }
.modal-btn-primary:hover { background: var(--accent-light); }
.modal-btn-secondary { background: #f0f0f0; color: var(--text); }
.modal-btn-secondary:hover { background: #e0e0e0; }

/* Button styles for confirmation dialogs */
.btn-secondary {
    background: #f1f3f4;
    color: #202124;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-secondary:hover { background: #e8eaed; }

.btn-danger {
    background: #ea4335;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-danger:hover { background: #d33828; }

/* Date Shorten Modal */
#dateShortenModal {
    z-index: 10001;
}
.date-shorten-modal {
    max-width: 450px;
}
.date-shorten-modal .modal-body {
    padding: 20px;
    line-height: 1.6;
}

/* Notification */
.notif {
    position: fixed;
    bottom: 100px; /* モバイルナビの上に表示 */
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 32px;
    background: var(--shiba-orange, #E67E22);
    color: white;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 100000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.notif.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* Responsive */
@media (max-width: 1200px) {
    .sidebar { width: 180px; }
    .main-content { margin-left: 180px; max-width: calc(100vw - 180px); }
    .left-panel { width: 480px; min-width: 400px; max-width: 100%; }
}

@media (max-width: 900px) {
    /* ===== Layout ===== */
    .sidebar { 
        transform: translateX(-100%);
        transition: transform 0.3s;
        position: fixed;
        z-index: 1000;
        height: 100vh;
        top: 0;
        left: 0;
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; flex-direction: column; max-width: 100vw; }
    .left-panel { width: 100%; max-width: 100vw; height: 55vh; overflow-y: auto; }
    .right-panel { height: 45vh; min-width: unset; max-width: 100vw; }
    
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* ===== Header ===== */
    .header-itinerary-selector {
        margin-left: 12px;
        padding-left: 12px;
    }
    
    .header-itinerary-btn {
        max-width: 160px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    /* ===== Day Tabs ===== */
    .day-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .day-tab {
        flex-shrink: 0;
    }
    
    /* ===== Itinerary ===== */
    .lp-day-spot-card {
        margin: 8px 12px;
    }
    
    .lp-day-spot-image {
        height: 120px;
    }
    
    /* ===== Route Connector ===== */
    .route-modes-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .route-directions-btn {
        margin-left: 0;
        margin-top: 4px;
    }
    
    /* ===== Modals ===== */
    .modal-content,
    .spot-detail-modal {
        width: 90vw;
        max-width: 600px;
    }
    
    /* ===== Welcome Screen ===== */
    .welcome-content {
        max-width: 90vw;
    }
}

/* Mobile responsive - iPhone */
@media (max-width: 480px) {
    /* ===== Header ===== */
    .top-header {
        padding: 8px 12px;
    }
    
    .header-logo {
        font-size: 1.2rem;
    }
    
    .header-itinerary-selector {
        margin-left: 8px;
        padding-left: 8px;
    }
    
    .header-itinerary-btn {
        max-width: 120px;
        padding: 6px 8px;
        font-size: 0.8rem;
        gap: 4px;
    }
    
    .header-itinerary-arrow {
        font-size: 0.6rem;
    }
    
    .header-itinerary-dropdown {
        left: -60px;
        min-width: 260px;
        max-width: calc(100vw - 24px);
    }
    
    .header-itinerary-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .header-itinerary-item-icon {
        font-size: 1rem;
    }
    
    .header-itinerary-item-title {
        font-size: 0.9rem;
    }
    
    .header-itinerary-item-meta {
        font-size: 0.7rem;
    }
    
    .login-btn span:last-child {
        display: none;
    }
    
    .login-btn {
        padding: 8px 12px;
    }
    
    .user-profile-btn .user-name {
        display: none;
    }
    
    /* モバイルでは右上のユーザーアイコンを非表示（設定タブに移動） */
    .user-menu,
    .login-btn {
        display: none !important;
    }
    
    /* ===== Main Layout ===== */
    .main-content {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 56px);
    }
    
    .left-panel {
        width: 100%;
        height: auto;
        min-height: 50vh;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .right-panel {
        width: 100%;
        height: 40vh;
        min-height: 250px;
    }
    
    /* ===== Sidebar ===== */
    .sidebar {
        width: 85vw;
        max-width: 300px;
    }
    
    .wl-section-header {
        padding: 12px;
    }
    
    .wl-nav-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* ===== Search ===== */
    .search-container {
        padding: 12px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .search-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .search-action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        flex: 1;
        min-width: 80px;
    }
    
    /* ===== Day Tabs ===== */
    .day-tabs {
        padding: 8px;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .day-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* ===== Itinerary Content ===== */
    .lp-day-row-header {
        padding: 12px;
    }
    
    .lp-day-row-title {
        font-size: 0.9rem;
    }
    
    .lp-day-row-spots {
        font-size: 0.75rem;
    }
    
    .lp-day-spot-card {
        padding: 10px;
        margin: 8px;
    }
    
    .lp-day-spot-image {
        height: 100px;
    }
    
    .lp-day-spot-name {
        font-size: 0.95rem;
    }
    
    .lp-day-spot-schedule-time {
        font-size: 0.85rem;
    }
    
    .lp-day-spot-memo {
        font-size: 0.85rem;
        min-height: 50px;
    }
    
    .lp-day-spot-meta {
        flex-wrap: wrap;
    }
    
    .lp-day-meta-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    /* ===== Route Connector ===== */
    .route-connector {
        padding: 8px 12px;
        margin: 4px 8px;
    }
    
    .route-modes {
        gap: 4px;
    }
    
    .route-mode-btn {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    
    .route-summary {
        font-size: 0.85rem;
    }
    
    .route-directions-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .other-mode-panel {
        padding: 10px;
    }
    
    .other-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .other-time-input {
        gap: 6px;
    }
    
    .other-time-btn {
        width: 32px;
        height: 32px;
    }
    
    .other-time-display {
        font-size: 1rem;
        min-width: 50px;
    }
    
    /* ===== Wishlist ===== */
    .wishlist-item {
        padding: 10px;
    }
    
    .wishlist-item-image {
        width: 60px;
        height: 60px;
    }
    
    .wishlist-item-name {
        font-size: 0.9rem;
    }
    
    .wishlist-item-address {
        font-size: 0.75rem;
    }
    
    /* ===== Stock Lists ===== */
    .stock-card {
        padding: 10px;
    }
    
    .stock-card-image {
        width: 70px;
        height: 70px;
    }
    
    .stock-card-name {
        font-size: 0.9rem;
    }
    
    /* ===== Modals ===== */
    .modal-content,
    .spot-detail-modal,
    .destination-modal-content {
        width: 95vw;
        max-width: 95vw;
        max-height: 90vh;
        margin: 5vh auto;
        border-radius: 12px;
    }
    
    .modal-header,
    .spot-detail-header {
        padding: 12px 16px;
    }
    
    .modal-body,
    .spot-detail-body {
        padding: 12px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    /* ===== Welcome Screen ===== */
    .welcome-content {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-option-btn {
        padding: 16px;
    }
    
    .welcome-option-icon {
        font-size: 1.5rem;
    }
    
    .welcome-option-title {
        font-size: 1rem;
    }
    
    .welcome-itinerary-list {
        max-width: 100%;
    }
    
    .welcome-itinerary-card {
        padding: 12px;
    }
    
    /* ===== Buttons ===== */
    .btn, button {
        min-height: 44px; /* iOS touch target */
    }
    
    /* ===== Typography ===== */
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
}

/* ===== Mobile Bottom Navigation (5 tabs) ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 99999;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: #999;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px 4px;
    min-width: 0;
}

.nav-tab.active {
    color: var(--accent);
}

.nav-tab.active .nav-icon {
    stroke: var(--accent);
}

.nav-icon {
    width: 22px;
    height: 22px;
    stroke: #999;
    transition: stroke 0.2s;
}

.nav-label {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Mobile View Container */
.mobile-view-container {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 60px;
    z-index: 50;
    pointer-events: none;
}

.mobile-view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f8f8f8;
    z-index: 10;
    pointer-events: auto;
}

.mobile-view.active {
    display: block;
}

@media (max-width: 768px) {
    .mobile-view-container {
        display: block;
    }
}

/* Mobile specific - show bottom nav and adjust layout */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    .sidebar {
        display: none !important;
    }
    
    body {
        padding-bottom: 60px;
        overflow: hidden;
        height: 100vh;
        font-size: 16px; /* モバイルファースト: 基準フォントサイズ */
    }
    
    /* モバイルファースト: タップしやすいボタンサイズ (最低44px) */
    button, .btn, [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* モバイルファースト: 読みやすいフォントサイズと行間 */
    p, span, div {
        line-height: 1.6;
    }
    
    /* モバイルファースト: タップ領域の間隔確保 */
    .nav-tab {
        min-width: 44px;
        min-height: 44px;
    }
    
    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        height: 56px;
    }
    
    .main-content {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 60px;
        height: auto;
        margin: 0;
        flex-direction: column;
        overflow: hidden;
    }
    
    /* Map view - full screen */
    .mobile-view[data-view="map"] .right-panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }
    
    .left-panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .left-panel.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .right-panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .right-panel.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* Default: show list, hide map */
    .left-panel {
        z-index: 2;
    }
    
    .right-panel {
        z-index: 1;
    }
    
    /* Spot detail modal - half modal from bottom */
    .spot-detail-modal,
    .modal-content {
        position: fixed;
        bottom: 60px;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-width: 100%;
        max-height: 70vh;
        margin: 0;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }
    
    .spot-detail-modal.show,
    .modal-overlay.show .modal-content {
        transform: translateY(0);
    }
    
    .spot-detail-body,
    .modal-body {
        max-height: calc(70vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Handle bar for half modal */
    .spot-detail-modal::before,
    .modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 8px auto;
    }
    
    /* Sidebar overlay */
    .sidebar {
        z-index: 1001;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    .sidebar.open + .sidebar-overlay {
        display: block;
    }
    
    /* ========================================
       Wanderlog風モバイルUI
       ======================================== */
    
    /* === 1. スポットカード: Wanderlog風カラー番号 === */
    .spot-card {
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #eee;
    }
    
    .spot-card-header {
        padding: 12px;
        gap: 10px;
    }
    
    .spot-number {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }
    
    /* Wanderlog風: 日ごとに色が変わる番号 */
    .spot-card[data-day="0"] .spot-number { background: #3b82f6 !important; }
    .spot-card[data-day="1"] .spot-number { background: #22c55e !important; }
    .spot-card[data-day="2"] .spot-number { background: #f59e0b !important; }
    .spot-card[data-day="3"] .spot-number { background: #ef4444 !important; }
    .spot-card[data-day="4"] .spot-number { background: #8b5cf6 !important; }
    .spot-card[data-day="5"] .spot-number { background: #ec4899 !important; }
    .spot-card[data-day="6"] .spot-number { background: #06b6d4 !important; }
    
    .spot-card-body {
        padding: 12px;
        padding-top: 0;
    }
    
    .spot-name-input {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .spot-time-range {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    /* === 2. Dayタブ: カラードット+横スクロール === */
    .day-tabs-container {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 8px 16px;
        background: #fff;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .day-tab-wrapper {
        flex-shrink: 0;
        background: transparent;
        margin: 0;
        padding: 0;
    }
    
    .day-tab {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border-radius: 20px;
        background: #f5f5f5;
        border: none;
        font-size: 0.85rem;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.2s;
    }
    
    .day-tab.active {
        background: var(--text);
        color: white;
    }
    
    .day-color-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }
    
    .day-date-label {
        font-size: 0.75rem;
        opacity: 0.8;
    }
    
    /* === 3. 予約セクション: 3列グリッド === */
    .lp-booking-icons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .lp-booking-icon {
        min-width: unset;
        padding: 10px 6px;
        border-radius: 10px;
    }
    
    .lp-booking-icon span:first-child {
        font-size: 1.2rem;
    }
    
    .lp-booking-label {
        font-size: 0.65rem;
    }
    
    /* === 4. ボトムナビ: 選択中オレンジ === */
    .nav-tab.active {
        color: #FF8C00 !important;
    }
    
    .nav-tab.active .nav-icon {
        stroke: #FF8C00 !important;
    }
    
    .nav-tab.active .nav-label {
        color: #FF8C00 !important;
    }
    
    /* +ボタン: 中央で目立つスタイル */
    .nav-tab-add {
        position: relative;
    }
    
    .nav-tab-add .nav-icon {
        width: 28px;
        height: 28px;
        background: #FF8C00;
        border-radius: 50%;
        padding: 4px;
        stroke: white !important;
    }
    
    .nav-tab-add.active .nav-icon {
        background: #e67e00;
        stroke: white !important;
    }
    
    /* === 5. マップ全画面 === */
    body.map-fullscreen .top-header {
        display: none !important;
    }
    
    body.map-fullscreen .main-content {
        top: 0;
    }
    
    body.map-fullscreen .right-panel {
        top: 0;
        height: calc(100vh - 60px);
    }
    
    /* === 6. ルートコネクタ: コンパクト化 === */
    .route-connector {
        padding: 8px 0;
        margin: 0 16px;
    }
    
    .route-mode-buttons {
        gap: 4px;
    }
    
    .route-mode-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    /* === 7. 検索バー固定 === */
    .search-container {
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--bg);
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
    }
    
    .search-input {
        font-size: 16px; /* iOS zoom防止 */
    }
    
    /* === 8. 今日タブ: カード風 === */
    .today-spot-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #eee;
    }
    
    .today-spot-card.next {
        border-left: 4px solid #FF8C00;
        background: linear-gradient(to right, #fff8f0, #fff);
    }
    
    .today-nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #4285f4, #34a853);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 600;
        margin-top: 12px;
        cursor: pointer;
    }
    
    .today-nav-btn:active {
        transform: scale(0.98);
    }
    
    /* === 9. nicody風: 持ち物リスト === */
    .checklist-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: white;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .checklist-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        accent-color: #FF8C00;
    }
    
    /* === 10. スムーズアニメーション === */
    .spot-card, .today-spot-card, .nav-tab {
        transition: all 0.2s ease;
    }
    
    .spot-card:active {
        transform: scale(0.98);
    }
    
    /* ========================================
       nicody風モバイルUI強化
       ======================================== */
    
    /* === 11. しおり一覧カード（nicody風） === */
    .itinerary-card {
        background: white;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        border: 1px solid rgba(0,0,0,0.04);
        display: flex;
        align-items: center;
        gap: 14px;
        transition: all 0.2s ease;
    }
    
    .itinerary-card:active {
        transform: scale(0.98);
        background: #fafafa;
    }
    
    .itinerary-card-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        background: linear-gradient(135deg, #fff5eb, #ffe8d5);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        flex-shrink: 0;
    }
    
    .itinerary-card-content {
        flex: 1;
        min-width: 0;
    }
    
    .itinerary-card-title {
        font-weight: 600;
        font-size: 1rem;
        color: var(--text);
        margin-bottom: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .itinerary-card-meta {
        font-size: 0.8rem;
        color: #888;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .itinerary-card-badge {
        padding: 2px 8px;
        border-radius: 10px;
        background: #FF8C00;
        color: white;
        font-size: 0.7rem;
        font-weight: 600;
    }
    
    /* === 12. nicody風ヘッダー === */
    .mobile-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        background: white;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-section-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--text);
    }
    
    .mobile-section-btn {
        padding: 8px 16px;
        background: var(--accent);
        color: white;
        border: none;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
    }
    
    /* === 13. nicody風スポット追加カード === */
    .add-spot-card {
        background: white;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .add-spot-card-image {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        flex-shrink: 0;
        overflow: hidden;
    }
    
    .add-spot-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .add-spot-card-info {
        flex: 1;
        min-width: 0;
    }
    
    .add-spot-card-name {
        font-weight: 600;
        font-size: 0.95rem;
        margin-bottom: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .add-spot-card-address {
        font-size: 0.75rem;
        color: #888;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .add-spot-card-btn {
        padding: 8px 14px;
        background: var(--accent);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        flex-shrink: 0;
    }
    
    /* === 14. nicody風タブバー（セグメント） === */
    .segment-tabs {
        display: flex;
        background: #f5f5f5;
        border-radius: 10px;
        padding: 4px;
        margin: 16px;
    }
    
    .segment-tab {
        flex: 1;
        padding: 10px;
        text-align: center;
        border: none;
        background: transparent;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 500;
        color: #666;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .segment-tab.active {
        background: white;
        color: var(--text);
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }
    
    /* === 15. nicody風フローティングボタン === */
    .fab-button {
        position: fixed;
        bottom: 80px;
        right: 16px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--accent);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(255,140,0,0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 100;
        transition: all 0.2s;
    }
    
    .fab-button:active {
        transform: scale(0.95);
    }
    
    /* === 16. nicody風空状態 === */
    .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: #888;
    }
    
    .empty-state-icon {
        font-size: 4rem;
        margin-bottom: 16px;
        opacity: 0.5;
    }
    
    .empty-state-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 8px;
    }
    
    .empty-state-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* 空状態ガイドUI */
    .empty-state-guide {
        padding: 40px 20px;
        background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
        border-radius: 20px;
        margin: 16px;
    }
    
    .empty-state-guide .empty-state-icon {
        font-size: 3.5rem;
        opacity: 1;
        animation: bounce 2s ease-in-out infinite;
    }
    
    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    
    .empty-state-guide .empty-state-title {
        font-size: 1.2rem;
        color: var(--shiba-brown, #c4834c);
        margin-bottom: 24px;
    }
    
    .empty-state-steps {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .empty-state-step {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: white;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid #f0e6dc;
    }
    
    .empty-state-step:active {
        transform: scale(0.98);
        background: #fff8f0;
    }
    
    .empty-state-step-num {
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, var(--shiba-orange, #f5a962), var(--shiba-brown, #c4834c));
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .empty-state-step-content {
        flex: 1;
        text-align: left;
    }
    
    .empty-state-step-title {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text, #4a3728);
        margin-bottom: 2px;
    }
    
    .empty-state-step-desc {
        font-size: 0.8rem;
        color: #888;
    }
    
    .empty-state-step-arrow {
        color: var(--shiba-orange, #f5a962);
        font-size: 1.2rem;
        font-weight: bold;
    }
    
    .empty-state-action-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 14px 32px;
        background: linear-gradient(135deg, var(--shiba-orange, #f5a962), #e8945a);
        color: white;
        border: none;
        border-radius: 30px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(245, 169, 98, 0.4);
        transition: all 0.2s ease;
    }
    
    .empty-state-action-btn:active {
        transform: scale(0.95);
    }
    
    /* チュートリアルオーバーレイ */
    .tutorial-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.85);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.3s ease;
    }
    
    .tutorial-overlay.closing {
        animation: fadeOut 0.3s ease forwards;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes fadeOut {
        from { opacity: 1; }
        to { opacity: 0; }
    }
    
    .tutorial-content {
        background: white;
        border-radius: 24px;
        padding: 32px 24px;
        margin: 20px;
        max-width: 340px;
        width: 100%;
        text-align: center;
        animation: slideUp 0.4s ease;
    }
    
    @keyframes slideUp {
        from { transform: translateY(50px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    .tutorial-slides {
        position: relative;
        min-height: 280px;
    }
    
    .tutorial-slide {
        display: none;
        animation: slideIn 0.3s ease;
    }
    
    .tutorial-slide.active {
        display: block;
    }
    
    @keyframes slideIn {
        from { opacity: 0; transform: translateX(20px); }
        to { opacity: 1; transform: translateX(0); }
    }
    
    .tutorial-mascot {
        font-size: 4rem;
        margin-bottom: 16px;
        animation: bounce 2s ease-in-out infinite;
    }
    
    .tutorial-title {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--shiba-brown, #c4834c);
        margin-bottom: 12px;
    }
    
    .tutorial-desc {
        font-size: 1rem;
        color: #666;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    
    .tutorial-image {
        margin: 20px 0;
    }
    
    .tutorial-demo-card {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 16px 24px;
        background: linear-gradient(135deg, #fff8f0, #fff);
        border: 2px solid var(--shiba-orange, #f5a962);
        border-radius: 16px;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--shiba-brown, #c4834c);
    }
    
    .tutorial-nav-demo {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 16px;
        background: #f5f5f5;
        border-radius: 16px;
    }
    
    .tutorial-nav-item {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 12px;
        font-size: 1.2rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .tutorial-nav-item.active {
        background: var(--shiba-orange, #f5a962);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(245, 169, 98, 0.4);
    }
    
    .tutorial-timeline-demo {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        background: #f5f5f5;
        border-radius: 16px;
    }
    
    .tutorial-spot {
        padding: 12px 16px;
        background: white;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 500;
        text-align: left;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }
    
    .tutorial-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 24px 0;
    }
    
    .tutorial-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        transition: all 0.3s ease;
    }
    
    .tutorial-dot.active {
        background: var(--shiba-orange, #f5a962);
        width: 24px;
        border-radius: 4px;
    }
    
    .tutorial-buttons {
        display: flex;
        gap: 12px;
    }
    
    .tutorial-skip {
        flex: 1;
        padding: 14px;
        background: none;
        border: 1px solid #ddd;
        border-radius: 12px;
        font-size: 0.95rem;
        color: #888;
        cursor: pointer;
    }
    
    .tutorial-next {
        flex: 2;
        padding: 14px;
        background: linear-gradient(135deg, var(--shiba-orange, #f5a962), #e8945a);
        border: none;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        color: white;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(245, 169, 98, 0.4);
    }
    
    .tutorial-next:active {
        transform: scale(0.98);
    }
    
    /* スポット保存後の追加プロンプト */
    .add-prompt-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.2s ease;
    }
    
    .add-prompt-overlay.closing,
    .add-prompt-overlay.auto-close {
        animation: fadeOut 0.3s ease forwards;
    }
    
    .add-prompt-modal {
        background: white;
        border-radius: 20px;
        padding: 24px;
        margin: 20px;
        max-width: 320px;
        width: 100%;
        text-align: center;
        animation: popIn 0.3s ease;
    }
    
    @keyframes popIn {
        from { transform: scale(0.8); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }
    
    .add-prompt-success {
        margin-bottom: 20px;
    }
    
    .add-prompt-check {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #22c55e, #16a34a);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        margin: 0 auto 12px;
        animation: checkPop 0.4s ease 0.1s both;
    }
    
    @keyframes checkPop {
        0% { transform: scale(0); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }
    
    .add-prompt-message {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text, #4a3728);
    }
    
    .add-prompt-question {
        padding: 16px;
        background: #f8f8f8;
        border-radius: 14px;
        margin-bottom: 20px;
    }
    
    .add-prompt-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .add-prompt-text {
        font-size: 0.95rem;
        color: #666;
        line-height: 1.5;
    }
    
    .add-prompt-buttons {
        display: flex;
        gap: 10px;
    }
    
    .add-prompt-btn {
        flex: 1;
        padding: 14px;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .add-prompt-later {
        background: none;
        border: 1px solid #ddd;
        color: #888;
    }
    
    .add-prompt-now {
        background: linear-gradient(135deg, var(--shiba-orange, #f5a962), #e8945a);
        border: none;
        color: white;
        box-shadow: 0 4px 12px rgba(245, 169, 98, 0.3);
    }
    
    .add-prompt-now:active {
        transform: scale(0.98);
    }
    
    /* === 17. ボトムナビ改善 === */
    .mobile-bottom-nav {
        background: white;
        border-top: 1px solid #eee;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    .nav-tab {
        padding: 8px 0 6px;
    }
    
    .nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .nav-label {
        font-size: 0.65rem;
        margin-top: 2px;
    }
    
    /* === 18. 左パネルの改善 === */
    .left-panel {
        background: #f8f8f8;
    }
    
    .left-panel .panel-content {
        padding: 0;
    }
    
    /* === 19. スポットリストの改善 === */
    #spotsList {
        padding: 12px;
    }
    
    /* ========================================
       Nicody風 タイムラインUI
       ======================================== */
    
    /* === 日付ヘッダー（Nicody風） === */
    .nicody-day-header {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 16px 12px;
        background: linear-gradient(135deg, #FF8C00 0%, #FFB366 100%);
        color: white;
        border-bottom: none;
        border-radius: 0 0 24px 24px;
    }
    
    /* 予算セクション */
    .nicody-budget-section {
        background: white;
        margin: 12px 16px;
        padding: 12px 16px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        cursor: pointer;
    }
    
    .nicody-budget-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }
    
    .nicody-budget-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
    }
    
    .nicody-budget-label {
        font-size: 0.75rem;
        color: #888;
        margin-bottom: 2px;
    }
    
    .nicody-budget-value {
        font-size: 1.2rem;
        font-weight: 700;
        color: #333;
    }
    
    .nicody-budget-total {
        color: var(--accent);
    }
    
    .nicody-budget-divider {
        width: 1px;
        height: 32px;
        background: #e0e0e0;
    }
    
    .nicody-day-date {
        min-width: 60px;
    }
    
    .nicody-day-date-num {
        font-size: 2rem;
        font-weight: 700;
        color: white;
        line-height: 1;
    }
    
    .nicody-day-date-weekday {
        font-size: 0.85rem;
        color: rgba(255,255,255,0.9);
        margin-top: 4px;
    }
    
    .nicody-day-info {
        flex: 1;
    }
    
    .nicody-day-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 4px;
    }
    
    .nicody-day-theme {
        font-size: 0.85rem;
        color: #888;
        padding: 6px 12px;
        background: #f5f5f5;
        border-radius: 20px;
        border: none;
        width: 100%;
        outline: none;
    }
    
    .nicody-day-theme:focus {
        background: #fff;
        box-shadow: 0 0 0 2px var(--accent-light);
    }
    
    /* === タイムラインコンテナ === */
    .nicody-timeline {
        padding: 0 16px 100px;
        background: #fafafa;
    }
    
    /* === タイムラインアイテム === */
    .nicody-timeline-item {
        position: relative;
        padding-left: 24px;
    }
    
    /* 縦線 */
    .nicody-timeline-item::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #e0e0e0;
    }
    
    .nicody-timeline-item:last-child::before {
        display: none;
    }
    
    /* タイムラインドット */
    .nicody-timeline-dot {
        position: absolute;
        left: 0;
        top: 24px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--accent);
        border: 3px solid white;
        box-shadow: 0 2px 6px rgba(255,140,0,0.3);
        z-index: 2;
    }
    
    .nicody-timeline-item.past .nicody-timeline-dot {
        background: #ccc;
        box-shadow: none;
    }
    
    /* === Nicody風スポットカード === */
    .nicody-spot-card {
        background: white;
        border-radius: 20px;
        margin: 12px 0;
        box-shadow: 0 2px 16px rgba(0,0,0,0.06);
        overflow: hidden;
        display: flex;
        align-items: stretch;
        min-height: 100px;
        transition: all 0.2s ease;
    }
    
    .nicody-spot-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    }
    
    .nicody-spot-card.current {
        border: 2px solid var(--accent);
        box-shadow: 0 4px 20px rgba(255,140,0,0.2);
    }
    
    .nicody-spot-photo {
        width: 100px;
        min-height: 100px;
        background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: #ccc;
        flex-shrink: 0;
    }
    
    .nicody-spot-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .nicody-spot-content {
        flex: 1;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }
    
    .nicody-spot-time {
        font-size: 0.8rem;
        color: var(--accent);
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    .nicody-spot-name {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .nicody-spot-memo {
        font-size: 0.85rem;
        color: #888;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .nicody-spot-actions {
        display: flex;
        align-items: center;
        padding-right: 12px;
    }
    
    .nicody-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--accent);
        color: white;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(255,140,0,0.3);
    }
    
    .nicody-nav-btn:active {
        transform: scale(0.95);
    }
    
    /* === 移動セクション（Nicody風） === */
    .nicody-transport {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 0 8px 4px;
        margin: 4px 0;
    }
    
    .nicody-transport-line {
        width: 2px;
        height: 40px;
        background: #e0e0e0;
        position: relative;
    }
    
    .nicody-transport-info {
        display: flex;
        align-items: center;
        gap: 8px;
        background: white;
        padding: 8px 14px;
        border-radius: 20px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    
    .nicody-transport-icon {
        font-size: 1rem;
    }
    
    .nicody-transport-time {
        font-size: 0.85rem;
        color: #666;
        font-weight: 500;
    }
    
    .nicody-transport-mode {
        display: flex;
        gap: 4px;
    }
    
    .nicody-transport-mode-btn {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 1px solid #e0e0e0;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .nicody-transport-mode-btn.active {
        background: var(--accent);
        border-color: var(--accent);
        color: white;
    }
    
    /* === ボトムナビ（Nicody風クリーン化） === */
    .mobile-bottom-nav {
        background: white !important;
        border-top: 1px solid #e8e8e8 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
        padding-bottom: env(safe-area-inset-bottom, 8px);
    }
    
    .nav-tab {
        padding: 10px 0 8px;
        color: #999;
        transition: color 0.2s;
    }
    
    .nav-tab.active {
        color: var(--accent);
    }
    
    .nav-tab.active .nav-icon {
        stroke: var(--accent);
    }
    
    /* 追加タブのプラスアイコンは常に白 */
    .nav-tab[data-tab="add"].active .nav-icon {
        stroke: white !important;
    }
    
    .nav-icon {
        width: 26px;
        height: 26px;
        stroke: #999;
        stroke-width: 1.8;
        transition: stroke 0.2s;
    }
    
    .nav-label {
        font-size: 0.7rem;
        margin-top: 4px;
        font-weight: 500;
    }
    
    /* +追加ボタン（Nicody風） */
    .nav-tab[data-tab="add"] {
        position: relative;
    }
    
    .nav-tab[data-tab="add"] .nav-icon-wrapper {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, var(--accent), #e8945a);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: -16px auto 0;
        box-shadow: 0 4px 12px rgba(255,140,0,0.35);
    }
    
    .nav-tab[data-tab="add"] .nav-icon {
        stroke: white;
        width: 24px;
        height: 24px;
    }
    
    /* === Day選択タブ（Nicody風） === */
    .nicody-day-tabs {
        display: flex;
        gap: 8px;
        padding: 12px 16px;
        overflow-x: auto;
        background: white;
        border-bottom: 1px solid #f0f0f0;
        -webkit-overflow-scrolling: touch;
    }
    
    .nicody-day-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .nicody-day-tab {
        flex-shrink: 0;
        padding: 10px 20px;
        border-radius: 25px;
        background: #f5f5f5;
        border: none;
        font-size: 0.9rem;
        font-weight: 500;
        color: #666;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    
    .nicody-day-tab.active {
        background: var(--accent);
        color: white;
        box-shadow: 0 2px 8px rgba(255,140,0,0.3);
    }
    
    /* Day追加ヒントボタン */
    .nicody-day2-hint {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        border-radius: 25px;
        background: #fff8f0;
        border: 2px dashed #FF6B35;
        color: #FF6B35;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
        animation: pulse-hint 2s infinite;
    }
    
    @keyframes pulse-hint {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
    
    /* === 追加ボタン（フローティング） === */
    .nicody-fab {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent), #e8945a);
        color: white;
        border: none;
        box-shadow: 0 4px 16px rgba(255,140,0,0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        cursor: pointer;
        z-index: 100;
        transition: all 0.2s;
    }
    
    .nicody-fab:active {
        transform: scale(0.92);
    }
    
    /* === スワイプ削除UI === */
    .nicody-spot-wrapper {
        position: relative;
        overflow: hidden;
    }
    
    .nicody-spot-card {
        position: relative;
        z-index: 2;
        transition: transform 0.3s ease;
    }
    
    .nicody-delete-btn {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 80px;
        height: 100%;
        background: #ff4444;
        color: white;
        border: none;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        border-radius: 0 20px 20px 0;
        z-index: 1;
    }
    
    .nicody-spot-wrapper.swiped .nicody-spot-card {
        transform: translateX(-80px);
    }
    
    /* === クイック編集モーダル === */
    .quick-edit-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .quick-edit-modal.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .quick-edit-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
    }
    
    .quick-edit-sheet {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
        transform: translateY(100%);
        transition: transform 0.3s ease;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .quick-edit-modal.active .quick-edit-sheet {
        transform: translateY(0);
    }
    
    .quick-edit-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .quick-edit-header h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        margin-right: 12px;
    }
    
    .quick-edit-header button {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f0f0f0;
        border: none;
        font-size: 1rem;
        cursor: pointer;
    }
    
    .quick-edit-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-edit-field label {
        display: block;
        font-size: 0.8rem;
        color: #888;
        margin-bottom: 6px;
    }
    
    .quick-edit-field textarea,
    .quick-edit-field input {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        font-size: 1rem;
        background: #fafafa;
        outline: none;
        transition: border-color 0.2s, background 0.2s;
    }
    
    .quick-edit-field textarea {
        min-height: 50px;
        resize: none;
    }
    
    .quick-edit-field textarea:focus,
    .quick-edit-field input:focus {
        border-color: var(--accent);
        background: white;
    }
    
    .quick-edit-actions {
        display: flex;
        gap: 10px;
        margin-top: 12px;
    }
    
    .quick-edit-delete {
        flex: 1;
        padding: 12px;
        background: #ff4444;
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
    }
    
    .quick-edit-save {
        flex: 2;
        padding: 12px;
        background: var(--accent);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
    }
    
    .quick-edit-delete:active,
    .quick-edit-save:active {
        opacity: 0.9;
    }
    
    /* === アクションボタン === */
    .nicody-spot-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 8px;
        justify-content: center;
    }
    
    .nicody-action-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.15s;
    }
    
    .nicody-edit-btn {
        background: #E3F2FD;
        color: #1976D2;
    }
    
    .nicody-nav-btn {
        background: #E8F5E9;
        color: #388E3C;
    }
    
    .nicody-cost-btn {
        background: #FFF8E1;
        color: #F57C00;
        font-size: 14px;
    }
    
    .nicody-action-btn:active {
        transform: scale(0.9);
        opacity: 0.8;
    }
    
    .nicody-action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* === ドラッグハンドル === */
    .nicody-drag-handle {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ccc;
        font-size: 0.9rem;
        letter-spacing: -2px;
        cursor: grab;
        touch-action: none;
        user-select: none;
    }
    
    .nicody-drag-handle:active {
        cursor: grabbing;
        color: #999;
    }
    
    .nicody-spot-card {
        position: relative;
        padding-left: 24px;
    }
    
    /* === 並び替えスタイル === */
    .nicody-sortable-ghost {
        opacity: 0.4;
    }
    
    .nicody-sortable-chosen {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        transform: scale(1.02);
    }
    
    .nicody-sortable-drag {
        opacity: 1;
    }
    
    /* === スポットメタ情報 === */
    .nicody-spot-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .nicody-spot-memo {
        font-size: 0.8rem;
        color: #888;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 150px;
    }
    
    .nicody-spot-cost {
        font-size: 0.75rem;
        color: var(--accent);
        font-weight: 600;
        background: rgba(255,140,0,0.1);
        padding: 2px 8px;
        border-radius: 10px;
    }
    
    /* === 移動情報の距離表示 === */
    .nicody-transport-distance {
        font-size: 0.8rem;
        color: #999;
        margin-left: 4px;
    }
    
    /* === しおり選択バー === */
    .nicody-itinerary-selector {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: white;
        cursor: pointer;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nicody-itinerary-selector:active {
        background: #f8f8f8;
    }
    
    .nicody-itinerary-icon {
        font-size: 1.5rem;
    }
    
    .nicody-itinerary-title {
        flex: 1;
        font-size: 1rem;
        font-weight: 600;
        color: #333;
    }
    
    .nicody-itinerary-arrow {
        font-size: 0.7rem;
        color: #999;
    }
    
    /* === Dayタブの色分け === */
    .nicody-day-tab {
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        border: 2px solid;
        background: white;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .nicody-day-tab:active {
        transform: scale(0.95);
    }
    
    /* === スポットカードの背景修正 === */
    .nicody-spot-card {
        background: white !important;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    
    .nicody-spot-card.current {
        border: 2px solid var(--accent);
        background: white !important;
    }
    
    /* === 移動手段ボタンの修正 === */
    .nicody-transport {
        padding: 8px 0 8px 24px;
    }
    
    .nicody-transport-info {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .nicody-transport-time {
        font-size: 0.85rem;
        font-weight: 600;
        color: #666;
    }
    
    .nicody-transport-mode {
        display: flex;
        gap: 4px;
    }
    
    .nicody-transport-mode-btn {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        border: 2px solid #ddd;
        background: white;
        font-size: 0.9rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s;
    }
    
    .nicody-transport-mode-btn:active {
        transform: scale(0.9);
        background: #f0f0f0;
    }
    
    .nicody-transport-mode-btn.active {
        background: var(--accent);
        border-color: var(--accent);
    }
    
    /* === 削除ボタンの改善 === */
    .nicody-delete-btn {
        position: absolute;
        right: -80px;
        top: 0;
        width: 70px;
        height: 100%;
        background: #ff4444;
        color: white;
        border: none;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        border-radius: 0 16px 16px 0;
        transition: right 0.3s ease;
    }
    
    .nicody-spot-wrapper.swiped .nicody-delete-btn {
        right: 0;
    }
    
    /* === 移動オプションモーダル === */
    .transport-options-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .transport-options-modal.active {
        opacity: 1;
    }
    
    .transport-options-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
    }
    
    .transport-options-sheet {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        padding: 20px;
        transform: translateY(100%);
        transition: transform 0.3s;
    }
    
    .transport-options-modal.active .transport-options-sheet {
        transform: translateY(0);
    }
    
    .transport-options-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 16px;
        color: #333;
    }
    
    .transport-close-btn {
        width: 32px;
        height: 32px;
        border: none;
        background: #f0f0f0;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
    }
    
    /* アイコン選択行 */
    .transport-icon-row {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .transport-icon-btn {
        width: 44px;
        height: 44px;
        border: 2px solid #ddd;
        background: white;
        border-radius: 12px;
        font-size: 1.3rem;
        cursor: pointer;
        transition: all 0.15s;
    }
    
    .transport-icon-btn.active {
        border-color: var(--accent);
        background: rgba(255, 140, 0, 0.1);
    }
    
    /* 時間入力行 */
    .transport-time-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .transport-time-adj {
        width: 40px;
        height: 36px;
        border: 1px solid #ddd;
        background: #f8f8f8;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
    }
    
    .transport-time-adj:active {
        background: #eee;
    }
    
    .transport-time-input {
        width: 60px;
        height: 40px;
        border: 2px solid #ddd;
        border-radius: 8px;
        font-size: 1.1rem;
        font-weight: 600;
        text-align: center;
    }
    
    .transport-time-unit {
        font-size: 0.9rem;
        color: #666;
    }
    
    /* Google Maps リンク */
    .transport-map-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        background: #E8F5E9;
        color: #388E3C;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 600;
        margin-bottom: 16px;
    }
    
    .transport-map-link:active {
        background: #C8E6C9;
    }
    
    /* 保存ボタン */
    .transport-save-btn {
        width: 100%;
        padding: 16px;
        background: var(--accent);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
    }
    
    .transport-save-btn:active {
        opacity: 0.9;
    }
    
    /* 移動情報のマップボタン */
    .nicody-transport-map-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        background: #E8F5E9;
        border-radius: 6px;
        text-decoration: none;
        font-size: 0.9rem;
        margin-left: 4px;
    }
    
    .transport-options-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .transport-option-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 16px 8px;
        background: #f8f8f8;
        border: none;
        border-radius: 12px;
        cursor: pointer;
    }
    
    .transport-option-item:active {
        background: #eee;
    }
    
    .transport-option-icon {
        font-size: 1.5rem;
    }
    
    .transport-option-label {
        font-size: 0.8rem;
        color: #666;
    }
    
    /* === スポット詳細モーダル === */
    .spot-detail-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    
    .spot-detail-modal.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .spot-detail-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
    }
    
    .spot-detail-sheet {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 80vh;
        background: white;
        border-radius: 20px 20px 0 0;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    .spot-detail-modal.active .spot-detail-sheet {
        transform: translateY(0);
    }
    
    .spot-detail-header {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 100;
    }
    
    .spot-detail-close {
        width: 36px;
        height: 36px;
        border: none;
        background: rgba(0,0,0,0.6);
        color: white;
        border-radius: 50%;
        font-size: 1.4rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }
    
    .spot-detail-photo {
        width: 100%;
        height: 200px;
        background: #f5f5f5;
        overflow: hidden;
    }
    
    .spot-detail-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .spot-detail-no-photo {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 4rem;
        color: #ccc;
    }
    
    .spot-detail-content {
        padding: 16px;
    }
    
    .spot-detail-name {
        font-size: 1.3rem;
        font-weight: 700;
        margin: 0 0 12px 0;
        color: #333;
    }
    
    .spot-detail-content p {
        margin: 8px 0;
        font-size: 0.9rem;
        color: #666;
    }
    
    .spot-detail-actions {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .spot-detail-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px;
        border: none;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
    }
    
    .spot-detail-action-btn.maps {
        background: #E8F5E9;
        color: #388E3C;
    }
    
    .spot-detail-action-btn.edit {
        background: #E3F2FD;
        color: #1976D2;
    }
    
    .spot-detail-action-btn.delete {
        background: #FFEBEE;
        color: #D32F2F;
    }
    
    .spot-detail-action-btn:active {
        opacity: 0.8;
    }
}

/* PAC Container styling */
.pac-container {
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: var(--shadow);
    border: none;
    z-index: 1100;
}

.pac-item {
    padding: 10px 14px;
    cursor: pointer;
}

.pac-item:hover {
    background: var(--shiba-light);
}

/* Spot Image */
.spot-image-container {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: var(--shiba-cream);
}

.spot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.spot-card:hover .spot-image {
    transform: scale(1.05);
}

.spot-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--shiba-cream), var(--shiba-light));
    font-size: 4rem;
}

.spot-shiba-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Wishlist Styles */
.wishlist-container {
    max-height: 280px;
    overflow-y: auto;
}

.wishlist-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.wishlist-group-tab {
    padding: 4px 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wishlist-group-tab:hover {
    background: rgba(255,255,255,0.2);
}

.wishlist-group-tab.active {
    background: var(--shiba-orange);
    color: white;
}

.group-delete {
    opacity: 0.6;
    font-size: 0.7rem;
    margin-left: 2px;
}

.group-delete:hover {
    opacity: 1;
}

.wishlist-group-add {
    padding: 4px 10px;
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-group-add:hover {
    border-color: var(--shiba-orange);
    color: var(--shiba-orange);
}

.wishlist-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wishlist-empty {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 16px 0;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.wishlist-item:hover {
    background: rgba(255,255,255,0.15);
}

.wishlist-item-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wishlist-item-info {
    flex: 1;
    overflow: hidden;
}

.wishlist-item-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    cursor: pointer;
}

.wishlist-item-name:hover {
    text-decoration: underline;
}

.wishlist-map-toggle {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.wishlist-map-toggle label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

.wishlist-map-toggle input[type="checkbox"] {
    accent-color: var(--shiba-orange);
}

.wishlist-item-actions {
    display: flex;
    gap: 4px;
}

.wishlist-add-btn, .wishlist-remove-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wishlist-add-btn {
    background: var(--success);
    color: white;
}

.wishlist-add-btn:hover {
    transform: scale(1.1);
}

.wishlist-remove-btn {
    background: rgba(255,255,255,0.2);
    color: white;
}

.wishlist-remove-btn:hover {
    background: #ff6b6b;
}

/* Search Wishlist Button */
.search-wishlist-btn {
    padding: 12px 16px;
    background: var(--shiba-light);
    color: var(--shiba-brown);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-wishlist-btn:hover {
    background: var(--shiba-orange);
    color: white;
}

.search-wishlist-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Login Modal Styles */
.login-modal {
    max-width: 400px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
}

.login-option-btn:hover {
    border-color: var(--accent);
    background: var(--shiba-cream);
    transform: translateY(-2px);
}

.login-option-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.login-option-btn.google .login-option-icon {
    color: #4285f4;
}

.login-option-btn.apple .login-option-icon {
    color: #000;
}

.login-remember {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.remember-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
}

.loading-shiba {
    font-size: 4rem;
    display: block;
    animation: bounce 0.6s ease-in-out infinite alternate;
}

.loading-content p {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 1rem;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-12px); }
}

/* Auth Modal Styles */
.auth-modal {
    max-width: 420px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.auth-input-group {
    margin-bottom: 16px;
}

.auth-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.auth-input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    font-size: 0.85rem;
}

.auth-remember, .auth-terms {
    font-size: 0.85rem;
    color: var(--text-light);
}

.auth-remember label, .auth-terms label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-forgot {
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: none;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-terms a {
    color: var(--accent);
}

/* Login Required Overlay */
.login-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: auto;
}

.login-required-btn {
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.login-required-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-required-content {
    text-align: center;
    padding: 40px;
}

.login-required-logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-required-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.login-required-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.login-required-btn {
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 148, 90, 0.3);
    transition: all 0.3s;
}

.login-required-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 148, 90, 0.4);
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: opacity 0.3s, visibility 0.3s;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.welcome-logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.welcome-title {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.welcome-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.welcome-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.welcome-option-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    box-shadow: 0 4px 20px rgba(232, 148, 90, 0.3);
}

.welcome-option-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 148, 90, 0.4);
}

.welcome-option-btn.secondary {
    background: white;
    color: var(--text);
    border: 2px solid var(--border);
}

.welcome-option-btn.secondary:hover {
    border-color: var(--accent);
    background: #fff8f0;
}

.welcome-option-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.welcome-option-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.welcome-option-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

.welcome-tutorial-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.3s;
}

.welcome-tutorial-btn:hover {
    color: var(--accent);
}

/* Welcome Itinerary List */
.welcome-itinerary-list {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 24px;
}

.welcome-itinerary-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.welcome-itinerary-list-title {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.welcome-itinerary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.welcome-itinerary-card:hover {
    border-color: var(--accent);
    background: #fff8f0;
    transform: translateX(4px);
}

.welcome-itinerary-card.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fff8f0, #fff);
}

.welcome-itinerary-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 10px;
}

.welcome-itinerary-info {
    flex: 1;
    text-align: left;
}

.welcome-itinerary-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.welcome-itinerary-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.welcome-itinerary-arrow {
    color: var(--text-light);
    font-size: 1.2rem;
}

.welcome-itinerary-card:hover .welcome-itinerary-arrow {
    color: var(--accent);
}

/* Tutorial Overlay */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.tutorial-overlay.show {
    opacity: 1;
    visibility: visible;
}

.tutorial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.tutorial-step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.tutorial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.tutorial-dot.active {
    background: var(--accent);
}

.tutorial-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.tutorial-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.tutorial-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.tutorial-btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tutorial-btn.skip {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
}

.tutorial-btn.next {
    background: var(--accent);
    border: none;
    color: white;
}

.tutorial-btn:hover {
    transform: translateY(-2px);
}

/* Legal Modals (Terms & Privacy) */
.legal-modal {
    max-width: 600px;
    max-height: 80vh;
}

.legal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.legal-content h4 {
    color: var(--text);
    font-size: 1rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.legal-content h4:first-of-type {
    margin-top: 10px;
}

.legal-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-content ul {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 10px 0;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 5px;
}

.legal-updated {
    color: var(--text-light);
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.legal-close-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.legal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 148, 90, 0.3);
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 1;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: #f44336;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ff9800;
}

.password-strength-bar.strong {
    width: 100%;
    background: #4caf50;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

.password-strength-text.weak {
    color: #f44336;
}

.password-strength-text.medium {
    color: #ff9800;
}

.password-strength-text.strong {
    color: #4caf50;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 148, 90, 0.3);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 16px;
}

.social-login-options {
    display: flex;
    gap: 12px;
}

.social-login-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.social-login-btn:hover {
    border-color: var(--accent);
    background: #fff8f0;
}

.social-login-btn.google span:first-child {
    color: #4285f4;
    font-weight: bold;
}

.social-login-btn.apple span:first-child {
    color: #000;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
}

/* My Page Modal Styles */
.mypage-modal {
    max-width: 400px;
}

.mypage-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #fff8f0, #fff);
    border-radius: 12px;
    margin-bottom: 20px;
}

.mypage-avatar {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mypage-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    color: var(--text);
}

.mypage-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.mypage-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

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

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.mypage-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mypage-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mypage-action-btn:hover {
    background: #eee;
}

.mypage-action-btn.danger {
    background: #fff0f0;
    color: #e74c3c;
}

.mypage-action-btn.danger:hover {
    background: #ffe0e0;
}

/* User Profile Button */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.user-profile-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Travel Section Styles */
.travel-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: visible;
    margin: 4px 0;
}

.travel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 44px;
    background: linear-gradient(135deg, #fff8f0, #fff);
    border-radius: 16px;
}

.travel-header:hover {
    background: linear-gradient(135deg, #fff0e0, #fff8f0);
}

.travel-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--shiba-brown);
    background: var(--shiba-light);
    padding: 4px 10px;
    border-radius: 12px;
}

.travel-summary {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.travel-fare-badge {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--shiba-orange);
    background: linear-gradient(135deg, var(--shiba-light), #fff);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--shiba-orange);
}

.travel-expand {
    font-size: 0.7rem;
    color: var(--text-light);
    transition: transform 0.2s;
    margin-left: 8px;
}

.travel-other-input {
    margin-bottom: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #fff8f0, #fff);
    border-radius: 12px;
}

.travel-other-input label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.travel-note-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.travel-note-input:focus {
    border-color: var(--shiba-orange);
    outline: none;
}

.travel-cost-edit {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--shiba-orange);
}

.travel-cost-input {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid var(--shiba-orange);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--shiba-brown);
    text-align: right;
}

.travel-cost-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 148, 90, 0.2);
}

.travel-details {
    display: none;
    padding: 20px;
    background: #fefefe;
    border-top: 1px solid var(--border);
    min-height: auto;
    border-radius: 0 0 16px 16px;
    min-width: 350px;
}

.travel-details.show {
    display: block;
}

.travel-details .travel-mode-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.travel-details .travel-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 12px;
    background: #f5f5f5;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 60px;
}

.travel-details .travel-mode-btn:hover {
    background: #fff0e0;
    border-color: var(--shiba-orange);
}

.travel-details .travel-mode-btn.active {
    background: var(--shiba-light);
    border-color: var(--shiba-orange);
}

.travel-details .travel-mode-btn .mode-label {
    font-size: 0.7rem;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}

.travel-custom-input {
    display: none;
    margin-bottom: 12px;
}

.travel-custom-input.show {
    display: block;
}

.travel-custom-text {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.travel-custom-text:focus {
    border-color: var(--shiba-orange);
    outline: none;
}

.travel-custom-text::placeholder {
    color: #aaa;
}

.travel-info-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.travel-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.travel-info-item label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.travel-time-edit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.travel-time-edit input {
    width: 60px;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    background: white;
}

.travel-time-edit input:focus {
    outline: none;
    border-color: var(--shiba-orange);
}

.travel-time-edit span {
    font-size: 0.85rem;
    color: var(--text);
}

.travel-cost-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--shiba-orange);
    padding: 6px 12px;
    background: var(--shiba-light);
    border-radius: 10px;
}

.travel-cost-display.fare-large {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--shiba-light), #fff);
    border: 2px solid var(--shiba-orange);
}

.travel-calc-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--shiba-orange), var(--accent-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.travel-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 148, 90, 0.3);
}

/* Share Modal Styles */
.share-modal {
    max-width: 480px;
}

.share-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.share-preview {
    background: linear-gradient(135deg, #fff8f0, #fff);
    border: 2px solid var(--shiba-light);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.share-preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--shiba-brown);
    margin-bottom: 6px;
}

.share-preview-dates {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.share-preview-spots {
    font-size: 0.85rem;
    color: var(--text);
    background: white;
    padding: 8px 12px;
    border-radius: 10px;
}

.share-url-section {
    margin-bottom: 16px;
}

.share-url-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.share-url-box {
    background: #f8f9fa;
    padding: 12px 14px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    border: 1px solid var(--border);
}

/* QR Code Section */
.share-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e0e0e0;
}

.share-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.share-qr-code img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-qr-hint {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #999;
}

/* Share Actions */
.share-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Main Share Button */
.share-main-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.share-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

.share-main-btn:active {
    transform: translateY(-1px);
}

.share-btn-icon {
    font-size: 1.3rem;
    animation: wagTail 0.5s ease-in-out infinite alternate;
}

@keyframes wagTail {
    from { transform: rotate(-5deg); }
    to { transform: rotate(5deg); }
}

/* Sub Actions */
.share-sub-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.share-sub-btn {
    flex: 1;
    padding: 12px 16px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-sub-btn:hover {
    background: #eeeeee;
    color: #333;
    transform: translateY(-2px);
}

.line-invite-btn {
    background: linear-gradient(135deg, #00B900, #00C300) !important;
    color: white !important;
    font-size: 1rem !important;
    padding: 14px 20px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.line-invite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.3);
}

.line-icon {
    font-size: 1.2rem;
}

/* Flatpickr Custom Theme */
.flatpickr-calendar {
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    border: none !important;
    font-family: 'Noto Sans JP', sans-serif !important;
}

.flatpickr-months {
    background: linear-gradient(135deg, var(--shiba-orange), var(--accent-light)) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 8px 0 !important;
}

.flatpickr-months .flatpickr-month {
    color: white !important;
}

.flatpickr-current-month {
    color: white !important;
    font-weight: 600 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
    color: white !important;
}

.flatpickr-current-month input.cur-year {
    color: white !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: white !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
}

.flatpickr-weekdays {
    background: var(--shiba-light) !important;
}

.flatpickr-weekday {
    color: var(--shiba-brown) !important;
    font-weight: 600 !important;
}

.flatpickr-day {
    border-radius: 10px !important;
    transition: all 0.2s !important;
}

.flatpickr-day:hover {
    background: var(--shiba-light) !important;
    border-color: var(--shiba-light) !important;
}

.flatpickr-day.selected {
    background: var(--shiba-orange) !important;
    border-color: var(--shiba-orange) !important;
}

.flatpickr-day.today {
    border-color: var(--shiba-orange) !important;
}

/* Rounded Input Forms */
.spot-name-input,
.spot-time-input,
.spot-duration-input,
.spot-budget-input,
.spot-comment-input {
    border-radius: 16px !important;
    border: 2px solid var(--border) !important;
    padding: 10px 14px !important;
    transition: all 0.2s !important;
    background: white !important;
}

.spot-name-input:focus,
.spot-time-input:focus,
.spot-duration-input:focus,
.spot-budget-input:focus,
.spot-comment-input:focus {
    border-color: var(--shiba-orange) !important;
    box-shadow: 0 0 0 3px rgba(232, 148, 90, 0.1) !important;
    outline: none !important;
}

.spot-comment-input {
    border-radius: 20px !important;
    min-height: 60px !important;
}

/* Date Input Styling */
.date-input {
    padding: 10px 14px !important;
    border: 2px solid var(--border) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #fff8f0, #fff) !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.date-input:focus {
    border-color: var(--shiba-orange) !important;
    box-shadow: 0 0 0 3px rgba(232, 148, 90, 0.1) !important;
}

/* Trip Title Input */
.trip-title-input {
    border-radius: 16px !important;
    padding: 12px 16px !important;
    border: 2px solid transparent !important;
    background: #f8f8f8 !important;
    transition: all 0.2s !important;
}

.trip-title-input:focus {
    background: white !important;
    border-color: var(--shiba-orange) !important;
}

/* Other Costs Input */
.other-costs-input {
    border-radius: 12px !important;
    border: 2px solid var(--border) !important;
}

.other-costs-input:focus {
    border-color: var(--shiba-orange) !important;
}

/* Search Input */
.search-input {
    border-radius: 20px !important;
    padding: 14px 18px !important;
    border: 2px solid var(--border) !important;
}

.search-input:focus {
    border-color: var(--shiba-orange) !important;
    box-shadow: 0 0 0 3px rgba(232, 148, 90, 0.1) !important;
}

/* Back Button - Stylish Paw Design */
.back-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: linear-gradient(145deg, #fff, var(--shiba-light));
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(232, 148, 90, 0.2),
        inset 0 -2px 4px rgba(0,0,0,0.05),
        inset 0 2px 4px rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(232, 148, 90, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.back-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(232, 148, 90, 0.3),
        inset 0 -2px 4px rgba(0,0,0,0.05),
        inset 0 2px 4px rgba(255,255,255,0.8);
}

.back-btn:hover::before {
    opacity: 1;
}

.back-btn:active {
    transform: translateY(0) scale(0.98);
}

.back-arrow {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--shiba-brown);
    transition: transform 0.3s;
}

.back-btn:hover .back-arrow {
    transform: translateX(-3px);
}

/* Invite Members Button */
.invite-members-btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: linear-gradient(135deg, #00B900, #00C300);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.invite-members-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.3);
}

/* Other Costs Group - Clickable */
.other-costs-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fff8f0, #fff);
    border: 2px solid var(--shiba-light);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.other-costs-group:hover {
    border-color: var(--shiba-orange);
    box-shadow: 0 2px 8px rgba(232, 148, 90, 0.2);
}

.other-costs-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.other-costs-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--shiba-brown);
}

.other-costs-edit {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Route Options Modal */
.route-modal {
    max-width: 500px;
}

.route-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
}

.route-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.route-option-card {
    background: linear-gradient(135deg, #fff, #fff8f0);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.route-option-card:hover {
    border-color: var(--shiba-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 148, 90, 0.2);
}

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

.route-icon {
    font-size: 1.5rem;
}

.route-label {
    font-weight: 600;
    color: var(--text);
}

.route-recommend {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--shiba-orange);
    background: var(--shiba-light);
    padding: 4px 10px;
    border-radius: 20px;
}

.route-option-body {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.route-duration {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.route-duration-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--shiba-orange);
}

.route-duration-unit {
    font-size: 1rem;
    color: var(--text-light);
}

.route-details {
    flex: 1;
}

.route-distance {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.route-fare {
    display: flex;
    flex-direction: column;
}

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

.fare-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success);
}

.route-apply-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--shiba-orange), var(--accent-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.route-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 148, 90, 0.3);
}

.route-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.route-empty span {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

/* Budget Summary Modal */
.budget-summary-modal {
    max-width: 420px;
    max-height: 80vh;
}

.budget-summary-modal .modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: 60vh;
}

.budget-summary-total {
    background: linear-gradient(135deg, var(--shiba-orange), #e67e22);
    color: white;
    padding: 24px;
    text-align: center;
}

.budget-summary-total-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.budget-summary-total-amount {
    font-size: 2rem;
    font-weight: 700;
}

.budget-summary-section {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.budget-summary-section-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.budget-summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.budget-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.budget-summary-item-icon {
    font-size: 1.1rem;
    z-index: 1;
}

.budget-summary-item-label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-dark);
    z-index: 1;
}

.budget-summary-item-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(243, 156, 18, 0.15), rgba(243, 156, 18, 0.05));
    border-radius: 10px;
}

.budget-summary-item-amount {
    font-weight: 600;
    color: var(--shiba-orange);
    font-size: 0.95rem;
    z-index: 1;
}

.budget-summary-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.budget-summary-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 10px;
}

.budget-summary-detail-icon {
    font-size: 1.2rem;
}

.budget-summary-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.budget-summary-detail-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.budget-summary-detail-sub {
    font-size: 0.75rem;
    color: var(--text-light);
}

.budget-summary-detail-amount {
    font-weight: 600;
    color: var(--shiba-orange);
}

/* Settlements in modal */
.budget-summary-settlements {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.budget-summary-settlement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(230, 126, 34, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.budget-settlement-from {
    font-weight: 600;
    color: #e74c3c;
}

.budget-settlement-arrow {
    color: var(--text-light);
}

.budget-settlement-to {
    font-weight: 600;
    color: #27ae60;
}

.budget-settlement-amount {
    margin-left: auto;
    font-weight: 700;
    color: var(--shiba-orange);
    font-size: 1.1rem;
}

.budget-summary-empty {
    text-align: center;
    padding: 40px 20px;
}

.budget-summary-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.budget-summary-empty-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.budget-summary-empty-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Calculator Modal (legacy) */
.calculator-modal {
    max-width: 380px;
}

.calc-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
}

.calc-display-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fff8f0, #fff);
    border: 2px solid var(--shiba-light);
    border-radius: 20px;
}

.calc-yen {
    font-size: 1.5rem;
    color: var(--shiba-orange);
    font-weight: 600;
}

.calc-display {
    font-size: 2rem;
    font-weight: 700;
    text-align: right;
    border: none;
    background: transparent;
    color: var(--shiba-brown);
    width: 180px;
    outline: none;
}

.calc-keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.calc-key {
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    background: #f5f5f5;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.calc-key:hover {
    background: var(--shiba-light);
    transform: scale(1.05);
}

.calc-key:active {
    transform: scale(0.95);
}

.calc-key-action {
    background: var(--shiba-light);
    color: var(--shiba-orange);
}

.calc-key-zero {
    grid-column: span 2;
}

.calc-apply-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--shiba-orange), var(--accent-light));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 148, 90, 0.3);
}

/* Invite Modal */
.invite-modal {
    max-width: 440px;
}

.invite-preview {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #fff8f0, #fff);
    border-radius: 20px;
    margin-bottom: 20px;
}

.invite-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.invite-itinerary-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--shiba-brown);
    margin: 0 0 4px 0;
}

.invite-description {
    color: var(--text-light);
    margin: 0;
}

/* Invite Permission Section */
.invite-permission-section {
    margin-bottom: 20px;
}

.invite-permission-section > label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.invite-permission-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.permission-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.permission-option:hover {
    border-color: var(--accent-light);
    background: #fff8f0;
}

.permission-option input[type="radio"] {
    display: none;
}

.permission-option input[type="radio"]:checked + .permission-icon {
    transform: scale(1.1);
}

.permission-option:has(input:checked) {
    border-color: var(--accent);
    background: #fff8f0;
}

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

.permission-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.permission-title {
    font-weight: 600;
    color: var(--text);
}

.permission-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

.invite-url-section {
    margin-bottom: 20px;
}

.invite-url-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Share Permission Section */
.share-permission-section {
    margin-bottom: 16px;
}

.share-permission-section > label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.share-permission-options {
    display: flex;
    gap: 12px;
}

.permission-option-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}

.permission-option-compact:hover {
    border-color: var(--accent-light);
    background: #fff8f0;
}

.permission-option-compact:has(input:checked) {
    border-color: var(--accent);
    background: #fff8f0;
}

.permission-option-compact input[type="radio"] {
    display: none;
}

.permission-option-compact span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Share Buttons Row */
.share-buttons-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.share-action-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.share-action-btn.line-btn {
    background: #06C755;
    color: white;
}

.share-action-btn.copy-btn {
    background: var(--accent);
    color: white;
}

.share-action-btn.image-btn {
    background: #5c6bc0;
    color: white;
}

.share-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.invite-url-box {
    background: #f8f9fa;
    padding: 14px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    border: 1px solid var(--border);
}

.invite-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invite-btn {
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.invite-btn.line-btn {
    background: linear-gradient(135deg, #00B900, #00C300);
    color: white;
}

.invite-btn.line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.3);
}

.invite-btn.copy-btn {
    background: #f5f5f5;
    color: var(--text);
}

.invite-btn.copy-btn:hover {
    background: #eee;
}

/* Luxurious Pastel Design Updates */
/* .left-panel styles moved to main definition */

.panel-header {
    padding: 24px;
    background: linear-gradient(135deg, rgba(255,248,240,0.9), rgba(255,255,255,0.95));
    border-bottom: 1px solid rgba(232, 148, 90, 0.1);
}

.spot-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.spot-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--shiba-orange);
}

.sidebar {
    background: linear-gradient(180deg, #4a3728, #3d2d1f);
}

.sidebar-section {
    padding: 16px;
}

.sidebar-section-header {
    margin-bottom: 12px;
}

/* Route Suggest Button in Travel Section */
.travel-suggest-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.travel-suggest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Travel Action Row */
.travel-action-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.travel-gmaps-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #34a853, #4caf50);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.travel-gmaps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.travel-naver-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #1ec800, #03c75a);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.travel-naver-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.3);
}

/* Drag and Drop */
.spot-card-drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: grab;
    font-size: 0.8rem;
    letter-spacing: -2px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.spot-card:hover .spot-card-drag-handle {
    opacity: 1;
}

.spot-card-drag-handle:active {
    cursor: grabbing;
}

.spot-card {
    position: relative;
}

.spot-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.spot-card.drag-over {
    border: 2px dashed var(--shiba-orange);
    background: rgba(232, 148, 90, 0.1);
}

/* Spot Location Row with "今ここ" button */
.spot-location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.spot-location-row .spot-location {
    margin-bottom: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spot-here-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--shiba-orange), var(--accent-light));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.spot-here-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 148, 90, 0.3);
}

.spot-here-btn:active {
    transform: scale(0.95);
}

/* Multi-day tabs */
.day-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff8f0, #fff);
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    position: sticky;
    top: 250px;
    z-index: 8;
}

.day-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.day-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.day-tab.active .day-color-dot {
    border: 2px solid white;
    box-sizing: border-box;
}

.day-tab:hover {
    border-color: var(--shiba-orange);
    color: var(--shiba-orange);
}

.day-tab.active {
    background: var(--day-color, var(--shiba-orange));
    color: white;
    border-color: var(--day-color, var(--shiba-orange));
}

.add-day-btn {
    padding: 10px 16px;
    background: transparent;
    border: 2px dashed var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.add-day-btn:hover {
    border-color: var(--shiba-orange);
    color: var(--shiba-orange);
}

/* Travel Cost Edit (always editable) */
.travel-cost-edit {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--shiba-orange);
}

.travel-cost-edit span {
    color: var(--shiba-orange);
}

.travel-cost-edit .shiba-input {
    width: 80px;
    text-align: right;
}

/* Day Tab Wrapper with Delete Button */
.day-tab-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.day-delete-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.day-tab-wrapper:hover .day-delete-btn {
    opacity: 1;
}

.day-delete-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Time Picker Styles */
.shiba-time-picker {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shiba-select {
    padding: 8px 12px;
    border: 2px solid var(--shiba-light);
    border-radius: 12px;
    background: white;
    color: var(--shiba-brown);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    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='%23e8945a' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.shiba-select:hover {
    border-color: var(--shiba-orange);
}

.shiba-select:focus {
    outline: none;
    border-color: var(--shiba-orange);
    box-shadow: 0 0 0 3px rgba(232, 148, 90, 0.2);
}

.shiba-hour, .shiba-minute {
    width: 70px;
}

.shiba-colon {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--shiba-orange);
}

.shiba-duration {
    width: 100%;
    max-width: 140px;
}

/* Budget Quick Buttons */
.shiba-budget-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shiba-budget-quick {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.shiba-budget-quick button {
    padding: 4px 10px;
    border: 1px solid var(--shiba-light);
    border-radius: 12px;
    background: white;
    color: var(--shiba-brown);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.shiba-budget-quick button:hover {
    background: var(--shiba-light);
    border-color: var(--shiba-orange);
    color: var(--shiba-orange);
}

.shiba-budget-quick button:active {
    transform: scale(0.95);
}

/* AI Section */
.spot-ai-section {
    margin-top: 12px;
}

.spot-ai-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fff8f0, #fff);
    border: 2px dashed var(--shiba-light);
    border-radius: 12px;
    color: var(--shiba-brown);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.spot-ai-btn:hover {
    border-color: var(--shiba-orange);
    background: var(--shiba-light);
}

.ai-loading {
    text-align: center;
    padding: 16px;
    color: var(--shiba-orange);
    font-size: 0.9rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Wishlist Rank & Category Styles */
.wishlist-item-top {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.wishlist-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-rank.rank-s {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #8b4513;
}

.wishlist-rank.rank-a {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #333;
}

.wishlist-rank.rank-b {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: white;
}

.wishlist-rank:hover {
    transform: scale(1.1);
}

.wishlist-category {
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.wishlist-category:hover {
    transform: scale(1.2);
}

/* AI Estimation Styles */
.ai-estimation {
    display: flex;
    gap: 16px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fff8f0, #fff);
    border-radius: 10px;
    margin-bottom: 10px;
}

.ai-est-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-est-label {
    font-size: 0.7rem;
    color: #999;
    font-weight: 500;
}

.ai-est-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--shiba-orange);
}

/* Opening Hours Styling */
.opening-hours-item .ai-est-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.opening-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.opening-status.open {
    background: #dcfce7;
    color: #16a34a;
}

.opening-status.closed {
    background: #fee2e2;
    color: #dc2626;
}

.today-hours {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

/* Weather in Day Tabs */
.day-weather {
    font-size: 1rem;
    margin-left: 4px;
}

/* Hotel Search Modal */
.hotel-modal {
    max-width: 400px;
}

.hotel-search-info {
    text-align: center;
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hotel-search-info small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.hotel-provider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hotel-provider-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.hotel-provider-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hotel-provider-btn .provider-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hotel-provider-btn .provider-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.hotel-provider-btn.rakuten:hover {
    border-color: #bf0000;
    background: #fff5f5;
}

.hotel-provider-btn.jalan:hover {
    border-color: #ff6600;
    background: #fff8f0;
}

.hotel-provider-btn.booking:hover {
    border-color: #003580;
    background: #f0f5ff;
}

.hotel-provider-btn.agoda:hover {
    border-color: #5c2d91;
    background: #f8f0ff;
}

/* Day Memo Section (Sticky Note Style) */
.day-memo-section {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    position: relative;
}

.day-memo-section::before {
    display: none;
}

.day-memo-header {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #8b4513;
    margin-bottom: 12px;
    padding-top: 2px;
}

.day-memo-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.9rem;
    color: #5d4e37;
    resize: vertical;
    line-height: 1.6;
}

.day-memo-input::placeholder {
    color: #b8a88a;
}

.day-memo-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

/* Share Modal Button Updates */
.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-actions .modal-btn {
    flex: 1;
    min-width: 120px;
}

/* SortableJS Drag & Drop Styles */
.sortable-ghost {
    opacity: 0.4;
    background: var(--shiba-orange-light);
}

.sortable-chosen {
    background: #fff;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
}

.sortable-drag {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Wishlist Category Header */
.wishlist-category-header {
    padding: 8px 12px;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--shiba-orange);
    background: linear-gradient(135deg, #fff8f0, #fff);
    border-radius: 8px;
    border-left: 3px solid var(--shiba-orange);
}

.wishlist-category-header:first-child {
    margin-top: 0;
}

.wishlist-category-label {
    font-size: 0.65rem;
    color: #888;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* AI Loading & Error States */
.ai-loading {
    padding: 16px;
    text-align: center;
    color: var(--shiba-orange);
    font-size: 0.9rem;
    animation: pulse 1.5s infinite;
}

.ai-error {
    padding: 12px;
    text-align: center;
    color: #e74c3c;
    font-size: 0.85rem;
    background: #ffeaea;
    border-radius: 8px;
}

/* Drop Zone Indicator */
#spotsContainer.sortable-drop-zone {
    min-height: 100px;
    border: 2px dashed var(--shiba-orange);
    border-radius: 12px;
    background: rgba(255, 152, 0, 0.05);
}

/* Transport Mode Labels */
.travel-mode-btn .mode-label {
    font-size: 0.65rem;
    display: block;
    margin-top: 2px;
}

/* Wishlist Header Compact */
.wishlist-header-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

/* Compact Sort Button */
.wishlist-sort-compact {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--shiba-orange), #e68900);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
}

.wishlist-sort-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* Map Icon Button */
.wishlist-map-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    color: #888;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-map-icon-btn:hover {
    background: white;
    border-color: var(--shiba-orange);
    color: var(--shiba-orange);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.wishlist-map-icon-btn.active {
    background: white;
    border-color: #ff9800;
    color: #ff9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.wishlist-map-icon-btn.active:hover {
    background: white;
    border-color: #e65100;
    color: #e65100;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
}

/* Wishlist Item Compact */
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ffe0b2;
}

.wishlist-item:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
    border-color: var(--shiba-orange);
    background: linear-gradient(135deg, #ffecb3 0%, #ffe0b2 100%);
}

/* Wishlist Item Thumbnail */
.wishlist-item-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.wishlist-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-thumb-placeholder {
    font-size: 1.2rem;
    line-height: 1;
}

.wishlist-item-info {
    flex: 1;
    min-width: 0;
}

/* Compact Rank Chip - Stars Display */
.wishlist-rank-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
    background: #fff8f0;
    border: 1px solid #ffe0c0;
    transition: all 0.2s;
}

.wishlist-rank-chip:hover {
    transform: scale(1.05);
}

.wishlist-rank-chip.rank-s {
    background: linear-gradient(135deg, #fff8e0, #fff0c0);
    border-color: #ffd700;
}

.wishlist-rank-chip.rank-a {
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    border-color: #c0c0c0;
}

.wishlist-rank-chip.rank-b {
    background: linear-gradient(135deg, #fff0e8, #ffe8d8);
    border-color: #dda080;
}

/* Group Select Dropdown */
.wishlist-group-select {
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.7rem;
    background: #fafafa;
    cursor: pointer;
    max-width: 60px;
    flex-shrink: 0;
}

.wishlist-group-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Create Itinerary Prompt */
.wishlist-create-itinerary-prompt {
    background: linear-gradient(135deg, #fff8f0, #ffe8d6);
    border: 2px dashed var(--accent);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    text-align: center;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: var(--accent-light); }
}

.wishlist-create-itinerary-prompt .prompt-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.wishlist-create-itinerary-prompt .prompt-text {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 12px;
}

.wishlist-create-itinerary-prompt .prompt-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 148, 90, 0.3);
    transition: all 0.3s;
}

.wishlist-create-itinerary-prompt .prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 148, 90, 0.4);
}

/* Step Hints */
.step-hint {
    background: #f0f8ff;
    border-left: 4px solid var(--accent);
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-hint-icon {
    font-size: 1.5rem;
}

.step-hint-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

.step-hint-dismiss {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
}

/* Floating Step Hints */
.step-hint-floating {
    display: none !important;
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 90%;
}

.step-hint-floating.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.step-hint-floating .step-hint-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.step-hint-floating .step-hint-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.4;
}

.step-hint-floating .step-hint-dismiss {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 4px;
    margin-left: 8px;
    flex-shrink: 0;
}

.step-hint-floating .step-hint-dismiss:hover {
    color: var(--text);
}

/* Compact Category Chip */
.wishlist-category-chip {
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #fafafa;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.wishlist-category-chip:focus {
    outline: none;
    border-color: var(--shiba-orange);
}

/* Dropdown Menus */
.wishlist-rank-dropdown,
.wishlist-category-dropdown {
    position: relative;
    display: inline-block;
}

.rank-dropdown-menu,
.category-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 80px;
    margin-top: 4px;
}

.rank-dropdown-menu.show,
.category-dropdown-menu.show {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: dropdownFade 0.2s ease;
}

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

.rank-option,
.category-option {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.15s;
    text-align: center;
}

.rank-option:hover,
.category-option:hover {
    transform: scale(1.05);
}

.rank-option.rank-s { background: linear-gradient(135deg, #ffd700, #ffb800); color: #8b6914; }
.rank-option.rank-a { background: linear-gradient(135deg, #c0c0c0, #a8a8a8); color: #4a4a4a; }
.rank-option.rank-b { background: linear-gradient(135deg, #cd7f32, #b87333); color: #5c3a1d; }

.category-option {
    background: #f5f5f5;
    color: #333;
}

.category-option:hover {
    background: var(--shiba-orange-light);
    color: var(--shiba-orange);
}

/* Wishlist Rank Styles */
.wishlist-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-rank:hover {
    transform: scale(1.1);
}

.wishlist-rank.rank-s {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #8b6914;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.wishlist-rank.rank-a {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #4a4a4a;
}

.wishlist-rank.rank-b {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #5c3a1d;
}

/* Wishlist Category Label */
.wishlist-category-label {
    padding: 4px 8px;
    background: linear-gradient(135deg, #f8f4f0, #fff);
    border-radius: 8px;
    font-size: 0.7rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}

.wishlist-category-label:hover {
    background: var(--shiba-orange-light);
    color: var(--shiba-orange);
    border-color: var(--shiba-orange);
}

/* Wishlist Item Name */
.wishlist-item-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

/* Dark Mode - Keep light theme colors */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: var(--shiba-cream);
        --dark-card: #ffffff;
        --dark-border: #f0e6dc;
        --gold-accent: #f5a962;
        --gold-light: rgba(245, 169, 98, 0.15);
    }
    
    body {
        background: linear-gradient(135deg, var(--shiba-cream) 0%, var(--shiba-warm) 50%, var(--shiba-light) 100%);
        color: var(--text);
    }
    
    .sidebar {
        background: linear-gradient(180deg, #5c4033, #4a3528);
        border-color: var(--dark-border);
    }
    
    .top-header {
        background: rgba(255, 255, 255, 0.95);
        border-color: var(--dark-border);
    }
    
    .spot-card {
        background: var(--dark-card);
        border-color: var(--dark-border);
    }
    
    .wishlist-item {
        background: var(--dark-card);
        border-color: var(--dark-border);
    }
    
    .wishlist-bottom-controls {
        background: linear-gradient(135deg, var(--dark-card), #4a3f38);
        border-color: var(--dark-border);
    }
    
    .segment-control {
        background: var(--dark-bg);
    }
    
    .segment-btn {
        color: #aaa;
    }
    
    .segment-btn:hover {
        background: var(--gold-light);
        color: var(--gold-accent);
    }
    
    .segment-btn.active {
        background: linear-gradient(135deg, var(--gold-accent), #c9a227);
        color: #1a1f2e;
    }
    
    .wishlist-category-label {
        background: var(--dark-bg);
        border-color: var(--dark-border);
        color: #bbb;
    }
    
    .wishlist-category-label:hover {
        background: var(--gold-light);
        color: var(--gold-accent);
        border-color: var(--gold-accent);
    }
    
    .wishlist-item-name {
        color: #e0e0e0;
    }
    
    .rank-dropdown-menu,
    .category-dropdown-menu {
        background: var(--dark-card);
        border: 1px solid var(--dark-border);
    }
    
    .category-option {
        background: var(--dark-bg);
        color: #ccc;
    }
    
    .category-option:hover {
        background: var(--gold-light);
        color: var(--gold-accent);
    }
    
    /* Gold accents for headers */
    .header-logo {
        color: var(--gold-accent);
    }
    
    .day-tab.active {
        background: linear-gradient(135deg, var(--gold-accent), #c9a227);
        color: #1a1f2e;
    }
}

/* ===========================================
   Drag & Drop Visual Feedback
   =========================================== */

/* Ghost element during drag */
.sortable-ghost {
    opacity: 0.4;
    background: var(--shiba-orange-light) !important;
    border: 2px dashed var(--shiba-orange) !important;
}

/* Chosen element */
.sortable-chosen {
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4) !important;
    transform: scale(1.02);
}

/* Dragging element */
.sortable-drag {
    opacity: 1 !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3) !important;
    z-index: 9999 !important;
}

/* Wishlist clone during drag */
.wishlist-clone {
    background: linear-gradient(135deg, #fff8e1, #ffecb3) !important;
    border: 2px solid var(--shiba-orange) !important;
    border-radius: 8px;
}

/* Body class when dragging from wishlist */
body.dragging-wishlist #spotsList {
    background: rgba(255, 152, 0, 0.05);
    border: 2px dashed var(--shiba-orange);
    border-radius: 12px;
    min-height: 100px;
}

/* Drop zone indicator */
body.dragging-wishlist .spot-card {
    position: relative;
}

body.dragging-wishlist .spot-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s;
}

body.dragging-wishlist .spot-card:hover::before {
    background: var(--shiba-orange);
}

/* Empty spots list placeholder */
#spotsList:empty::after {
    content: '🐕 ここにスポットをドロップ';
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
    font-size: 0.9rem;
    border: 2px dashed #ddd;
    border-radius: 12px;
    margin: 10px 0;
}

body.dragging-wishlist #spotsList:empty::after {
    border-color: var(--shiba-orange);
    background: rgba(255, 152, 0, 0.1);
    color: var(--shiba-orange);
}

/* Wishlist Bottom Actions */
.wishlist-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.wishlist-manual-add-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-manual-add-btn:hover {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    transform: translateY(-1px);
}

.wishlist-clear-all-btn {
    padding: 6px 10px;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-clear-all-btn:hover {
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
    transform: translateY(-1px);
}

/* Wishlist Delete Button (red style like add button) */
.wishlist-delete-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ef5350, #e53935);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-delete-btn:hover {
    background: linear-gradient(135deg, #e53935, #c62828);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
}

/* Day Memo Container (below budget) */
.day-memo-container {
    margin-top: 10px;
}

.day-memo-section {
    background: white;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.day-memo-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #757575;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.day-memo-input {
    width: 100%;
    min-height: 50px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.8rem;
    resize: vertical;
    background: white;
    line-height: 1.5;
}

.day-memo-input:focus {
    outline: none;
    border-color: #bdbdbd;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Sorting state - prevent map interference */
body.sorting-spots .map-container {
    pointer-events: none;
}

body.sorting-spots .spot-card-drag-handle {
    cursor: grabbing;
}

.spot-card-drag-handle {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

/* SortableJS Ghost - shows where item will be inserted */
.sortable-ghost {
    opacity: 0.4;
    background: #fff3e0 !important;
    border: 2px dashed #ff9800 !important;
    border-radius: 12px;
}

.sortable-chosen {
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4) !important;
    transform: scale(1.02);
    z-index: 1000;
}

.sortable-drag {
    opacity: 0.9;
    background: white !important;
}

/* Insertion Mode Styles */
body.insertion-mode .spot-card {
    opacity: 0.7;
}

body.insertion-mode .wishlist-panel {
    pointer-events: none;
    opacity: 0.5;
}

body.insertion-mode .insertion-guide {
    pointer-events: auto;
}

.insertion-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    margin: 4px 0;
    animation: insertionPulse 1.5s ease-in-out infinite;
}

@keyframes insertionPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.insertion-guide-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff9800, transparent);
}

.insertion-guide-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
    white-space: nowrap;
}

.insertion-guide-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.6);
    background: linear-gradient(135deg, #ffb74d, #ff9800);
}

.insertion-guide-icon {
    font-size: 1rem;
    font-weight: bold;
}

.insertion-guide-text {
    font-size: 0.8rem;
}

/* Add Options Menu - Horizontal Style */
.add-options-menu-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    margin: 8px 0;
    animation: insertionPulse 1.5s ease-in-out infinite;
}

.add-options-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff9800, transparent);
}

.add-options-buttons-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.add-option-btn-h {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.add-option-btn-h:hover {
    transform: scale(1.05);
}

.add-option-btn-h.add-option-insert {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.add-option-btn-h.add-option-insert:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
}

.add-option-btn-h.add-option-end {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.add-option-btn-h.add-option-end:hover {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.5);
}

.add-option-btn-h.add-option-cancel {
    background: #e0e0e0;
    color: #666;
    padding: 8px 12px;
}

.add-option-btn-h.add-option-cancel:hover {
    background: #bdbdbd;
}

/* Notification with Undo button */
#notification.with-undo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 12px;
}

.undo-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.undo-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Wishlist Undo Section */
.wishlist-undo-section {
    padding: 8px 12px;
    border-top: 1px solid #e0e0e0;
}

.wishlist-undo-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-undo-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-color: #ff9800;
    color: #e65100;
}

.wishlist-undo-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Walica-style Expense Splitting Styles
   ============================================ */

/* Spot Expense Section */
.spot-expense-section {
    margin-top: 12px;
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

.expense-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.expense-header:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.expense-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.expense-total {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e65100;
}

.expense-form {
    display: none;
    margin-top: 10px;
    padding: 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.expense-form.show {
    display: block;
}

.expense-list {
    margin-bottom: 10px;
}

.expense-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    position: relative;
}

.expense-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expense-item-sub {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: #888;
}

.expense-item-title {
    color: #333;
    font-weight: 500;
}

.expense-item-payer {
    color: #666;
}

.expense-item-for {
    color: #888;
}

.expense-item-amount {
    font-weight: 600;
    color: #e65100;
}

.expense-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: #f5f5f5;
    color: #999;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
}

.expense-remove-btn:hover {
    background: #ffebee;
    color: #e53935;
}

.expense-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.expense-amount-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.expense-amount-input:focus {
    outline: none;
    border-color: #ff9800;
}

.expense-payer-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    min-width: 80px;
}

.expense-payer-select:focus {
    outline: none;
    border-color: #ff9800;
}

.expense-title-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
}

.expense-title-input:focus {
    outline: none;
    border-color: #ff9800;
}

.expense-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expense-beneficiaries-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 6px;
}

.beneficiaries-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.beneficiaries-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.beneficiary-checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    padding: 4px 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.beneficiary-checkbox-label:has(input:checked) {
    background: #fff3e0;
    border-color: #ff9800;
}

.expense-beneficiary-checkbox {
    width: 14px;
    height: 14px;
    accent-color: #ff9800;
}

.expense-add-btn {
    padding: 10px 16px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.expense-add-btn:hover {
    background: #f57c00;
}

/* Settlement Section */
.settlement-section {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.settlement-controls {
    margin-bottom: 16px;
}

.participants-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.participants-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.settlement-header h4 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.settlement-totals {
    margin-bottom: 16px;
}

.settlement-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.settlement-amount {
    font-weight: 700;
    color: #e65100;
}

.settlement-breakdown {
    margin-bottom: 16px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
}

.settlement-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
}

.settlement-payer-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #333;
}

.settlement-transfers {
    padding: 12px;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px solid #ffe082;
}

.settlement-transfer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.transfer-from {
    color: #d32f2f;
    font-weight: 500;
}

.transfer-arrow {
    color: #999;
}

.transfer-to {
    color: #388e3c;
    font-weight: 500;
}

.transfer-amount {
    margin-left: auto;
    font-weight: 700;
    color: #e65100;
}

.settlement-balanced {
    padding: 12px;
    background: #e8f5e9;
    border-radius: 8px;
    text-align: center;
    color: #388e3c;
    font-size: 0.9rem;
}

.settlement-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Participants Modal */
.participants-modal {
    max-width: 400px;
    width: 90%;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.participant-item {
    display: flex;
    gap: 8px;
}

.participant-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.participant-input:focus {
    outline: none;
    border-color: #ff9800;
}

.participant-remove-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    color: #999;
}

.participant-remove-btn:hover:not(:disabled) {
    background: #ffebee;
    border-color: #e53935;
    color: #e53935;
}

.participant-remove-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.add-participant-btn {
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.add-participant-btn:hover {
    background: #eeeeee;
    border-color: #999;
}

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
}

.cancel-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.cancel-btn:hover {
    background: #f5f5f5;
}

.save-btn {
    padding: 10px 20px;
    background: #ff9800;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.save-btn:hover {
    background: #f57c00;
}

/* ============================================
   Album / Photo Gallery Styles
   ============================================ */

/* Spot Photo Section */
.spot-photo-section {
    margin-top: 12px;
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

.photo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.photo-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.photo-add-btn {
    padding: 4px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-add-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.photo-download-all-btn {
    padding: 4px 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-download-all-btn:hover {
    background: #388E3C;
}

.photo-upload-input {
    display: none;
}

.photo-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
}

.photo-thumbnail {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.photo-thumbnail:hover {
    border-color: #ff9800;
    transform: scale(1.05);
}

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

/* Photo Lightbox */
.photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: #f5f5f5;
}

.lightbox-actions {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.lightbox-download,
.lightbox-delete {
    padding: 5px 10px;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.lightbox-download {
    background: #4CAF50;
}

.lightbox-delete {
    background: #f44336;
}

.lightbox-download:hover,
.lightbox-delete:hover {
    opacity: 1;
}

/* Daily Photo Summary */
.daily-photo-summary {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.summary-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.photo-count {
    font-size: 0.85rem;
    color: #888;
}

.download-all-btn {
    padding: 6px 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.download-all-btn:hover {
    background: #388E3C;
}

.summary-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.summary-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.summary-photo:hover {
    border-color: #ff9800;
    transform: scale(1.02);
}

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

.summary-photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Destination Selection Modal - Multi-select */
.destination-modal {
    max-width: 520px;
    width: 95%;
    max-height: 85vh;
}

.destination-modal h2 {
    margin: 0 0 4px 0;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text);
}

.dest-subtitle {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0 0 12px 0;
}

.dest-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.dest-tab {
    flex: 1;
    padding: 10px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dest-tab.active {
    background: var(--shiba-orange);
    color: white;
}

.dest-content {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 12px;
}

.dest-region-section {
    margin-bottom: 10px;
}

.dest-region-section:last-child {
    margin-bottom: 0;
}

.dest-region-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    padding-left: 4px;
}

.dest-area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dest-chip {
    padding: 6px 12px;
    background: #f8f8f8;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dest-chip:hover {
    background: #e8e8e8;
}

.dest-chip.selected {
    background: var(--shiba-orange);
    color: white;
    border-color: var(--shiba-orange);
}

.dest-chip.main {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-color: #f57c00;
}

.dest-selected {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
}

.dest-selected h4 {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.dest-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dest-none {
    font-size: 0.8rem;
    color: #aaa;
}

.dest-selected-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.8rem;
}

.dest-selected-item.main {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-color: #ffc107;
}

.dest-selected-name {
    cursor: pointer;
}

.dest-main-badge {
    font-size: 0.65rem;
    background: #ffc107;
    color: #333;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.dest-set-main {
    font-size: 0.65rem;
    color: var(--shiba-orange);
    cursor: pointer;
}

.dest-set-main:hover {
    text-decoration: underline;
}

.dest-remove-btn {
    width: 18px;
    height: 18px;
    padding: 0;
    background: #eee;
    border: none;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dest-remove-btn:hover {
    background: #ff5252;
    color: white;
}

.dest-custom {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.dest-custom-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
}

.dest-custom-input:focus {
    border-color: var(--shiba-orange);
    outline: none;
}

.dest-custom-add-btn {
    padding: 10px 16px;
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dest-custom-add-btn:hover {
    background: var(--shiba-orange);
    color: white;
    border-color: var(--shiba-orange);
}

.dest-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.destination-skip-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.destination-skip-btn:hover {
    background: #e8e8e8;
    color: var(--text);
}

.dest-confirm-btn {
    padding: 10px 24px;
    background: var(--shiba-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dest-confirm-btn:hover:not(:disabled) {
    background: #d4845a;
    transform: translateY(-1px);
}

.dest-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .dest-content {
        max-height: 150px;
    }
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    /* Login Required Overlay */
    .login-required-content {
        padding: 20px;
    }
    
    .login-required-logo {
        font-size: 60px;
    }
    
    .login-required-title {
        font-size: 1.8rem;
    }
    
    .login-required-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .login-required-btn {
        padding: 14px 36px;
        font-size: 1rem;
    }
    
    /* Modal Adjustments */
    .modal {
        width: 95%;
        padding: 16px;
        max-height: 90vh;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    /* Auth Modal */
    .auth-modal {
        width: 95%;
        max-width: none;
    }
    
    .auth-tabs {
        flex-direction: row;
    }
    
    .auth-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .auth-input {
        padding: 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .auth-btn {
        padding: 14px;
        font-size: 1rem;
    }
    
    .social-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Cost Modal - Mobile */
    .cost-modal {
        width: 95%;
        max-width: none;
    }
    
    .cost-entry-category-select,
    .cost-entry-payer,
    .cost-entry-date {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    .cost-entry-amount {
        font-size: 1.1rem !important;
    }
    
    .cost-entry-title {
        font-size: 16px !important;
    }
    
    .cost-entry-split-member label {
        font-size: 14px !important;
    }
    
    /* Legal Modal */
    .legal-modal {
        width: 95%;
        max-width: none;
    }
    
    .legal-content {
        max-height: 50vh;
        padding: 16px;
    }
    
    /* Header */
    .header {
        padding: 12px 16px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    /* Spot Cards */
    .spot-card {
        margin-bottom: 12px;
    }
    
    .spot-image-container {
        height: 120px;
    }
    
    /* Day Header */
    .day-header {
        padding: 12px 16px;
    }
    
    .day-title {
        font-size: 1rem;
    }
    
    /* Buttons */
    .primary-btn, .secondary-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Map Panel */
    .right-panel {
        min-height: 250px;
    }
}

@media (max-width: 360px) {
    /* Extra small devices */
    .login-required-title {
        font-size: 1.5rem;
    }
    
    .login-required-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .modal {
        padding: 12px;
    }
    
    .auth-social-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-btn {
        width: 100%;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Larger touch targets */
    .day-tab {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    .spot-action-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better spacing for thumb reach */
    .spots-content {
        padding-bottom: 80px;
    }
    
    /* Floating action button for adding spots */
    .add-spot-floating {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--accent);
        color: white;
        border: none;
        box-shadow: 0 4px 16px rgba(232, 148, 90, 0.4);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Smooth scrolling */
    .spots-list {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Opening hours compact view */
    .opening-hours-item .ai-est-value {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ========================================
   Floating Spot Detail Card (Wanderlog style)
   ======================================== */
.spot-floating-card {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.25s ease;
    pointer-events: auto;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.spot-floating-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #5f6368;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.15s;
}

.spot-floating-close:hover {
    background: #fff;
    color: #202124;
    transform: scale(1.1);
}

.spot-floating-nav {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.spot-floating-nav-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #5f6368;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}

.spot-floating-nav-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

.spot-floating-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.spot-floating-nav-info {
    font-size: 0.75rem;
    color: #5f6368;
    font-weight: 500;
}

.spot-floating-tabs {
    display: flex;
    border-bottom: 1px solid #e8eaed;
    padding: 0 12px;
    background: #fff;
}

.spot-floating-tab {
    background: none;
    border: none;
    padding: 10px 12px;
    font-size: 0.8rem;
    color: #5f6368;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}

.spot-floating-tab:hover {
    color: #202124;
}

.spot-floating-tab.active {
    color: var(--shiba-orange);
    border-bottom-color: var(--shiba-orange);
    font-weight: 500;
}

.spot-floating-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Floating Card Content */
.spot-floating-image-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.spot-floating-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spot-floating-image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--shiba-orange), #f5a623);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.spot-floating-body {
    padding: 16px;
}

.spot-floating-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
    line-height: 1.3;
}

.spot-floating-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.spot-floating-rating-score {
    font-size: 0.9rem;
    font-weight: 600;
    color: #202124;
}

.spot-floating-rating-stars {
    color: #fbbc04;
    font-size: 0.85rem;
}

.spot-floating-rating-count {
    font-size: 0.8rem;
    color: #5f6368;
}

.spot-floating-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.spot-floating-tag {
    padding: 3px 10px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.spot-floating-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #5f6368;
    margin-bottom: 8px;
}

.spot-floating-phone-icon {
    flex-shrink: 0;
}

.spot-floating-phone a {
    color: #1a73e8;
    text-decoration: none;
}

.spot-floating-phone a:hover {
    text-decoration: underline;
}

.spot-floating-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.8rem;
    color: #5f6368;
    margin-bottom: 10px;
    line-height: 1.4;
}

.spot-floating-address-icon {
    flex-shrink: 0;
}

.spot-floating-hours {
    margin: 12px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spot-floating-hours-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.spot-floating-hours-list {
    font-size: 0.8rem;
    color: #5f6368;
    line-height: 1.6;
}

.spot-floating-hours-item {
    padding: 2px 0;
}

.spot-floating-hours-item.today {
    font-weight: 600;
    color: #e8945a;
}

.spot-floating-description {
    font-size: 0.8rem;
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 12px;
}

.spot-floating-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.spot-floating-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.spot-floating-btn.primary {
    background: var(--shiba-orange);
    color: #fff;
}

.spot-floating-btn.primary:hover {
    background: #e09a5a;
    transform: translateY(-1px);
}

.spot-floating-btn.secondary {
    background: #1a73e8;
    color: #fff;
}

.spot-floating-btn.secondary:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

.spot-floating-btn.outline {
    background: transparent;
    color: #5f6368;
    border: 1px solid #dadce0;
    text-decoration: none;
}

.spot-floating-btn.outline:hover {
    background: #f8f9fa;
    border-color: #c1c4c8;
    transform: translateY(-1px);
}

.spot-floating-affiliate {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.spot-floating-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.spot-floating-contact-item {
    font-size: 0.75rem;
    color: #1a73e8;
    text-decoration: none;
    padding: 4px 10px;
    background: #f1f3f4;
    border-radius: 12px;
    transition: background 0.15s;
}

.spot-floating-contact-item:hover {
    background: #e8eaed;
}

.spot-floating-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e8eaed;
}

.spot-floating-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 10px;
}

.spot-floating-review {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.spot-floating-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.spot-floating-review-avatar {
    width: 28px;
    height: 28px;
    background: #e8eaed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #5f6368;
}

.spot-floating-review-info {
    flex: 1;
}

.spot-floating-review-author {
    font-size: 0.8rem;
    font-weight: 500;
    color: #202124;
}

.spot-floating-review-rating {
    color: #fbbc04;
    font-size: 0.7rem;
}

.spot-floating-review-text {
    font-size: 0.75rem;
    color: #5f6368;
    line-height: 1.5;
}

.spot-floating-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.spot-floating-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s;
}

.spot-floating-photo:hover {
    transform: scale(1.03);
}

/* Legacy classes for compatibility */
.spot-detail-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.spot-detail-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
}

.spot-detail-description {
    font-size: 0.9rem;
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 16px;
}

.spot-detail-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.spot-detail-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.spot-detail-action-btn.primary {
    background: var(--shiba-orange);
    color: #fff;
    border: none;
}

.spot-detail-action-btn.primary:hover {
    background: #e09a5a;
}

.spot-detail-action-btn.secondary {
    background: #fff;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.spot-detail-action-btn.secondary:hover {
    background: #f1f3f4;
}

.spot-detail-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.spot-detail-tag {
    padding: 4px 12px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 12px;
    font-size: 0.75rem;
}

.spot-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.spot-detail-rating-score {
    font-size: 1rem;
    font-weight: 600;
    color: #202124;
}

.spot-detail-rating-stars {
    color: #fbbc04;
}

.spot-detail-rating-count {
    font-size: 0.85rem;
    color: #5f6368;
}

.spot-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.spot-detail-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.spot-detail-info-icon {
    font-size: 1rem;
    color: #5f6368;
    width: 24px;
    text-align: center;
}

.spot-detail-info-text {
    font-size: 0.85rem;
    color: #202124;
    flex: 1;
}

.spot-detail-info-link {
    color: #1a73e8;
    text-decoration: none;
}

.spot-detail-info-link:hover {
    text-decoration: underline;
}

/* Reasons to visit */
.spot-detail-section {
    margin-bottom: 20px;
}

.spot-detail-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 12px;
}

.spot-detail-reasons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spot-detail-reason {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.spot-detail-reason-num {
    width: 24px;
    height: 24px;
    background: var(--shiba-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.spot-detail-reason-text {
    font-size: 0.85rem;
    color: #5f6368;
    line-height: 1.5;
}

/* Tips */
.spot-detail-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spot-detail-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spot-detail-tip-icon {
    font-size: 1rem;
}

.spot-detail-tip-text {
    font-size: 0.85rem;
    color: #5f6368;
    line-height: 1.5;
}

/* Reviews */
.spot-detail-review {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.spot-detail-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.spot-detail-review-avatar {
    width: 32px;
    height: 32px;
    background: #e8eaed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.spot-detail-review-author {
    font-size: 0.85rem;
    font-weight: 500;
    color: #202124;
}

.spot-detail-review-rating {
    color: #fbbc04;
    font-size: 0.8rem;
    margin-left: auto;
}

.spot-detail-review-text {
    font-size: 0.85rem;
    color: #5f6368;
    line-height: 1.5;
}

/* Photos tab */
.spot-detail-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.spot-detail-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s;
}

.spot-detail-photo:hover {
    transform: scale(1.02);
}

/* External links */
.spot-detail-links {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.spot-detail-ext-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f1f3f4;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #5f6368;
    text-decoration: none;
    transition: all 0.15s;
}

.spot-detail-ext-link:hover {
    background: #e8eaed;
}

/* モバイル：メモ・持ち物セクション */
.nicody-extras {
    padding: 16px;
    padding-bottom: 100px;
}

.nicody-extras-top {
    padding-bottom: 0;
}

/* 旅のメモセクション（全Day共通） */
.nicody-trip-memo-section {
    background: #fff8e1;
    border-radius: 12px;
    margin: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nicody-trip-memo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.nicody-trip-memo-badge {
    font-size: 0.7rem;
    background: #ffc107;
    color: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.nicody-trip-memo-input {
    width: 100%;
    min-height: 60px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.9rem;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
}

.nicody-packing-section {
    margin: 0 12px 12px;
}

.nicody-extra-section {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.nicody-extra-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}

.nicody-extra-toggle {
    color: #999;
    font-size: 0.8rem;
}

.nicody-extra-content {
    padding: 12px 16px;
}

.nicody-memo-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
}

.nicody-memo-input:focus {
    outline: none;
    border-color: #FF6B35;
}

.nicody-packing-list {
    max-height: 200px;
    overflow-y: auto;
}

.nicody-packing-empty {
    color: #999;
    font-size: 0.85rem;
    text-align: center;
    padding: 16px;
}

.nicody-packing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nicody-packing-item:last-child {
    border-bottom: none;
}

.nicody-packing-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
}

.nicody-packing-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #FF6B35;
}

.nicody-packing-checkbox span.checked {
    text-decoration: line-through;
    color: #999;
}

.nicody-packing-delete {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    padding: 4px 8px;
    cursor: pointer;
}

.nicody-packing-delete:hover {
    color: #ff4444;
}

.nicody-packing-add {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.nicody-packing-add input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.nicody-packing-add input:focus {
    outline: none;
    border-color: #FF6B35;
}

.nicody-packing-add button {
    padding: 10px 16px;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.nicody-packing-add button:active {
    background: #e55a2b;
}

.nicody-packing-template {
    padding: 8px 0;
}

.nicody-packing-category {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 4px;
}

.nicody-packing-category:first-child {
    margin-top: 0;
}

.nicody-packing-example {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

.nicody-packing-textarea {
    min-height: 150px;
}

/* 探すタブ */
.explore-container {
    padding: 16px;
    padding-bottom: 100px;
}

.explore-search {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.explore-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.explore-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.explore-tab {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.explore-tab.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.explore-spots {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.explore-spot-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.explore-spot-card:active {
    transform: scale(0.98);
}

.explore-spot-photo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.explore-spot-info {
    flex: 1;
    min-width: 0;
}

.explore-spot-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.explore-spot-address {
    font-size: 0.8rem;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explore-spot-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FF6B35;
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.explore-rank {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.explore-rank.rank-S {
    background: #FFD700;
    color: #333;
}

.explore-rank.rank-A {
    background: #C0C0C0;
    color: #333;
}

.explore-rank.rank-B {
    background: #CD7F32;
    color: white;
}

.explore-empty {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 12px;
}

.explore-empty-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #666;
}

.explore-empty-small button {
    padding: 8px 16px;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.explore-section {
    margin-bottom: 24px;
}

.explore-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.explore-articles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.explore-article-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}

.explore-article-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.explore-article-info {
    flex: 1;
}

.explore-article-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.explore-article-source {
    font-size: 0.75rem;
    color: #888;
}

.explore-article-arrow {
    font-size: 1.5rem;
    color: #ccc;
}

.explore-hotels {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.explore-hotel-btn {
    flex: 1;
    min-width: 100px;
    padding: 14px 12px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.explore-hotel-btn.rakuten {
    background: linear-gradient(135deg, #bf0000, #ff4444);
}

.explore-hotel-btn.jalan {
    background: linear-gradient(135deg, #ff6600, #ff9933);
}

.explore-hotel-btn.booking {
    background: linear-gradient(135deg, #003580, #0057b8);
}

/* マップDayフィルター */
.map-day-filter-panel {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 12px;
}

.map-filter-header {
    margin-bottom: 10px;
}

.map-filter-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.map-day-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.map-day-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: 2px solid #ddd;
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.map-day-btn.active {
    background: var(--day-color, #FF6B35);
    border-color: var(--day-color, #FF6B35);
    color: white;
}

.map-day-btn:not(.active):hover {
    border-color: var(--day-color, #FF6B35);
}

/* しおり一覧カード */
.itinerary-card-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.itinerary-card-wrapper .itinerary-card {
    flex: 1;
    margin-bottom: 0;
}

.itinerary-delete-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: #fee2e2;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.itinerary-delete-btn:active {
    background: #fecaca;
}

/* ========================================
   モバイル版 行きたい場所（ストック）UI
   ======================================== */

.mobile-stock-search {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
    border: 2px solid var(--shiba-brown, #c4834c);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(196, 131, 76, 0.15);
    gap: 8px;
}

.mobile-stock-search-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-stock-search input {
    flex: 1;
    border: none;
    font-size: 0.95rem;
    padding: 8px 0;
    background: transparent;
    outline: none;
}

.mobile-stock-category-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: white;
    flex-shrink: 0;
    cursor: pointer;
}

.mobile-stock-category-arrow {
    font-size: 0.6rem;
    color: #999;
    margin-left: 2px;
}

.mobile-stock-tabs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-stock-tab-grid {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mobile-stock-tab-grid.active {
    font-weight: 700;
    border-color: #FF6B35;
    background: #fff5f0;
}

.mobile-stock-tab-grid .mobile-stock-tab-icon {
    font-size: 1rem;
}

.mobile-stock-tab-text {
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    font-weight: inherit;
}

.mobile-stock-tab-grid.active .mobile-stock-tab-text {
    color: #FF6B35;
}

.mobile-stock-tab-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.mobile-stock-tab-grid.active .mobile-stock-tab-badge {
    background: #FF6B35;
    color: white;
}

.mobile-stock-rank-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.mobile-rank-filter {
    flex: 1;
    padding: 8px 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-rank-filter.active {
    background: #333;
    color: white;
    border-color: #333;
}

.mobile-rank-filter.rank-s.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
    color: #333;
}

.mobile-rank-filter.rank-a.active {
    background: #4CAF50;
    border-color: #4CAF50;
}

.mobile-rank-filter.rank-b.active {
    background: #2196F3;
    border-color: #2196F3;
}


.mobile-stock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 100px;
}

.mobile-stock-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.mobile-stock-card.rank-s-card {
    border: 2px solid #FFD700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.mobile-stock-card.visited {
    opacity: 0.6;
}

.mobile-stock-rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    text-align: center;
}

.mobile-stock-card-main {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.mobile-stock-card-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: #f0f0f0;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.mobile-stock-card-info {
    flex: 1;
    min-width: 0;
}

.mobile-stock-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.mobile-stock-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.75rem;
    color: #888;
}

.mobile-stock-card-webinfo {
    color: #666;
}

.mobile-stock-card-arrow {
    font-size: 1.4rem;
    color: #ccc;
    flex-shrink: 0;
    margin-left: 8px;
}

.mobile-stock-rank-btn {
    flex: 1;
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-stock-rank-btn:first-child {
    color: #FFB800;
}

.mobile-stock-rank-btn:nth-child(2) {
    color: #4CAF50;
}

.mobile-stock-rank-btn:nth-child(3) {
    color: #2196F3;
}

.mobile-stock-rank-btn.active:first-child {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
    color: #333;
}

.mobile-stock-rank-btn.active:nth-child(2) {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.mobile-stock-rank-btn.active:nth-child(3) {
    background: #2196F3;
    border-color: #2196F3;
    color: white;
}

.mobile-stock-empty {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 14px;
}

.mobile-stock-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.mobile-stock-empty-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.mobile-stock-empty-text {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

/* 追加タブの空状態ガイド */
.mobile-stock-empty-guide {
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
}

.mobile-stock-empty-guide .mobile-stock-empty-icon {
    font-size: 3.5rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.mobile-stock-empty-guide .mobile-stock-empty-title {
    font-size: 1.15rem;
    color: var(--shiba-brown, #c4834c);
}

.mobile-stock-empty-hints {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.mobile-stock-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e0d5c9;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text, #4a3728);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-stock-hint:active {
    transform: scale(0.95);
    background: #fff8f0;
    border-color: var(--shiba-orange, #f5a962);
}

.mobile-stock-empty-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0f7ff;
    border-radius: 10px;
    margin-top: 16px;
}

.mobile-stock-tip-icon {
    font-size: 1.2rem;
}

.mobile-stock-tip-text {
    font-size: 0.8rem;
    color: #3b82f6;
    text-align: left;
}

/* スポット詳細モーダル */
.mobile-stock-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mobile-stock-detail-modal {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mobile-stock-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
}

.mobile-stock-detail-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.mobile-stock-detail-content {
    padding: 20px;
    padding-bottom: 100px; /* 削除ボタンが見えるように余白追加 */
}

.mobile-stock-detail-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.mobile-stock-detail-category {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.mobile-stock-detail-address {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.mobile-stock-detail-webinfo {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
}

.mobile-stock-detail-section {
    margin-bottom: 20px;
}

.mobile-stock-detail-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
}

.mobile-stock-detail-ranks {
    display: flex;
    gap: 10px;
}

.mobile-stock-detail-add-row {
    display: flex;
    gap: 10px;
}

.mobile-stock-detail-day-select {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--shiba-orange, #E67E22);
    border-radius: 12px;
    font-size: 18px !important;
    font-weight: 700;
    background: #fff;
    color: #333;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 12 12'%3E%3Cpath fill='%23E67E22' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-width: 140px;
    min-height: 54px;
}

.mobile-stock-detail-add-btn {
    padding: 12px 20px;
    background: var(--shiba-orange, #E67E22);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.mobile-stock-detail-delete {
    width: 100%;
    padding: 14px;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 10px;
}

/* カテゴリピッカーモーダル */
.mobile-category-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mobile-category-picker-modal {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    animation: slideUp 0.3s ease;
}

.mobile-category-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-category-picker-close {
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
}

.mobile-category-picker-list {
    padding: 10px;
}

.mobile-category-picker-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s;
}

.mobile-category-picker-item:active,
.mobile-category-picker-item.active {
    background: #f5f5f5;
}

.mobile-category-picker-icon {
    font-size: 1.3rem;
    margin-right: 12px;
}

.mobile-category-picker-label {
    flex: 1;
    text-align: left;
}

.mobile-category-picker-check {
    color: var(--shiba-orange, #E67E22);
    font-weight: 700;
}

.mobile-category-picker-divider {
    height: 1px;
    background: #eee;
    margin: 8px 16px;
}

.mobile-category-picker-custom {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
}

.mobile-category-custom-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    outline: none;
}

.mobile-category-custom-input:focus {
    border-color: var(--shiba-orange, #E67E22);
}

.mobile-category-custom-btn {
    padding: 10px 16px;
    background: var(--shiba-orange, #E67E22);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.mobile-category-picker-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-category-picker-row .mobile-category-picker-item {
    flex: 1;
}

.mobile-category-delete-btn {
    padding: 10px;
    background: #fee;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

/* モバイル旅程追加モーダル */
.mobile-add-itinerary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
}

.mobile-add-itinerary-modal {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.mobile-add-itinerary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-add-itinerary-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

.mobile-add-itinerary-spot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f8f8;
}

.mobile-add-itinerary-photo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.mobile-add-itinerary-name {
    font-weight: 600;
    font-size: 1rem;
}

.mobile-add-itinerary-section {
    padding: 16px 20px;
}

.mobile-add-itinerary-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.mobile-add-itinerary-days {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-add-itinerary-day-btn {
    padding: 12px 18px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
}

.mobile-add-itinerary-day-btn.active {
    border-color: var(--shiba-orange, #E67E22);
    background: #fff8f0;
    color: var(--shiba-orange, #E67E22);
}

.mobile-add-day-count {
    font-size: 0.8rem;
    color: #888;
}

.mobile-add-itinerary-day-btn.active .mobile-add-day-count {
    color: var(--shiba-orange, #E67E22);
}

.mobile-add-itinerary-positions {
    max-height: 250px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-add-position-btn {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.mobile-add-position-btn.active {
    border-color: var(--shiba-orange, #E67E22);
    border-style: solid;
    background: #fff8f0;
    color: var(--shiba-orange, #E67E22);
}

.mobile-position-icon {
    font-size: 0.8rem;
}

.mobile-add-position-spot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    border-left: 3px solid #ddd;
    margin-left: 10px;
    margin-bottom: 4px;
}

.mobile-position-num {
    width: 24px;
    height: 24px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-position-name {
    font-size: 0.85rem;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-add-position-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* 探すタブ - 予約するセクション */
.explore-booking-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 5px 0;
}

.explore-booking-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.explore-booking-btn:hover {
    background: #fff8f0;
    border-color: var(--shiba-orange, #E67E22);
}

.explore-booking-icon {
    font-size: 1.5rem;
}

.explore-booking-btn span:last-child {
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
}

.mobile-add-itinerary-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.mobile-add-itinerary-cancel {
    flex: 1;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

.mobile-add-itinerary-confirm {
    flex: 2;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--shiba-orange, #E67E22);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* iOS select要素の修正 */
@supports (-webkit-touch-callout: none) {
    select:not(.mobile-stock-detail-day-select),
    .cost-entry-payer,
    .cost-entry-category-select {
        font-size: 16px !important; /* iOS拡大防止のため16px以上必須 */
        -webkit-appearance: none;
        appearance: none;
        background-color: white;
        padding: 12px 40px 12px 16px !important;
        min-height: 48px;
        line-height: 1.4;
    }
    
    /* クイック編集の時間セレクター - 大きめ表示 */
    #quickEditHour,
    #quickEditMinute,
    #quickEditEndHour,
    #quickEditEndMinute {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        padding: 16px !important;
        min-height: 56px;
    }
}

/* クイック編集の時間セレクター - 大きめ表示（全デバイス共通） */
#quickEditHour,
#quickEditMinute,
#quickEditEndHour,
#quickEditEndMinute {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    padding: 16px !important;
    min-height: 56px !important;
    text-align: center !important;
}

/* ドロップダウン選択画面のオプション文字サイズ */
#quickEditHour option,
#quickEditMinute option,
#quickEditEndHour option,
#quickEditEndMinute option {
    font-size: 1.4rem !important;
    font-weight: 600;
    padding: 12px !important;
}

/* 全選択要素の基本スタイル改善 */
select {
    font-size: 16px;
    min-height: 44px;
    padding: 10px 35px 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    -webkit-appearance: none;
    appearance: none;
    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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* コーチマーク（初回ユーザー向けガイド） */
.coach-mark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.coach-mark-highlight {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    background: transparent;
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(245, 169, 98, 0.8); }
    50% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 0 8px rgba(245, 169, 98, 0.4); }
}

.coach-mark-tooltip {
    position: fixed;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.coach-mark-tooltip.top::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.coach-mark-tooltip.bottom::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.coach-mark-message {
    font-size: 1rem;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.coach-mark-btn {
    background: var(--shiba-orange, #f5a962);
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.coach-mark-btn:active {
    transform: scale(0.95);
    background: var(--shiba-brown, #c4834c);
}

/* コンパクトな空状態ガイド */
.mobile-stock-empty-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: #888;
    font-size: 0.9rem;
}

.mobile-stock-empty-arrow {
    font-size: 1.2rem;
    animation: bounce-up 1s ease-in-out infinite;
}

@keyframes bounce-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.mobile-stock-empty-hint-text {
    color: #666;
}

/* ホーム画面のコンパクト空状態 */
.empty-state-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
    border: 2px solid var(--shiba-brown, #c4834c);
    border-radius: 12px;
    margin: 12px;
    box-shadow: 0 2px 12px rgba(196, 131, 76, 0.15);
}

.empty-state-compact-icon {
    font-size: 1.2rem;
}

.empty-state-compact-text {
    color: #333;
    font-size: 0.85rem;
    flex: 1;
    min-width: 150px;
}

.empty-state-compact-btn {
    background: var(--shiba-brown, #c4834c);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Vercelバッジを非表示 */
[data-vercel-badge],
#vercel-live-feedback,
.vercel-live-feedback-button,
vercel-live-feedback {
    display: none !important;
}

/* 選択要素の文字サイズ修正（モバイル） */
@media (max-width: 768px) {
    select,
    .destination-select,
    .mobile-stock-detail-day-select,
    .cost-entry-payer,
    .cost-entry-category-select,
    .mobile-stock-detail select,
    .mobile-modal select {
        font-size: 16px !important;
        min-height: 44px;
        padding: 10px 36px 10px 12px;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 16px;
    }
    
    .destination-modal select,
    .destination-modal option {
        font-size: 16px !important;
    }
    
    /* モバイルでウェルカム画面を非表示 */
    .welcome-screen,
    .welcome-screen.hidden,
    div.welcome-screen,
    #welcomeScreen {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
}

/* ========================================
   Android対応レスポンシブ
   ======================================== */

/* Android向け基本設定 */
@supports (-webkit-touch-callout: none) or (not (-webkit-touch-callout: none)) {
    /* タッチ操作の最適化 */
    * {
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
        touch-action: manipulation;
    }
    
    /* スクロールの最適化 */
    .mobile-view-container,
    .nicody-timeline,
    .mobile-stock-list,
    .mobileAddSpotView {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* Android Chrome向け調整 */
@media (max-width: 768px) {
    /* ボトムナビゲーションバー対策 */
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 8px);
    }
    
    /* タッチターゲットの最小サイズ（48px推奨） */
    button,
    .nicody-spot-card,
    .mobile-nav-btn,
    .nicody-fab {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* FABボタンの位置調整（Android向け） */
    .nicody-fab {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
    
    /* フォームの自動ズーム防止 */
    input[type="text"],
    input[type="number"],
    input[type="date"],
    input[type="search"],
    textarea {
        font-size: 16px !important;
    }
    
    /* Android向けスクロールバー非表示 */
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }
    
    /* カード・ボタンのタッチフィードバック */
    .nicody-spot-card:active,
    .mobile-nav-btn:active,
    button:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* 小型Androidデバイス向け（360px以下） */
@media (max-width: 360px) {
    .nicody-day-header {
        padding: 12px 8px !important;
    }
    
    .nicody-day-header button {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    .nicody-day-date-num {
        font-size: 1.5rem !important;
    }
    
    .nicody-fab {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .nicody-fab span:last-child {
        display: none;
    }
}

/* 大型Androidデバイス向け（412px以上） */
@media (min-width: 412px) and (max-width: 768px) {
    .nicody-spot-card {
        padding: 16px;
    }
    
    .nicody-timeline {
        padding: 0 16px;
    }
    
    .nicody-fab {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Android キーボード表示の確実化 */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
    touch-action: manipulation !important;
}

input:focus,
textarea:focus,
[contenteditable="true"]:focus {
    caret-color: var(--accent, #e8945a);
    outline: none;
}

/* Google Places Autocomplete Android対応 */
.pac-container {
    z-index: 999999 !important;
    position: fixed !important;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin-top: 4px;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pac-item {
    padding: 12px 16px !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    touch-action: manipulation;
}

.pac-item:active {
    background: #f5f5f5;
}

.pac-item-query {
    font-size: 15px !important;
}

.pac-matched {
    font-weight: 600;
}

/* Android Chrome向け入力フィールド最適化 */
@media (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="search"],
    input[type="date"],
    textarea {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
        font-size: 16px !important;
        line-height: 1.5;
        padding: 12px;
        background-color: #fff;
        color: #333;
    }
    
    /* 検索入力フィールドの最適化 */
    .mobile-search-input,
    .lp-search-input,
    .lp-add-spot-input,
    #mobileAddSpotSearch {
        -webkit-user-select: text !important;
        user-select: text !important;
        pointer-events: auto !important;
        touch-action: auto !important;
    }
}
