/**
 * Trip2Where Planner V2 — CORE (Layout · Panel · Map · Grid · Modal · Toast)
 * Split from travel-planner-v2.css 2026-04-17 (P2-2)
 * Enqueued as: t2w-planner-core (handle 1/4)
 */

/* ========================================
   1. LAYOUT & CONTAINER
   ======================================== */

.t2w-planner-v2 {
    --v2-left-width: 420px;
    --v2-topbar-height: 56px;
    --v2-bottombar-height: 64px;
    --v2-gap: 16px;
    --v2-radius: 12px;

    /* v8.6 Light theme — Gold accent */
    /* v51 다) 순환 참조 제거 */
    --color-primary-light: rgba(255, 183, 0, 0.08);
    --t2w-text: #111827;
    --t2w-text-secondary: #6B7280;
    --t2w-bg: #FFFFFF;
    --t2w-bg-card: #F9FAFB;
    --t2w-bg-elevated: #F3F4F6;
    --t2w-border: #E5E7EB;
    --t2w-blue: #3B82F6;

    /* v43.1: Define --color-primary as Gold (was undefined → fallback blue) */
    /* v51 다) 순환 참조 제거 */
    --color-primary-rgb: 255, 183, 0;
    --color-secondary: #181610;

    /* v28 Stitch Design Tokens */
    --color-white: #ffffff;
    --color-bg-light: #FAFAFA;
    --t2w-text-primary: #181610;
    --t2w-text-sec: #5c5c5c;
    --t2w-green-added: #10B981;
    --t2w-amber: #F59E0B;
    --t2w-teal: #14B8A6;
    --t2w-emerald: #10B981;
    --t2w-violet: #8B5CF6;
    --t2w-red: #EF4444;
    --t2w-radius: 1rem;
    --radius-2xl: 1.5rem;
    --t2w-radius-xl: 2rem;
    --radius-md: 0.5rem;
    --t2w-glass: rgba(255,255,255,0.7);
    --glass-blur: 12px;
    --t2w-font-display: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
    --t2w-shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --t2w-shadow-elevated: 0 4px 12px rgba(0,0,0,0.08);
    --t2w-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--t2w-header-height, 64px));
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: var(--t2w-bg, #FFFFFF);
    font-family: var(--font-primary, 'Pretendard', sans-serif);
}

/* === App Mode: hide site chrome, allow natural scroll === */
body:has(.travel-planner-page) {
    overflow: visible;
}

/* Footer visible in planner (continuous scroll layout) */

.site-container:has(.travel-planner-page),
.site-content:has(.travel-planner-page),
.container:has(.travel-planner-page) {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
}

.travel-planner-page {
    padding: 0;
    height: auto;
    overflow: visible;
}

/* Top Bar */
.t2w-v2-topbar {
    display: flex;
    align-items: center;
    gap: var(--v2-gap);
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
    position: sticky;
    top: 0;
    z-index: 100;
}

.t2w-v2-search {
    position: relative;
    flex: 1;
    max-width: 280px;
}

.t2w-v2-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 13px;
}

.t2w-v2-search input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid var(--color-border, #E5E7EB);
    border-radius: 8px;
    font-size: 13px;
    background: var(--color-neutral-warm, #F8F6F0);
    transition: border-color 0.2s;
}

.t2w-v2-search input:focus {
    outline: none;
    border-color: var(--t2w-gold, #D4A843);
    background: #fff;
}

/* Search clear button */
.t2w-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    font-size: 12px;
    padding: 4px;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.2s;
}

.t2w-search-clear:hover {
    color: #EF4444;
}

.t2w-v2-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Main 2-Column Layout */
.t2w-v2-main {
    display: grid;
    grid-template-columns: var(--v2-left-width) 1fr;
    gap: 0;
}

.t2w-v2-left {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid var(--color-border, #E5E7EB);
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    align-self: start;
}

.t2w-v2-right {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Bottom Bar — mobile only */
.t2w-v2-bottom-bar {
    display: none;
}

/* ========================================
   ITINERARY ACTION BAR
   ======================================== */

.t2w-itinerary-actions {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.t2w-action-item {
    padding: 8px 12px;
    background: #F9FAFB;
    border-radius: 8px;
}

.t2w-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.t2w-action-btn i {
    font-size: 15px;
    color: #6B7280;
    transition: color 0.2s;
}

.t2w-action-btn:hover:not([disabled]) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #EFF6FF;
}

.t2w-action-btn:hover:not([disabled]) i {
    color: var(--color-primary);
}

.t2w-action-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.t2w-action-btn.active i {
    color: #fff;
}

.t2w-action-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.t2w-action-hint {
    margin: 6px 0 0;
    padding: 0 2px;
    font-size: 11px;
    color: #9CA3AF;
    line-height: 1.4;
}

/* Radar category chips */
.t2w-radar-cats {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.t2w-radar-cat-chip {
    padding: 5px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.t2w-radar-cat-chip:hover {
    border-color: var(--color-primary);
}

.t2w-radar-cat-chip.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Save / Share button row */
.t2w-action-row {
    display: flex;
    gap: 8px;
    padding-top: 4px;
}

.t2w-action-btn-sm {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.t2w-action-btn-sm i {
    font-size: 13px;
    color: #6B7280;
}

.t2w-action-btn-sm:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #EFF6FF;
}

.t2w-action-btn-sm:hover i {
    color: var(--color-primary);
}


/* ========================================
   3. SELECT & INPUT
   ======================================== */

.t2w-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--color-border, #D1D5DB);
    border-radius: 8px;
    font-size: 14px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    min-width: 140px;
}

.t2w-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 255, 183, 0), 0.15);
}

.t2w-input {
    padding: 8px 12px;
    border: 1px solid var(--color-border, #D1D5DB);
    border-radius: 8px;
    font-size: 14px;
    width: 64px;
    text-align: center;
}

.t2w-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 255, 183, 0), 0.15);
}

.t2w-trip-days {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary, #6B7280);
}

/* ========================================
   4. CATEGORY TABS
   ======================================== */

.t2w-category-tab {
    display: flex;
    gap: 6px;
    padding: 8px 20px;
    background: #fff;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.t2w-category-tab::-webkit-scrollbar {
    display: none;
}

.t2w-cat-btn {
    padding: 6px 14px;
    border: 1px solid var(--color-border, #D1D5DB);
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--color-text-secondary, #6B7280);
    transition: all 0.2s ease;
}

.t2w-cat-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.t2w-cat-btn:hover:not(.active) {
    border-color: var(--color-primary);
    color: var(--color-primary-dark, #E5A400);
}

/* ========================================
   5. DAY TABS
   ======================================== */

.t2w-day-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px 0;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
}

.t2w-day-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-text-secondary, #6B7280);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.t2w-day-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.t2w-day-tab:hover:not(.active) {
    color: var(--color-text-primary, #1F2937);
}

/* ========================================
   6. ITINERARY PANEL
   ======================================== */

.t2w-itinerary-panel {
    padding: 16px;
}

.t2w-day-section {
    margin-bottom: 16px;
}

/* Day-level action buttons — see v6.0 section for main styles */

.t2w-day-header {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-secondary, #1E3A5F);
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
}

.t2w-itinerary-places {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
}

.t2w-itinerary-place {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--color-neutral-warm, #F8F6F0);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.t2w-itinerary-place:hover {
    background: #F3F0E8;
}

.t2w-drag-handle {
    cursor: grab;
    color: var(--color-text-tertiary, #9CA3AF);
    font-size: 14px;
    padding: 2px;
}

.t2w-drag-handle:active {
    cursor: grabbing;
}

.t2w-ip-order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.t2w-ip-info {
    flex: 1;
    min-width: 0;
}

.t2w-ip-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary, #1F2937);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t2w-ip-name-en {
    display: block;
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t2w-ip-category {
    font-size: 12px;
    color: var(--color-text-secondary, #6B7280);
}

.t2w-remove-place {
    border: none;
    background: transparent;
    color: var(--color-text-tertiary, #9CA3AF);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.t2w-remove-place:hover {
    color: var(--color-error, #EF4444);
    background: rgba(239, 68, 68, 0.1);
}

.t2w-empty-day {
    padding: 24px;
    text-align: center;
    color: var(--color-text-tertiary, #9CA3AF);
    font-size: 14px;
    border: 2px dashed var(--color-border, #D1D5DB);
    border-radius: 8px;
}

.t2w-itinerary-actions {
    padding: 12px 0 0;
}

/* ========================================
   7. MAP
   ======================================== */

.t2w-map {
    width: 100%;
    height: 350px;
    min-height: 350px;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
    z-index: 1;
    flex-shrink: 0;
}

/* Marker Styles */
.t2w-marker-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.t2w-marker-pin i,
.t2w-marker-pin .t2w-marker-number {
    transform: rotate(45deg);
}

.t2w-marker-number {
    font-size: 12px;
    font-weight: 700;
}

.t2w-marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Category marker colors */
.t2w-marker-attraction .t2w-marker-pin { background-color: #E74C3C; }
.t2w-marker-food .t2w-marker-pin { background-color: #F39C12; }
.t2w-marker-cafe .t2w-marker-pin { background-color: #8B4513; }
.t2w-marker-shopping .t2w-marker-pin { background-color: #9B59B6; }
.t2w-marker-nature .t2w-marker-pin { background-color: #27AE60; }
.t2w-marker-activity .t2w-marker-pin { background-color: #1ABC9C; }
.t2w-marker-beach .t2w-marker-pin { background-color: #3498DB; }
.t2w-marker-default .t2w-marker-pin { background-color: #95A5A6; }

/* Map popup */
.t2w-map-popup {
    font-family: var(--font-primary, 'Pretendard', sans-serif);
    font-size: 13px;
}

.t2w-map-popup strong {
    display: block;
    margin-bottom: 2px;
}

.t2w-map-popup p {
    margin: 0;
    color: var(--color-text-secondary, #6B7280);
    font-size: 12px;
}

/* ========================================
   8. PLACE GRID
   ======================================== */

.t2w-place-grid {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px;
    padding: 16px;
}

.t2w-place-card {
    width: calc(33.333% - 8px);
    border-radius: var(--v2-radius);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.t2w-place-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.t2w-pc-image {
    position: relative;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-neutral-warm, #F3F4F6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category placeholder backgrounds (when no thumbnail) */
.t2w-pc-img-attraction:not([style*="background-image"]) {
    background: linear-gradient(135deg, #FECACA 0%, #FCA5A5 100%);
}
.t2w-pc-img-attraction:not([style*="background-image"])::after {
    content: '\f66f'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 28px; color: rgba(185,28,28,0.3);
}
.t2w-pc-img-food:not([style*="background-image"]) {
    background: linear-gradient(135deg, #FED7AA 0%, #FDBA74 100%);
}
.t2w-pc-img-food:not([style*="background-image"])::after {
    content: '\f2e7'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 28px; color: rgba(194,65,12,0.3);
}
.t2w-pc-img-cafe:not([style*="background-image"]) {
    background: linear-gradient(135deg, #F5E6D3 0%, #D4A574 100%);
}
.t2w-pc-img-cafe:not([style*="background-image"])::after {
    content: '\f0f4'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 28px; color: rgba(120,53,15,0.3);
}
.t2w-pc-img-shopping:not([style*="background-image"]) {
    background: linear-gradient(135deg, #E9D5FF 0%, #C4B5FD 100%);
}
.t2w-pc-img-shopping:not([style*="background-image"])::after {
    content: '\f290'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 28px; color: rgba(107,33,168,0.3);
}
.t2w-pc-img-nature:not([style*="background-image"]) {
    background: linear-gradient(135deg, #BBF7D0 0%, #86EFAC 100%);
}
.t2w-pc-img-nature:not([style*="background-image"])::after {
    content: '\f1bb'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 28px; color: rgba(21,128,61,0.3);
}
.t2w-pc-img-activity:not([style*="background-image"]) {
    background: linear-gradient(135deg, #A7F3D0 0%, #6EE7B7 100%);
}
.t2w-pc-img-activity:not([style*="background-image"])::after {
    content: '\f70c'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 28px; color: rgba(4,120,87,0.3);
}
.t2w-pc-img-beach:not([style*="background-image"]) {
    background: linear-gradient(135deg, #BAE6FD 0%, #7DD3FC 100%);
}
.t2w-pc-img-beach:not([style*="background-image"])::after {
    content: '\f5ca'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 28px; color: rgba(3,105,161,0.3);
}
.t2w-pc-img-default:not([style*="background-image"]) {
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}
.t2w-pc-img-default:not([style*="background-image"])::after {
    content: '\f3c5'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 28px; color: rgba(107,114,128,0.3);
}

.t2w-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-tertiary, #9CA3AF);
    font-size: 14px;
    transition: all 0.2s ease;
}

.t2w-wishlist-btn:hover,
.t2w-wishlist-btn.active {
    color: var(--color-accent-coral, #E85A4F);
}

.t2w-wishlist-btn.active i {
    font-weight: 900;
}

.t2w-pc-content {
    padding: 10px 12px;
    text-align: center;
}

.t2w-pc-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--color-text-primary, #1F2937);
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.t2w-pc-name-en {
    display: block;
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 400;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t2w-pc-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.t2w-category {
    font-size: 11px;
    color: var(--color-text-secondary, #6B7280);
    background: var(--color-neutral-warm, #F3F4F6);
    padding: 2px 6px;
    border-radius: 4px;
}

.t2w-rating {
    font-size: 12px;
    color: var(--color-warning, #F59E0B);
}

.t2w-rating i {
    font-size: 10px;
}

.t2w-add-place {
    width: 100%;
    padding: 6px 0;
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary-dark, #E5A400);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.t2w-add-place:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Highlighted card (marker click) */
.t2w-place-card.t2w-highlighted {
    box-shadow: 0 0 0 2px var(--color-primary), 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Already added state */
.t2w-place-card.t2w-added {
    opacity: 0.7;
}

.t2w-place-card.t2w-added .t2w-add-place {
    border-color: var(--color-success, #10B981);
    color: var(--color-success, #10B981);
    pointer-events: none;
}

.t2w-place-card.t2w-added .t2w-add-place:hover {
    background: transparent;
    color: var(--color-success, #10B981);
}

/* ========================================
   9. SERVICE OPTIONS
   ======================================== */

.t2w-service-options {
    padding: 0 16px 12px;
}

.t2w-so-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-secondary, #1E3A5F);
    margin: 0 0 8px;
}

.t2w-so-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.t2w-service-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid var(--color-border, #E5E7EB);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.t2w-service-option:hover {
    border-color: var(--color-primary);
}

.t2w-service-option.selected {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb, 255, 183, 0), 0.05);
}

.t2w-so-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-neutral-warm, #F3F4F6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 15px;
    flex-shrink: 0;
}

.t2w-so-info {
    min-width: 0;
}

.t2w-so-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary, #1F2937);
}

.t2w-so-desc {
    display: none;
}

.t2w-service-option.selected .t2w-so-desc {
    display: block;
    font-size: 11px;
    color: var(--color-text-secondary, #6B7280);
    margin-top: 2px;
}

.t2w-so-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary-dark, #E5A400);
    white-space: nowrap;
}

.t2w-so-footer {
    margin-top: 8px;
}

.t2w-price-estimate {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(var(--color-primary-rgb, 255, 183, 0), 0.08);
    border-radius: 8px;
}

.t2w-pe-label {
    font-size: 13px;
    color: var(--color-text-secondary, #6B7280);
}

.t2w-pe-range {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-dark, #E5A400);
}

.t2w-pe-badge {
    font-size: 11px;
    padding: 2px 6px;
    background: var(--color-success, #10B981);
    color: #fff;
    border-radius: 4px;
    margin-left: auto;
}

/* ========================================
   12. BUTTONS
   ======================================== */

.t2w-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.t2w-btn-primary {
    background: var(--color-secondary, #1E3A5F);
    color: #fff;
}

.t2w-btn-primary:hover {
    background: var(--color-secondary-dark, #152A47);
}

.t2w-btn-outline {
    background: transparent;
    border: 1px solid var(--color-border, #D1D5DB);
    color: var(--color-text-primary, #1F2937);
}

.t2w-btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark, #E5A400);
}

.t2w-btn-gold {
    background: var(--color-primary);
    color: #fff;
}

.t2w-btn-gold:hover {
    background: var(--color-primary-dark, #E5A400);
}

.t2w-btn-block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   13. MODAL
   ======================================== */

.t2w-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.t2w-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.t2w-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.t2w-modal-overlay.visible .t2w-modal {
    transform: translateY(0);
}

.t2w-modal-lg { max-width: 720px; }
.t2w-modal-xl { max-width: 900px; }

.t2w-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
}

.t2w-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.t2w-modal-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-text-tertiary, #9CA3AF);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.t2w-modal-close:hover {
    color: var(--color-text-primary, #1F2937);
    background: var(--color-neutral-warm, #F3F4F6);
}

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

.t2w-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--color-border, #E5E7EB);
}

.t2w-modal-btn {
    padding: 8px 20px;
    border: 1px solid var(--color-border, #D1D5DB);
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.t2w-btn-primary.t2w-modal-btn,
.t2w-modal-btn.t2w-btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

body.t2w-modal-open {
    overflow: hidden;
}

/* ========================================
   14. TOAST
   ======================================== */

.t2w-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.t2w-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 320px;
}

.t2w-toast.visible {
    transform: translateX(0);
}

.t2w-toast-success { border-left: 3px solid var(--color-success, #10B981); }
.t2w-toast-error { border-left: 3px solid var(--color-error, #EF4444); }
.t2w-toast-warning { border-left: 3px solid var(--color-warning, #F59E0B); }
.t2w-toast-info { border-left: 3px solid var(--color-info, #3B82F6); }

.t2w-toast-success i { color: var(--color-success, #10B981); }
.t2w-toast-error i { color: var(--color-error, #EF4444); }
.t2w-toast-warning i { color: var(--color-warning, #F59E0B); }
.t2w-toast-info i { color: var(--color-info, #3B82F6); }

/* ========================================
   15. LOADING & SPINNER
   ======================================== */

.t2w-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    color: var(--color-text-secondary, #6B7280);
    font-size: 14px;
    grid-column: 1 / -1;
}

.t2w-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border, #D1D5DB);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: t2w-spin 0.6s linear infinite;
}

@keyframes t2w-spin {
    to { transform: rotate(360deg); }
}

.t2w-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.t2w-loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.t2w-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border, #D1D5DB);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: t2w-spin 0.7s linear infinite;
}

.t2w-loading-text {
    font-size: 15px;
    color: var(--color-text-secondary, #6B7280);
}

/* ========================================
   16. ERROR & EMPTY STATES
   ======================================== */

.t2w-error {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-error, #EF4444);
    font-size: 14px;
    grid-column: 1 / -1;
}

.t2w-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-tertiary, #9CA3AF);
    font-size: 14px;
    grid-column: 1 / -1;
}

/* ========================================
   17. PLACE DETAIL (Modal)
   ======================================== */

.t2w-place-detail {
    color: #111827;
}

.t2w-pd-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-primary, #1F2937);
    margin: 0 0 12px;
}

.t2w-pd-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.t2w-pd-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-secondary, #6B7280);
}

.t2w-pd-meta-item i {
    width: 16px;
    text-align: center;
    color: var(--color-primary);
}

/* v27.3: Knowledge tips section */
.t2w-pd-knowledge {
    margin-top: 16px;
    padding: 12px;
    background: #FFFBEB;
    border-radius: 10px;
    border: 1px solid #FDE68A;
}
.t2w-pd-knowledge-header {
    font-size: 13px;
    font-weight: 600;
    color: #92400E;
    margin-bottom: 10px;
}
.t2w-pd-knowledge-header i { margin-right: 4px; }
.t2w-pd-knowledge-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #FDE68A;
}
.t2w-pd-knowledge-item:first-of-type { border-top: none; padding-top: 0; }
.t2w-pd-knowledge-icon { font-size: 16px; flex-shrink: 0; line-height: 1.4; }
.t2w-pd-knowledge-body { display: flex; flex-direction: column; gap: 2px; }
.t2w-pd-knowledge-title { font-size: 13px; font-weight: 500; color: #1F2937; }
.t2w-pd-knowledge-tip { font-size: 12px; color: #6B7280; line-height: 1.5; }
.t2w-pd-knowledge-source { font-size: 11px; color: #9CA3AF; }

/* Legacy nearby styles — replaced by v34 .t2w-nearby-discovery */
.t2w-pd-nearby { display: none; }

/* --- Place Detail: Title extras --- */
.t2w-pd-title-en {
    display: block;
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 400;
}

.t2w-pd-title-rating {
    font-size: 14px;
    color: #F59E0B;
    font-weight: 400;
    margin-left: 8px;
}

.t2w-pd-title-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--color-primary-light, #FFF3CD);
    color: var(--color-primary);
    margin-left: 8px;
    vertical-align: middle;
}

/* --- Place Detail: Gallery (v8.7.2 hero + grid) --- */
.t2w-pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.t2w-pd-photo {
    background-size: cover;
    background-position: center;
    background-color: var(--color-neutral-warm, #F3F4F6);
    cursor: pointer;
}

.t2w-pd-photo--hero {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    position: relative;
}

.t2w-pd-photo-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.t2w-pd-photo-count i {
    font-size: 10px;
}

.t2w-pd-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 4px;
}

.t2w-pd-photo--thumb {
    height: 72px;
    border-radius: 6px;
    transition: opacity 0.15s;
}

.t2w-pd-photo--thumb:hover {
    opacity: 0.8;
}

/* --- Place Detail: T2W Summary Card --- */
.t2w-pd-summary {
    background: linear-gradient(135deg, #EEF2FF 0%, #F0FDF4 100%);
    border: 1px solid #C7D2FE;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.t2w-pd-summary-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4F46E5;
    margin-bottom: 10px;
}

.t2w-pd-summary-header i {
    font-size: 16px;
}

.t2w-pd-summary-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text-primary, #1F2937);
}

.t2w-pd-summary-tip {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    font-size: 13px;
    color: #6366F1;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Place Detail: Review Highlights --- */
.t2w-pd-highlights {
    margin-bottom: 16px;
}

.t2w-pd-highlights h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--color-text-primary, #1F2937);
}

.t2w-pd-hl-pros,
.t2w-pd-hl-cons {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.t2w-pd-hl-pros li,
.t2w-pd-hl-cons li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
    color: var(--color-text-primary, #1F2937);
}

.t2w-pd-hl-pros li i { color: #059669; margin-top: 3px; }
.t2w-pd-hl-cons li i { color: #D97706; margin-top: 3px; }

/* --- Place Detail: v8.7 Insight Cards (3-element) --- */
.t2w-pd-insights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
}
.t2w-pd-insight-card {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #F9FAFB;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}
.t2w-pd-insight-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}
.t2w-pd-insight--who .t2w-pd-insight-icon { background: #DBEAFE; color: #2563EB; }
.t2w-pd-insight--when .t2w-pd-insight-icon { background: #FEF3C7; color: #D97706; }
.t2w-pd-insight--avoid .t2w-pd-insight-icon { background: #FEE2E2; color: #DC2626; }
.t2w-pd-insight-body strong { font-size: 12px; color: #111827; display: block; margin-bottom: 3px; }
.t2w-pd-insight-body p { font-size: 12px; color: #374151; margin: 0; line-height: 1.4; }
.t2w-pd-insight-body ul { margin: 0; padding-left: 14px; font-size: 12px; color: #374151; line-height: 1.6; }
.t2w-pd-insight-body li { margin: 0; }

/* --- Place Detail: v8.7 CTA Bar --- */
.t2w-pd-cta {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #E5E7EB;
    background: #fff;
    position: sticky;
    bottom: 0;
}
.t2w-pd-cta-add {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    background: var(--color-primary);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.t2w-pd-cta-add:hover { background: #E5A500; }
.t2w-pd-cta-add--done { background: #E5E7EB; color: #6B7280; cursor: default; }
.t2w-pd-cta-add--done:hover { background: #E5E7EB; }
.t2w-pd-cta-quote {
    flex: 1;
    padding: 10px 0;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.t2w-pd-cta-quote:hover { background: #F9FAFB; border-color: #D1D5DB; }

/* --- Place Detail: Reviews --- */
.t2w-pd-reviews {
    margin-bottom: 16px;
}

.t2w-pd-reviews h5 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px;
}

.t2w-pd-review {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
}

.t2w-pd-review:last-child {
    border-bottom: none;
}

.t2w-pd-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.t2w-pd-review-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.t2w-pd-review-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-neutral-warm, #F3F4F6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text-tertiary, #9CA3AF);
    font-size: 12px;
}

.t2w-pd-review-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.t2w-pd-review-author {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary, #1F2937);
}

.t2w-pd-review-stars {
    font-size: 11px;
    color: #F59E0B;
}

.t2w-pd-review-stars i {
    margin-right: 1px;
}

.t2w-pd-review-time {
    font-size: 11px;
    color: var(--color-text-tertiary, #9CA3AF);
    flex-shrink: 0;
}

.t2w-pd-review-text {
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Place Detail: Opening Hours --- */
.t2w-pd-hours {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border, #E5E7EB);
}

.t2w-pd-hours h5 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.t2w-pd-hours h5 i {
    color: var(--color-primary);
}

.t2w-pd-hours-grid {
    display: grid;
    gap: 2px;
}

.t2w-pd-hours-row {
    font-size: 12px;
    color: var(--color-text-secondary, #6B7280);
    padding: 2px 0;
}

.t2w-pd-hours-row--today {
    font-weight: 700;
    color: var(--color-text, #111827);
    background: rgba(255, 183, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 -6px;
}

.t2w-pd-hours-open {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #ECFDF5;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.t2w-pd-hours-closed {
    font-size: 11px;
    font-weight: 600;
    color: #DC2626;
    background: #FEF2F2;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* --- Place Detail: Action Buttons bar --- */
.t2w-modal-footer .t2w-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--color-border, #E5E7EB);
    background: #fff;
    color: var(--color-text-primary, #1F2937);
    cursor: pointer;
    transition: all 0.15s ease;
}

.t2w-modal-footer .t2w-modal-btn:hover {
    background: var(--color-neutral-warm, #F3F4F6);
}

.t2w-modal-footer .t2w-btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.t2w-modal-footer .t2w-btn-primary:hover {
    background: var(--color-primary-dark, #E5A500);
}

/* --- Place Detail: Meta link styles --- */
.t2w-pd-meta-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.t2w-pd-meta-item a:hover {
    text-decoration: underline;
}

/* --- Modal XL size --- */
.t2w-modal.t2w-modal-xl {
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
}

.t2w-modal.t2w-modal-xl .t2w-modal-body {
    overflow-y: auto;
    max-height: calc(85vh - 120px);
}

/* ========================================
   TRAVEL SEGMENTS (between itinerary places)
   ======================================== */

.t2w-travel-segment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 46px;
}

.t2w-ts-line {
    flex: 1;
    height: 1px;
    border-top: 1px dashed #D1D5DB;
}

.t2w-ts-info {
    font-size: 11px;
    color: #9CA3AF;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.t2w-ts-info i {
    font-size: 10px;
    color: #6B7280;
}

/* ========================================
   DAY THEME
   ======================================== */

.t2w-day-theme {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-secondary, #6B7280);
    margin-left: 6px;
}

/* --- Mobile: full-screen modal --- */
@media (max-width: 480px) {
    .t2w-modal.t2w-modal-xl {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .t2w-modal.t2w-modal-xl .t2w-modal-body {
        max-height: calc(100vh - 120px);
    }

    .t2w-pd-photo--hero {
        height: 180px;
    }

    .t2w-pd-photo--thumb {
        height: 60px;
    }

    .t2w-modal-footer {
        flex-wrap: wrap;
        gap: 6px;
    }

    .t2w-modal-footer .t2w-modal-btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 6px);
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* ========================================
   18. PRODUCT CARD
   ======================================== */

.t2w-product-card {
    border-radius: var(--v2-radius);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.t2w-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.t2w-prc-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-neutral-warm, #F3F4F6);
}

.t2w-prc-content { padding: 12px; }
.t2w-prc-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.t2w-prc-vendor { font-size: 12px; color: var(--color-text-secondary, #6B7280); margin-bottom: 8px; }

.t2w-prc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.t2w-prc-price { font-weight: 600; color: var(--color-primary-dark, #E5A400); }
.t2w-prc-rating { font-size: 12px; color: var(--color-warning, #F59E0B); }

/* ========================================
   19. TOOLTIP
   ======================================== */

.t2w-tooltip {
    position: fixed;
    padding: 6px 10px;
    background: var(--color-secondary, #1E3A5F);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    z-index: 900;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.t2w-tooltip.visible {
    opacity: 1;
}

/* ========================================
   20. RESPONSIVE — Mobile (<768px)
   ======================================== */

@media (max-width: 768px) {
    .t2w-v2-topbar {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
    }

    .t2w-v2-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .t2w-v2-controls {
        width: 100%;
        margin-left: 0;
    }

    .t2w-select {
        flex: 1;
        min-width: 0;
    }

    .t2w-v2-main {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .t2w-v2-left {
        border-right: none;
        max-height: none;
        position: static;
        order: 2;
    }

    .t2w-v2-right {
        order: 1;
        display: block;
    }

    .t2w-map {
        height: 300px;
        min-height: 250px;
        position: static;
    }

    .t2w-place-grid {
        gap: 8px;
        padding: 12px;
    }

    .t2w-place-card {
        width: calc(50% - 4px);
    }

    /* Bottom Sheet - 3-state system */
    .t2w-v2-left {
        position: fixed;
        bottom: var(--v2-bottombar-height);
        left: 0;
        right: 0;
        max-height: 70vh;
        background: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 200;
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .t2w-v2-left[data-bs-state="collapsed"] { transform: translateY(calc(100% - 56px)); }
    .t2w-v2-left[data-bs-state="half"] { transform: translateY(50%); }
    .t2w-v2-left[data-bs-state="full"] { transform: translateY(0); }

    .t2w-bs-handle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .t2w-bs-handle::before {
        content: '';
        width: 36px;
        height: 4px;
        background: #D1D5DB;
        border-radius: 2px;
    }

    .t2w-bs-summary {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }

    .t2w-bs-chevron {
        font-size: 12px;
        color: #9CA3AF;
        transition: transform 0.3s;
    }

    .t2w-v2-left[data-bs-state="full"] .t2w-bs-chevron {
        transform: rotate(180deg);
    }

    .t2w-place-grid {
        padding-bottom: 140px;
    }

    .t2w-v2-bottom-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 12px 20px;
        background: #fff;
        border-top: 1px solid var(--color-border, #E5E7EB);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 201;
    }

    /* Toast position for mobile */
    .t2w-toast-container {
        top: auto;
        bottom: calc(var(--v2-bottombar-height) + 12px);
        right: 12px;
        left: 12px;
    }

    .t2w-toast {
        max-width: 100%;
    }

    /* Modal on mobile */
    .t2w-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
    }
}

