/* ======================================================
   Sarekam CSS — vendor-cards.css
   Extracted from index.html | Phase 1 Refactor
   DO NOT add styles from other sections to this file.
   ====================================================== */

.service-booking-item {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.service-booking-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.service-booking-img {
    width: 52px; height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}
.service-booking-info { flex: 1; }
.service-booking-title { font-size: 14px; font-weight: 700; color: #1c1c1c; margin-bottom: 3px; }
.service-booking-price { font-size: 13px; font-weight: 600; color: #2e7d32; }
.service-booking-status {
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-pending   { background: #fff3e0; color: #e65100; }
.status-accepted  { background: #e8f5e9; color: #2e7d32; }
.status-completed { background: #e3f2fd; color: #1565c0; }

/* ===== VENDOR CARDS GRID ===== */
.vendor-cards-label {
    font-size: 12px; font-weight: 700; color: #888;
    text-transform: uppercase; letter-spacing: 0.6px;
    margin-bottom: 10px; margin-top: 4px;
}
.vendor-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.vendor-card {
    background: #f8fafb;
    border: 1px solid #e8edf0;
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: default;
}
.vendor-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.vendor-photo {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    background: #e9ecef;
}
.vendor-name  { font-size: 12px; font-weight: 700; color: #1c1c1c; line-height: 1.3; }
.vendor-biz   { font-size: 11px; color: #888; margin-bottom: 2px; }
.vendor-rating {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 700; color: #f59e0b;
}
.vendor-rating span { color: #555; font-weight: 400; font-size: 11px; }
.vendor-jobs  { font-size: 11px; color: #888; }
.vendor-phone {
    font-size: 12px; font-weight: 600; color: #1A73E8;
    text-decoration: none; margin-top: 2px;
}
.vendor-select-btn {
    margin-top: 6px; width: 100%;
    background: #1c1c1c; color: #fff;
    border: none; border-radius: 8px;
    padding: 7px 0; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
}
.vendor-select-btn:hover  { background: #333; }
.vendor-select-btn.chosen { background: #2e7d32; }
.vendor-verified {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; color: #1A73E8; font-weight: 600;
}


@media (min-width: 801px) {
    /* Center the sheet as a modal popup */
    .svc-detail-sheet {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 450px !important;
        max-width: 46vw !important;
        height: 88vh !important;
        max-height: 88vh !important;
        border-radius: 18px !important;
        transform: translate(-50%, -42%) scale(0.96) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.28s, visibility 0.28s !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .svc-detail-sheet.open {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Scroll wrapper: single column (narrower layout after 50% width reduction) */
    .svc-sheet-scroll {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex: 1;
        min-height: 0;
    }
    .svc-sheet-scroll::-webkit-scrollbar { width: 4px; }
    .svc-sheet-scroll::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 10px; }
    .svc-sheet-scroll::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 10px; }

    /* LEFT column: full width, no border-right */
    .svc-col-left {
        display: flex !important;
        flex-direction: column;
        width: 100% !important;
        flex-shrink: 0;
        padding: 0 0 8px !important;
        border-right: none !important;
        border-bottom: 1px solid #efefef;
        overflow-y: visible !important;
        background: #fff;
        height: auto !important;
    }

    /* RIGHT column: full width below left */
    .svc-col-right {
        display: flex !important;
        flex-direction: column;
        width: 100% !important;
        flex: unset !important;
        padding: 16px 20px 80px !important;
        overflow-y: visible !important;
        background: #fff;
        height: auto !important;
    }

    /* Banner: fill left column, tall enough to be impactful */
    .svc-detail-banner {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        max-height: 340px;
        border-radius: 14px 14px 0 0;
        margin-bottom: 0;
        flex-shrink: 0;
        overflow: hidden;
    }
    .svc-detail-banner-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Title card in left col Ã¢â‚¬â€ strip the card box */
    .svc-detail-title-card {
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        background: transparent !important;
    }
    .svc-detail-title {
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 14px;
        line-height: 1.3;
    }
    .svc-price-current {
        font-size: 26px;
        font-weight: 800;
    }
    .svc-add-btn {
        padding: 10px 32px;
        font-size: 14px;
    }

    /* Toggle button aligned left */
    .svc-toggle-details {
        text-align: left;
        margin-bottom: 20px;
    }

    /* Feature pills row */
    .svc-features-row {
        gap: 12px;
        margin-bottom: 20px;
    }
    .svc-feature-item { padding: 14px 6px; }
    .svc-feature-label { font-size: 12px; }

    /* Highlights */
    .svc-section-title { font-size: 16px; }
    .svc-spec-key { font-size: 13px; }
    .svc-spec-val { font-size: 13px; }
    .svc-divider { margin: 0 0 18px; }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â SCREEN 4 Ã¢â‚¬â€ MOBILE SINGLE COLUMN Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
@media (max-width: 800px) {
    /* Stack cols vertically, scroll whole page */
    .svc-sheet-scroll {
        flex-direction: column !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: calc(100% - 56px) !important; /* minus topbar */
    }
    .svc-col-left {
        width: 100% !important;
        flex-shrink: 1 !important;
        overflow-y: visible !important;
        height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding: 0 0 20px !important;
    }
    .svc-col-right {
        width: 100% !important;
        overflow-y: visible !important;
        height: auto !important;
        padding: 20px 16px 100px !important; /* 100px for bottom bar clearance */
    }
    /* Banner fills full width, taller on mobile */
    .svc-detail-banner {
        border-radius: 0 !important;
        max-height: 260px !important;
        aspect-ratio: 16/9 !important;
    }
    /* Title/price inside left col */
    .svc-detail-title-card {
        padding: 16px !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .svc-detail-title  { font-size: 20px !important; margin-bottom: 10px !important; }
    .svc-price-current { font-size: 24px !important; }
    .svc-add-btn       { padding: 10px 28px !important; font-size: 13px !important; }
    /* Topbar back chevron becomes a back arrow feel */
    .svc-sheet-topbar {
        padding: 12px 16px !important;
        position: sticky !important;
        top: 0 !important;
        background: #fff !important;
        z-index: 10 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    .svc-sheet-collapse-btn {
        background: #f0f0f0 !important;
        width: 36px !important; height: 36px !important;
    }
}

