/* TCI Now public experience layer — v1 */
:root {
    --tci-navy: #123b5d;
    --tci-turquoise: #14b8a6;
    --tci-coral: #ff6b5f;
    --tci-gold: #f4b740;
    --tci-white: #ffffff;
    --tci-shadow: 0 10px 30px rgba(18, 59, 93, 0.18);
    --tci-ink: #172b3e;
    --tci-muted: #64748b;
    --tci-surface: #f8fafc;
}

html,
body,
button,
input,
select,
textarea {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.tci-now-brand {
    position: fixed;
    top: 8px;
    left: 50%;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    transform: translateX(-50%);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--tci-shadow);
    color: var(--tci-navy);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tci-now-brand i {
    color: var(--tci-turquoise);
}

.search_div,
.list_detail,
.sheet_detail,
.categories_div,
.direction_detail,
.new_sheet_detail {
    border: 1px solid rgba(18, 59, 93, 0.10);
    box-shadow: var(--tci-shadow);
}

.new_marker_btn {
    border: 0 !important;
    background: var(--tci-coral) !important;
    color: var(--tci-white) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 95, 0.28);
    font-weight: 800;
}

.new_marker_btn:hover {
    background: #ef574d !important;
    transform: translateY(-1px);
}

.category-chip {
    border-color: rgba(18, 59, 93, 0.12);
    color: var(--tci-navy);
    box-shadow: 0 4px 12px rgba(18, 59, 93, 0.10);
}

#featured_categories .category-chip.active_f {
    border-color: var(--tci-turquoise);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.16);
}

.list_block_featured {
    box-sizing: border-box;
    overflow: hidden;
    border-color: rgba(18, 59, 93, 0.10);
    box-shadow: var(--tci-shadow);
}

.list_block_featured .list_name,
.list_block_featured .list_address,
.list_block_featured .list_rating {
    box-sizing: border-box;
    max-width: calc(100% - 90px);
}

.list_block_featured .list_name {
    color: var(--tci-navy);
}

@media (max-width: 700px) {
    .tci-now-brand {
        top: auto;
        right: 8px;
        bottom: 58px;
        left: auto;
        min-height: 30px;
        padding: 0 10px;
        transform: none;
        font-size: 12px;
    }

    .btn_bar {
        box-sizing: border-box;
        width: calc(100% - 12px);
        overflow: hidden;
    }

    .btn_bar .slider-category-wrapper {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    #featured_categories {
        justify-content: flex-start !important;
        padding-right: 30px;
    }

    .category-chip {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #featured_container {
        box-sizing: border-box;
        padding: 0 10px;
        overflow: hidden;
    }

    .list_block_featured {
        width: min(330px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        margin: 0 auto;
    }

    .list_block_featured .list_name,
    .list_block_featured .list_address,
    .list_block_featured .list_rating {
        width: calc(100% - 90px) !important;
        max-width: calc(100% - 90px) !important;
        overflow: hidden !important;
    }

    .list_block_featured .list_name {
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .list_block_featured .list_address {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .search_div {
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
}

@media (max-width: 390px) {
    .tci-now-brand {
        display: none;
    }

    .new_marker_btn {
        max-width: calc(100vw - 24px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Guest contribution flow */
.tci-contribution-intro {
    padding: 18px 18px 16px;
    background: linear-gradient(135deg, #0b2942 0%, #0e7490 100%);
    color: var(--tci-white);
}

.tci-contribution-intro h2 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.tci-contribution-intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12.5px;
    line-height: 1.55;
}

.tci-contribution-steps {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.tci-contribution-steps span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 10px;
    font-weight: 700;
}

.new_sheet_detail_image {
    position: relative;
}

.tci-photo-helper {
    clear: both;
    margin: 7px 0 2px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.new_sheet_detail input,
.new_sheet_detail textarea,
.new_sheet_detail select {
    box-sizing: border-box;
    color: var(--tci-ink) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(18, 59, 93, 0.18) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.4;
}

.new_sheet_detail input::placeholder,
.new_sheet_detail textarea::placeholder {
    color: #7b8794 !important;
    opacity: 1;
    font-weight: 450;
}

.new_sheet_detail_container {
    color: var(--tci-ink);
}

.new_sheet_detail .sheet_detail_features {
    border-color: rgba(18, 59, 93, 0.08);
}

.new_sheet_detail .features_icon {
    color: var(--tci-turquoise) !important;
}

#new_category {
    min-height: 46px;
    max-height: 116px;
    padding: 8px;
}

#new_button_actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 10px;
    background: rgba(248, 250, 252, 0.96);
    border-top: 1px solid rgba(18, 59, 93, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.new_sheet_detail input:focus,
.new_sheet_detail textarea:focus,
.new_sheet_detail select:focus {
    border-color: var(--tci-turquoise) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12) !important;
}

.btn_add_marker {
    border-color: #0f9f91 !important;
    background: var(--tci-turquoise) !important;
    color: var(--tci-white) !important;
    font-weight: 800;
}

.btn_add_marker:hover {
    background: #0f9f91 !important;
}

@media (max-width: 700px) {
    .tci-contribution-intro {
        padding: 14px;
    }

    .tci-contribution-steps {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .tci-contribution-steps span {
        flex: 0 0 auto;
    }
}
