/* Compact Shop Cards CSS — shorter, wider cards with tight spacing */

.shops-scroll-container {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.shops-horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 4px 0 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shops-horizontal-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
}

/* Wider card rail items (when not using % slider sizing) */
.shop-card-wrapper {
    flex: 0 0 300px;
    max-width: 300px;
    min-height: 0 !important;
    height: auto !important;
}

.shop-card-wrapper .shop-card,
.shop-card {
    height: auto !important;
    min-height: 0 !important;
    border: 1px solid #e6d3b0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.shop-card-wrapper .shop-card:hover,
.shop-card:hover {
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
}

/* Shorter media */
.shop-card .card-img-top,
.shop-card .service-media-img {
    height: 120px !important;
    object-fit: cover;
    border-radius: 0;
    width: 100%;
}

.shop-card:hover .card-img-top { transform: none; }

.shop-card .shop-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f5e6c9;
    color: #3a2f21;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid rgba(30, 86, 49, 0.35);
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.shop-card .shop-badge.accredited {
    background: rgba(34, 197, 94, 0.95);
    color: white;
    border-color: rgba(34, 197, 94, 0.3);
}

.shop-card .shop-badge.featured-star {
    background: rgba(251, 191, 36, 0.95);
    color: white;
    border-color: rgba(251, 191, 36, 0.3);
}

.shop-card .shop-badge.premium {
    background: rgba(147, 51, 234, 0.95);
    color: white;
    border-color: rgba(147, 51, 234, 0.3);
}

.shop-card .shop-badge.verified {
    background: rgba(59, 130, 246, 0.95);
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
}

.shop-card .shop-badge .badge-count {
    font-size: 0.6rem;
    opacity: 0.9;
}

.shop-card .card-body {
    padding: 0.5rem 0.7rem !important;
    flex: 0 1 auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    gap: 0.15rem;
}

.shop-card .shop-info {
    flex: 0 1 auto !important;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.shop-card .shop-title {
    font-size: 0.88rem !important;
    font-weight: 600;
    line-height: 1.2 !important;
    margin: 0 !important;
    color: var(--charcoal, #212121);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 0 !important;
    height: auto !important;
}

.shop-card .shop-location {
    font-size: 0.72rem !important;
    color: var(--medium-gray, #616161);
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0 !important;
    line-height: 1.15;
}

.shop-card .shop-location i {
    color: var(--primary-color, #1E5631);
    font-size: 0.65rem;
    flex-shrink: 0;
}

.shop-card .shop-location .btn-xs {
    display: none;
}

.shop-card .shop-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
}

.shop-card .shop-rating .stars {
    display: flex;
    gap: 1px;
}

.shop-card .shop-rating .stars i {
    font-size: 0.65rem;
    color: #fbbf24;
}

.shop-card .shop-rating .rating-text {
    font-size: 0.65rem;
    color: var(--medium-gray, #616161);
    white-space: nowrap;
}

.shop-card .shop-key-detail,
.shop-card .shop-key-detail.mb-2,
.shop-card .shop-key-detail.mb-3 {
    font-size: 0.72rem !important;
    color: var(--medium-gray, #616161);
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0 !important;
    line-height: 1.15;
}

.shop-card .shop-key-detail i {
    font-size: 0.65rem;
    flex-shrink: 0;
}

.shop-card .shop-description,
.shop-card p.shop-description,
.shop-card p.mb-3.shop-description {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    color: var(--medium-gray, #616161);
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
}

.shop-card .card-footer {
    padding: 0.35rem 0.7rem 0.55rem !important;
    background: transparent !important;
    border: none !important;
    margin-top: 0 !important;
}

.shop-card .card-footer .d-flex {
    gap: 6px;
}

.shop-card .card-footer .btn-sm {
    padding: 0.28rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 6px;
    line-height: 1.2;
}

.shop-card .card-footer .btn-outline-secondary {
    border-color: var(--medium-gray, #9e9e9e);
    color: var(--medium-gray, #616161);
}

.shop-card .card-footer .btn-outline-secondary:hover {
    background: var(--medium-gray, #616161);
    color: white;
}

.shop-card .card-footer .btn-primary {
    background: var(--primary-color, #1E5631);
    border-color: var(--primary-color, #1E5631);
    color: white;
}

.shop-card .card-footer .btn-primary:hover {
    background: var(--primary-dark, #164025);
    border-color: var(--primary-dark, #164025);
}

/* Grid cards on shops/CMS pages */
.row .shop-card .card-img-top,
.row .shop-card .service-media-img {
    height: 130px !important;
}

/* Section spacing — less empty air between blocks */
.cards-slider-view.site-cms-section,
section.cards-slider-view,
section.py-5.cards-slider-view {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
}

.cards-slider-view .mb-5,
.cards-slider-view .shops-scroll-container.mb-5 {
    margin-bottom: 1rem !important;
}

.cards-slider-view hr.my-5 {
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

.cards-slider-view .mb-4 {
    margin-bottom: 0.85rem !important;
}

@media (max-width: 768px) {
    .shop-card-wrapper {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .shop-card .card-img-top,
    .shop-card .service-media-img,
    .row .shop-card .card-img-top,
    .row .shop-card .service-media-img {
        height: 110px !important;
    }
}

@media (max-width: 480px) {
    .shop-card-wrapper {
        flex: 0 0 240px;
        max-width: 240px;
    }

    .shop-card .card-body {
        padding: 0.45rem 0.55rem !important;
    }

    .shop-card .card-footer {
        padding: 0.3rem 0.55rem 0.45rem !important;
    }
}

/* Scroll Navigation Buttons */
.scroll-nav-container {
    position: relative;
    margin-bottom: 12px;
}

.scroll-nav-buttons {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.scroll-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color, #1E5631);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.scroll-btn:hover {
    background: var(--primary-dark, #164025);
}

.scroll-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.shop-card * {
    box-sizing: border-box;
}

.shop-card .btn {
    white-space: nowrap;
}

/* Multi-image service media */
.service-media,
.service-media-carousel {
    position: relative;
    overflow: hidden;
    background: #f3f3f3;
}

.service-media-carousel .carousel-control-prev,
.service-media-carousel .carousel-control-next {
    width: 14%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.service-media-carousel:hover .carousel-control-prev,
.service-media-carousel:hover .carousel-control-next,
.service-media-carousel:focus-within .carousel-control-prev,
.service-media-carousel:focus-within .carousel-control-next {
    opacity: 0.9;
}

.service-media-carousel .carousel-control-prev-icon,
.service-media-carousel .carousel-control-next-icon {
    width: 1.1rem;
    height: 1.1rem;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    background-size: 60% 60%;
}

.service-media-indicators {
    margin-bottom: 0.25rem;
}

.service-media-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
}

.service-media-count {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    font-size: 0.65rem;
    font-weight: 600;
}

.shop-card .service-media-img,
.card .service-media-img {
    display: block;
}
