/* ── CostcoHauls Homepage Teaser CSS ──────────────────────────────────────── */

/* ── Teaser Wrapper ──────────────────────────────────────────────────────── */
.chc-teaser-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.chc-teaser-header { margin-bottom: 16px; }
.chc-teaser-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}
.chc-teaser-title-left { display: flex; align-items: center; gap: 12px; }
.chc-teaser-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
}
.chc-teaser-subtitle { margin: 0; font-size: 14px; color: #777; }
.chc-teaser-see-all {
    font-size: 13px;
    font-weight: 700;
    color: #c0392b;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.chc-teaser-see-all:hover { text-decoration: underline; }

/* ── NEW Badge ───────────────────────────────────────────────────────────── */
.chc-new-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    padding: 4px 10px 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.chc-new-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: chc-pulse-dot 1.4s ease-in-out infinite;
}
@keyframes chc-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

/* ── Activity Ticker ─────────────────────────────────────────────────────── */
.chc-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 18px;
    overflow: hidden;
}
.chc-ticker-label {
    font-size: 11px;
    font-weight: 800;
    color: #e74c3c;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.chc-ticker-track { flex: 1; overflow: hidden; }
.chc-ticker-inner {
    display: flex;
    gap: 0;
    width: max-content;
    animation: chc-ticker-scroll 30s linear infinite;
}
.chc-ticker-item {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    padding: 0 28px 0 0;
}
.chc-ticker-item::before { color: #c0392b; }
@keyframes chc-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.chc-ticker-wrap:hover .chc-ticker-inner { animation-play-state: paused; }

/* ── Cards Grid ──────────────────────────────────────────────────────────── */
.chc-teaser-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
@media (max-width: 768px) {
    .chc-teaser-cards { grid-template-columns: 1fr; }
}
@media (min-width: 480px) and (max-width: 768px) {
    .chc-teaser-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Teaser Card ─────────────────────────────────────────────────────────── */
.chc-teaser-card {
    display: block;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.chc-teaser-card:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* Image area */
.chc-teaser-card-img {
    position: relative;
    height: 160px;
    background: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1.5px solid #f0ede7;
}
.chc-teaser-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.chc-teaser-card-emoji { font-size: 44px; }
.chc-teaser-card-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* Card body */
.chc-teaser-card-body { padding: 12px 14px 14px; }
.chc-teaser-card-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.chc-teaser-card-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}
.chc-teaser-card-price {
    font-size: 20px;
    font-weight: 800;
    color: #c0392b;
    letter-spacing: -0.02em;
}
.chc-teaser-card-num { font-size: 11px; color: #aaa; }
.chc-teaser-card-stars {
    display: flex;
    gap: 1px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #e0e0e0;
}
.chc-teaser-card-stars .on { color: #f59e0b; }
.chc-teaser-card-user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.chc-teaser-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #555;
    flex-shrink: 0;
}
.chc-teaser-card-username { font-size: 12px; font-weight: 600; color: #444; }
.chc-teaser-card-date { font-size: 11px; color: #aaa; }

/* Mini availability bar */
.chc-teaser-avail {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #888;
}
.chc-teaser-avail-bar {
    flex: 1;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}
.chc-teaser-avail-bar div {
    height: 100%;
    background: #2d6a4f;
    border-radius: 2px;
}

/* Placeholder shimmer */
.chc-teaser-card-placeholder { pointer-events: none; }
.chc-pulse { animation: chc-shimmer 1.6s ease-in-out infinite; }
@keyframes chc-shimmer {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.chc-placeholder-line {
    height: 14px;
    background: #ebebeb;
    border-radius: 4px;
}

/* ── Stats Row ───────────────────────────────────────────────────────────── */
.chc-teaser-stats {
    display: flex;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 18px;
}
.chc-teaser-stat {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    border-right: 1.5px solid #e8e8e8;
}
.chc-teaser-stat:last-child { border-right: none; }
.chc-teaser-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
}
.chc-teaser-stat span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
    margin-top: 2px;
    display: block;
}

/* ── CTA Block ───────────────────────────────────────────────────────────── */
.chc-teaser-cta-wrap { text-align: center; }
.chc-teaser-cta-btn {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 14px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35);
}
.chc-teaser-cta-btn:hover {
    background: #a93226;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.45);
}
.chc-teaser-cta-btn:active { transform: none; }
.chc-teaser-cta-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #999;
}

/* ══════════════════════════════════════════════════════════════════════════
   SLIDE-UP DRAWER
══════════════════════════════════════════════════════════════════════════ */
.chc-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s;
}
.chc-drawer-overlay.open { display: block; opacity: 1; }

.chc-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
}
.chc-drawer.open { transform: translateY(0); }

/* Drawer handle (drag hint) */
.chc-drawer-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 0;
}

/* Drawer header */
.chc-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1.5px solid #f0f0f0;
}
.chc-drawer-title {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}
.chc-drawer-subtitle { margin: 0; font-size: 13px; color: #888; }
.chc-drawer-close {
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Drawer body / footer */
.chc-drawer-body { padding: 18px 20px 0; }
.chc-drawer-footer {
    padding: 14px 20px 24px;
    border-top: 1.5px solid #f0f0f0;
    margin-top: 16px;
}

/* Form fields inside drawer */
.chc-dform-group { margin-bottom: 14px; }
.chc-dform-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 5px;
}
.chc-optional { font-size: 10px; color: #bbb; text-transform: none; letter-spacing: 0; font-weight: 400; }
.chc-dform-group input[type="text"],
.chc-dform-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    background: #fafafa;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.chc-dform-group input:focus,
.chc-dform-group textarea:focus {
    border-color: #c0392b;
    background: #fff;
    outline: none;
}
.chc-dform-row { display: flex; gap: 10px; }
.chc-dform-row .chc-dform-group { flex: 1; }

/* Drawer star rating */
.chc-drawer-stars {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}
.chc-drawer-stars span {
    font-size: 26px;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.1s, transform 0.1s;
    user-select: none;
}
.chc-drawer-stars span.active,
.chc-drawer-stars span.hover { color: #f59e0b; }
.chc-drawer-stars span:hover { transform: scale(1.15); }

/* Drawer CTA buttons */
.chc-drawer-next-btn {
    width: 100%;
    padding: 14px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s;
}
.chc-drawer-next-btn:hover { background: #a93226; }
.chc-drawer-back-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0.02em;
}
.chc-drawer-footer-note {
    margin: 8px 0 0;
    text-align: center;
    font-size: 12px;
    color: #aaa;
}

/* ── Auth Step ───────────────────────────────────────────────────────────── */
.chc-auth-progress {
    height: 5px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}
.chc-auth-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    border-radius: 3px;
    transition: width 0.4s;
}
.chc-auth-progress-label {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 0 0 16px;
}

/* Haul preview card on auth step */
.chc-auth-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdf5f4;
    border: 1.5px solid #f5c6c0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
}
.chc-auth-preview-icon { font-size: 28px; flex-shrink: 0; }
.chc-auth-preview-text { font-size: 13px; color: #444; line-height: 1.5; }
.chc-auth-preview-text strong { color: #111; font-size: 14px; }

/* Auth buttons */
.chc-auth-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.chc-auth-btn {
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.2s;
}
.chc-auth-btn-primary {
    background: #c0392b;
    color: #fff;
    box-shadow: 0 3px 12px rgba(192,57,43,0.3);
}
.chc-auth-btn-primary:hover { background: #a93226; color: #fff; }
.chc-auth-btn-secondary {
    background: #fff;
    color: #555;
    border: 1.5px solid #e5e5e5;
}
.chc-auth-btn-secondary:hover { border-color: #bbb; color: #333; }

/* Trust row */
.chc-trust-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: #2d6a4f;
    font-weight: 600;
}

/* ── Drawer photo upload ────────────────────────────────────────────────────── */
.chc-file-input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0; overflow: hidden;
    clip: rect(0,0,0,0);
}
.chc-drawer-upload-area {
    position: relative;
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
    transition: border-color 0.2s;
}
.chc-drawer-upload-area:hover {
    border-color: #5a8f7b;
}
.chc-drawer-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}
.chc-drawer-upload-label span:first-child {
    font-size: 24px;
}
.chc-drawer-upload-text {
    font-weight: 600;
    color: #333;
}
.chc-drawer-upload-hint {
    font-size: 11px;
    color: #999;
}
.chc-drawer-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f0f7f4;
}
.chc-drawer-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.chc-drawer-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
}
.chc-drawer-remove-btn:hover { color: #E31837; }

/* ── Drawer success banner ───────────────────────────────────────────────────── */
.chc-drawer-success-banner {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}
