.pac-card {
    background-color: #fff;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
    margin: 10px;
    padding: 0 0.5em;
    font: 400 18px Roboto, Arial, sans-serif;
    overflow: hidden;
    font-family: Roboto;
    padding: 0;
}

.pac-container {
    padding-bottom: 12px;
    margin-right: 12px;
    z-index: 1000000000000;
}

.pac-controls {
    display: inline-block;
    padding: 5px 11px;
}

.pac-controls label {
    font-family: Roboto;
    font-size: 13px;
    font-weight: 300;
}

#pac-input:focus {
    border-color: #4d90fe;
}

/* Modern App Aesthetics */
body, .bg-white {
    background-color: #f4f6f8 !important;
    color: #3d4152;
}

/* Universal Card Styling */
.card, .near-you-vendor-card, .product-card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    background-color: #fff !important;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.card:hover, .near-you-vendor-card:hover, .product-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px);
}

/* Reduced whitespace classes */
.px-1 {
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
}

.mb-3 {
    margin-bottom: 0.8rem !important;
}

/* Category Badge on Product Cards */
.top-product-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    pointer-events: none;
}

.is-service-badge {
    color: #007bff;
    border-left: 2px solid #007bff;
}

.is-food-badge {
    color: #e67e22;
    border-left: 2px solid #e67e22;
}

.is-shop-badge {
    color: #8e44ad;
    border-left: 2px solid #8e44ad;
}

/* Shared Detail Layouts */
.near-you-vendor-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f9fa;
}

.near-you-vendor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.near-you-vendor-card:hover .near-you-vendor-image {
    transform: scale(1.05);
}

.near-you-vendor-title {
    font-weight: 700;
    color: #1c1c1c;
    font-size: 0.95rem;
}

.near-you-rating {
    font-weight: 700;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: #1b9e3e;
}

.is-new { background: #db7c38 !important; }

/* Strict Truncation */
.product-card .product-desc-truncate {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
    max-height: 2.8em !important;
}

/* Category Badge Styles with High Specificity */
.top-product-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
}

.is-food-badge { border: 1px solid rgba(40, 167, 69, 0.2); }
.is-service-badge { border: 1px solid rgba(0, 123, 255, 0.2); }
.is-shop-badge { border: 1px solid rgba(108, 117, 125, 0.2); }

@media (max-width: 576px) {
    .product-card .card-body {
        padding: 0.75rem !important;
    }
    .product-card h6 {
        font-size: 0.95rem !important;
    }
}

/* ─── Standardized Info/Header Cards ─────────────────────── */
.card-locaso-info {
    background-color: #fff !important;
    border-left: 5px solid #ff385c !important;
    padding: 1rem;
}

.card-locaso-info .card-title, 
.card-locaso-info .card-header,
.card-locaso-info p {
    color: #ff385c !important;
    margin-bottom: 0.25rem !important;
    font-weight: 700;
}

/* ─── Selection Grid Component ───────────────────────────── */
.image-checkbox input[type="checkbox"]:checked + label {
    border: 2px solid #ff385c !important;
    background-color: #fff1f2 !important;
}

.image-checkbox input[type="checkbox"]:checked ~ label span {
    color: #ff385c !important;
    font-weight: 700;
}

/* Global utility for red text */
.text-red {
    color: #ff385c !important;
}

