/* DoctorBookly — listing cards on homepage */
.home-listing-cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;width:100%;max-width:1280px;margin:0 auto;}
@media(max-width:1023px){.home-listing-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.home-listing-cards-grid{grid-template-columns:1fr;gap:16px;}}
.home-listing-cards-grid .offer-card{opacity:1!important;transform:none!important;min-height:0;}
/* Hospital Card - Enhanced */
.hospital-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 2px 8px rgba(46, 158, 128, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    animation: fadeInUp 0.5s ease-out;
    position: relative;
}
.hospital-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2E9E80, #1A5C7E);
    border-radius: 18px 0 0 18px;
    opacity: 0;
    transition: opacity 0.3s;
}
.hospital-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 4px 16px rgba(46, 158, 128, 0.12);
    border-color: rgba(46, 158, 128, 0.2);
}
.hospital-card:hover::before {
    opacity: 1;
}

.hospital-image {
    position: relative;
    background: linear-gradient(135deg, #2E9E80 0%, #1A5C7E 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hospital-image-click {
    position: absolute;
    inset: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.25s ease;
}
.hospital-image-click:hover {
    background: rgba(0, 0, 0, 0.15);
}
.hospital-image-click:focus {
    outline: 2px solid rgba(46, 158, 128, 0.6);
    outline-offset: 2px;
}
.hospital-image-view-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #1A5C7E;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}
.hospital-image-click:hover .hospital-image-view-hint {
    opacity: 1;
}

.hospital-image .hospital-image-click > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hospital-image .hospital-image-click > .hospital-image-placeholder-icon {
    position: absolute;
    inset: 0;
    margin: auto;
}
.hospital-image .hospital-image-click > i:first-of-type:not(.hospital-image-placeholder-icon) {
    position: relative;
    z-index: 0;
}

.hospital-content {
    padding: 24px;
}

.hospital-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.hospital-name > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hospital-address-line {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
    min-width: 0;
}
.hospital-address-block {
    margin-bottom: 10px;
}
.hospital-address-line--primary {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    min-width: 0;
    margin-bottom: 0;
}
.hospital-address-line--primary i {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 3px;
    flex-shrink: 0;
}
.hospital-address-line--primary span {
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.hospital-address-line--meta {
    margin-top: 4px;
    padding-left: 15px;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hospital-type-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.hospital-type-line .hospital-type {
    font-size: 13px;
    color: #2E9E80;
    font-weight: 600;
}
.hospital-type-line .hospital-location-inline {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hospital-type-line .hospital-location-inline::before {
    content: '·';
    color: #cbd5e1;
    font-weight: 700;
    margin-right: 2px;
}
.hospital-type-line .hospital-location-inline i {
    font-size: 10px;
    color: #94a3b8;
}

.hospital-rating {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

/* Stat pills: Beds, Doctors, Ambulance, ICU — grid on mobile, flex row on desktop */
.hospital-badges.hospital-badges-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 14px;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.hospital-badges-stats .stat-pill {
    display: inline-flex;
    flex: 1 1 calc(50% - 6px);
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    min-height: 32px;
    min-width: 0;
    max-width: calc(50% - 3px);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.hospital-badges-stats .stat-pill i {
    font-size: 10px;
    flex-shrink: 0;
    opacity: 0.95;
}

.hospital-badges-stats .stat-pill__text {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.stat-pill--beds {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(13, 148, 136, 0.1));
    color: #0f766e;
    border: 1px solid rgba(20, 184, 166, 0.28);
}

.stat-pill--doctors {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(37, 99, 235, 0.08));
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.26);
}

.stat-pill--ambulance {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.08));
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

@media (min-width: 768px) {
    .hospital-badges.hospital-badges-stats {
        display: flex;
        flex-wrap: nowrap;
    }
    .hospital-badges-stats .stat-pill {
        flex: 1 1 0;
        max-width: none;
        justify-content: center;
    }
}

.stat-pill--icu {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(124, 58, 237, 0.08));
    color: #6d28d9;
    border: 1px solid rgba(139, 92, 246, 0.26);
}

/* Legacy key badges (if used elsewhere) */
.hospital-badges.hospital-badges-key {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
}
.hospital-badges.hospital-badges-key .badge {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 10px;
    font-size: 11px;
}
.hospital-badges.hospital-badges-key .badge i {
    font-size: 10px;
    margin-right: 4px;
    opacity: 0.9;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-teal {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(13, 148, 136, 0.1));
    color: #0d9488;
    border: 1px solid rgba(20, 184, 166, 0.25);
}
.badge-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(124, 58, 237, 0.08));
    color: #6d28d9;
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.badge-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-rose {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(225, 29, 72, 0.08));
    color: #be123c;
    border: 1px solid rgba(244, 63, 94, 0.25);
}

/* Facilities/lab tags — hidden on listing cards (all screens); use Departments row + View Details */
.grid-view-container .hospital-facilities {
    display: none !important;
}

/* Facilities Section - varied badge styles */
.hospital-facilities {
    margin-bottom: 14px;
}
.hospital-facilities .facilities-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.facilities-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.facility-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.facility-badge i {
    font-size: 9px;
    opacity: 0.9;
}
.facility-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.badge-facility-teal { background: #ccfbf1; color: #0f766e; border: 1px solid rgba(15, 118, 110, 0.2); }
.badge-facility-amber { background: #fef3c7; color: #b45309; border: 1px solid rgba(180, 83, 9, 0.2); }
.badge-facility-indigo { background: #e0e7ff; color: #4338ca; border: 1px solid rgba(67, 56, 202, 0.2); }
.badge-facility-emerald { background: #d1fae5; color: #047857; border: 1px solid rgba(4, 120, 87, 0.2); }

/* "+X More" as last tag in same row as facility badges */
.facility-more-tag.btn-show-more-facilities {
    background: #f1f5f9;
    color: #2E9E80;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.facility-more-tag.btn-show-more-facilities:hover {
    background: #e0f2fe;
    color: #1A5C7E;
    border-color: #2E9E80;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeInFacility {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.facilities-expanded.show {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

.facilities-expanded.hide {
    animation: slideUp 0.3s ease-out;
}

.btn-show-more-facilities.active .more-icon {
    transform: rotate(180deg);
}

.facility-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    background: #C9E8E9;
    color: #1A5C7E;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(26, 92, 126, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 28px;
    height: 28px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.facility-badge:hover {
    background: #EBF5D9;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.facility-badge i {
    font-size: 9px;
    color: #2E9E80;
    flex-shrink: 0;
}

.facility-badge span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}


.hospital-card-highlight-on-image {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 12;
    max-width: calc(100% - 58px);
    pointer-events: none;
}
.hospital-card-highlight-on-image .hospital-card-highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #92400e;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.97), rgba(254, 243, 199, 0.97));
    border: 1px solid rgba(245, 158, 11, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(4px);
}
.hospital-card-highlight-on-image .hospital-card-highlight-pill i {
    font-size: 10px;
    color: #d97706;
}
.hospital-image:has(.hospital-card-highlight-on-image) .verified-badge {
    top: auto;
    bottom: 10px;
    right: 10px;
}

.hospital-departments {
    margin-bottom: 12px;
}
.hospital-departments__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.hospital-departments__head i {
    color: #6366f1;
    font-size: 10px;
}
.departments-badges {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}
.dept-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 42%;
}
.dept-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: min(120px, 36vw);
}
.dept-badge i {
    font-size: 9px;
    flex-shrink: 0;
}
.dept-more-tag,
.dept-badge.dept-more-tag {
    flex: 0 0 auto;
    max-width: none;
    cursor: pointer;
}
.badge-dept-violet {
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    color: #5b21b6;
    border-color: rgba(91, 33, 182, 0.18);
}
.badge-dept-slate {
    background: linear-gradient(135deg, #f1f5f9, #f8fafc);
    color: #334155;
    border-color: rgba(51, 65, 85, 0.12);
}
.badge-dept-sky {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    color: #0369a1;
    border-color: rgba(3, 105, 161, 0.18);
}
.dept-badge.dept-more-tag {
    background: #f8fafc;
    color: #4f46e5;
    border: 1px dashed rgba(79, 70, 229, 0.35);
    cursor: pointer;
    font-weight: 700;
}
.dept-badge.dept-more-tag:hover {
    background: #eef2ff;
    border-color: #6366f1;
}

.home-listing-cards-grid .hospital-departments {
    display: block;
    margin-bottom: 10px;
}
.home-listing-cards-grid .departments-badges {
    flex-wrap: wrap;
    overflow: visible;
    gap: 5px;
}
.home-listing-cards-grid .dept-badge {
    max-width: none;
    flex: 0 1 auto;
}
.home-listing-cards-grid .dept-badge span {
    max-width: 9rem;
}

.hospital-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-view-profile {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2E9E80 0%, #1A5C7E 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(26, 92, 126, 0.3);
}
.btn-view-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 92, 126, 0.4);
}
.verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #2E9E80 0%, #1A5C7E 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
    border: 2px solid white;
}

/* Offer cards — homepage listing parity */
:root {
    --offer-teal: #0d9488;
    --offer-teal-deep: #0f766e;
    --offer-teal-light: #14b8a6;
    --offer-card-radius: 16px;
    --offer-card-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --offer-card-shadow-hover: 0 12px 36px rgba(13, 148, 136, 0.14);
    --offer-accent-border: rgba(13, 148, 136, 0.15);
}

.home-listing-cards-grid .offer-card {
    position: relative;
    background: #fff;
    border-radius: var(--offer-card-radius);
    overflow: hidden;
    box-shadow: var(--offer-card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    height: 100%;
    min-width: 0;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
}

.home-listing-cards-grid .offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--offer-card-shadow-hover);
    border-color: rgba(13, 148, 136, 0.28);
}

.home-listing-cards-grid .offer-image {
    aspect-ratio: 4 / 3;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--offer-accent-border);
    background: linear-gradient(135deg, #0f766e, #0d9488);
}

.home-listing-cards-grid .offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    position: absolute;
    inset: 0;
}

.home-listing-cards-grid .offer-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, 0.55) 100%);
    pointer-events: none;
}

.home-listing-cards-grid .offer-image-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--offer-teal), var(--offer-teal-light), var(--offer-teal));
    opacity: 0.95;
    pointer-events: none;
}

.home-listing-cards-grid .discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    color: #fff;
    padding: 6px 11px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 10px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-listing-cards-grid .offer-content {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-listing-cards-grid .offer-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 12px;
    color: #475569;
    margin: 0 0 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.home-listing-cards-grid .offer-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.3;
}

.home-listing-cards-grid .offer-description-snippet {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-listing-cards-grid .offer-pricing-box {
    background: linear-gradient(165deg, #f8fafc 0%, #f0fdfa 55%, #ecfdf5 100%);
    border: 1px solid rgba(13, 148, 136, 0.18);
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.home-listing-cards-grid .offer-pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.home-listing-cards-grid .original-price {
    text-decoration: line-through;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

.home-listing-cards-grid .sale-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--offer-teal-deep);
}

.home-listing-cards-grid .offer-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 11px;
    color: #134e4a;
    font-weight: 600;
}

.home-listing-cards-grid .offer-savings {
    color: #0f766e;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}


#hospitals .home-listing-cards-grid .hospital-card *,
#offers .home-listing-cards-grid .offer-card * {
    max-width: none !important;
}

#hospitals .home-listing-cards-grid .dept-badge,
#hospitals .home-listing-cards-grid .dept-badge span {
    word-wrap: normal !important;
    overflow-wrap: normal !important;
}

#hospitals .home-listing-cards-grid,
#offers .home-listing-cards-grid {
    display: grid !important;
    overflow: visible !important;
    padding: 0 !important;
    flex-wrap: unset !important;
}

#hospitals .home-listing-cards-grid .hospital-card,
#offers .home-listing-cards-grid .offer-card {
    padding: 0 !important;
    margin-bottom: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    animation: fadeInUp 0.5s ease-out !important;
    overflow: hidden !important;
}

@media (max-width: 767px) {
    #hospitals .home-listing-cards-grid .hospital-card,
    #offers .home-listing-cards-grid .offer-card {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
    }

    #hospitals .home-listing-cards-grid .hospital-image {
        height: 180px !important;
    }

    #hospitals .home-listing-cards-grid .hospital-image i {
        font-size: 56px !important;
    }

    #hospitals .home-listing-cards-grid .hospital-content {
        padding: 16px !important;
    }

    #hospitals .home-listing-cards-grid .hospital-name {
        font-size: 17px !important;
        margin-bottom: 6px !important;
        -webkit-line-clamp: unset !important;
        display: flex !important;
    }

    #hospitals .home-listing-cards-grid .hospital-rating {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    #hospitals .home-listing-cards-grid .hospital-actions .btn-view-profile {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    #hospitals .home-listing-cards-grid .hospital-departments__head {
        font-size: 10px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.06em !important;
    }

    #hospitals .home-listing-cards-grid .departments-badges {
        flex-wrap: wrap !important;
        overflow: visible !important;
    }

    #hospitals .home-listing-cards-grid .dept-badge {
        font-size: 10px !important;
        padding: 4px 8px !important;
        max-width: none !important;
    }

    #hospitals .home-listing-cards-grid .dept-badge span {
        max-width: 9rem !important;
    }

    #offers .home-listing-cards-grid .offer-card {
        min-height: 380px !important;
    }

    #offers .home-listing-cards-grid .offer-image {
        height: auto !important;
        min-height: 190px !important;
        aspect-ratio: 16 / 10 !important;
    }

    #offers .home-listing-cards-grid .offer-meta-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    #offers .home-listing-cards-grid .offer-meta-line .meta-dot {
        display: none;
    }

    #offers .home-listing-cards-grid .offer-content {
        padding: 16px !important;
    }

    #offers .home-listing-cards-grid .offer-title {
        font-size: 16px !important;
    }

    #offers .home-listing-cards-grid .sale-price {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 420px) {
    #offers .home-listing-cards-grid .offer-meta {
        flex-direction: column;
        align-items: stretch;
    }
}

