* { 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: #7db892;
    --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);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    min-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;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(92,64,51,0.06);
}

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

.header-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.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 */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: calc(100vh - 56px);
    position: fixed;
    left: 0;
    top: 56px;
    z-index: 100;
}

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

.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-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);
}

.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: 260px;
    margin-top: 56px;
    display: flex;
    flex: 1;
    height: calc(100vh - 56px);
    overflow: hidden;
}

/* Left Panel - Spot List */
.left-panel {
    width: 540px;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    border-right: none;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.panel-header {
    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); }

.spot-card-header {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}

.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;
    display: flex;
    flex-direction: column;
    min-width: 400px;
    background: white;
    height: 100vh;
    overflow: hidden;
}

.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; }

/* Notification */
.notif {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    background: var(--text);
    color: white;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1001;
}

.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: 220px; }
    .main-content { margin-left: 220px; }
    .left-panel { width: 480px; min-width: 400px; }
}

@media (max-width: 900px) {
    .sidebar { 
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; flex-direction: column; }
    .left-panel { width: 100%; height: 60vh; }
    .right-panel { height: 40vh; min-width: unset; }
}

/* 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: 9999;
    transition: opacity 0.3s, visibility 0.3s;
}

.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);
}

/* 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;
}

/* Calculator Modal */
.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-url-section {
    margin-bottom: 20px;
}

.invite-url-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.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 {
    flex: 1.2;
    min-width: 500px;
    background: linear-gradient(180deg, #fffaf5, #fff);
    box-shadow: 4px 0 20px rgba(0,0,0,0.03);
}

.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: 24px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(232, 148, 90, 0.1);
    transition: all 0.3s;
}

.spot-card:hover {
    box-shadow: 0 8px 32px rgba(232, 148, 90, 0.15);
    transform: translateY(-2px);
}

.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;
}

.day-tab:hover {
    border-color: var(--shiba-orange);
    color: var(--shiba-orange);
}

.day-tab.active {
    background: linear-gradient(135deg, var(--shiba-orange), var(--accent-light));
    color: white;
    border-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);
}

/* 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 */
.wishlist-rank-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.wishlist-rank-chip.rank-s {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #8b6914;
}

.wishlist-rank-chip.rank-a {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #4a4a4a;
}

.wishlist-rank-chip.rank-b {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #5c3a1d;
}

/* 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 Improvements - Night Walk Theme */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #1a1f2e;
        --dark-card: #252b3d;
        --dark-border: #3a4259;
        --gold-accent: #d4af37;
        --gold-light: rgba(212, 175, 55, 0.15);
    }
    
    body {
        background: var(--dark-bg);
        color: #e0e0e0;
    }
    
    .sidebar {
        background: linear-gradient(180deg, var(--dark-card), #1e2433);
        border-color: var(--dark-border);
    }
    
    .top-header {
        background: linear-gradient(90deg, var(--dark-card), #2a3249);
        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), #2a3249);
        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;
    }
}
