/* Estatebay – listing marketplace styles. Uses the theme's fonts; colors via --estatebay-accent. */
.estatebay {
	--estatebay-accent: #0f766e;
	--estatebay-muted: #646970;
	--estatebay-line: #e2e4e7;
	--estatebay-soft: #f5f7f8;
	--estatebay-radius: 10px;
	--estatebay-ok: #00733a;
	--estatebay-err: #b32d2e;
	--estatebay-gold: #f0b849;
	box-sizing: border-box;
	margin: 0 0 2em;
	container-type: inline-size;
	container-name: estatebay;
}
.estatebay *, .estatebay *::before, .estatebay *::after { box-sizing: inherit; }
.estatebay [hidden] { display: none !important; }
.estatebay img { max-width: 100%; height: auto; }
.estatebay .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Buttons and links */
.estatebay .estatebay-button,
.estatebay button.estatebay-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em; flex-wrap: wrap;
	background: var(--estatebay-accent); color: #fff; border: 2px solid var(--estatebay-accent);
	border-radius: 8px; padding: .6em 1.2em; font-size: 15px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: filter .15s, background .15s;
}
.estatebay .estatebay-button:hover, .estatebay .estatebay-button:focus { filter: brightness(.92); color: #fff; }
.estatebay .estatebay-button--ghost { background: transparent; color: var(--estatebay-accent); }
.estatebay .estatebay-button--ghost:hover, .estatebay .estatebay-button--ghost:focus { color: var(--estatebay-accent); background: var(--estatebay-soft); filter: none; }
.estatebay .estatebay-button--small { padding: .4em .8em; font-size: 13px; }
.estatebay .estatebay-button--large { padding: .85em 1.8em; font-size: 17px; }
.estatebay .estatebay-button--block { display: flex; width: 100%; margin: 0 0 .6em; }
.estatebay .estatebay-button--block small { font-weight: 400; opacity: .85; }
.estatebay .estatebay-button--whatsapp { background: #1fa855; border-color: #1fa855; }
.estatebay .estatebay-link { background: none; border: 0; padding: 0; color: var(--estatebay-accent); cursor: pointer; font: inherit; text-decoration: underline; }
.estatebay .estatebay-danger { color: var(--estatebay-err); }

/* Notices and boxes */
.estatebay-notice { padding: .8em 1em; border-radius: var(--estatebay-radius); margin: 0 0 1em; border-left: 4px solid; background: var(--estatebay-soft); }
.estatebay-notice--success { border-color: var(--estatebay-ok); background: #edfaef; }
.estatebay-notice--error { border-color: var(--estatebay-err); background: #fcf0f1; }
.estatebay-notice--info { border-color: var(--estatebay-accent); }
.estatebay-box { border: 1px solid var(--estatebay-line); border-radius: var(--estatebay-radius); padding: 1.2em 1.4em; margin: 0 0 1.5em; background: #fff; }
.estatebay-box h3 { margin-top: 0; }
.estatebay-empty { padding: 1.5em; text-align: center; background: var(--estatebay-soft); border-radius: var(--estatebay-radius); color: var(--estatebay-muted); }
.estatebay-help { display: block; color: var(--estatebay-muted); font-size: 13px; margin: .3em 0 0; }
.estatebay-bank { background: var(--estatebay-soft); padding: .8em 1em; border-radius: 8px; }
.estatebay-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: .2em .65em; border-radius: 20px; background: var(--estatebay-soft); white-space: nowrap; }
.estatebay-pill--publish, .estatebay-pill--order-paid { background: #edfaef; color: var(--estatebay-ok); }
.estatebay-pill--pending, .estatebay-pill--order-pending { background: #fcf9e8; color: #8a6d00; }
.estatebay-pill--sold { background: #e7f0fd; color: #135e96; }
.estatebay-pill--expired, .estatebay-pill--order-cancelled { background: #f0f0f1; color: var(--estatebay-muted); }
.estatebay-pill--featured { background: var(--estatebay-gold); color: #1d2327; }

/* Grid and cards */
.estatebay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1em; }
.estatebay-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--estatebay-line); border-radius: var(--estatebay-radius); overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.estatebay-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.08); transform: translateY(-2px); }
.estatebay-card.is-featured { border-color: var(--estatebay-gold); box-shadow: 0 0 0 1px var(--estatebay-gold); }
.estatebay-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--estatebay-soft); overflow: hidden; }
.estatebay-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.estatebay-card__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--estatebay-soft), #e9ecef); }
.estatebay-card__badges { position: absolute; top: .6em; left: .6em; display: flex; gap: .3em; flex-wrap: wrap; }
.estatebay-card__count { position: absolute; bottom: .6em; right: .6em; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: .15em .55em; border-radius: 12px; }
.estatebay-card__count::before { content: "▣ "; }
.estatebay-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: .25em .65em; border-radius: 20px; background: rgba(255,255,255,.94); color: #1d2327; }
.estatebay-badge--featured { background: var(--estatebay-gold); }
.estatebay-badge--muted { background: #1d2327; color: #fff; }
.estatebay-card__body { padding: .8em 1em 1em; display: flex; flex-direction: column; gap: .3em; flex: 1; }
.estatebay-card__price { margin: 0; font-size: 20px; font-weight: 800; color: var(--estatebay-accent); }
.estatebay-card__title { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; }
.estatebay-card__title a { color: inherit; text-decoration: none; }
.estatebay-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.estatebay-card__specs { list-style: none; margin: .2em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25em .4em; font-size: 13px; color: var(--estatebay-muted); }
.estatebay-card__specs li + li::before { content: "·"; margin-right: .4em; }
.estatebay-card__place { margin: auto 0 0; padding-top: .3em; font-size: 13px; color: var(--estatebay-muted); }
.estatebay-card__place::before { content: "⌖ "; }

/* Favorite heart */
.estatebay-fav { position: absolute; top: .55em; right: .55em; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.estatebay-fav svg { fill: none; stroke: #1d2327; stroke-width: 2; }
.estatebay-fav.is-saved svg { fill: #e0245e; stroke: #e0245e; }
.estatebay-fav-btn.is-saved { background: #fdeef3; border-color: #e0245e; color: #e0245e; }

/* Browse: filters + results */
.estatebay-browse { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.5em; align-items: start; }
.estatebay-browse.no-filters { grid-template-columns: 1fr; }
.estatebay-filters__form { background: var(--estatebay-soft); border-radius: var(--estatebay-radius); padding: 1em; position: sticky; top: 1em; }
.estatebay-filters__toggle { display: none !important; }
.estatebay-filters .estatebay-field { margin: 0 0 .9em; }
.estatebay-filters label, .estatebay-filters summary { display: block; font-weight: 600; font-size: 14px; margin-bottom: .3em; cursor: pointer; }
.estatebay-filters .estatebay-check { font-weight: normal; }
.estatebay-filters input[type="search"], .estatebay-filters input[type="number"], .estatebay-filters select { width: 100%; min-height: 40px; padding: .35em .6em; border: 1px solid var(--estatebay-line); border-radius: 6px; background: #fff; }
.estatebay-range__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; }
.estatebay-filters__actions { display: flex; gap: 1em; align-items: center; margin: 1em 0 0; }
.estatebay-filters__actions .estatebay-button { flex: 1; }
.estatebay-results__bar { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin: 0 0 1em; flex-wrap: wrap; }
.estatebay-results__count { margin: 0; font-weight: 600; }
.estatebay-sort select { min-height: 38px; padding: .3em .6em; border: 1px solid var(--estatebay-line); border-radius: 6px; background: #fff; }
.estatebay-pagination { display: flex; flex-wrap: wrap; gap: .35em; margin: 1.5em 0 0; }
.estatebay-pagination a, .estatebay-pagination span { min-width: 38px; text-align: center; padding: .45em .7em; border: 1px solid var(--estatebay-line); border-radius: 6px; text-decoration: none; }
.estatebay-pagination .is-current { background: var(--estatebay-accent); color: #fff; border-color: var(--estatebay-accent); }
.estatebay-pagination__gap { border: 0 !important; }
.estatebay-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; margin: 0 0 .8em; }
.estatebay-section-head h2 { margin: 0; }

/* Search bar (home page) */
.estatebay-searchbar { display: flex; flex-wrap: wrap; gap: .5em; padding: .8em; background: #fff; border-radius: var(--estatebay-radius); box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.estatebay-searchbar select, .estatebay-searchbar input { flex: 1 1 160px; min-height: 46px; padding: .4em .7em; border: 1px solid var(--estatebay-line); border-radius: 8px; background: #fff; }
.estatebay-searchbar .estatebay-button { flex: 0 0 auto; min-height: 46px; }

/* Forms */
.estatebay-form .estatebay-field { margin: 0 0 1em; }
.estatebay-form label, .estatebay-form legend { display: block; font-weight: 600; margin-bottom: .3em; }
.estatebay-form .estatebay-check, .estatebay-form .estatebay-radio-card { font-weight: normal; }
.estatebay-form input[type="text"], .estatebay-form input[type="email"], .estatebay-form input[type="url"], .estatebay-form input[type="tel"],
.estatebay-form input[type="password"], .estatebay-form input[type="number"], .estatebay-form select, .estatebay-form textarea {
	width: 100%; padding: .55em .7em; border: 1px solid #c3c4c7; border-radius: 8px; font: inherit; min-height: 44px; background: #fff;
}
.estatebay-form textarea { min-height: 110px; line-height: 1.5; }
.estatebay-form input:focus, .estatebay-form select:focus, .estatebay-form textarea:focus { outline: 2px solid var(--estatebay-accent); outline-offset: 1px; border-color: var(--estatebay-accent); }
.estatebay-form fieldset { border: 0; padding: 0; margin: 0 0 1em; min-width: 0; }
.estatebay-section { background: #fff; border: 1px solid var(--estatebay-line) !important; border-radius: var(--estatebay-radius); padding: 1.2em 1.3em .4em !important; margin: 0 0 1.2em !important; }
.estatebay-section > legend { float: left; width: 100%; font-size: 18px; margin: 0 0 .8em; padding: 0; }
.estatebay-section > legend + * { clear: both; }
.estatebay-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1em; }
.estatebay-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.estatebay-field--bool { display: flex; align-items: flex-end; padding-bottom: .7em; }
.estatebay-check { display: inline-flex; align-items: center; gap: .45em; cursor: pointer; margin: 0 1em .3em 0; }
.estatebay-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .2em .8em; }
.estatebay-unit-wrap { display: flex; align-items: center; gap: .5em; }
.estatebay-unit-wrap select { width: auto !important; flex: 0 0 auto; }
.estatebay-unit { color: var(--estatebay-muted); font-size: 14px; white-space: nowrap; }
.estatebay-req { color: var(--estatebay-err); }
.estatebay-radio-card { display: flex; gap: .6em; align-items: center; padding: .8em 1em; border: 1px solid var(--estatebay-line); border-radius: 8px; cursor: pointer; margin: 0 0 .5em; }
.estatebay-radio-card:has(input:checked) { border-color: var(--estatebay-accent); background: var(--estatebay-soft); }
.estatebay-form__status { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.estatebay-form__submit { text-align: right; }
.estatebay-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Photo uploader */
.estatebay-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6em; margin: .6em 0; }
.estatebay-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--estatebay-soft); cursor: grab; border: 2px solid transparent; }
.estatebay-photo:first-child { border-color: var(--estatebay-accent); }
.estatebay-photo:first-child::after { content: attr(data-cover); position: absolute; left: 0; bottom: 0; right: 0; background: var(--estatebay-accent); color: #fff; font-size: 11px; font-weight: 700; text-align: center; padding: 2px 0; }
.estatebay-photo.is-dragging { opacity: .4; }
.estatebay-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.estatebay-photo__remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.estatebay-dropzone { display: flex !important; align-items: center; justify-content: center; min-height: 90px; border: 2px dashed #c3c4c7; border-radius: var(--estatebay-radius); cursor: pointer; color: var(--estatebay-accent); font-weight: 700; margin: 0 0 1em; position: relative; }
.estatebay-dropzone:hover, .estatebay-dropzone.is-over { border-color: var(--estatebay-accent); background: var(--estatebay-soft); }
.estatebay-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Map */
.estatebay-map { height: 320px; border-radius: var(--estatebay-radius); overflow: hidden; background: var(--estatebay-soft); z-index: 0; }
.estatebay-map--edit { height: 360px; cursor: crosshair; }
.estatebay-map .leaflet-container a { color: #0078a8; }

/* Single listing */
.estatebay-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.8em; align-items: start; }
.estatebay-detail__side { position: sticky; top: 1em; }
.estatebay-gallery { margin: 0 0 1.2em; }
.estatebay-gallery__stage { position: relative; aspect-ratio: 16 / 10; background: #111; border-radius: var(--estatebay-radius); overflow: hidden; }
.estatebay-gallery__img { width: 100%; height: 100% !important; object-fit: contain; display: block; }
.estatebay-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); font-size: 26px; line-height: 1; cursor: pointer; }
.estatebay-gallery__nav--prev { left: .7em; }
.estatebay-gallery__nav--next { right: .7em; }
.estatebay-gallery__counter { position: absolute; bottom: .7em; right: .8em; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: .2em .65em; border-radius: 12px; }
.estatebay-gallery__thumbs { display: flex; gap: .45em; overflow-x: auto; padding: .5em 0 .2em; scrollbar-width: thin; }
.estatebay-gallery__thumb { flex: 0 0 86px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.estatebay-gallery__thumb.is-active, .estatebay-gallery__thumb:hover { border-color: var(--estatebay-accent); opacity: 1; }
.estatebay-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.estatebay-detail__summary { border-bottom: 1px solid var(--estatebay-line); padding: 0 0 1em; margin: 0 0 1.2em; }
.estatebay-detail__price { font-size: 30px; font-weight: 800; color: var(--estatebay-accent); margin: 0 0 .2em; }
.estatebay-detail__place, .estatebay-detail__meta { margin: 0 0 .3em; color: var(--estatebay-muted); }
.estatebay-detail__actions { display: flex; gap: .5em; flex-wrap: wrap; margin-top: .8em; }
.estatebay-detail__section { margin: 0 0 1.6em; }
.estatebay-detail__section h2 { font-size: 19px; margin: 0 0 .7em; }
.estatebay-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.6em; margin: 0; }
.estatebay-specs div { display: flex; justify-content: space-between; gap: 1em; padding: .55em 0; border-bottom: 1px solid var(--estatebay-line); }
.estatebay-specs dt { color: var(--estatebay-muted); margin: 0; }
.estatebay-specs dd { margin: 0; font-weight: 600; text-align: right; }
.estatebay-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .4em 1em; }
.estatebay-features li { padding-left: 1.5em; position: relative; }
.estatebay-features li::before { position: absolute; left: 0; font-weight: 700; }
.estatebay-features .is-on::before { content: "✓"; color: var(--estatebay-ok); }
.estatebay-features .is-off { color: #a7aaad; text-decoration: line-through; }
.estatebay-features .is-off::before { content: "–"; }
.estatebay-description { line-height: 1.65; }
.estatebay-seller { border: 1px solid var(--estatebay-line); border-radius: var(--estatebay-radius); padding: 1.2em; background: #fff; }
.estatebay-seller__head { display: flex; gap: .8em; align-items: center; margin: 0 0 1em; }
.estatebay-seller__logo, .estatebay-seller__avatar { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px; object-fit: cover; }
.estatebay-seller__avatar { display: flex; align-items: center; justify-content: center; background: var(--estatebay-soft); color: var(--estatebay-accent); font-size: 22px; font-weight: 800; }
.estatebay-seller__name { margin: 0; font-weight: 700; font-size: 17px; }
.estatebay-seller__type { margin: 0; font-size: 13px; color: var(--estatebay-muted); }
.estatebay-seller__address, .estatebay-seller__links { font-size: 14px; color: var(--estatebay-muted); margin: .6em 0 0; }
.estatebay-message-form textarea { margin: 0 0 .5em; }
.estatebay-safety { font-size: 13px; color: var(--estatebay-muted); background: #fcf9e8; border-radius: 8px; padding: .8em 1em; margin: 1em 0 0; }

/* Account */
.estatebay-account { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5em; }
.estatebay-account__box { border: 1px solid var(--estatebay-line); border-radius: var(--estatebay-radius); padding: 1.4em; background: #fff; }
.estatebay-account__box h2 { margin-top: 0; font-size: 22px; }
.estatebay-account #estatebay-login p { margin: 0 0 1em; }
.estatebay-account #estatebay-login label { display: block; font-weight: 600; margin-bottom: .3em; }
.estatebay-account #estatebay-login .login-remember label { font-weight: normal; }
.estatebay-account #estatebay-login input[type="text"], .estatebay-account #estatebay-login input[type="password"] { width: 100%; padding: .55em .7em; border: 1px solid #c3c4c7; border-radius: 8px; min-height: 44px; }
.estatebay-account #estatebay-login .button-primary { background: var(--estatebay-accent); color: #fff; border: 0; border-radius: 8px; padding: .7em 1.4em; font-weight: 600; cursor: pointer; }
.estatebay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.estatebay-tabs legend { grid-column: 1 / -1; }
.estatebay-tab { position: relative; margin: 0 !important; }
.estatebay-tab input { position: absolute; opacity: 0; }
.estatebay-tab span { display: block; text-align: center; padding: .8em; border: 2px solid var(--estatebay-line); border-radius: 8px; cursor: pointer; font-weight: 600; height: 100%; }
.estatebay-tab span small { display: block; font-weight: normal; color: var(--estatebay-muted); font-size: 12px; }
.estatebay-tab input:checked + span { border-color: var(--estatebay-accent); background: var(--estatebay-soft); }
.estatebay-tab input:focus-visible + span { outline: 2px solid var(--estatebay-accent); outline-offset: 2px; }
.estatebay-logo-preview { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: var(--estatebay-soft); display: block; margin: 0 0 .4em; }

/* Packages */
.estatebay-free-note { background: var(--estatebay-soft); border-radius: var(--estatebay-radius); padding: .9em 1.2em; margin: 0 0 1.4em; }
.estatebay-free-note p { margin: 0; }
.estatebay-packages__title { font-size: 20px; margin: 1.2em 0 .7em; }
.estatebay-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2em; }
.estatebay-package { border: 1px solid var(--estatebay-line); border-radius: 14px; padding: 1.5em; background: #fff; display: flex; flex-direction: column; }
.estatebay-package.is-featured { border: 2px solid var(--estatebay-gold); }
.estatebay-package__name { margin: 0 0 .3em; font-size: 20px; }
.estatebay-package__price { font-size: 30px; font-weight: 800; margin: 0; color: var(--estatebay-accent); }
.estatebay-package__price small, .estatebay-package__tax { display: block; font-size: 13px; font-weight: 600; color: var(--estatebay-muted); }
.estatebay-package__unit { margin: .1em 0 0; font-size: 13px; color: var(--estatebay-muted); }
.estatebay-package__features { list-style: none; padding: 0; margin: .8em 0 1em; flex: 1; }
.estatebay-package__features li { padding: .35em 0 .35em 1.4em; position: relative; border-bottom: 1px dashed var(--estatebay-line); }
.estatebay-package__features li::before { content: "✓"; position: absolute; left: 0; color: var(--estatebay-ok); font-weight: 700; }
.estatebay-package__desc { color: var(--estatebay-muted); font-size: 14px; }
.estatebay-package form { margin: 0; }
.estatebay-package .estatebay-button { width: 100%; }

/* Dashboard */
.estatebay-tabs-nav { display: flex; flex-wrap: wrap; gap: .3em; align-items: center; border-bottom: 1px solid var(--estatebay-line); margin: 0 0 1.2em; padding-bottom: .5em; }
.estatebay-tabs-nav a { padding: .5em .9em; border-radius: 8px; text-decoration: none; font-weight: 600; color: inherit; }
.estatebay-tabs-nav a.is-active { background: var(--estatebay-soft); color: var(--estatebay-accent); }
.estatebay-tabs-nav .estatebay-tabs-nav__cta { margin-left: auto; color: #fff; }
.estatebay-quota { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8em; margin: 0 0 1.2em; }
.estatebay-quota > div { background: var(--estatebay-soft); border-radius: var(--estatebay-radius); padding: .9em 1em; display: flex; flex-direction: column; gap: .15em; }
.estatebay-quota strong { font-size: 22px; }
.estatebay-quota span { font-size: 13px; color: var(--estatebay-muted); }
.estatebay-quota__type strong { font-size: 16px; }
.estatebay-quota__type a { font-size: 13px; }
.estatebay-table-wrap { overflow-x: auto; }
.estatebay-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.estatebay-table th, .estatebay-table td { text-align: left; padding: .7em .6em; border-bottom: 1px solid var(--estatebay-line); vertical-align: middle; }
.estatebay-table th { font-size: 13px; color: var(--estatebay-muted); font-weight: 600; }
.estatebay-table__main { display: flex; gap: .7em; align-items: center; }
.estatebay-table__main img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; flex: 0 0 56px; }
.estatebay-table__actions { text-align: right; white-space: nowrap; }
.estatebay-table__actions a { margin-left: .8em; font-size: 14px; }
.estatebay-threads { list-style: none; margin: 0; padding: 0; border: 1px solid var(--estatebay-line); border-radius: var(--estatebay-radius); overflow: hidden; }
.estatebay-threads li + li { border-top: 1px solid var(--estatebay-line); }
.estatebay-threads a { display: grid; grid-template-columns: 1fr auto; gap: .1em 1em; padding: .8em 1em; text-decoration: none; color: inherit; }
.estatebay-threads a:hover { background: var(--estatebay-soft); }
.estatebay-threads .is-unread a { background: #f0f8f7; }
.estatebay-threads__who { font-weight: 700; }
.estatebay-threads__what { grid-column: 1; font-size: 14px; color: var(--estatebay-accent); }
.estatebay-threads__last { grid-column: 1; font-size: 14px; color: var(--estatebay-muted); }
.estatebay-threads time { grid-column: 2; grid-row: 1; font-size: 12px; color: var(--estatebay-muted); }
.estatebay-thread-head { display: flex; gap: .8em; align-items: center; margin: 0 0 1em; }
.estatebay-thread-head img { border-radius: 6px; object-fit: cover; }
.estatebay-thread { display: flex; flex-direction: column; gap: .6em; padding: 1em; background: var(--estatebay-soft); border-radius: var(--estatebay-radius); max-height: 520px; overflow-y: auto; margin: 0 0 1em; }
.estatebay-msg { max-width: 78%; background: #fff; border-radius: 12px 12px 12px 3px; padding: .6em .9em; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.estatebay-msg.is-mine { align-self: flex-end; background: var(--estatebay-accent); color: #fff; border-radius: 12px 12px 3px 12px; }
.estatebay-msg p { margin: 0; }
.estatebay-msg time { display: block; font-size: 11px; opacity: .7; margin-top: .3em; }
.estatebay-reply { display: flex; gap: .6em; align-items: flex-end; }
.estatebay-reply textarea { min-height: 60px; }

@container estatebay (max-width: 900px) {
	.estatebay-browse, .estatebay-detail { grid-template-columns: 1fr; }
	.estatebay-filters__toggle { display: inline-flex !important; width: 100%; margin: 0 0 .6em; }
	.estatebay-filters__form { display: none; position: static; }
	.estatebay-filters__form.is-open { display: block; }
	.estatebay-detail__side { position: static; }
	.estatebay-cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container estatebay (max-width: 600px) {
	.estatebay-cols, .estatebay-cols--3, .estatebay-specs { grid-template-columns: 1fr; }
	.estatebay-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7em; }
	.estatebay-card__price { font-size: 17px; }
	.estatebay-card__title { font-size: 14px; }
	.estatebay-table thead { display: none; }
	.estatebay-table, .estatebay-table tbody, .estatebay-table tr, .estatebay-table td { display: block; width: 100%; }
	.estatebay-table tr { border: 1px solid var(--estatebay-line); border-radius: var(--estatebay-radius); margin-bottom: .8em; padding: .5em .8em; }
	.estatebay-table td { border: 0; padding: .3em 0; }
	.estatebay-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--estatebay-muted); }
	.estatebay-table__actions { text-align: left; white-space: normal; }
	.estatebay-table__actions a { margin: 0 1em .3em 0; display: inline-block; }
	.estatebay-tabs-nav .estatebay-tabs-nav__cta { margin-left: 0; }
	.estatebay-msg { max-width: 92%; }
	.estatebay-reply { flex-direction: column; align-items: stretch; }
}

@container estatebay (max-width: 760px) {
	.estatebay-specs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.estatebay-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Right-to-left */
[dir="rtl"] .estatebay-notice { border-left: 0; border-right: 4px solid; }
[dir="rtl"] .estatebay-card__badges { left: auto; right: .6em; }
[dir="rtl"] .estatebay-fav { right: auto; left: .55em; }
[dir="rtl"] .estatebay-card__count { right: auto; left: .6em; }
[dir="rtl"] .estatebay-table th, [dir="rtl"] .estatebay-table td { text-align: right; }
[dir="rtl"] .estatebay-table__actions { text-align: left; }
[dir="rtl"] .estatebay-specs dd { text-align: left; }
[dir="rtl"] .estatebay-features li, [dir="rtl"] .estatebay-package__features li { padding-left: 0; padding-right: 1.5em; }
[dir="rtl"] .estatebay-features li::before, [dir="rtl"] .estatebay-package__features li::before { left: auto; right: 0; }
[dir="rtl"] .estatebay-tabs-nav .estatebay-tabs-nav__cta { margin-left: 0; margin-right: auto; }
[dir="rtl"] .estatebay-form__submit { text-align: left; }
