/* =========================================================
   Gau Mitra - Compact gaushala card component
   Auto-segregated from the original Gau Mitra stylesheet.
========================================================= */

/* Card */

.gm-gaushala-card.compact {
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(249, 115, 22, .16);
    box-shadow: 0 14px 38px rgba(107, 63, 24, .10);
    transition: all .25s ease;
}

.gm-gaushala-card.compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(107, 63, 24, .16);
}

.gm-gaushala-card.compact .gm-card-media {
    position: relative;
    height: 135px;
    background:
        radial-gradient(circle at 50% 40%, rgba(250, 204, 21, .20), transparent 42%),
        linear-gradient(135deg, #fff0d6, #fff7eb);
    overflow: hidden;
}

.gm-gaushala-card.compact .gm-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gm-gaushala-card.compact .gm-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #b45309;
    font-size: 36px;
}
.gm-gaushala-card.compact .gm-card-body {
    padding: 14px;
}

.gm-gaushala-card.compact .gm-card-top h4 {
    margin: 0;
    color: var(--sindoor);
    font-weight: 900;
    font-size: 16px;
    line-height: 1.25;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gm-gaushala-card.compact .gm-card-top p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    display: flex;
    gap: 6px;
    line-height: 1.35;
    font-weight: 700;
}

.gm-gaushala-card.compact .gm-card-top p i {
    color: var(--saffron-dark);
    margin-top: 2px;
    min-width: 13px;
}

.gm-gaushala-card.compact .gm-card-top p span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gm-mini-info {
    display: grid;
    gap: 9px;
    margin-top: 13px;
}

.gm-mini-info > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.gm-mini-info > div > span {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff3e4;
    color: #c2410c;
    font-size: 14px;
}

.gm-mini-info p {
    margin: 0;
    min-width: 0;
}

.gm-mini-info small {
    display: block;
    color: #9a7352;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
}

.gm-mini-info strong {
    display: block;
    color: #4b2a18;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-capacity-box.compact {
    margin-top: 13px;
    padding: 11px;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff8ef, #fff);
    border: 1px solid rgba(249, 115, 22, .14);
}

.gm-capacity-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.gm-capacity-head span {
    color: #7c5c3e;
    font-size: 11px;
    font-weight: 900;
}

.gm-capacity-head strong {
    color: var(--maroon);
    font-size: 12px;
    font-weight: 900;
}

.gm-gaushala-card.compact .gm-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #f3dfcd;
}

.gm-gaushala-card.compact .gm-progress div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #facc15);
}

.gm-service-tags.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.gm-service-tags.compact span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 5px 8px;
    background: #fff4e6;
    color: #7a391c;
    font-size: 10px;
    font-weight: 900;
    border: 1px solid rgba(249, 115, 22, .13);
}

.gm-working-hours.compact,
.gm-address.compact {
    margin-top: 10px;
    display: flex;
    gap: 7px;
    color: #765131;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
}

.gm-working-hours.compact i,
.gm-address.compact i {
    color: var(--saffron-dark);
    margin-top: 2px;
    min-width: 12px;
}

.gm-address.compact span,
.gm-working-hours.compact span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gm-address.compact span {
    -webkit-line-clamp: 2;
}

.gm-working-hours.compact span {
    -webkit-line-clamp: 1;
}

.gm-gaushala-card.compact .gm-card-actions {
    margin-top: 13px;
}

.gm-gaushala-card.compact .gm-call-btn {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--saffron), var(--kumkum));
    box-shadow: 0 13px 28px rgba(159, 18, 57, .18);
    transition: all .22s ease;
}

.gm-gaushala-card.compact .gm-call-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.gm-gaushala-card.compact .gm-call-btn.disabled {
    opacity: .55;
    cursor: not-allowed;
}

.gm-empty-box {
    border-radius: 26px;
    padding: 45px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(249, 115, 22, .35);
    color: #7c5c3e;
}

.gm-pagination {
    margin-top: 35px;
}

/* 5 card row support */
@media (min-width: 1200px) {
    .row-cols-xl-5 > * {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (max-width: 1199px) {
    .gm-gaushala-card.compact .gm-card-media {
        height: 150px;
    }
}

@media (max-width: 767px) {
    .gm-home-gaushala-section {
        padding: 48px 0;
    }

    .gm-gaushala-hero {
        padding: 44px 0 30px;
    }

    .gm-gaushala-hero p {
        font-size: 15px;
    }

    .gm-filter-card {
        padding: 16px;
        border-radius: 20px;
    }

    .gm-gaushala-card.compact {
        border-radius: 20px;
    }

    .gm-gaushala-card.compact .gm-card-media {
        height: 175px;
    }

    .gm-gaushala-card.compact .gm-card-body {
        padding: 15px;
    }

    .gm-gaushala-card.compact .gm-card-top h4 {
        font-size: 17px;
        min-height: auto;
    }
}


.gm-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #b45309;
    font-size: 56px;
}

.gm-status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.gm-status-badge.available {
    background: linear-gradient(135deg, #16a34a, #166534);
}

.gm-status-badge.full {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}


.gm-card-top h4 {
    margin: 0;
    color: var(--sindoor);
    font-weight: 900;
    font-size: 22px;
    line-height: 1.3;
}

.gm-card-top p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    gap: 7px;
    line-height: 1.5;
    font-weight: 600;
}

.gm-card-top p i {
    color: var(--saffron-dark);
    margin-top: 3px;
}

.gm-info-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.gm-info-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gm-info-item > span {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #c2410c;
    background: #fff3e4;
}

.gm-info-item small {
    display: block;
    color: #9a7352;
    font-weight: 800;
    font-size: 12px;
}

.gm-info-item strong {
    color: #4b2a18;
    font-size: 14px;
    font-weight: 900;
}

.gm-capacity-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff8ef, #ffffff);
    border: 1px solid rgba(249, 115, 22, 0.14);
}

.gm-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #f3dfcd;
}

.gm-progress div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #facc15);
}

.gm-working-hours,
.gm-address {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    color: #765131;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.gm-working-hours i,
.gm-address i {
    color: var(--saffron-dark);
    margin-top: 3px;
}

.gm-card-actions {
    margin-top: 20px;
}

