/* ====== STORE LIST CARD====== */
.store-list-wrapper {
    padding: -1px 12px 16px;
}

.store-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #bdbdbd57;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    padding: 11px 14px 14px;
    margin: 8px 10px 12px;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ======= HEADER ======= */
.store-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1px;
    margin-top: 6px;
}

.store-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.store-title-row{
    display:flex;
    align-items:center;
    gap:10px;
    min-width: 0;
    flex: 1;
}
.store-card-title-text{
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.btn-more-info{
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(240,55,60,0.35);
    color: #f0373c;
    background: #fff;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}
.btn-more-info:hover{
    background:#f0373c;
    text-decoration:none;
}

/* Fix hover/visited color overridden by global theme */
.store-card-title:hover,
.store-card-title:focus,
.store-card-title:active,
.store-card-title:visited{
    color: #333 !important;
    text-decoration: none;
}

.store-status-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    color: #ff3b5c;
    background: #ffe3ec;
}

.store-status-pill.open {
    background: #e2f7ea;
    color: #39a95c;
}

.buttons-container {
    container-type: inline-size;
}

.hide_for_small_interface {
    display: block;
}

@container (max-width: 340px) {
    .hide_for_small_interface {
        display: none;
    }
}


.store-card-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    margin-top:10px;
}

.store-card-address img.img-res-map {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.store-card-address a,
.store-card-address span {
    color: #666;
    text-decoration: none;
    line-height: 1.35;
}

.store-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #555;
    margin-bottom: 17px;
}

.store-opening-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.store-opening-btn .img-res-liv {
    width: 15px;
    height: 15px;
}

.store-opening-btn .arrow-res {
    display: none;
}

.store-rating-distance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    margin-left: auto;
}

.rating-value {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

/* Dynamic Google-like stars (supports partial star fill) */
.google-stars{
    --rating-percent: 0%;
    --star-size: 13px;
    --star-gap: 1px;
    --star-empty: #d9d9d9;
    --star-fill: #ffc107;
    position: relative;
    display: inline-block;
    font-size: var(--star-size);
    letter-spacing: var(--star-gap);
    line-height: 1;
}
.google-stars::before{
    content: "★★★★★";
    color: var(--star-empty);
}
.google-stars::after{
    content: "★★★★★";
    color: var(--star-fill);
    position: absolute;
    left: 0;
    top: 0;
    width: var(--rating-percent);
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.rating-separator {
    color: #bbb;
    font-size: 13px;
    padding: 0 2px;
}

.km-res {
    font-size: 13px;
    color: #777;
}

.store-card-actions {
    display: flex;
    gap: 18px;
}
.store-card-actions button {
    padding: 4px 18px !important; /* reduce height */
    min-height: auto !important;
    height: auto !important;
    line-height: normal !important;
}
.btn-call,

.btn-route {
    flex: 1;
    border-radius: 7px;
    border-width: 2px;
    border-style: solid;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    justify-content: center;
    outline: none;
    transition: transform .12s ease, box-shadow .12s ease,
                background-color .12s ease, color .12s ease;
}

.btn-phone {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 7px;
    border: 2px solid #f0373c;
    background: #ffffff;
    color: #f0373c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.btn-phone:hover {
    background-color: #f0373c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(240,55,60,0.2);
    text-decoration: none;
}
.btn-phone svg{
    width: 18px;
    height: 18px;
    display: block;
}
.btn-phone svg path{
    fill: currentColor;
}

.btn-call {
    border-color: #f0373c;
    background-color: #f0373c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-route {
    border-color: #f0373c;
    background-color: #ffffff;
    color: #f0373c;
}

.btn-call .icon-phone {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    position: relative;
}

.btn-call .icon-phone::before {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(35deg);
}

.btn-call, .btn-route {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.icon-btn path{
  fill: currentColor;
}


.icon-btn {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.btn-call:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(240,55,60,0.35);
}

.btn-route:hover {
    background-color: #f0373c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(240,55,60,0.2);
}


@media (max-width: 768px) {
    .store-card {
        margin: 10px 10px 14px;
        padding: 16px 16px 18px;
    }
}

.btn-call .icon-phone {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid currentColor;
    position: relative;
}

.btn-call .icon-phone::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(35deg);
}

.modal-hours-title {
    font-size: 18px;
    font-weight: 600;
}

/* Fix: hours modal should be above the map (map uses very high z-index layers) */
.modal{
    z-index: 20000 !important;
}
.modal-backdrop{
    z-index: 19990 !important;
}

.jours {
    font-size: 13px;
    font-weight: 600;
}

.time-popup {
    font-size: 13px;
}

@media (max-width: 768px) {
    .store-card {
        border-radius: 16px;
        padding: 14px 16px 16px;
    }

    .store-card-header {
        align-items: flex-start;
        flex-direction: row;
    }

    .store-card-meta {
        flex-direction: row;
        align-items: center;
    }

    .store-rating-distance {
        margin-left: auto;
    }
}

