/* Directory-only cover cards. Elementor grid, filters and public showroom pages remain independent. */
body .pa-showrooms-list .jet-listing-grid__item:has(.pa-sdc),
body .pa-showrooms-list .jet-listing-grid__item:has(.pa-sdc) > div,
body .pa-showrooms-list .jet-listing-grid__item:has(.pa-sdc) > div > .elementor {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* Let JetEngine retain each item's responsive column width. Only inner
   wrappers grow to fill the item; flex: 1 on the item resets its basis. */
body .pa-showrooms-list .jet-listing-grid__item:has(.pa-sdc) > div,
body .pa-showrooms-list .jet-listing-grid__item:has(.pa-sdc) > div > .elementor {
    flex: 1;
    width: 100%;
}
body .pa-showrooms-list .pa-showroom-list-card.e-con:has(.pa-sdc),
body .pa-showrooms-list .pa-showroom-list-card:has(.pa-sdc) > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100%;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
}
body .pa-showrooms-list .pa-showroom-list-card.e-con:has(.pa-sdc) {
    border: 1px solid #e5e9ef !important;
    border-radius: 20px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(15,23,42,.035) !important;
}
body .pa-showrooms-list .pa-showroom-list-card:has(.pa-sdc) :is(.pa-showroom-list-logo,.pa-showroom-list-head,.pa-showroom-list-city) {
    display: none !important;
}
body .pa-showrooms-list .jet-listing-grid__item:has(.pa-sdc) .jet-engine-listing-overlay-link {
    display: none !important;
}
body .pa-showrooms-list .pa-showroom-list-card:has(.pa-sdc) .pa-showroom-list-ads,
body .pa-showrooms-list .pa-showroom-list-card:has(.pa-sdc) .pa-showroom-list-ads :is(.elementor-widget-container,.elementor-shortcode) {
    display: flex !important;
    flex: 1 !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
body .pa-showrooms-list .pa-showroom-list-card a.pa-sdc,
body .pa-showrooms-list .pa-showroom-list-card a.pa-sdc:is(:hover,:visited,:active) {
    display: flex !important;
    flex-direction: column !important;
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    color: #172033 !important;
    background: #fff !important;
    text-decoration: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit;
    text-align: right;
    direction: rtl;
    position: relative;
    z-index: 2;
}
body .pa-showrooms-list .pa-sdc:focus-visible {outline: 2px solid #ed1c24; outline-offset: -3px;}
body .pa-showrooms-list .pa-sdc * {box-sizing: border-box;}
body .pa-showrooms-list .pa-sdc .pa-sdc-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    overflow: hidden;
    background: #eef1f5;
}
body .pa-showrooms-list .pa-sdc .pa-sdc-cover-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    transition: transform .25s ease;
}
body .pa-showrooms-list .pa-sdc .pa-sdc-cover.is-placeholder {
    background: radial-gradient(ellipse at 18% 15%, #ffe9eb 0, transparent 55%),
        linear-gradient(140deg, #f8fafc, #eef1f5);
}
body .pa-showrooms-list .pa-sdc .pa-sdc-cover.is-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../../images/showroom-directory-cover-soft.webp") center / cover no-repeat;
    opacity: .36;
}
body .pa-showrooms-list .pa-sdc .pa-sdc-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    padding: 0 18px 18px;
}
body .pa-showrooms-list .pa-sdc .pa-sdc-identity {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: -36px;
    margin-bottom: -2px;
}
body .pa-showrooms-list .pa-sdc .pa-sdc-logo {
    display: grid;
    place-items: center;
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    margin: 0;
    border: 4px solid #fff;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15,23,42,.09);
    color: #8b96a7;
    overflow: hidden;
}
body .pa-showrooms-list .pa-sdc .pa-sdc-logo img {width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; border-radius: 13px;}
body .pa-showrooms-list .pa-sdc .pa-sdc-logo svg {width: 36px; height: 36px;}
body .pa-showrooms-list .pa-sdc .pa-sdc-heading {display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; min-width: 0;}
body .pa-showrooms-list .pa-sdc h3.pa-sdc-name {
    margin: 0 !important;
    color: #172033 !important;
    font-family: inherit;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
    overflow-wrap: anywhere;
}
body .pa-showrooms-list .pa-sdc .pa-sdc-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #cde9da;
    border-radius: 999px;
    background: #f6fcf8;
    color: #176442 !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .09);
    white-space: nowrap;
}
body .pa-showrooms-list .pa-sdc .pa-sdc-verified span {
    color: inherit !important;
    font-family: inherit;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}
body .pa-showrooms-list .pa-sdc .pa-sdc-verified svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #168456;
}
body .pa-showrooms-list .pa-sdc .pa-sdc-details {display: grid; align-content: start; gap: 4px; min-height: 49px; min-width: 0;}
body .pa-showrooms-list .pa-sdc p.pa-sdc-location,
body .pa-showrooms-list .pa-sdc p.pa-sdc-address {margin: 0 !important; font-family: inherit; font-size: 12.5px !important; font-weight: 400 !important; line-height: 1.9 !important; color: #778296 !important;}
body .pa-showrooms-list .pa-sdc .pa-sdc-location {display: flex; align-items: center; gap: 5px;}
body .pa-showrooms-list .pa-sdc .pa-sdc-location span {font-size: inherit !important; font-weight: 400 !important; line-height: inherit !important; color: inherit !important;}
body .pa-showrooms-list .pa-sdc .pa-sdc-location svg {width: 15px; height: 15px; flex-shrink: 0; color: #e24951 !important;}
body .pa-showrooms-list .pa-sdc .pa-sdc-address {white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}
body .pa-showrooms-list .pa-sdc .pa-sdc-action,
body .pa-showrooms-list .pa-sdc .pa-sdc-action span,
body .pa-showrooms-list .pa-sdc .pa-sdc-action b {font-size: 13px !important; font-weight: 500 !important; line-height: 1.8 !important;}
body .pa-showrooms-list .pa-sdc .pa-sdc-action {display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; margin-top: auto; padding: 8px 12px; border: 1px solid #e3e7ed; border-radius: 12px; background: #f8f9fb; color: #344054; transition: background .2s,border-color .2s;}
body .pa-showrooms-list .pa-sdc .pa-sdc-action b {color: #172033; font-weight: 700 !important;}
body .pa-showrooms-list .pa-sdc .pa-sdc-action svg {width: 18px; height: 18px; color: #ed1c24 !important;}
@media (hover: hover) {
    body .pa-showrooms-list .pa-sdc:hover .pa-sdc-cover-image {transform: scale(1.025);}
    body .pa-showrooms-list .pa-sdc:hover .pa-sdc-action {background: #fff4f5; border-color: #f3cbd0;}
}
@media (max-width: 767px) {
    body .pa-showrooms-list .jet-listing-grid__items:has(> .jet-listing-grid__item .pa-sdc) {
        --columns: 1;
        flex-wrap: wrap !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }
    body .pa-showrooms-list .jet-listing-grid__items > .jet-listing-grid__item:has(.pa-sdc) {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body .pa-showrooms-list .pa-showroom-list-card.e-con:has(.pa-sdc) {border-radius: 18px !important;}
    body .pa-showrooms-list .pa-sdc .pa-sdc-body {padding: 0 16px 16px; gap: 11px;}
    body .pa-showrooms-list .pa-sdc h3.pa-sdc-name {font-size: 18px !important;}
}
@media (prefers-reduced-motion: reduce) {
    body .pa-showrooms-list .pa-sdc .pa-sdc-cover-image {transition: none; transform: none !important;}
}
