/* ==========================================================================
   WANDERLUST - UGC CREATION CENTRIC 5-TAB DESIGN SYSTEM
   ========================================================================== */

:root {
    --brand-teal: #19a887;
    --brand-teal-hover: #128268;
    --brand-mint: #E8F7F4;
    --brand-amber: #FFB020;
    --brand-dark: #0F172A;

    --bg-canvas: #F5F7F6;
    --surface-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-glass: rgba(255, 255, 255, 0.7);
    --border-subtle: rgba(15, 23, 42, 0.08);

    --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 16px 36px -6px rgba(25, 168, 135, 0.22);
    --shadow-card: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
    --shadow-pill: 0 8px 30px -4px rgba(15, 23, 42, 0.08);

    --tiktok-badge: rgba(15, 23, 42, 0.82);
    --insta-badge: linear-gradient(135deg, rgba(240, 148, 51, 0.9), rgba(220, 39, 67, 0.9), rgba(188, 24, 136, 0.9));
    --maps-badge: rgba(37, 99, 235, 0.9);

    --radius-pill: 9999px;
    --radius-card: 20px;
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Status Bar Mobile Safe Area Padding */
.top_safe_area {
    padding-top: max(52px, env(safe-area-inset-top));
}

/* Tactile Search Bar */
.filter_wrapper {
    padding: 0 24px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10000;
    /* Higher than floating buttons and cards */
}

.input_row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 6px 8px 6px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02), var(--shadow-pill);
    max-width: 580px;
    margin: 0 auto;
    transition: all 0.25s ease;
    position: relative;
    z-index: 10001;
}

.search_input_wrapper {
    position: relative !important;
    flex: 1;
    display: flex;
    align-items: center;
}

.input_row:focus-within {
    border-color: var(--brand-teal);
    background: #FFFFFF;
    box-shadow: inset 0 2px 4px rgba(25, 168, 135, 0.04), 0 10px 32px -4px rgba(25, 168, 135, 0.2);
    transform: translateY(-1px);
}

.input_group {
    display: flex;
    flex: 1;
    align-items: center;
}

.input_icon_wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input_icon {
    color: var(--brand-teal);
    font-size: 13.5px;
}

.input_icon_wrapper:first-child {
    border-right: 1px solid var(--border-subtle);
    padding-right: 12px;
}

.input_icon_wrapper:last-child {
    padding-left: 12px;
}

.input_icon_wrapper input {
    width: 100%;
    height: 38px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 500;
}

.input_icon_wrapper input::placeholder {
    color: var(--text-muted);
}

.filter_only_btn {
    width: 38px;
    height: 38px;
    background: var(--brand-teal);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(25, 168, 135, 0.3);
    transition: all 0.2s ease;
}

.filter_only_btn:hover {
    background: var(--brand-teal-hover);
    transform: scale(1.06);
}

/* ==========================================================================
   CATEGORY CAROUSEL BUTTONS (STRICT WHITE RESET)
   ========================================================================== */

.filter_section {
    max-width: 1320px;
    margin: 0 auto 16px auto;
}

.button_carousel {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 6px 24px 14px 24px;
    scrollbar-width: none;
}

.button_carousel::-webkit-scrollbar {
    display: none;
}

/* 1. Base Unselected State (Pure White) */
.carousel_button,
.carousel_button:not(.selected),
.carousel_button:not(.selected):hover,
.carousel_button:not(.selected):focus,
.carousel_button:not(.selected):active {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border-radius: var(--radius-pill);
    background-color: #FFFFFF !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-subtle) !important;
    outline: none !important;
    cursor: pointer;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.2s var(--ease-spring);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
}

/* 2. Selected Active State (Solid Teal) */
.carousel_button.selected,
.carousel_button.selected:hover,
.carousel_button.selected:focus {
    background-color: var(--brand-teal) !important;
    color: #FFFFFF !important;
    border-color: var(--brand-teal) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), 0 6px 18px rgba(25, 168, 135, 0.35) !important;
}

/* Pinterest Masonry Grid */
.grid_wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 120px 24px;
}

.image_grid {
    column-count: 5;
    column-gap: 18px;
    width: 100%;
}

@media screen and (max-width: 1280px) {
    .image_grid {
        column-count: 4;
    }
}

@media screen and (max-width: 960px) {
    .image_grid {
        column-count: 3;
        column-gap: 14px;
    }
}

@media screen and (max-width: 640px) {
    .image_grid {
        column-count: 2;
        column-gap: 10px;
    }
}

.image_card {
    display: inline-block;
    width: 100%;
    margin-bottom: 18px;
    position: relative;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    border-radius: var(--radius-card);
    overflow: hidden;
    background-color: var(--surface-card);
    box-shadow: var(--shadow-card);
    transition: all 0.35s var(--ease-spring);
}

.image_card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.image_card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-card);
}

.image_card iframe {
    width: 100%;
    display: block;
    border: none;
    border-radius: var(--radius-card);
}

/* Card Overlays & Inverted Heart */
.image_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    pointer-events: none;
}

.overlay_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 10;
}

.overlay_top * {
    pointer-events: auto;
}

.source_badge {
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.source_badge.icon_only {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 8px;
    justify-content: center;
    gap: 0;
    font-size: 0.78rem;
}

.tiktok_badge {
    background: var(--tiktok-badge);
}

.insta_badge {
    background: var(--insta-badge);
}

.maps_badge {
    background: var(--maps-badge);
}

.eventbrite_badge { background: #F05537; }
.viator_badge { background: #004B36; }
.gyg_badge { background: #FF5533; }
.perth_badge { background: #FFC700; color: #000; }

.overlay_buttons {
    display: flex;
    gap: 8px;
}

.heart_icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.25s var(--ease-spring);
}

.heart_icon i {
    color: var(--brand-teal) !important;
    font-size: 15px;
}

.heart_icon:hover {
    background: #FFFFFF;
    transform: scale(1.12);
}

.heart_icon.active {
    background: var(--brand-teal) !important;
    border-color: var(--brand-teal) !important;
    box-shadow: 0 6px 18px rgba(25, 168, 135, 0.45);
}

.heart_icon.active i {
    color: #FFFFFF !important;
}

.overlay_bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 45px 14px 14px 14px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.35) 60%, transparent 100%);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    pointer-events: auto;
    z-index: 5;
    border-bottom-left-radius: var(--radius-card);
    border-bottom-right-radius: var(--radius-card);
}

.item_title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.item_location {
    font-size: 0.78rem;
    font-weight: 600;
    color: #E2E8F0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item_location i {
    color: var(--brand-amber);
}

/* Floating Map Pill */
.floating_map_btn {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-dark);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.3);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.25s var(--ease-spring), background 0.2s ease;
}

.floating_map_btn:hover {
    transform: translateX(-50%) scale(1.06);
    background: var(--brand-teal);
}

/* TikTok-Style 5-Tab Navigation Bar */
.menu {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--border-glass);
    z-index: 1000;
}

.menu a {
    color: var(--text-muted);
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    position: relative;
    transition: all 0.25s var(--ease-spring);
}

.nav_logo_mark {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

/* Featured Center Hero Create Button (TikTok Style) */
.add_center_btn {
    background: var(--brand-teal) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(25, 168, 135, 0.45);
    font-size: 19px !important;
}

.add_center_btn:hover {
    transform: scale(1.12) !important;
    background: var(--brand-teal-hover) !important;
}

.menu a:hover,
.menu a.active {
    color: var(--brand-teal);
    background: var(--brand-mint);
}

/* Collab / Inbox Notification Dot */
.nav_badge_wrapper {
    position: relative;
}

.nav_unread_dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--brand-teal);
    border: 2px solid #FFFFFF;
    border-radius: 50%;
}

/* Airbnb-Style Autocomplete Suggestions Dropdown */
.autocomplete_dropdown {
    position: absolute;
    top: 100%;
    left: -12px;
    right: -12px;
    margin-top: 10px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.25);
    border: 1px solid var(--border-subtle);
    overflow-y: auto;
    z-index: 10002;
    /* Highest in the layout */
    max-height: 320px;
}

.suggestion_header {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 10px 16px 4px 16px;
    background: var(--bg-canvas);
}

.suggestion_item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    transition: background 0.15s ease;
}

.suggestion_item:last-child {
    border-bottom: none;
}

.suggestion_item:hover {
    background: var(--brand-mint);
}

.suggestion_item i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-canvas);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.suggestion_text_group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.suggestion_text_group strong {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
}

.suggestion_text_group span {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Header Brand Logo in Search Dropdown */
.suggestion_header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 10px 16px 6px 16px;
    background: var(--bg-canvas);
}

.header_brand_logo {
    height: 16px;
    width: 16px;
    object-fit: contain;
}

/* Minimalist Clean Suggestion Rows (No Icon Padding Needed) */
.suggestion_item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    transition: background 0.15s ease;
}

.suggestion_item:hover {
    background: var(--brand-mint);
}

/* GLOBAL TOAST NOTIFICATION */
.toast_notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #0F172A;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast_notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast_notification i {
    color: #19A887;
    /* Wanderlust Teal */
    font-size: 1rem;
}

/* SMART EMPTY STATE CONTAINER */
.empty_state_card {
    text-align: center;
    padding: 40px 20px;
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px dashed #CBD5E1;
    margin: 20px auto;
    max-width: 400px;
}

.empty_state_icon {
    width: 64px;
    height: 64px;
    background: #F0FDF4;
    color: #19A887;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px auto;
}

.empty_state_card h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    color: #0F172A;
}

.empty_state_card p {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.empty_state_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #19A887;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(25, 168, 135, 0.25);
}

/* GLOBAL EMPTY STATE CONTAINER */
.empty_state_card {
    text-align: center;
    padding: 36px 20px;
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px dashed var(--border-subtle, #E2E8F0);
    margin: 24px auto;
    max-width: 420px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.empty_state_icon {
    width: 60px;
    height: 60px;
    background: #F0FDF4;
    color: var(--brand-teal, #19A887);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 14px auto;
    border: 1px solid #A7F3D0;
}

.empty_state_card h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    color: var(--text-main, #0F172A);
}

.empty_state_card p {
    font-size: 0.82rem;
    color: var(--text-muted, #64748B);
    margin: 0 0 18px 0;
    line-height: 1.45;
}

.empty_state_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-teal, #19A887);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: var(--radius-pill, 9999px);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(25, 168, 135, 0.25);
    transition: all 0.2s ease;
}

.empty_state_btn:hover {
    background: var(--brand-teal-hover, #14866B);
    transform: translateY(-1px);
}