.er-shell {
    background: #f5f8fb;
    color: #0f172a;
}

.er-hero {
    min-height: 78vh;
    display: flex;
    align-items: end;
    background-image: linear-gradient(180deg, rgba(6, 18, 38, .18), rgba(6, 18, 38, .82)), url('/images/easycm4.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.er-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0 44px;
}

.er-hero h1 {
    max-width: 780px;
    font-size: clamp(2.1rem, 5vw, 5rem);
    line-height: .98;
    font-weight: 800;
    letter-spacing: 0;
}

.er-search {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 10px;
    max-width: 1040px;
    margin-top: 28px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 44px rgba(3, 9, 23, .22);
}

.er-search input,
.er-search select,
.er-search .form-control {
    min-height: 52px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
}

.er-btn {
    border: 0;
    border-radius: 6px;
    padding: 12px 18px;
    font-weight: 800;
    background: #f97316;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.er-btn.secondary {
    background: #0f766e;
}

.er-band {
    padding: 48px 0;
}

.er-container {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.er-section-title {
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 18px;
}

.er-category-grid,
.er-listing-grid,
.er-stats-grid {
    display: grid;
    gap: 16px;
}

.er-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.er-listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.er-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.er-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.er-category {
    min-height: 132px;
    padding: 18px;
    color: #0f172a;
    text-decoration: none;
}

.er-category i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #fff;
    margin-bottom: 16px;
}

.er-media {
    height: 180px;
    background: #101827;
    position: relative;
}

.er-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.er-media-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #0f766e, #1d4ed8 55%, #f97316);
}

.er-card-body {
    padding: 14px;
}

.er-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #e6f7f3;
    color: #047857;
    font-size: .78rem;
    font-weight: 800;
}

.er-price {
    font-weight: 900;
    color: #0f766e;
}

.er-filters {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}

.er-filter-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr) auto;
    gap: 10px;
}

.er-detail-hero {
    background: #071225;
    color: #fff;
    padding: 28px 0;
}

.er-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.er-gallery img,
.er-gallery .er-media-fallback {
    height: 360px;
    border-radius: 8px;
    object-fit: cover;
}

.er-side-panel {
    position: sticky;
    top: 20px;
    border-radius: 8px;
    border: 1px solid #dbe3ef;
    background: #fff;
    padding: 18px;
}

.er-dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.er-nav-panel {
    background: #071225;
    color: #fff;
    border-radius: 8px;
    padding: 18px;
}

.er-nav-panel a {
    display: block;
    color: #dbeafe;
    text-decoration: none;
    padding: 10px 0;
}

@media (max-width: 992px) {
    .er-search,
    .er-filter-grid,
    .er-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .er-category-grid,
    .er-listing-grid,
    .er-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .er-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .er-hero {
        min-height: 86vh;
    }

    .er-hero-inner {
        width: min(100% - 20px, 1180px);
        padding-bottom: 24px;
    }

    .er-category-grid,
    .er-listing-grid,
    .er-stats-grid {
        grid-template-columns: 1fr;
    }

    .er-media {
        height: 160px;
    }
}

/* --------------------------------------------------------------------------
   EASYRENT marketplace mobile 2026
   -------------------------------------------------------------------------- */

.er-mobile-page {
    --er-accent: #0969ff;
    --er-soft: #eaf3ff;
    --er-ink: #0b1734;
    --er-muted: #71798e;
    --er-line: #e8ebf2;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 28px clamp(16px, 3vw, 34px) 60px;
    color: var(--er-ink);
    background: #fff;
    font-family: var(--ecm-font-body);
}

.er-mobile-page *,
.er-mobile-page *::before,
.er-mobile-page *::after {
    box-sizing: border-box;
}

.er-mobile-page a {
    color: inherit;
    text-decoration: none;
}

.er-sprite {
    display: block;
    background-image: url("/images/easyrent/easyrent-category-sprite.png");
    background-repeat: no-repeat;
    background-size: 400% 200%;
    background-position: 0 0;
}

.er-sprite[data-er-sprite="0"] { background-position: 0 0; }
.er-sprite[data-er-sprite="1"] { background-position: 33.333% 0; }
.er-sprite[data-er-sprite="2"] { background-position: 66.666% 0; }
.er-sprite[data-er-sprite="3"] { background-position: 100% 0; }
.er-sprite[data-er-sprite="4"] { background-position: 0 100%; }
.er-sprite[data-er-sprite="5"] { background-position: 33.333% 100%; }
.er-sprite[data-er-sprite="6"] { background-position: 66.666% 100%; }
.er-sprite[data-er-sprite="7"] { background-position: 100% 100%; }

.er-home-header,
.er-catalog-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.er-logo {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    color: #0d1831 !important;
}

.er-logo > i {
    grid-row: 1 / span 2;
    color: #1268e9;
    font-size: 1.65rem;
    transform: translateY(-3px);
}

.er-logo > span {
    font-size: 1.65rem;
    font-weight: 950;
    letter-spacing: -.065em;
    line-height: .95;
}

.er-logo > span strong {
    color: #1268e9;
}

.er-logo > small {
    margin-top: 5px;
    color: #70798d;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: 0;
}

.er-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.er-icon-btn {
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(15, 30, 60, .05);
    border-radius: 15px;
    color: var(--er-ink);
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 43, 81, .08);
    font-size: 1.08rem;
}

.er-notification span,
.er-dock-message b {
    position: absolute;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #ff3348;
    font-size: .58rem;
    font-weight: 900;
}

.er-notification span {
    top: -4px;
    right: -3px;
    min-width: 20px;
    height: 20px;
}

.er-quick-menu {
    position: absolute;
    z-index: 30;
    top: 58px;
    right: 0;
    width: min(280px, calc(100vw - 28px));
    padding: 9px;
    border: 1px solid var(--er-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 50px rgba(13, 32, 66, .17);
}

.er-quick-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 800;
}

.er-quick-menu a:hover {
    color: #0969ff;
    background: #eef5ff;
}

.er-home-intro {
    margin: 30px 0 18px;
}

.er-home-intro p {
    margin: 0 0 8px;
    color: #626b80;
    font-size: 1.05rem;
    font-weight: 700;
}

.er-home-intro p strong {
    color: #0969ff;
}

.er-home-intro h1 {
    margin: 0;
    max-width: 720px;
    color: #0b1734 !important;
    font-family: var(--ecm-font-display) !important;
    font-size: clamp(2.15rem, 5.5vw, 4.6rem) !important;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -.055em;
}

.er-mobile-search {
    min-height: 62px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 9px;
    padding: 6px 8px 6px 19px;
    border: 1px solid var(--er-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(25, 48, 87, .1);
}

.er-mobile-search > i {
    color: #26334e;
    font-size: 1.3rem;
}

.er-mobile-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #18223a;
    background: transparent;
    font-size: .88rem;
    font-weight: 600;
}

.er-mobile-search input::placeholder {
    color: #9aa2b5;
}

.er-mobile-search button {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--er-accent, #0969ff);
    font-size: 1.1rem;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--er-accent, #0969ff) 28%, transparent);
}

.er-mobile-search button.is-listening {
    animation: er-pulse 1s ease-in-out infinite;
}

@keyframes er-pulse {
    50% { transform: scale(.9); box-shadow: 0 0 0 9px color-mix(in srgb, var(--er-accent, #0969ff) 18%, transparent); }
}

.er-location {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 2px 15px;
    color: #15213b;
    font-size: .85rem;
    font-weight: 850;
}

.er-location i:first-child {
    color: var(--er-accent, #0969ff);
}

.er-location i:last-child {
    color: #49536a;
    font-size: .58rem;
}

.er-home-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.er-home-category {
    min-width: 0;
    min-height: 150px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 8px 14px;
    border: 1px solid #edf0f5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 9px 25px rgba(24, 43, 76, .07);
    text-align: center;
}

.er-home-category .er-sprite {
    width: 100%;
    flex: 1 1 auto;
    min-height: 92px;
    border-radius: 15px;
}

.er-home-category strong {
    max-width: 100%;
    overflow: hidden;
    color: #15213b;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.er-home-category small {
    display: none;
    color: #8991a3;
    font-size: .62rem;
}

.er-security-banner {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) minmax(180px, .75fr);
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 26px;
    border-radius: 25px;
    color: #fff !important;
    background: linear-gradient(115deg, #0b2cb5 0%, #075fe4 56%, #0ca4f4 100%);
    box-shadow: 0 16px 34px rgba(14, 85, 209, .2);
}

.er-security-banner__icon {
    width: 68px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 5px solid #e8fff3;
    border-radius: 22px 22px 28px 28px;
    color: #fff;
    background: #27b768;
    font-size: 1.8rem;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.18);
}

.er-security-banner > span:nth-child(2) {
    position: relative;
    z-index: 3;
}

.er-security-banner strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.25;
}

.er-security-banner small {
    display: block;
    margin-top: 10px;
    color: rgba(255,255,255,.86);
    font-size: .68rem;
    font-weight: 700;
}

.er-security-banner small i {
    color: #4de88e;
}

.er-security-banner__photo {
    position: absolute;
    inset: 0 0 0 auto;
    width: 38%;
    opacity: .72;
    mask-image: linear-gradient(90deg, transparent, #000 45%);
}

.er-security-banner > b {
    position: absolute;
    z-index: 4;
    right: 18px;
    bottom: 18px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 999px;
    color: #122041;
    background: #fff;
    font-size: .72rem;
}

.er-home-recommendations,
.er-results,
.er-popular-categories {
    margin-top: 28px;
}

.er-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.er-section-heading h2,
.er-popular-categories h2 {
    margin: 0;
    color: #101c37 !important;
    font-family: var(--ecm-font-display) !important;
    font-size: 1.28rem !important;
    font-weight: 950;
    letter-spacing: -.035em;
}

.er-section-heading > a {
    color: #0969ff;
    font-size: .76rem;
    font-weight: 850;
    white-space: nowrap;
}

.er-section-heading > span {
    color: #6c7487;
    font-size: .74rem;
    white-space: nowrap;
}

.er-section-heading > span strong {
    color: var(--er-accent, #0969ff);
}

.er-card-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 30%);
    gap: 14px;
    overflow-x: auto;
    padding: 1px 1px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.er-card-rail::-webkit-scrollbar,
.er-tile-rail::-webkit-scrollbar,
.er-filter-rail::-webkit-scrollbar {
    display: none;
}

.er-market-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e9ecf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(20, 38, 70, .07);
}

.er-market-card__media {
    position: relative;
    height: 190px;
    overflow: hidden;
    display: block;
    background: #eef3f8;
}

.er-market-card__media img,
.er-market-card__media > .er-sprite {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.er-market-card:hover .er-market-card__media img,
.er-market-card:hover .er-market-card__media > .er-sprite {
    transform: scale(1.035);
}

.er-verified {
    position: absolute;
    top: 9px;
    left: 9px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 7px;
    color: #08913c;
    background: #dff9e8;
    box-shadow: 0 3px 9px rgba(0,0,0,.08);
    font-size: .61rem;
    font-weight: 900;
}

.er-favorite-form,
.er-favorite-button {
    position: absolute;
    z-index: 3;
    top: 9px;
    right: 9px;
}

.er-favorite-form button,
.er-favorite-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #172139;
    background: rgba(255,255,255,.96);
    box-shadow: 0 4px 12px rgba(15,28,51,.12);
    font-size: .92rem;
}

.er-market-card__body {
    display: block;
    padding: 13px 14px 14px;
}

.er-market-card__body h3 {
    font-family: var(--ecm-font-display) !important;
    min-height: 2.45em;
    margin: 0 0 5px;
    overflow: hidden;
    color: #111b32;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.er-market-card__body p {
    margin: 0 0 8px;
    overflow: hidden;
    color: #82899a;
    font-size: .65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.er-market-card__body > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--er-accent, #0969ff);
    font-size: .84rem;
    font-weight: 950;
    white-space: nowrap;
}

.er-market-card__body > strong small {
    color: #70788c;
    font-size: .62rem;
    font-weight: 650;
}

.er-market-card__body > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #263148;
    font-size: .63rem;
    font-weight: 800;
}

.er-market-card__body > div .fa-star {
    color: #ffaf00;
}

.er-market-card__body .is-available {
    color: #16a34a;
    white-space: nowrap;
}

.er-market-card__body .is-available i {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 3px;
    border-radius: 50%;
    background: #20ba5a;
}

.er-trust-grid,
.er-catalog-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 22px;
    padding: 18px 8px;
    border: 1px solid #edf0f5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 39, 72, .06);
}

.er-trust-grid > div,
.er-catalog-trust > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 10px;
    border-right: 1px solid #e8ebf1;
    text-align: center;
}

.er-trust-grid > div:last-child,
.er-catalog-trust > div:last-child {
    border-right: 0;
}

.er-trust-grid i,
.er-catalog-trust i {
    margin-bottom: 8px;
    color: #126cff;
    font-size: 1.6rem;
}

.er-trust-grid > div:nth-child(2) i { color: #ffab12; }
.er-trust-grid > div:nth-child(3) i { color: #19b765; }
.er-trust-grid > div:nth-child(4) i { color: #7c3aed; }

.er-trust-grid strong,
.er-catalog-trust strong {
    color: #14203a;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.15;
}

.er-trust-grid small,
.er-catalog-trust small {
    margin-top: 5px;
    color: #7d8495;
    font-size: .55rem;
    line-height: 1.35;
}

/* Catalog */
.er-catalog-header {
    min-height: 62px;
}

.er-catalog-header > div:nth-child(2) {
    min-width: 0;
    flex: 1;
    text-align: center;
}

.er-catalog-header h1 {
    margin: 0;
    color: #101a31 !important;
    font-family: var(--ecm-font-display) !important;
    font-size: 1.45rem !important;
    font-weight: 950;
    letter-spacing: -.035em;
}

.er-catalog-header p {
    margin: 5px 0 0;
    color: #747c90;
    font-size: .76rem;
    font-weight: 600;
}

.er-catalog-page > .er-mobile-search {
    margin-top: 18px;
}

.er-tile-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 1px 1px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.er-catalog-tile {
    flex: 0 0 124px;
    min-height: 136px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1.5px solid #edf0f4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 40, 75, .07);
    scroll-snap-align: start;
    text-align: center;
}

.er-catalog-tile.is-active {
    border-color: var(--er-accent);
    color: var(--er-accent);
    background: color-mix(in srgb, var(--er-soft) 55%, #fff);
}

.er-catalog-tile > span {
    width: 66px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--er-accent);
    background: var(--er-soft);
    font-size: 2rem;
}

.er-catalog-tile strong {
    max-width: 100%;
    overflow: hidden;
    color: currentColor;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
}

.er-catalog-tile small {
    color: #7d8598;
    font-size: .62rem;
}

.er-filter-rail {
    display: flex;
    align-items: center;
    gap: 9px;
    overflow-x: auto;
    margin-top: 4px;
    padding: 1px 1px 12px;
    scrollbar-width: none;
}

.er-filter-rail button,
.er-filter-rail select {
    flex: 0 0 auto;
    min-height: 43px;
    padding: 0 17px;
    border: 1px solid #e5e8ef;
    border-radius: 999px;
    color: #1d2840;
    background: #fff;
    box-shadow: 0 5px 14px rgba(23, 43, 76, .04);
    outline: 0;
    font-size: .72rem;
    font-weight: 800;
}

.er-filter-rail button i {
    margin-left: 8px;
    font-size: .65rem;
}

.er-filter-rail .is-accent {
    color: var(--er-accent);
    background: var(--er-soft);
}

.er-filter-rail.is-expanded {
    flex-wrap: wrap;
    overflow: visible;
}

.er-catalog-hero {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(270px, .9fr);
    align-items: center;
    margin-top: 10px;
    border: 1px solid color-mix(in srgb, var(--er-accent) 16%, #e8edf6);
    border-radius: 23px;
    background: linear-gradient(115deg, var(--er-soft), #fff 56%, var(--er-soft));
}

.er-catalog-hero > div:first-child {
    position: relative;
    z-index: 2;
    padding: 28px 30px;
}

.er-catalog-hero h2 {
    max-width: 520px;
    margin: 0 0 10px;
    color: #111c36 !important;
    font-family: var(--ecm-font-display) !important;
    font-size: 1.65rem !important;
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.er-catalog-hero p {
    max-width: 480px;
    margin: 0 0 20px;
    color: #626d82;
    font-size: .85rem;
    font-weight: 650;
}

.er-catalog-hero > div:first-child > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
    color: #28354e;
    font-size: .62rem;
    font-weight: 800;
}

.er-catalog-hero > div:first-child > span i {
    color: var(--er-accent);
}

.er-catalog-hero__photo {
    align-self: stretch;
    min-height: 190px;
    mask-image: linear-gradient(90deg, transparent, #000 24%);
}

.er-listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.er-pagination {
    margin-top: 22px;
}

.er-popular-categories > div {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px;
}

.er-popular-categories a {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(20, 40, 75, .05);
    text-align: center;
}

.er-popular-categories a i {
    color: var(--er-accent);
    font-size: 1.35rem;
}

.er-popular-categories a span {
    font-size: .66rem;
    font-weight: 900;
}

.er-owner-cta {
    min-height: 100px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: 21px;
    color: #fff !important;
    background: linear-gradient(115deg, #071e67, #07399a 60%, #075ee0);
    box-shadow: 0 13px 30px rgba(7, 47, 135, .18);
}

.er-owner-cta > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 5px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #ff9820;
    font-size: 1.2rem;
}

.er-owner-cta > strong {
    font-size: .92rem;
    font-weight: 900;
}

.er-owner-cta > strong small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.78);
    font-size: .68rem;
    font-weight: 600;
}

.er-owner-cta > b {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    border-radius: 999px;
    color: #13203d;
    background: #fff;
    font-size: .72rem;
}

/* Dedicated EasyRent dock */
.er-mobile-dock {
    position: fixed;
    z-index: 2147483600;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 78px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding: 7px 9px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e9ecf2;
    border-radius: 26px 26px 0 0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -10px 34px rgba(18, 36, 67, .11);
    backdrop-filter: blur(16px);
}

.er-mobile-dock > a {
    position: relative;
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #4d566b;
    text-decoration: none;
    font-size: .62rem;
    font-weight: 750;
}

.er-mobile-dock > a i {
    color: #16223a;
    font-size: 1.25rem;
}

.er-mobile-dock > a.is-active,
.er-mobile-dock > a.is-active i {
    color: var(--er-accent, #0969ff);
}

.er-mobile-dock .er-dock-publish {
    transform: translateY(-14px);
}

.er-mobile-dock .er-dock-publish i {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 5px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--er-accent, #0969ff);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--er-accent, #0969ff) 28%, transparent);
    font-size: 1.25rem;
}

.er-dock-message b {
    top: 1px;
    right: calc(50% - 19px);
    min-width: 18px;
    height: 18px;
}

@media (min-width: 768px) {
    .er-mobile-dock {
        display: none !important;
    }

    .er-home-category small {
        display: block;
    }
}

@media (max-width: 767.98px) {
    html,
    body:has(.er-mobile-page) {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    body:has(.er-mobile-page) {
        padding-top: 0 !important;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
        background: #fff !important;
    }

    body:has(.er-mobile-page) #ecm-nav,
    body:has(.er-mobile-page) .ecm-footer-wave,
    body:has(.er-mobile-page) .ecm-footer,
    body:has(.er-mobile-page) .ecm-back-top,
    body:has(.er-mobile-page) #globalChatToggle,
    body:has(.er-mobile-page) .global-chat-container {
        display: none !important;
    }

    body.ecm-theme-font-diamond:has(.er-mobile-page) main h1,
    body.ecm-theme-font-diamond:has(.er-mobile-page) main h2 {
        animation: none !important;
        background: none !important;
        background-clip: border-box !important;
        -webkit-background-clip: border-box !important;
        -webkit-text-fill-color: currentColor !important;
    }

    .er-mobile-page {
        width: 100%;
        max-width: 100%;
        padding: 17px 15px 26px;
    }

    .er-logo {
        grid-template-columns: 28px 1fr;
    }

    .er-logo > i {
        font-size: 1.3rem;
    }

    .er-logo > span {
        font-size: 1.45rem;
    }

    .er-logo > small {
        font-size: .59rem;
    }

    .er-icon-btn {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .er-home-intro {
        margin-top: 27px;
    }

    .er-home-intro h1 {
        font-size: clamp(2rem, 9vw, 2.65rem) !important;
    }

    .er-mobile-search {
        min-height: 60px;
    }

    .er-home-categories {
        gap: 10px;
    }

    .er-home-category {
        min-height: 112px;
        padding: 7px 6px 10px;
        border-radius: 18px;
    }

    .er-home-category .er-sprite {
        min-height: 70px;
        border-radius: 13px;
    }

    .er-home-category strong {
        font-size: .68rem;
    }

    .er-security-banner {
        min-height: 150px;
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 12px;
        padding: 20px 15px;
        border-radius: 21px;
    }

    .er-security-banner__icon {
        width: 52px;
        height: 60px;
        border-width: 4px;
        border-radius: 16px 16px 21px 21px;
        font-size: 1.25rem;
    }

    .er-security-banner strong {
        font-size: 1rem;
    }

    .er-security-banner small {
        max-width: 205px;
        font-size: .56rem;
    }

    .er-security-banner__photo {
        width: 43%;
        opacity: .45;
    }

    .er-security-banner > b {
        right: 12px;
        bottom: 12px;
        min-height: 34px;
        padding: 0 12px;
        font-size: .59rem;
    }

    .er-section-heading h2,
    .er-popular-categories h2 {
        font-size: 1.05rem !important;
    }

    .er-card-rail {
        grid-auto-columns: 72%;
    }

    .er-market-card__media {
        height: 150px;
    }

    .er-trust-grid,
    .er-catalog-trust {
        padding: 15px 3px;
    }

    .er-trust-grid > div,
    .er-catalog-trust > div {
        padding: 2px 5px;
    }

    .er-trust-grid i,
    .er-catalog-trust i {
        font-size: 1.25rem;
    }

    .er-trust-grid strong,
    .er-catalog-trust strong {
        font-size: .58rem;
    }

    .er-trust-grid small,
    .er-catalog-trust small {
        font-size: .49rem;
    }

    .er-catalog-header {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .er-catalog-header h1 {
        font-size: 1.15rem !important;
    }

    .er-catalog-header p {
        overflow: hidden;
        font-size: .65rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .er-catalog-header .er-header-actions {
        gap: 6px;
    }

    .er-catalog-header .er-header-actions .er-icon-btn {
        width: 40px;
        height: 40px;
    }

    .er-tile-rail {
        gap: 8px;
    }

    .er-catalog-tile {
        flex-basis: 106px;
        min-height: 124px;
        border-radius: 18px;
    }

    .er-catalog-tile > span {
        width: 58px;
        height: 52px;
        font-size: 1.65rem;
    }

    .er-catalog-tile strong {
        font-size: .69rem;
    }

    .er-catalog-tile small {
        font-size: .54rem;
    }

    .er-filter-rail button,
    .er-filter-rail select {
        min-height: 40px;
        padding-inline: 14px;
        font-size: .65rem;
    }

    .er-catalog-hero {
        min-height: 170px;
        grid-template-columns: minmax(0, 1.25fr) minmax(125px, .75fr);
        border-radius: 20px;
    }

    .er-catalog-hero > div:first-child {
        padding: 20px 12px 20px 18px;
    }

    .er-catalog-hero h2 {
        font-size: 1.2rem !important;
    }

    .er-catalog-hero p {
        margin-bottom: 13px;
        font-size: .68rem;
    }

    .er-catalog-hero > div:first-child > span {
        display: flex;
        margin: 5px 0 0;
        font-size: .53rem;
    }

    .er-catalog-hero__photo {
        min-height: 170px;
    }

    .er-results {
        margin-top: 24px;
    }

    .er-results .er-section-heading {
        align-items: flex-end;
    }

    .er-results .er-section-heading > span {
        font-size: .6rem;
    }

    .er-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .er-listing-grid .er-market-card {
        border-radius: 15px;
    }

    .er-listing-grid .er-market-card__media {
        height: 126px;
    }

    .er-listing-grid .er-market-card__body {
        padding: 10px;
    }

    .er-listing-grid .er-market-card__body h3 {
        font-size: .72rem;
    }

    .er-listing-grid .er-market-card__body p {
        font-size: .55rem;
    }

    .er-listing-grid .er-market-card__body > strong {
        font-size: .7rem;
    }

    .er-listing-grid .er-market-card__body > strong small,
    .er-listing-grid .er-market-card__body > div {
        font-size: .52rem;
    }

    .er-verified {
        top: 7px;
        left: 7px;
        min-height: 20px;
        font-size: .51rem;
    }

    .er-favorite-form,
    .er-favorite-button {
        top: 7px;
        right: 7px;
    }

    .er-favorite-form button,
    .er-favorite-button {
        width: 30px;
        height: 30px;
        font-size: .78rem;
    }

    .er-popular-categories > div {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .er-popular-categories a {
        min-height: 78px;
    }

    .er-catalog-trust small {
        display: none;
    }

    .er-owner-cta {
        min-height: 88px;
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 14px;
    }

    .er-owner-cta > span {
        width: 44px;
        height: 44px;
        border-width: 4px;
    }

    .er-owner-cta > strong {
        font-size: .7rem;
    }

    .er-owner-cta > strong small {
        font-size: .54rem;
    }

    .er-owner-cta > b {
        min-height: 36px;
        padding: 0 12px;
        font-size: .6rem;
    }
}

@media (max-width: 380px) {
    .er-mobile-page {
        padding-inline: 12px;
    }

    .er-home-categories {
        gap: 7px;
    }

    .er-home-category {
        min-height: 104px;
    }

    .er-home-category .er-sprite {
        min-height: 64px;
    }

    .er-home-category strong {
        font-size: .61rem;
    }

    .er-catalog-header .er-header-actions .er-icon-btn:last-child {
        display: none;
    }

    .er-catalog-header {
        grid-template-columns: 40px minmax(0, 1fr) 42px;
    }
}

/* --------------------------------------------------------------------------
   Publish & owner publications
   -------------------------------------------------------------------------- */
.er-publish-page,
.er-publications-page {
    max-width: 940px;
    padding-bottom: 80px;
    background: #f8faff;
}

.er-publish-header,
.er-publications-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.er-publish-header > div,
.er-publications-header > div {
    text-align: center;
}

.er-publish-header h1,
.er-publications-header h1 {
    margin: 0;
    color: #0b1734 !important;
    font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
    font-weight: 950;
    letter-spacing: -.035em;
}

.er-publish-header p,
.er-publications-header p {
    margin: 4px 0 0;
    color: #798298;
    font-size: .78rem;
    font-weight: 650;
}

.er-publish-my-link,
.er-publications-add {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid #dce8ff;
    border-radius: 14px;
    color: #0969ff !important;
    background: #fff;
    font-size: .72rem;
    font-weight: 850;
}

.er-publish-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 22px 12px;
    border: 1px solid #edf0f5;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 54, 92, .07);
}

.er-publish-benefits > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    border-right: 1px solid #e7ebf2;
    text-align: center;
}

.er-publish-benefits > div:last-child { border-right: 0; }
.er-publish-benefits i { margin-bottom: 10px; color: #0969ff; font-size: 1.65rem; }
.er-publish-benefits > div:nth-child(2) i { color: #42bf77; }
.er-publish-benefits > div:nth-child(3) i { color: #8056ed; }
.er-publish-benefits > div:nth-child(4) i { color: #f59613; }
.er-publish-benefits strong { color: #15213b; font-size: .72rem; font-weight: 900; }
.er-publish-benefits small { margin-top: 4px; color: #8991a4; font-size: .62rem; }

.er-publish-form { margin-top: 28px; }
.er-publish-section { margin-top: 27px; }
.er-publish-section h2 {
    margin: 0 0 16px;
    color: #101c37 !important;
    font-size: 1.08rem !important;
    font-weight: 950;
    letter-spacing: -.02em;
}
.er-publish-section h2 > span { color: #0969ff; }
.er-publish-section h2 small { color: #858da0; font-size: .65em; font-weight: 650; }

.er-publish-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.er-publish-section-heading > small { margin: 0 0 16px; color: #0969ff; font-size: .68rem; font-weight: 750; }

.er-publish-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.er-publish-category {
    position: relative;
    min-width: 0;
    min-height: 132px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 8px 8px 13px;
    border: 1.5px solid #edf0f5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(25, 46, 82, .055);
    cursor: pointer;
}
.er-publish-category input { position: absolute; opacity: 0; pointer-events: none; }
.er-publish-category .er-sprite { width: 100%; min-height: 88px; flex: 1; border-radius: 14px; }
.er-publish-category strong {
    max-width: 100%;
    overflow: hidden;
    color: #17223c;
    font-size: .72rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.er-publish-category > i { position: absolute; top: 8px; right: 8px; display: none; color: #0969ff; background: #fff; border-radius: 50%; }
.er-publish-category:has(input:checked) { border-color: #4287ff; background: #f8fbff; box-shadow: 0 8px 25px rgba(9, 105, 255, .12); }
.er-publish-category:has(input:checked) > i { display: block; }

.er-field {
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 18px;
    border: 1px solid #e8ebf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(25, 46, 82, .035);
}
.er-field > i { flex: 0 0 22px; color: #78839a; text-align: center; }
.er-field > .fa-youtube { color: #ff1d25; font-size: 1.25rem; }
.er-field input,
.er-field textarea,
.er-field select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #17223b;
    background: transparent;
    font-size: .78rem;
    font-weight: 650;
    resize: vertical;
}
.er-field input::placeholder,
.er-field textarea::placeholder { color: #9ba4b8; }
.er-field-textarea { align-items: flex-start; padding-top: 18px; padding-bottom: 18px; }
.er-field-counted { padding-right: 70px; }
.er-field-counted em { position: absolute; right: 15px; bottom: 10px; color: #788198; font-size: .62rem; font-style: normal; }

.er-form-grid,
.er-location-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.er-field-stacked { min-height: 68px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 3px; }
.er-field-stacked > span { color: #202b44; font-size: .63rem; font-weight: 850; }
.er-location-fields .er-field:last-child { grid-column: 1 / -1; }
.er-dynamic-fields:empty { display: none; }

.er-upload-zone {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1.5px dashed #bfcce1;
    border-radius: 20px;
    background: #fbfcff;
    cursor: pointer;
    text-align: center;
}
.er-upload-zone input,
.er-video-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.er-upload-zone > span { width: 61px; height: 61px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; color: #0969ff; background: #eaf3ff; font-size: 1.55rem; }
.er-upload-zone strong { color: #0859c8; font-size: .9rem; font-weight: 900; }
.er-upload-zone small { margin-top: 7px; color: #7e879c; font-size: .67rem; }
.er-photo-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.er-photo-preview > span { position: relative; height: 100px; overflow: hidden; border-radius: 13px; background: #eaf0f7; }
.er-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.er-photo-preview b { position: absolute; bottom: 5px; left: 5px; padding: 3px 6px; border-radius: 6px; color: #fff; background: rgba(7, 20, 44, .72); font-size: .52rem; }

.er-video-choice { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 13px; }
.er-video-upload {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 17px;
    border: 1.5px dashed #aebfdb;
    border-radius: 17px;
    color: #0969ff;
    background: #f9fbff;
    cursor: pointer;
}
.er-video-upload > i { font-size: 1.5rem; }
.er-video-upload strong,
.er-video-upload small { display: block; }
.er-video-upload strong { color: #17223b; font-size: .72rem; font-weight: 900; }
.er-video-upload small { margin-top: 4px; color: #818b9f; font-size: .57rem; }
.er-video-or { color: #9199aa; font-size: .63rem; font-weight: 850; }
.er-video-choice .er-field { min-height: 82px; margin: 0; }
.er-video-preview { margin-top: 12px; padding: 12px; border-radius: 16px; background: #fff; }
.er-video-preview video { display: block; width: min(100%, 480px); max-height: 280px; margin: auto; border-radius: 12px; background: #071225; }

.er-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.er-switch-option {
    min-height: 64px;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) 43px;
    align-items: center;
    gap: 10px;
    padding: 0 17px;
    border: 1px solid #eaedf3;
    border-radius: 17px;
    background: #fff;
    font-size: .71rem;
    font-weight: 850;
}
.er-switch-option > i { color: #718099; text-align: center; }
.er-switch-option input { position: absolute; opacity: 0; }
.er-switch-option b { position: relative; width: 43px; height: 25px; border-radius: 999px; background: #d9dee8; transition: .2s; }
.er-switch-option b::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: .2s; }
.er-switch-option:has(input:checked) b { background: #1670fa; }
.er-switch-option:has(input:checked) b::after { transform: translateX(18px); }

.er-publish-submit {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 28px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(90deg, #1765ed, #0969ff, #2269eb);
    box-shadow: 0 13px 28px rgba(9, 105, 255, .24);
    font-size: .92rem;
    font-weight: 900;
}
.er-submit-note { margin: 10px 0 0; color: #7c869a; text-align: center; font-size: .61rem; }
.er-submit-note i { color: #36b46c; }

.er-status-tabs { display: flex; gap: 9px; overflow-x: auto; margin-bottom: 20px; padding: 2px 1px 8px; scrollbar-width: none; }
.er-status-tabs a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; border: 1px solid #e3e8f1; border-radius: 999px; color: #576176; background: #fff; font-size: .68rem; font-weight: 850; }
.er-status-tabs a.is-active { border-color: #0969ff; color: #fff; background: #0969ff; }
.er-status-tabs b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: rgba(130, 145, 170, .13); font-size: .57rem; }
.er-status-tabs .is-active b { background: rgba(255,255,255,.2); }

.er-publication-list { display: grid; gap: 14px; }
.er-publication-card { overflow: hidden; display: grid; grid-template-columns: 230px minmax(0, 1fr); border: 1px solid #e8ecf3; border-radius: 20px; background: #fff; box-shadow: 0 9px 25px rgba(22, 43, 78, .055); }
.er-publication-media { position: relative; min-height: 195px; overflow: hidden; background: #eaf0f7; }
.er-publication-media > img,
.er-publication-media > .er-media-fallback { width: 100%; height: 100%; object-fit: cover; }
.er-publication-status { position: absolute; top: 11px; left: 11px; padding: 5px 8px; border-radius: 8px; color: #27334c; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.11); font-size: .58rem; font-weight: 900; }
.er-publication-status.is-published { color: #09863d; background: #e4faec; }
.er-publication-status.is-pending { color: #9a6600; background: #fff5d8; }
.er-publication-status.is-rejected { color: #cc2433; background: #ffeaed; }
.er-has-video { position: absolute; right: 11px; bottom: 11px; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: rgba(9, 20, 42, .7); font-size: .7rem; }
.er-publication-content { min-width: 0; padding: 17px 19px 13px; }
.er-publication-topline { display: flex; justify-content: space-between; gap: 10px; color: #0969ff; font-size: .6rem; font-weight: 850; }
.er-publication-topline small { color: #929aab; }
.er-publication-content h2 { margin: 7px 0 4px; overflow: hidden; color: #141f38 !important; font-size: 1rem !important; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.er-publication-content p { margin: 0 0 8px; color: #7c8599; font-size: .65rem; }
.er-publication-content > strong { color: #0969ff; font-size: .88rem; font-weight: 950; }
.er-publication-content > strong small { color: #727c91; font-size: .62rem; }
.er-moderation-note { margin-top: 8px; padding: 7px 9px; border-radius: 9px; color: #9a4e0b; background: #fff6e9; font-size: .59rem; }
.er-publication-footer { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #edf0f5; color: #818a9d; font-size: .61rem; font-weight: 700; }
.er-publication-footer a { margin-left: auto; color: #0969ff; font-weight: 900; }
.er-publications-empty { padding: 55px 20px; border: 1px dashed #cbd6e7; border-radius: 22px; background: #fff; text-align: center; }
.er-publications-empty > span { width: 72px; height: 72px; display: grid; place-items: center; margin: auto; border-radius: 50%; color: #0969ff; background: #eaf3ff; font-size: 1.8rem; }
.er-publications-empty h2 { margin: 15px 0 7px; color: #14203a !important; font-size: 1.05rem !important; font-weight: 950; }
.er-publications-empty p { max-width: 390px; margin: 0 auto 17px; color: #7b8498; font-size: .72rem; }
.er-publications-empty a { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 17px; border-radius: 13px; color: #fff; background: #0969ff; font-size: .7rem; font-weight: 900; }

.er-listing-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.er-listing-videos video,
.er-listing-videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #061126; }

@media (max-width: 767.98px) {
    body:has(.er-publish-page) #ecm-nav,
    body:has(.er-publications-page) #ecm-nav,
    body:has(.er-publish-page) .ecm-footer,
    body:has(.er-publications-page) .ecm-footer,
    body:has(.er-publish-page) .ecm-footer-wave,
    body:has(.er-publications-page) .ecm-footer-wave { display: none !important; }

    .er-publish-page,
    .er-publications-page { padding: 15px 14px 30px; }
    .er-publish-header,
    .er-publications-header { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 18px; }
    .er-publish-header h1,
    .er-publications-header h1 { font-size: 1.16rem !important; }
    .er-publish-header p,
    .er-publications-header p { font-size: .62rem; }
    .er-publish-my-link { width: 42px; overflow: hidden; padding: 0; color: transparent !important; }
    .er-publish-my-link::before { content: "\f03a"; color: #0969ff; font-family: "Font Awesome 6 Free"; font-weight: 900; }
    .er-publications-add { width: 42px; padding: 0; }
    .er-publications-add span { display: none; }

    .er-publish-benefits { padding: 15px 3px; border-radius: 18px; }
    .er-publish-benefits > div { padding: 0 5px; }
    .er-publish-benefits i { margin-bottom: 7px; font-size: 1.2rem; }
    .er-publish-benefits strong { font-size: .53rem; line-height: 1.15; }
    .er-publish-benefits small { font-size: .46rem; }

    .er-publish-form { margin-top: 23px; }
    .er-publish-section { margin-top: 23px; }
    .er-publish-section h2 { font-size: .94rem !important; }
    .er-publish-section-heading > small { font-size: .56rem; }
    .er-publish-categories { gap: 9px; }
    .er-publish-category { min-height: 105px; padding: 6px 5px 9px; border-radius: 16px; }
    .er-publish-category .er-sprite { min-height: 68px; }
    .er-publish-category strong { font-size: .58rem; }

    .er-field { min-height: 56px; padding-inline: 14px; border-radius: 14px; }
    .er-field input,
    .er-field textarea,
    .er-field select { font-size: .7rem; }
    .er-form-grid,
    .er-location-fields { gap: 9px; }
    .er-field-stacked { min-height: 65px; }
    .er-field-stacked > span { font-size: .58rem; }
    .er-upload-zone { min-height: 180px; border-radius: 17px; }
    .er-photo-preview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .er-photo-preview > span { height: 80px; }
    .er-video-choice { grid-template-columns: 1fr; gap: 9px; }
    .er-video-or { text-align: center; }
    .er-option-grid { gap: 9px; }
    .er-switch-option { min-height: 59px; padding-inline: 12px; font-size: .6rem; }

    .er-publication-card { grid-template-columns: 128px minmax(0, 1fr); border-radius: 17px; }
    .er-publication-media { min-height: 174px; }
    .er-publication-content { padding: 13px 12px 10px; }
    .er-publication-content h2 { font-size: .78rem !important; }
    .er-publication-content > strong { font-size: .72rem; }
    .er-publication-footer { gap: 8px; margin-top: 10px; }
    .er-publication-footer span:nth-child(3) { display: none; }
    .er-publication-topline small { display: none; }
    .er-listing-videos { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .er-publish-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .er-form-grid { grid-template-columns: 1fr 1fr; }
    .er-dynamic-fields { grid-template-columns: 1fr 1fr; }
    .er-publication-card { grid-template-columns: 116px minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Favorites, messages and EasyRent profile
   -------------------------------------------------------------------------- */
.er-favorites-page,
.er-messages-page,
.er-rent-profile-page {
    max-width: 1120px;
    padding-bottom: 90px;
    background: #f9faff;
}

.er-app-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.er-app-page-header h1 {
    margin: 0;
    color: #0b1734 !important;
    font-size: clamp(1.65rem, 4vw, 2.35rem) !important;
    font-weight: 950;
    letter-spacing: -.05em;
}
.er-app-page-header p { margin: 5px 0 0; color: #68738b; font-size: .82rem; font-weight: 650; }
.er-app-header-actions { display: flex; gap: 10px; }

.er-favorite-search {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 10px;
    margin-bottom: 23px;
}
.er-favorite-search > i {
    position: relative;
    z-index: 2;
    margin-right: -50px;
    color: #293650;
    font-size: 1.1rem;
    transform: translateX(20px);
}
.er-favorite-search input {
    grid-column: 1 / 3;
    min-height: 61px;
    padding: 0 55px;
    border: 1px solid #e6eaf1;
    border-radius: 22px;
    outline: 0;
    color: #17223a;
    background: #fff;
    box-shadow: 0 9px 26px rgba(23, 43, 77, .07);
    font-size: .78rem;
    font-weight: 650;
}
.er-favorite-search input::placeholder { color: #939caf; }
.er-favorite-search button {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid #e9ecf2;
    border-radius: 17px;
    color: #192640;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 43, 77, .07);
}

.er-favorite-categories {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    overflow-x: auto;
    margin-bottom: 28px;
    padding: 8px;
    border: 1px solid #eceff4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 43, 77, .05);
    scrollbar-width: none;
}
.er-favorite-categories a {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-right: 1px solid #e9edf3;
    border-radius: 15px;
    color: #17223c;
    font-size: .66rem;
    font-weight: 850;
}
.er-favorite-categories a:last-child { border-right: 0; }
.er-favorite-categories a > i { color: #4e62a0; font-size: 1.35rem; }
.er-favorite-categories a > b { min-width: 23px; height: 20px; display: grid; place-items: center; border-radius: 999px; color: #606c86; background: #edf0f7; font-size: .56rem; }
.er-favorite-categories a.is-active { border: 1px solid #c9b6ff; color: #6538ec; background: #f6f1ff; }
.er-favorite-categories a.is-active > i { color: #7342eb; }
.er-favorite-categories a.is-active > b { color: #7142e8; background: #e7dcff; }

.er-favorite-section { margin-top: 25px; }
.er-favorite-list { display: grid; gap: 12px; }
.er-favorite-row {
    min-height: 175px;
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr) 190px;
    overflow: hidden;
    border: 1px solid #e9edf3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 43, 77, .055);
}
.er-favorite-row__media { overflow: hidden; background: #edf2f7; }
.er-favorite-row__media img,
.er-favorite-row__media .er-media-fallback { width: 100%; height: 100%; object-fit: cover; }
.er-favorite-row__content { min-width: 0; display: block; padding: 18px 20px; }
.er-favorite-row__content > span { display: inline-flex; gap: 6px; padding: 5px 9px; border-radius: 999px; color: #6336dd; background: #f0eaff; font-size: .59rem; font-weight: 850; }
.er-favorite-row__content h3 { margin: 8px 0 5px; overflow: hidden; color: #111c34; font-size: .94rem; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.er-favorite-row__content p { margin: 0; color: #727d94; font-size: .64rem; }
.er-favorite-features { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 15px; color: #5d6880; }
.er-favorite-features small { font-size: .59rem; }
.er-favorite-row__side { display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: center; gap: 10px; padding: 15px; }
.er-favorite-row__side > strong { grid-column: 1 / -1; align-self: start; color: #6336e5; text-align: right; font-size: .8rem; font-weight: 950; }
.er-favorite-row__side > strong small { font-size: .55rem; }
.er-favorite-row__side form { justify-self: end; }
.er-favorite-row__side button,
.er-favorite-row__side > a {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #e0e5ee;
    border-radius: 14px;
    color: #ff3348;
    background: #fff;
    box-shadow: 0 5px 14px rgba(20, 39, 70, .06);
}
.er-favorite-row__side > a { color: #17233d; }

.er-provider-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.er-provider-rail article { min-width: 0; padding: 16px; border: 1px solid #e9edf3; border-radius: 18px; background: #fff; box-shadow: 0 7px 19px rgba(21, 40, 73, .05); }
.er-provider-rail img { width: 84px; height: 84px; display: block; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; }
.er-provider-rail strong,
.er-provider-rail small,
.er-provider-rail span,
.er-provider-rail p { display: block; margin: 4px 0; }
.er-provider-rail strong { overflow: hidden; color: #17223a; font-size: .7rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.er-provider-rail small,
.er-provider-rail p { color: #727c91; font-size: .55rem; }
.er-provider-rail span { color: #39445a; font-size: .6rem; }
.er-provider-rail span i { color: #ffad00; }

.er-favorite-alert,
.er-profile-boost {
    min-height: 82px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding: 13px 20px;
    border-radius: 18px;
    background: linear-gradient(90deg, #f7f2ff, #fbf9ff);
}
.er-favorite-alert > i,
.er-profile-boost > i { color: #7440ed; font-size: 2rem; text-align: center; }
.er-favorite-alert strong,
.er-favorite-alert small,
.er-profile-boost strong,
.er-profile-boost small { display: block; }
.er-favorite-alert strong,
.er-profile-boost strong { color: #17213a; font-size: .74rem; font-weight: 900; }
.er-favorite-alert small,
.er-profile-boost small { margin-top: 4px; color: #69748a; font-size: .61rem; }
.er-favorite-alert a,
.er-profile-boost a { min-height: 43px; display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; border-radius: 13px; color: #fff; background: linear-gradient(90deg, #6932dd, #8145ef); font-size: .65rem; font-weight: 850; }

.er-message-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
    padding: 6px;
    border: 1px solid #eceff4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 21px rgba(22, 42, 75, .05);
}
.er-message-tabs > a { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 8px; border-right: 1px solid #e9edf3; color: #536078; font-size: .67rem; font-weight: 800; }
.er-message-tabs > a:last-child { border: 0; }
.er-message-tabs > a.is-active { border: 0; border-radius: 13px; color: #6d3deb; background: #f7f2ff; }
.er-message-tabs b { min-width: 22px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: #eef0f6; font-size: .56rem; }
.er-message-tabs .is-active b { background: #e7dcff; }

.er-message-layout {
    min-height: 720px;
    display: grid;
    grid-template-columns: 36% 64%;
    overflow: hidden;
    border: 1px solid #e8ecf3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(22, 42, 75, .055);
}
.er-conversation-list { overflow-y: auto; border-right: 1px solid #e8ecf3; background: #fff; }
.er-conversation-list > a {
    min-height: 105px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    margin: 8px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 17px;
}
.er-conversation-list > a.is-active { border-color: #aa91ff; background: #fcfbff; }
.er-chat-avatar { position: relative; }
.er-chat-avatar img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.er-chat-avatar i { position: absolute; right: 1px; bottom: 3px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #24bd69; }
.er-chat-summary { min-width: 0; }
.er-chat-summary strong,
.er-chat-summary small { display: block; overflow: hidden; text-overflow: ellipsis; }
.er-chat-summary strong { color: #121d35; font-size: .75rem; font-weight: 900; white-space: nowrap; }
.er-chat-summary small { min-height: 2.8em; margin-top: 5px; color: #667189; font-size: .62rem; line-height: 1.4; }
.er-chat-meta { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding-block: 5px; }
.er-chat-meta time { color: #8b94a7; font-size: .55rem; }
.er-chat-meta b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #7040e8; font-size: .55rem; }
.er-chat-empty { padding: 35px 20px; color: #7e879a; text-align: center; font-size: .7rem; }

.er-chat-panel { min-width: 0; display: grid; grid-template-rows: auto auto minmax(250px, 1fr) auto; }
.er-chat-header { min-height: 78px; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid #e9edf3; }
.er-chat-header > img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.er-chat-header strong,
.er-chat-header small { display: block; }
.er-chat-header strong { color: #121d35; font-size: .8rem; font-weight: 900; }
.er-chat-header small { margin-top: 3px; color: #798398; font-size: .58rem; }
.er-chat-header small i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #25bd69; }
.er-chat-header > nav { display: flex; align-items: center; gap: 3px; }
.er-chat-header > nav form { margin: 0; }
.er-chat-header > nav button,
.er-chat-header > nav a { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; color: #7040e8; background: #f7f3ff; font-size: .9rem; }
.er-chat-listing { min-height: 105px; display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 15px; margin: 14px 18px 0; padding: 10px; border: 1px solid #e8ecf3; border-radius: 17px; box-shadow: 0 6px 18px rgba(21, 40, 73, .04); }
.er-chat-listing img { width: 130px; height: 84px; border-radius: 12px; object-fit: cover; }
.er-chat-listing strong,
.er-chat-listing b { display: block; }
.er-chat-listing strong { color: #17223b; font-size: .72rem; font-weight: 900; }
.er-chat-listing b { margin-top: 7px; color: #6c3be7; font-size: .68rem; }
.er-chat-listing em { color: #0969ff; font-size: .61rem; font-style: normal; font-weight: 850; white-space: nowrap; }

.er-chat-messages { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; background: linear-gradient(180deg, #fff, #fcfcff); }
.er-chat-bubble { max-width: 72%; align-self: flex-start; }
.er-chat-bubble p { margin: 0; padding: 13px 16px; border-radius: 17px 17px 17px 5px; color: #19243c; background: #f2f4f8; font-size: .68rem; line-height: 1.55; }
.er-chat-bubble time { display: block; margin-top: 4px; color: #98a1b3; font-size: .52rem; }
.er-chat-bubble.is-mine { align-self: flex-end; }
.er-chat-bubble.is-mine p { border-radius: 17px 17px 5px 17px; background: linear-gradient(135deg, #f1eaff, #f8f4ff); }
.er-chat-bubble.is-mine time { text-align: right; }
.er-chat-bubble.is-mine time i { color: #0969ff; }
.er-chat-start { margin: auto; color: #8b94a6; text-align: center; }
.er-chat-start i { display: block; margin-bottom: 8px; font-size: 2rem; }
.er-chat-start strong,
.er-chat-start small { display: block; font-size: .68rem; }
.er-chat-start small { margin-top: 4px; font-size: .58rem; }
.er-chat-compose { min-height: 76px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 43px; align-items: center; gap: 10px; padding: 11px 17px; border-top: 1px solid #e9edf3; }
.er-chat-compose > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #7140e8; }
.er-chat-compose textarea { width: 100%; max-height: 100px; padding: 12px 14px; border: 0; border-radius: 15px; outline: 0; background: #f5f6fa; font-size: .68rem; resize: none; }
.er-chat-compose button { width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: #0969ff; }
.er-chat-no-selection { align-self: center; padding: 30px; text-align: center; }
.er-chat-no-selection > i { color: #7a47eb; font-size: 3rem; }
.er-chat-no-selection h2 { margin: 15px 0 6px; color: #17213a !important; font-size: 1.05rem !important; }
.er-chat-no-selection p { color: #788297; font-size: .68rem; }
.er-chat-no-selection a { display: inline-flex; margin-top: 10px; padding: 11px 16px; border-radius: 12px; color: #fff; background: #7040e8; font-size: .65rem; font-weight: 850; }

.er-profile-card { padding: 30px; border: 1px solid #e9edf3; border-radius: 22px; background: #fff; box-shadow: 0 9px 26px rgba(23, 43, 77, .06); }
.er-profile-identity { display: grid; grid-template-columns: 135px minmax(0, 1fr) auto; align-items: start; gap: 23px; }
.er-profile-identity > img { width: 128px; height: 128px; padding: 4px; border: 2px solid #8d5af0; border-radius: 50%; object-fit: cover; }
.er-profile-identity h2 { margin: 8px 0 6px; color: #101b33 !important; font-size: 1.25rem !important; font-weight: 950; }
.er-profile-identity h2 i { color: #7140e8; font-size: .8rem; }
.er-profile-identity div > span { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: #6f3ee8; background: #f0e9ff; font-size: .6rem; font-weight: 850; }
.er-profile-identity p { margin: 15px 0 0; color: #526078; font-size: .65rem; line-height: 1.6; }
.er-profile-identity > a { min-height: 43px; display: inline-flex; align-items: center; padding: 0 17px; border: 1px solid #7c47e9; border-radius: 12px; color: #6d3de0; font-size: .65rem; font-weight: 850; }
.er-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.er-profile-stats > * { display: grid; grid-template-columns: 32px auto; justify-content: center; align-items: center; padding: 4px 15px; border-right: 1px solid #e4e8ef; }
.er-profile-stats > *:last-child { border: 0; }
.er-profile-stats i { grid-row: 1 / 3; color: #7140e8; font-size: 1.3rem; }
.er-profile-stats > *:nth-child(2) i { color: #ff7e15; }
.er-profile-stats > *:nth-child(3) i { color: #18b969; }
.er-profile-stats > *:nth-child(4) i { color: #1675f7; }
.er-profile-stats strong { color: #101b33; font-size: 1rem; font-weight: 950; }
.er-profile-stats small { color: #69748b; font-size: .57rem; }

.er-wallet-card {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    display: grid;
    grid-template-columns: 1fr auto;
    margin-top: 22px;
    padding: 28px;
    border-radius: 22px;
    color: #fff;
    background: radial-gradient(circle at 88% 60%, rgba(183,145,255,.6), transparent 24%), linear-gradient(115deg, #5020d3, #7437e1 55%, #6c27d9);
    box-shadow: 0 15px 30px rgba(86, 37, 204, .2);
}
.er-wallet-card div > * { display: block; }
.er-wallet-card div > small { font-size: .68rem; font-weight: 750; }
.er-wallet-card div > strong { margin-top: 10px; font-size: 1.8rem; font-weight: 950; }
.er-wallet-card div > span { font-size: .62rem; }
.er-wallet-card > a { color: #fff; font-size: .65rem; font-weight: 850; text-decoration: underline; }
.er-wallet-card nav { grid-column: 1 / -1; display: flex; gap: 40px; margin-top: 24px; }
.er-wallet-card nav a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-size: .58rem; font-weight: 800; }
.er-wallet-card nav i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; color: #6e39df; background: #fff; font-size: 1.15rem; }

.er-profile-section { margin-top: 28px; }
.er-profile-section .er-section-heading > a { color: #0969ff; font-size: .65rem; font-weight: 850; }
.er-profile-title { margin: 0 0 15px; color: #111d35 !important; font-size: 1rem !important; font-weight: 950; }
.er-order-categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.er-order-categories a { position: relative; min-height: 105px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px solid #e9edf3; border-radius: 16px; background: #fff; box-shadow: 0 7px 19px rgba(21,40,73,.05); }
.er-order-categories i { color: #7040e8; font-size: 1.45rem; }
.er-order-categories strong { color: #17223b; font-size: .58rem; font-weight: 900; text-align: center; }
.er-order-categories b { position: absolute; top: 8px; right: 9px; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; color: #68738a; background: #f0f2f7; font-size: .52rem; }

.er-profile-listings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.er-profile-listings article { overflow: hidden; border: 1px solid #e8ecf3; border-radius: 17px; background: #fff; box-shadow: 0 7px 19px rgba(21,40,73,.05); }
.er-profile-listing-media { position: relative; height: 130px; overflow: hidden; display: block; background: #eef2f7; }
.er-profile-listing-media img,
.er-profile-listing-media .er-media-fallback { width: 100%; height: 100%; object-fit: cover; }
.er-profile-listing-media > span:not(.er-media-fallback) { position: absolute; bottom: 8px; left: 8px; padding: 4px 8px; border-radius: 999px; color: #07853a; background: #e4faec; font-size: .52rem; font-weight: 850; }
.er-profile-listing-media > span.is-pending { color: #9e6500; background: #fff1cd; }
.er-profile-listings article > div { padding: 12px; }
.er-profile-listings h3 { min-height: 2.6em; margin: 0 0 6px; color: #17213a; font-size: .68rem; font-weight: 900; line-height: 1.3; }
.er-profile-listings article strong { display: block; color: #7040e8; font-size: .65rem; }
.er-profile-listings article small { display: block; margin-top: 9px; color: #758096; font-size: .53rem; }
.er-profile-add-listing { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px dashed #acbcd5; border-radius: 17px; color: #0969ff; background: #fff; font-size: .68rem; }
.er-profile-add-listing i { font-size: 1.6rem; }

.er-profile-menu { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border: 1px solid #e9edf3; border-radius: 18px; background: #fff; }
.er-profile-menu a { min-height: 75px; display: grid; grid-template-columns: 43px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 10px 18px; border-right: 1px solid #e9edf3; border-bottom: 1px solid #e9edf3; }
.er-profile-menu a:nth-child(even) { border-right: 0; }
.er-profile-menu a:nth-last-child(-n+2) { border-bottom: 0; }
.er-profile-menu > a > i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #17233e; background: #f5f6fa; }
.er-profile-menu strong,
.er-profile-menu small { display: block; }
.er-profile-menu strong { color: #17213a; font-size: .63rem; font-weight: 900; }
.er-profile-menu small { margin-top: 4px; color: #798398; font-size: .53rem; }
.er-profile-menu b { color: #8e97a9; font-size: 1.2rem; }

@media (max-width: 767.98px) {
    .er-favorites-page,
    .er-messages-page,
    .er-rent-profile-page { padding: 18px 14px 30px; }
    .er-app-page-header { margin-bottom: 20px; }
    .er-app-page-header h1 { font-size: 1.65rem !important; }
    .er-app-page-header p { font-size: .65rem; }
    .er-favorite-search input { min-height: 57px; }
    .er-favorite-categories { grid-template-columns: repeat(6, 100px); padding: 5px; }
    .er-favorite-categories a { min-height: 90px; }
    .er-favorite-row { min-height: 145px; grid-template-columns: 125px minmax(0, 1fr) 54px; border-radius: 17px; }
    .er-favorite-row__content { padding: 13px 12px; }
    .er-favorite-row__content > span { font-size: .5rem; }
    .er-favorite-row__content h3 { font-size: .72rem; white-space: normal; }
    .er-favorite-row__content p { font-size: .55rem; }
    .er-favorite-features { display: none; }
    .er-favorite-row__side { display: flex; flex-direction: column; padding: 10px 7px; }
    .er-favorite-row__side > strong { display: none; }
    .er-favorite-row__side button,
    .er-favorite-row__side > a { width: 40px; height: 40px; border-radius: 12px; }
    .er-provider-rail { grid-auto-columns: 155px; }
    .er-favorite-alert,
    .er-profile-boost { grid-template-columns: 40px minmax(0, 1fr); padding: 13px; }
    .er-favorite-alert a,
    .er-profile-boost a { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }

    .er-message-tabs { grid-template-columns: repeat(4, 105px); overflow-x: auto; }
    .er-message-layout { min-height: 680px; display: block; border-radius: 18px; }
    .er-conversation-list { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e8ecf3; scrollbar-width: none; }
    .er-conversation-list > a { flex: 0 0 230px; min-height: 86px; grid-template-columns: 48px minmax(0, 1fr) 32px; }
    .er-chat-avatar img { width: 48px; height: 48px; }
    .er-chat-panel { min-height: 590px; }
    .er-chat-header { min-height: 66px; padding: 10px 13px; }
    .er-chat-header > img { width: 43px; height: 43px; }
    .er-chat-listing { min-height: 85px; grid-template-columns: 85px minmax(0, 1fr); margin: 10px; }
    .er-chat-listing img { width: 85px; height: 65px; }
    .er-chat-listing em { display: none; }
    .er-chat-bubble { max-width: 84%; }

    .er-profile-card { padding: 20px 15px; }
    .er-profile-identity { grid-template-columns: 92px minmax(0, 1fr); gap: 13px; }
    .er-profile-identity > img { width: 88px; height: 88px; }
    .er-profile-identity h2 { margin-top: 2px; font-size: .94rem !important; }
    .er-profile-identity p { margin-top: 8px; font-size: .55rem; }
    .er-profile-identity > a { grid-column: 1 / -1; justify-content: center; min-height: 39px; }
    .er-profile-stats { margin-top: 20px; }
    .er-profile-stats > * { display: flex; flex-direction: column; gap: 4px; padding-inline: 3px; text-align: center; }
    .er-profile-stats i { font-size: 1rem; }
    .er-profile-stats strong { font-size: .77rem; }
    .er-profile-stats small { font-size: .45rem; }
    .er-wallet-card { min-height: 225px; padding: 22px 17px; }
    .er-wallet-card div > strong { font-size: 1.4rem; }
    .er-wallet-card nav { justify-content: space-between; gap: 8px; }
    .er-wallet-card nav i { width: 47px; height: 47px; }
    .er-order-categories { grid-template-columns: repeat(6, 100px); overflow-x: auto; padding-bottom: 7px; scrollbar-width: none; }
    .er-profile-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .er-profile-menu { grid-template-columns: 1fr; }
    .er-profile-menu a,
    .er-profile-menu a:nth-child(even),
    .er-profile-menu a:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #e9edf3; }
    .er-profile-menu a:last-child { border-bottom: 0; }
}

@media (max-width: 420px) {
    .er-app-page-header .er-icon-btn { width: 40px; height: 40px; }
    .er-favorite-row { grid-template-columns: 108px minmax(0, 1fr) 46px; }
    .er-favorite-row__side button,
    .er-favorite-row__side > a { width: 35px; height: 35px; }
    .er-message-tabs { grid-template-columns: repeat(4, 96px); }
}

/* Operational controls and EasyCM modules drawer */
.er-publication-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.er-publication-actions form { margin: 0; }
.er-publication-actions a,
.er-publication-actions button {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #e2e7ef;
    border-radius: 9px;
    color: #0969ff;
    background: #fff;
    font-size: .62rem;
}
.er-publication-actions button.is-danger { color: #dc3545; }

.er-edit-media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.er-edit-media-grid label { position: relative; height: 135px; overflow: hidden; border-radius: 14px; background: #eef2f7; cursor: pointer; }
.er-edit-media-grid img { width: 100%; height: 100%; object-fit: cover; }
.er-edit-media-grid input { position: absolute; opacity: 0; }
.er-edit-media-grid span { position: absolute; right: 7px; bottom: 7px; left: 7px; padding: 6px; border-radius: 8px; color: #fff; background: rgba(12, 23, 45, .7); text-align: center; font-size: .57rem; font-weight: 800; }
.er-edit-media-grid label:has(input:checked) { outline: 3px solid #ef4444; opacity: .65; }
.er-upload-zone--small { min-height: 150px; }
.er-edit-video-list { display: grid; gap: 8px; margin-bottom: 12px; }
.er-edit-video-list label { min-height: 50px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 13px; border: 1px solid #e4e9f1; border-radius: 12px; background: #fff; }
.er-edit-video-list > label > i { color: #7040e8; text-align: center; }
.er-edit-video-list input { width: 18px; height: 18px; }
.er-edit-video-list b { color: #dc3545; font-size: .58rem; }

.er-booking-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 190px; }
.er-booking-actions form { margin: 0; }
.er-booking-actions a,
.er-booking-actions button { min-height: 31px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid #dfe5ee; border-radius: 8px; color: #0969ff; background: #fff; font-size: .58rem; font-weight: 800; }
.er-booking-actions button.is-success { color: #07863e; border-color: #bfe8ce; background: #eefbf3; }
.er-booking-actions button.is-danger { color: #c82d3a; border-color: #f1c4c8; background: #fff2f3; }

.er-modules-toggle {
    position: fixed;
    z-index: 2147483598;
    right: 14px;
    bottom: calc(91px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
    display: none;
    place-items: center;
    padding: 5px;
    border: 3px solid #fff;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0969ff, #7440e8);
    box-shadow: 0 10px 25px rgba(48, 74, 169, .28);
}
.er-modules-toggle i { font-size: 1rem; }
.er-modules-toggle span { display: block; font-size: .45rem; font-weight: 850; }
.er-modules-overlay { position: fixed; z-index: 2147483603; inset: 0; background: rgba(9, 18, 38, .48); backdrop-filter: blur(3px); }
.er-modules-drawer {
    position: fixed;
    z-index: 2147483604;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(88vh, 760px);
    overflow-y: auto;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 27px 27px 0 0;
    background: #fff;
    box-shadow: 0 -20px 60px rgba(9, 20, 43, .25);
    transform: translateY(105%);
    transition: transform .3s cubic-bezier(.22,.75,.2,1);
}
.er-modules-drawer.is-open { transform: translateY(0); }
body.er-modules-open { overflow: hidden; }
.er-modules-drawer > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid #edf0f5; }
.er-modules-drawer > header > span { display: grid; grid-template-columns: 43px 1fr; align-items: center; column-gap: 10px; }
.er-modules-drawer > header img { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.er-modules-drawer > header strong { color: #101c35; font-size: .92rem; font-weight: 950; }
.er-modules-drawer > header small { color: #7b8498; font-size: .55rem; }
.er-modules-drawer > header button { width: 39px; height: 39px; border: 0; border-radius: 12px; color: #26324b; background: #f3f5f9; }
.er-modules-current { min-height: 68px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin: 16px 0; padding: 10px 13px; border-radius: 16px; color: #fff; background: linear-gradient(115deg, #0969ff, #7040e8); }
.er-modules-current > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.18); }
.er-modules-current strong,
.er-modules-current small { display: block; }
.er-modules-current strong { font-size: .73rem; font-weight: 950; }
.er-modules-current small { margin-top: 3px; color: rgba(255,255,255,.78); font-size: .52rem; }
.er-modules-current a { padding: 8px 11px; border-radius: 9px; color: #2541a5; background: #fff; font-size: .55rem; font-weight: 900; }
.er-modules-drawer > h2 { margin: 0 0 11px; color: #17223b !important; font-size: .78rem !important; font-weight: 950; }
.er-modules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.er-modules-grid a { min-height: 93px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 4px; border: 1px solid #e8ecf3; border-radius: 15px; background: #fff; text-align: center; }
.er-modules-grid i { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: #2563eb; background: #eaf2ff; font-size: 1rem; }
.er-modules-grid strong { max-width: 100%; overflow: hidden; color: #17223b; font-size: .59rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.er-modules-grid small { color: #80899d; font-size: .48rem; }
.er-modules-grid .is-green i,
.er-modules-grid .is-leaf i { color: #168b4c; background: #eaf9f0; }
.er-modules-grid .is-orange i,
.er-modules-grid .is-amber i { color: #df7000; background: #fff3e4; }
.er-modules-grid .is-purple i,
.er-modules-grid .is-indigo i { color: #7440e8; background: #f1ebff; }
.er-modules-grid .is-red i { color: #dc3545; background: #fff0f1; }
.er-modules-grid .is-yellow i { color: #b77c00; background: #fff8dc; }
.er-modules-grid .is-teal i { color: #078b80; background: #e7f9f7; }
.er-modules-grid .is-slate i { color: #516077; background: #eef1f5; }
.er-modules-shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #edf0f5; }
.er-modules-shortcuts a { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 11px; color: #26324a; background: #f6f8fb; font-size: .56rem; font-weight: 800; }
.er-modules-shortcuts i { color: #7040e8; }

@media (max-width: 767.98px) {
    body:has(.er-mobile-dock) { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
    .er-modules-toggle { display: grid; }
    .er-edit-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .er-edit-media-grid label { height: 115px; }
    .er-publication-footer { flex-wrap: wrap; }
    .er-publication-actions { width: 100%; justify-content: flex-end; }
    .er-chat-header > nav { gap: 1px; }
    .er-chat-header > nav button,
    .er-chat-header > nav a { width: 33px; height: 33px; }
}

@media (min-width: 768px) {
    .er-modules-drawer { right: 22px; bottom: 22px; left: auto; width: 430px; max-height: calc(100vh - 44px); border-radius: 24px; transform: translateX(115%); }
    .er-modules-drawer.is-open { transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   EasyRent desktop application shell
   -------------------------------------------------------------------------- */
.er-desktop-header,
.er-desktop-sidebar,
.er-desktop-home-hero { display: none; }

@media (min-width: 992px) {
    :root {
        --er-desktop-purple: #6125e8;
        --er-desktop-purple-dark: #3f1eb5;
        --er-desktop-ink: #0e1730;
        --er-desktop-muted: #68738c;
        --er-desktop-line: #e6e9f1;
        --er-desktop-sidebar: 238px;
        --er-desktop-header: 76px;
    }

    body.ecm-easyrent-app {
        padding: var(--er-desktop-header) 0 0 var(--er-desktop-sidebar) !important;
        color: var(--er-desktop-ink);
        background: #f8f9fc !important;
    }
    body.ecm-easyrent-app main h1,
    body.ecm-easyrent-app main h2,
    body.ecm-easyrent-app main h3 { font-family: var(--ecm-font-display) !important; }
    body.ecm-easyrent-app a { text-decoration: none; }
    body.ecm-easyrent-app .er-mobile-page { --er-accent: #6425e6 !important; --er-soft: #f1ebff !important; }
    body.ecm-easyrent-app #ecm-main-content { min-height: calc(100vh - var(--er-desktop-header)); }
    body.ecm-easyrent-app .ecm-footer-wave,
    body.ecm-easyrent-app .ecm-footer,
    body.ecm-easyrent-app .ecm-back-top,
    body.ecm-easyrent-app #globalChatToggle,
    body.ecm-easyrent-app .global-chat-container,
    body.ecm-easyrent-app .easybot,
    body.ecm-easyrent-app #easyAiTrigger,
    body.ecm-easyrent-app #easyAiChat { display: none !important; }

    .er-desktop-header {
        position: fixed;
        z-index: 2147483600;
        inset: 0 0 auto 0;
        height: var(--er-desktop-header);
        display: grid;
        grid-template-columns: 190px 45px minmax(340px, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 0 24px 0 28px;
        border-bottom: 1px solid var(--er-desktop-line);
        background: rgba(255,255,255,.96);
        box-shadow: 0 3px 14px rgba(20, 30, 58, .035);
        backdrop-filter: blur(18px);
    }
    .er-desktop-brand { display: flex; align-items: center; gap: 11px; color: #10172f; }
    .er-desktop-brand > span { width: 38px; height: 35px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #762bfb, #5120d3); font-size: 1.12rem; transform: skew(-5deg); }
    .er-desktop-brand strong { font-size: 1.38rem; font-weight: 950; letter-spacing: -.045em; }
    .er-desktop-modules-btn { width: 42px; height: 42px; border: 0; border-radius: 11px; color: #15203a; background: transparent; font-size: 1.05rem; }
    .er-desktop-modules-btn:hover { color: var(--er-desktop-purple); background: #f2edff; }

    .er-desktop-search {
        height: 46px;
        display: grid;
        grid-template-columns: 28px minmax(170px, 1fr) minmax(180px, .45fr) 118px;
        align-items: center;
        overflow: hidden;
        border: 1px solid #dfe4ee;
        border-radius: 12px;
        background: #fafbfe;
    }
    .er-desktop-search > i { color: #7d879b; text-align: center; }
    .er-desktop-search input { height: 100%; border: 0; outline: 0; background: transparent; font-size: .69rem; }
    .er-desktop-search > span { height: 60%; display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid #e4e8f0; color: #59657d; font-size: .65rem; }
    .er-desktop-search button { height: 100%; border: 0; color: #fff; background: linear-gradient(135deg, #6d25ef, #4b20cf); font-size: .67rem; font-weight: 850; }

    .er-desktop-account { display: flex; align-items: stretch; gap: 7px; height: 58px; }
    .er-desktop-account > a:not(.er-desktop-user) { position: relative; min-width: 57px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #101a33; }
    .er-desktop-account > a:not(.er-desktop-user) > i { font-size: 1.05rem; }
    .er-desktop-account > a small { font-size: .49rem; font-weight: 800; }
    .er-desktop-account > a > b { position: absolute; top: 4px; right: 7px; min-width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--er-desktop-purple); font-size: .48rem; }
    .er-desktop-account > a.is-active { color: var(--er-desktop-purple); border-bottom: 2px solid var(--er-desktop-purple); }
    .er-desktop-user { min-width: 175px; display: grid; grid-template-columns: 41px 1fr 14px; align-items: center; gap: 9px; margin-left: 5px; padding-left: 14px; border-left: 1px solid #e5e8ef; color: #101a33; }
    .er-desktop-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
    .er-desktop-user span strong,
    .er-desktop-user span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .er-desktop-user span strong { font-size: .67rem; font-weight: 900; }
    .er-desktop-user span small { margin-top: 4px; color: #727d91; font-size: .52rem; }
    .er-desktop-user > i { font-size: .52rem; }

    .er-desktop-user-wrap { position: relative; display: flex; align-items: center; }
    button.er-desktop-user { border: 0; background: transparent; cursor: pointer; }
    .er-desktop-user-menu {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        min-width: 240px;
        padding: 8px;
        border: 1px solid var(--er-desktop-line, #e6e9f1);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 20px 48px rgba(14, 23, 48, .16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .16s ease, transform .16s ease, visibility .16s;
        z-index: 2147483600;
    }
    .er-desktop-user-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .er-desktop-user-menu a,
    .er-desktop-user-menu button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px 12px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--er-desktop-ink, #0e1730) !important;
        font-size: .78rem;
        font-weight: 700;
        text-align: left;
        text-decoration: none;
    }
    .er-desktop-user-menu a i,
    .er-desktop-user-menu button i { width: 18px; text-align: center; color: var(--er-desktop-muted, #68738c); }
    .er-desktop-user-menu a:hover,
    .er-desktop-user-menu button:hover { background: #f7f4ff; color: var(--er-desktop-purple, #6125e8) !important; }
    .er-desktop-user-menu a:hover i,
    .er-desktop-user-menu button:hover i { color: var(--er-desktop-purple, #6125e8); }
    .er-desktop-user-menu form { display: block; }
    .er-desktop-user-menu__sep { margin: 6px 4px; border-top: 1px solid #eef0f4; }

    .er-desktop-sidebar {
        position: fixed;
        z-index: 2147483590;
        top: var(--er-desktop-header);
        bottom: 0;
        left: 0;
        width: var(--er-desktop-sidebar);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 18px 14px;
        border-right: 1px solid var(--er-desktop-line);
        background: #fff;
        scrollbar-width: none;
    }
    .er-desktop-main-nav,
    .er-desktop-personal-nav { display: grid; gap: 3px; }
    .er-desktop-main-nav a,
    .er-desktop-personal-nav a {
        position: relative;
        min-height: 39px;
        display: grid;
        grid-template-columns: 26px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 0 12px;
        border-radius: 9px;
        color: #17213a;
        font-size: .64rem;
        font-weight: 800;
    }
    .er-desktop-main-nav a i,
    .er-desktop-personal-nav a i { color: #53617e; text-align: center; font-size: .8rem; }
    .er-desktop-main-nav a:hover,
    .er-desktop-personal-nav a:hover { color: var(--er-desktop-purple); background: #f7f4ff; }
    .er-desktop-main-nav a.is-active { color: #fff; background: linear-gradient(90deg, #5d22d6, #7131df); box-shadow: 0 8px 20px rgba(88, 32, 208, .18); }
    .er-desktop-main-nav a.is-active i { color: #fff; }
    .er-desktop-personal-nav { margin-top: 15px; padding-top: 15px; border-top: 1px solid #e8ebf1; }
    .er-desktop-personal-nav b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--er-desktop-purple); font-size: .48rem; }
    .er-desktop-publish-card { display: grid; grid-template-columns: 36px 1fr; gap: 8px; margin-top: auto; padding: 14px; border-radius: 13px; background: linear-gradient(135deg, #f6f2ff, #f0eaff); }
    .er-desktop-publish-card > i { grid-row: 1 / 3; color: #6d2ee5; font-size: 1.45rem; transform: rotate(-15deg); }
    .er-desktop-publish-card strong,
    .er-desktop-publish-card small { display: block; }
    .er-desktop-publish-card strong { color: #17213a; font-size: .62rem; font-weight: 900; }
    .er-desktop-publish-card small { margin-top: 4px; color: #6d778c; font-size: .51rem; line-height: 1.35; }
    .er-desktop-publish-card > a { grid-column: 1 / -1; min-height: 36px; display: grid; place-items: center; margin-top: 8px; border-radius: 8px; color: #fff; background: linear-gradient(90deg, #6524df, #752ee7); font-size: .57rem; font-weight: 900; }

    body.ecm-easyrent-app .er-mobile-dock,
    body.ecm-easyrent-app .er-modules-toggle { display: none !important; }
    body.ecm-easyrent-app .er-modules-drawer { top: 90px; right: 28px; bottom: auto; width: 440px; max-height: calc(100vh - 118px); }

    body.ecm-easyrent-app .er-mobile-page,
    body.ecm-easyrent-app .er-container {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    body.ecm-easyrent-app .er-mobile-page { padding: 30px clamp(24px, 2.3vw, 42px) 55px; background: #f8f9fc; }
    body.ecm-easyrent-app .er-shell { background: #f8f9fc; }
    body.ecm-easyrent-app .er-band { padding: 30px clamp(24px, 2.3vw, 42px) 55px; }

    /* Home and catalog */
    .er-home-header { display: none; }
    .er-desktop-home-hero {
        position: relative;
        min-height: 310px;
        overflow: hidden;
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
        align-items: center;
        padding: 34px 38px;
        border-radius: 19px;
        color: #fff;
        background: radial-gradient(circle at 75% 0%, rgba(166,130,255,.55), transparent 30%), linear-gradient(120deg, #301296, #5122c9 58%, #7141ed);
        box-shadow: 0 18px 42px rgba(61, 26, 159, .2);
    }
    .er-desktop-home-hero h1 { margin: 0; color: #fff !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; -webkit-text-fill-color: #fff !important; font-size: clamp(2.25rem, 3vw, 3.2rem) !important; font-weight: 950; line-height: 1.02; letter-spacing: -.055em; }
    .er-desktop-home-hero p { margin: 16px 0 22px; color: rgba(255,255,255,.88); font-size: .85rem; font-weight: 600; line-height: 1.55; }
    .er-desktop-home-hero form { position: relative; z-index: 3; height: 58px; display: grid; grid-template-columns: 140px minmax(145px, 1fr) 155px 105px; overflow: hidden; border-radius: 11px; background: #fff; box-shadow: 0 12px 30px rgba(24,8,78,.2); }
    .er-desktop-home-hero form > * { min-width: 0; border: 0; border-right: 1px solid #e5e8ef; outline: 0; padding: 0 15px; color: #35415a; background: #fff; font-size: .62rem; }
    .er-desktop-home-hero form span { display: flex; align-items: center; gap: 7px; }
    .er-desktop-home-hero form button { border: 7px solid #fff; border-radius: 12px; color: #fff; background: #6727e5; font-weight: 900; }
    .er-desktop-home-hero nav { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
    .er-desktop-home-hero nav span { font-size: .55rem; font-weight: 750; }
    .er-desktop-home-hero nav i { margin-right: 5px; color: #d7c8ff; }
    .er-desktop-hero-art { position: relative; align-self: stretch; }
    .er-desktop-hero-art .er-sprite { position: absolute; width: 250px; height: 190px; border-radius: 28px; filter: drop-shadow(0 18px 22px rgba(11,5,48,.3)); }
    .er-desktop-hero-art .er-sprite:nth-child(1) { right: 120px; bottom: -15px; }
    .er-desktop-hero-art .er-sprite:nth-child(2) { right: -15px; bottom: -5px; width: 220px; height: 175px; }
    .er-desktop-hero-art .er-sprite:nth-child(3) { right: 10px; top: -8px; width: 180px; height: 135px; opacity: .85; }
    .er-home-intro { margin: 0 0 18px; }
    .er-home-page > .er-home-intro,
    .er-home-page > .er-mobile-search,
    .er-home-page > .er-location,
    .er-home-page > .er-security-banner { display: none; }
    .er-home-intro p { font-size: .8rem; }
    .er-home-intro h1 { max-width: 650px; font-size: clamp(2.35rem, 3vw, 3.5rem) !important; }
    .er-home-categories { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .er-home-category { min-height: 136px; border-radius: 15px; }
    .er-home-category .er-sprite { min-height: 85px; }
    .er-security-banner { min-height: 205px; }
    .er-card-rail { grid-auto-columns: minmax(235px, 24%); }
    .er-market-card { border-radius: 13px; }
    .er-market-card__media { height: 190px; }
    .er-catalog-header { justify-content: flex-start; margin-bottom: 18px; text-align: left; }
    .er-catalog-header > .er-icon-btn { display: none; }
    .er-catalog-header > div:nth-child(2) { text-align: left; }
    .er-catalog-header .er-header-actions { margin-left: auto; }
    .er-tile-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
    .er-catalog-tile { min-height: 112px; }
    .er-filter-rail { flex-wrap: wrap; overflow: visible; }
    .er-listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .er-listing-grid .er-market-card__media { height: 170px; }
    .er-catalog-hero { min-height: 210px; }
    .er-owner-cta { max-width: none; }

    /* Detail */
    .er-detail-hero { padding: 28px clamp(24px, 2.3vw, 42px); color: #101a33; background: transparent; }
    .er-detail-hero h1 { color: #101a33 !important; font-size: 2rem !important; }
    .er-detail-hero p { color: #69758d; }
    .er-gallery { grid-template-columns: 2fr 1fr; }
    .er-gallery img,
    .er-gallery .er-media-fallback { height: 410px; border-radius: 14px; }
    .er-gallery .d-grid img { height: 200px !important; }
    .er-side-panel { top: 94px; border-radius: 16px; box-shadow: 0 10px 30px rgba(17, 31, 61, .08); }

    /* Favorites as desktop cards */
    .er-favorites-page .er-app-page-header,
    .er-messages-page .er-app-page-header,
    .er-rent-profile-page .er-app-page-header { margin-bottom: 22px; }
    .er-app-page-header .er-app-header-actions { display: none; }
    .er-favorite-search { max-width: 620px; }
    .er-favorite-categories { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
    .er-favorite-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
    .er-favorite-row { position: relative; min-height: 355px; display: block; border-radius: 15px; }
    .er-favorite-row__media { height: 180px; display: block; }
    .er-favorite-row__content { padding: 13px; }
    .er-favorite-row__content h3 { font-size: .78rem; white-space: normal; }
    .er-favorite-features { margin-top: 10px; }
    .er-favorite-row__side { position: static; display: block; padding: 0 13px 13px; }
    .er-favorite-row__side > strong { display: block; margin-bottom: 10px; text-align: left; }
    .er-favorite-row__side form { position: absolute; top: 10px; right: 10px; }
    .er-favorite-row__side > a { position: absolute; right: 10px; bottom: 10px; }
    .er-provider-rail { grid-auto-columns: minmax(165px, 19%); }

    /* Messages: three desktop panes */
    .er-messages-page { padding-inline: 25px !important; }
    .er-messages-page > .er-favorite-search { display: none; }
    .er-message-tabs { max-width: 530px; margin-bottom: 16px; box-shadow: none; }
    .er-message-layout { height: calc(100vh - 205px); min-height: 650px; grid-template-columns: 28% 46% 26%; border-radius: 14px; }
    .er-conversation-list { border-right: 1px solid #e8ecf3; }
    .er-conversation-list::before { content: "Rechercher une conversation..."; min-height: 43px; display: flex; align-items: center; margin: 12px; padding: 0 15px; border: 1px solid #e4e8f0; border-radius: 9px; color: #8992a4; font-size: .58rem; }
    .er-conversation-list > a { min-height: 82px; grid-template-columns: 46px minmax(0, 1fr) 38px; margin: 4px 8px; border-radius: 10px; }
    .er-chat-avatar img { width: 46px; height: 46px; }
    .er-chat-panel { min-height: 0; }
    .er-chat-listing { grid-template-columns: 95px minmax(0, 1fr) auto; }
    .er-chat-listing img { width: 95px; height: 67px; }
    .er-chat-details { overflow-y: auto; padding: 16px; border-left: 1px solid #e8ecf3; background: #fff; }
    .er-chat-details > header { display: flex; justify-content: space-between; color: #17213a; font-size: .68rem; }
    .er-chat-contact-card { padding: 28px 8px 20px; border-bottom: 1px solid #e8ecf3; text-align: center; }
    .er-chat-contact-card img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; }
    .er-chat-contact-card h2 { margin: 10px 0 3px; color: #111b33 !important; font-size: .86rem !important; font-weight: 900; }
    .er-chat-contact-card span,
    .er-chat-contact-card small,
    .er-chat-contact-card b { display: block; margin-top: 6px; color: #6e798e; font-size: .55rem; }
    .er-chat-contact-card b { color: #354057; }
    .er-chat-contact-card b i { color: #ffad00; }
    .er-chat-detail-listing { padding: 18px 0; border-bottom: 1px solid #e8ecf3; }
    .er-chat-detail-listing h3 { margin: 0 0 12px; color: #17213a; font-size: .66rem; font-weight: 900; }
    .er-chat-detail-listing a { display: grid; grid-template-columns: 76px 1fr; gap: 9px; }
    .er-chat-detail-listing img { width: 76px; height: 62px; border-radius: 8px; object-fit: cover; }
    .er-chat-detail-listing strong,
    .er-chat-detail-listing b,
    .er-chat-detail-listing small { display: block; font-size: .52rem; }
    .er-chat-detail-listing b { margin-top: 5px; color: var(--er-desktop-purple); }
    .er-chat-detail-listing small { margin-top: 5px; color: #788297; }
    .er-chat-detail-options { display: grid; margin-top: 10px; }
    .er-chat-detail-options a { min-height: 45px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; color: #48546b; border-bottom: 1px solid #edf0f5; font-size: .56rem; }
    .er-chat-detail-options i { color: #6d39df; }
    .er-chat-details-empty { height: 100%; display: grid; place-content: center; gap: 8px; color: #8992a5; text-align: center; font-size: .6rem; }
    .er-chat-details-empty i { font-size: 2rem; }

    /* Profile and publishing */
    .er-rent-profile-page .er-profile-card { overflow: hidden; color: #fff; border: 0; background: radial-gradient(circle at 80% 20%, rgba(150,112,255,.38), transparent 25%), linear-gradient(115deg, #2c198f, #4e20c0 60%, #392096); }
    .er-rent-profile-page .er-profile-identity h2,
    .er-rent-profile-page .er-profile-identity p { color: #fff !important; }
    .er-rent-profile-page .er-profile-identity > a { color: #3b1b9e; border-color: #fff; background: #fff; }
    .er-rent-profile-page .er-profile-stats > * { border-color: rgba(255,255,255,.18); color: #fff; }
    .er-rent-profile-page .er-profile-stats strong,
    .er-rent-profile-page .er-profile-stats small,
    .er-rent-profile-page .er-profile-stats i { color: #fff !important; }
    .er-rent-profile-page .er-wallet-card { display: none; }
    .er-profile-listings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .er-publish-page { max-width: none; }
    .er-publish-header { margin-bottom: 20px; }
    .er-publish-benefits { grid-template-columns: repeat(4, 1fr); }
    .er-publish-form { max-width: none; }
    .er-publish-section { padding: 22px; border: 1px solid #e7ebf2; border-radius: 16px; background: #fff; box-shadow: 0 7px 24px rgba(20, 37, 68, .035); }
    .er-publish-categories { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .er-publish-category { min-height: 112px; }
    .er-publish-category .er-sprite { min-height: 70px; }
    .er-photo-preview { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .er-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .er-publish-submit { max-width: 390px; margin-left: auto; }
    .er-publications-page { max-width: none; }
    .er-publication-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .er-publication-card { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (min-width: 1400px) {
    .er-desktop-header { grid-template-columns: 190px 45px minmax(440px, 1fr) auto; }
    .er-listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Booking workflow */
.er-desktop-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #7a8498; font-size: .62rem; }
.er-desktop-breadcrumb a { color: #4d5a72; }
.er-desktop-breadcrumb i { font-size: .43rem; }
.er-booking-title { display: flex; align-items: center; gap: 12px; }
.er-booking-title h1 { margin: 0; color: #101a33 !important; font-size: 1.65rem !important; font-weight: 950; }
.er-booking-title p { margin: 4px 0 0; color: #6f7a90; font-size: .7rem; }
.er-booking-steps { display: flex; align-items: center; justify-content: center; gap: 40px; margin: 24px 0; padding: 0; list-style: none; }
.er-booking-steps li { position: relative; display: flex; align-items: center; gap: 9px; color: #7b8598; font-size: .61rem; font-weight: 800; }
.er-booking-steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(100% + 12px); width: 22px; height: 1px; background: #dfe4ec; }
.er-booking-steps b { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #edf0f5; }
.er-booking-steps .is-active { color: #5f28db; }
.er-booking-steps .is-active b { color: #fff; background: #682be4; box-shadow: 0 6px 15px rgba(104,43,228,.22); }
.er-booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 20px; }
.er-booking-layout > main { display: grid; gap: 15px; }
.er-booking-layout > aside { position: sticky; top: 94px; display: grid; gap: 15px; }
.er-booking-listing-card,
.er-booking-form-section,
.er-booking-summary,
.er-booking-payments { padding: 19px; border: 1px solid #e6eaf1; border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(18,35,66,.035); }
.er-booking-listing-card { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; }
.er-booking-gallery > img,
.er-booking-gallery > .er-media-fallback { width: 100%; height: 190px; border-radius: 12px; object-fit: cover; }
.er-booking-gallery > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 5px; }
.er-booking-gallery > div img { width: 100%; height: 52px; border-radius: 7px; object-fit: cover; }
.er-booking-listing-card > div:last-child > span { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #6328de; background: #f0eaff; font-size: .55rem; font-weight: 850; }
.er-booking-listing-card h2 { margin: 11px 0 7px; color: #121c34 !important; font-size: 1.12rem !important; font-weight: 950; }
.er-booking-listing-card p { margin: 0 0 10px; color: #707b91; font-size: .61rem; }
.er-booking-listing-card > div:last-child > strong { color: #354157; font-size: .64rem; }
.er-booking-listing-card > div:last-child > strong i { color: #ffae00; }
.er-booking-features { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.er-booking-features small { padding: 6px 9px; border-radius: 8px; color: #56627a; background: #f5f6fa; font-size: .52rem; }
.er-booking-form-section h2,
.er-booking-summary h2 { margin: 0 0 17px; color: #14203a !important; font-size: .8rem !important; font-weight: 950; }
.er-booking-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.er-booking-fields label,
.er-booking-note { display: grid; gap: 7px; color: #5f6b82; font-size: .57rem; font-weight: 750; }
.er-booking-fields input,
.er-booking-note textarea { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #dfe5ee; border-radius: 9px; outline: 0; color: #17223a; background: #fff; font-size: .62rem; }
.er-booking-fields input:focus,
.er-booking-note textarea:focus { border-color: #7b45e9; box-shadow: 0 0 0 3px #f0eaff; }
.er-booking-note { margin-top: 13px; }
.er-booking-note textarea { padding-block: 10px; resize: vertical; }
.er-booking-summary-listing { display: grid; grid-template-columns: 75px 1fr; align-items: center; gap: 11px; }
.er-booking-summary-listing img { width: 75px; height: 63px; border-radius: 9px; object-fit: cover; }
.er-booking-summary-listing strong,
.er-booking-summary-listing small { display: block; }
.er-booking-summary-listing strong { color: #17213a; font-size: .62rem; font-weight: 900; }
.er-booking-summary-listing small { margin-top: 6px; color: #7b8498; font-size: .52rem; }
.er-booking-summary dl { margin: 20px 0 0; }
.er-booking-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: #657087; border-bottom: 1px solid #edf0f5; font-size: .56rem; }
.er-booking-summary dd { margin: 0; color: #1b263d; font-weight: 800; text-align: right; }
.er-booking-total { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 16px 0; }
.er-booking-total span { color: #354157; font-size: .66rem; font-weight: 850; }
.er-booking-total strong { color: #6326df; font-size: 1.05rem; font-weight: 950; }
.er-booking-summary > button { width: 100%; min-height: 48px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(90deg, #6424de, #762fe8); font-size: .62rem; font-weight: 900; box-shadow: 0 8px 20px rgba(100,36,222,.2); }
.er-booking-summary > p { margin: 12px 0 0; padding: 11px; border-radius: 9px; color: #187343; background: #edf9f2; font-size: .51rem; line-height: 1.5; }
.er-booking-summary > p i { margin-right: 5px; }
.er-booking-payments h3 { margin: 0 0 12px; color: #17213a; font-size: .67rem; font-weight: 900; }
.er-booking-payments span { display: flex; align-items: center; gap: 9px; min-height: 38px; color: #4d596f; border-bottom: 1px solid #edf0f5; font-size: .56rem; }
.er-booking-payments span:last-child { border: 0; }
.er-booking-payments i { width: 25px; color: #672ae1; text-align: center; }

@media (max-width: 991.98px) {
    .er-booking-page { padding: 16px 14px 35px; }
    .er-desktop-breadcrumb { display: none; }
    .er-booking-title h1 { font-size: 1.18rem !important; }
    .er-booking-title p { font-size: .58rem; }
    .er-booking-steps { justify-content: space-between; gap: 5px; margin: 18px 0; }
    .er-booking-steps li { gap: 4px; }
    .er-booking-steps li span { display: none; }
    .er-booking-steps li:not(:last-child)::after { left: calc(100% + 7px); width: calc((100vw - 170px) / 3); }
    .er-booking-layout { grid-template-columns: 1fr; }
    .er-booking-layout > aside { position: static; }
    .er-booking-listing-card { grid-template-columns: 1fr; }
    .er-booking-fields { grid-template-columns: 1fr; }
    .er-booking-summary { order: -1; }
}
/* Assistant IA de publication */
.er-ai-assistant {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
    padding: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0, rgba(96, 165, 250, .42), transparent 38%),
        linear-gradient(135deg, #111d4a 0%, #163a85 52%, #0b63ce 100%);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(17, 58, 133, .2);
}

.er-ai-assistant__icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #12336f;
    background: linear-gradient(145deg, #fff, #c7e0ff);
    border-radius: 17px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
    font-size: 1.25rem;
}

.er-ai-assistant__body { flex: 1; min-width: 0; }
.er-ai-assistant__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.er-ai-assistant__heading strong { display: block; font-size: 1rem; }
.er-ai-assistant__heading span { display: block; margin-top: 3px; color: rgba(255, 255, 255, .76); font-size: .78rem; line-height: 1.45; }
.er-ai-assistant__status { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: #dbeafe; font-size: .76rem; font-weight: 700; }
.er-ai-assistant__status i { color: #93c5fd; font-size: .45rem; }
.er-ai-assistant__status[data-state="loading"] i { color: #fbbf24; animation: erAiPulse 1s ease-in-out infinite; }
.er-ai-assistant__status[data-state="success"] i { color: #4ade80; }
.er-ai-assistant__status[data-state="error"] i { color: #fca5a5; }

.er-ai-toggle { display: inline-flex; align-items: center; gap: 7px; color: #fff; cursor: pointer; font-size: .7rem; font-weight: 800; }
.er-ai-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.er-ai-toggle b { position: relative; width: 34px; height: 19px; background: rgba(255, 255, 255, .25); border-radius: 20px; transition: .2s ease; }
.er-ai-toggle b::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; background: #fff; border-radius: 50%; transition: .2s ease; }
.er-ai-toggle input:checked + b { background: #22c55e; }
.er-ai-toggle input:checked + b::after { transform: translateX(15px); }

.er-ai-assistant__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 15px;
    color: #11326c;
    background: #fff;
    border: 0;
    border-radius: 13px;
    font-size: .76rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}
.er-ai-assistant__button:disabled { opacity: .68; cursor: wait; }
.er-ai-spin { animation: erAiSpin .8s linear infinite; }
.er-ai-filled { animation: erAiFilled 1.3s ease; }

@keyframes erAiSpin { to { transform: rotate(360deg); } }
@keyframes erAiPulse { 50% { opacity: .3; transform: scale(.72); } }
@keyframes erAiFilled {
    0%, 45% { box-shadow: 0 0 0 3px rgba(37, 211, 102, .28); background-color: #f0fff6; }
    100% { box-shadow: none; }
}

@media (max-width: 640px) {
    .er-ai-assistant { align-items: flex-start; flex-wrap: wrap; padding: 15px; border-radius: 18px; }
    .er-ai-assistant__icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
    .er-ai-assistant__body { flex-basis: calc(100% - 62px); }
    .er-ai-assistant__heading { display: block; }
    .er-ai-toggle { margin-top: 8px; }
    .er-ai-assistant__button { width: 100%; }
}

/* Galerie complète d'une publication EASYRENT */
.er-listing-gallery {
    overflow: hidden;
    padding: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.er-listing-gallery__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 4px 13px;
}
.er-listing-gallery__heading > div { display: flex; align-items: baseline; gap: 9px; }
.er-listing-gallery__heading span { color: #18233d; font-size: .95rem; font-weight: 900; }
.er-listing-gallery__heading strong {
    padding: 4px 8px;
    color: #075fcc;
    background: #eaf3ff;
    border-radius: 999px;
    font-size: .66rem;
}
.er-listing-gallery__heading small { color: #718096; font-size: .7rem; font-weight: 700; }

.er-listing-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 9px;
}
.er-listing-gallery__item {
    position: relative;
    grid-column: span 6;
    min-height: 240px;
    overflow: hidden;
    padding: 0;
    background: #e9eef5;
    border: 0;
    border-radius: 14px;
    cursor: zoom-in;
}
.er-listing-gallery__grid.has-many .er-listing-gallery__item.is-cover {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 429px;
}
.er-listing-gallery__grid.has-many .er-listing-gallery__item:not(.is-cover) {
    grid-column: span 4;
    min-height: 210px;
}
.er-listing-gallery__item img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}
.er-listing-gallery__item:hover img { transform: scale(1.035); filter: saturate(1.06); }
.er-listing-gallery__item > span {
    position: absolute;
    right: 9px;
    bottom: 9px;
    padding: 5px 9px;
    color: #fff;
    background: rgba(8, 18, 38, .72);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    backdrop-filter: blur(7px);
    font-size: .62rem;
    font-weight: 850;
}

.er-gallery-lightbox {
    width: min(94vw, 1180px);
    max-width: none;
    height: min(90vh, 820px);
    max-height: none;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #07101f;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .65);
}
.er-gallery-lightbox::backdrop { background: rgba(3, 8, 18, .86); backdrop-filter: blur(8px); }
.er-gallery-lightbox figure { display: grid; width: 100%; height: 100%; margin: 0; place-items: center; }
.er-gallery-lightbox figure img { display: block; max-width: 100%; max-height: calc(100% - 44px); object-fit: contain; }
.er-gallery-lightbox figcaption { position: absolute; bottom: 12px; color: rgba(255, 255, 255, .78); font-size: .76rem; font-weight: 700; }
.er-gallery-lightbox__close,
.er-gallery-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff;
    background: rgba(10, 19, 36, .72);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    backdrop-filter: blur(8px);
}
.er-gallery-lightbox__close { top: 14px; right: 14px; }
.er-gallery-lightbox__nav { top: 50%; transform: translateY(-50%); }
.er-gallery-lightbox__nav.is-prev { left: 14px; }
.er-gallery-lightbox__nav.is-next { right: 14px; }

@media (max-width: 767.98px) {
    .er-listing-gallery { padding: 10px; border-radius: 15px; }
    .er-listing-gallery__heading { align-items: flex-start; }
    .er-listing-gallery__heading > div { display: block; }
    .er-listing-gallery__heading strong { display: inline-block; margin-top: 4px; }
    .er-listing-gallery__heading small { max-width: 125px; text-align: right; }
    .er-listing-gallery__grid,
    .er-listing-gallery__grid.has-many { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .er-listing-gallery__item,
    .er-listing-gallery__grid.has-many .er-listing-gallery__item:not(.is-cover) {
        grid-column: span 1;
        min-height: 145px;
        border-radius: 10px;
    }
    .er-listing-gallery__grid.has-many .er-listing-gallery__item.is-cover,
    .er-listing-gallery__item.is-cover {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 250px;
    }
    .er-listing-gallery__item > span { right: 6px; bottom: 6px; padding: 4px 7px; }
    .er-gallery-lightbox { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
    .er-gallery-lightbox__nav { width: 40px; height: 40px; }
    .er-gallery-lightbox__nav.is-prev { left: 8px; }
    .er-gallery-lightbox__nav.is-next { right: 8px; }
}
