/* ====================================================
   Loca Service Cards v1.0.2
   maswebsite.id
   ==================================================== */

/* ── Grid ── */
.loca-service-cards-wrap { width: 100%; }

.loca-sc-grid {
    display: grid;
    gap: 24px;
}
.loca-sc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.loca-sc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.loca-sc-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card ──
   overflow: visible supaya .loca-sc-badge-row tidak terpotong.
   Sudut card dibentuk lewat .loca-sc-image (atas) dan .loca-sc-body (bawah).
*/
.loca-sc-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}
.loca-sc-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    transform: translateY(-4px);
}

/* ── Gambar ──
   overflow:hidden di sini aman karena icon sudah TIDAK di dalam div ini.
*/
.loca-sc-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 16px 16px 0 0;
}
.loca-sc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.loca-sc-card:hover .loca-sc-image img {
    transform: scale(1.04);
}
.loca-sc-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Badge Row ──
   Div dengan height:0 ditempatkan di antara image dan body.
   Icon naik ke atas image via top:-20px tanpa pernah terpotong.
*/
.loca-sc-badge-row {
    position: relative;
    height: 0;
    overflow: visible;
}
.loca-sc-icon-wrap {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #e05c7a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    z-index: 5;
}
.loca-sc-icon-wrap svg {
    width: 20px;
    height: 20px;
}

/* ── Body ── */
.loca-sc-body {
    padding: 28px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-radius: 0 0 16px 16px;
    background: #ffffff;
}

/* ── Judul ── */
.loca-sc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.35;
}

/* ── Deskripsi ── */
.loca-sc-desc {
    font-size: 0.85rem;
    color: #6b6b7b;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}

/* ── Meta (durasi + harga) ── */
.loca-sc-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.loca-sc-duration,
.loca-sc-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e05c7a;
}
.loca-sc-price {
    margin-left: auto;
    font-size: 0.9rem;
}

/* ── Tombol Book ── */
.loca-sc-btn {
    display: inline-block;
    background-color: #e05c7a;
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #e05c7a;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
    cursor: pointer;
    align-self: flex-start;
}
.loca-sc-btn:hover {
    background-color: transparent;
    color: #e05c7a !important;
    transform: scale(1.02);
}

/* ── Empty state ── */
.loca-sc-empty {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .loca-sc-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .loca-sc-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .loca-sc-cols-4,
    .loca-sc-cols-3,
    .loca-sc-cols-2 { grid-template-columns: 1fr; }
}
