/* ==========================================================================
   tucasita.pe — public site & user area
   Uses only the variables of tokens.css. Mobile first.
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--tc-font-body);
  color: var(--tc-text);
  background: var(--tc-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--tc-font-heading);
  font-weight: 700;
  color: var(--tc-secondary);
  letter-spacing: -.01em;
}
h1, .h1 { font-size: var(--tc-fs-2xl); }
h2, .h2 { font-size: var(--tc-fs-xl); }
h3, .h3 { font-size: var(--tc-fs-lg); }
@media (min-width: 992px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.5rem; }
}
a { color: var(--tc-primary); text-decoration: none; transition: color var(--tc-transition); }
a:hover { color: var(--tc-primary-hover); }
:focus-visible { outline: 3px solid rgba(var(--tc-primary-rgb), .35); outline-offset: 2px; }
.container-xl { max-width: var(--tc-container); }
.text-muted { color: var(--tc-text-muted) !important; }
.text-primary { color: var(--tc-primary) !important; }
.text-secondary { color: var(--tc-secondary) !important; }
.bg-surface { background: var(--tc-surface); }
.fw-800 { font-weight: 800; }
.small-caps { font-size: var(--tc-fs-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--tc-text-muted); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--tc-secondary); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon-fill { fill: currentColor; stroke: none; }
.icon-lg { width: 1.5em; height: 1.5em; }

/* --- Buttons ------------------------------------------------------------- */
.btn { font-weight: 600; border-radius: var(--tc-radius-sm); padding: .6rem 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: all var(--tc-transition); }
.btn-sm { padding: .35rem .75rem; font-size: var(--tc-fs-sm); }
.btn-lg { padding: .8rem 1.4rem; font-size: var(--tc-fs-lg); }
.btn-primary {
  --bs-btn-bg: var(--tc-primary); --bs-btn-border-color: var(--tc-primary);
  --bs-btn-hover-bg: var(--tc-primary-hover); --bs-btn-hover-border-color: var(--tc-primary-hover);
  --bs-btn-active-bg: var(--tc-primary-hover); --bs-btn-active-border-color: var(--tc-primary-hover);
  --bs-btn-disabled-bg: var(--tc-primary); --bs-btn-disabled-border-color: var(--tc-primary);
  --bs-btn-focus-shadow-rgb: var(--tc-primary-rgb);
}
.btn-secondary {
  --bs-btn-bg: var(--tc-secondary); --bs-btn-border-color: var(--tc-secondary);
  --bs-btn-hover-bg: var(--tc-secondary-hover); --bs-btn-hover-border-color: var(--tc-secondary-hover);
  --bs-btn-active-bg: var(--tc-secondary-hover); --bs-btn-active-border-color: var(--tc-secondary-hover);
}
.btn-outline-primary {
  --bs-btn-color: var(--tc-primary); --bs-btn-border-color: var(--tc-primary);
  --bs-btn-hover-bg: var(--tc-primary); --bs-btn-hover-border-color: var(--tc-primary);
  --bs-btn-active-bg: var(--tc-primary-hover); --bs-btn-active-border-color: var(--tc-primary-hover);
}
.btn-outline-secondary {
  --bs-btn-color: var(--tc-secondary); --bs-btn-border-color: var(--tc-border-strong);
  --bs-btn-hover-bg: var(--tc-secondary-soft); --bs-btn-hover-color: var(--tc-secondary); --bs-btn-hover-border-color: var(--tc-secondary);
  --bs-btn-active-bg: var(--tc-secondary-soft); --bs-btn-active-color: var(--tc-secondary); --bs-btn-active-border-color: var(--tc-secondary);
}
.btn-light { --bs-btn-bg: var(--tc-surface); --bs-btn-border-color: var(--tc-border); --bs-btn-hover-bg: var(--tc-surface-alt); --bs-btn-hover-border-color: var(--tc-border-strong); }
.btn-whatsapp { --bs-btn-bg: #1FA855; --bs-btn-border-color: #1FA855; --bs-btn-color: #fff; --bs-btn-hover-bg: #178A45; --bs-btn-hover-border-color: #178A45; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #178A45; --bs-btn-active-color: #fff; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--tc-radius-pill); }
.btn-link { font-weight: 600; }

/* --- Forms --------------------------------------------------------------- */
.form-label { font-weight: 600; font-size: var(--tc-fs-sm); color: var(--tc-text); margin-bottom: .35rem; }
.form-control, .form-select { border-color: var(--tc-border-strong); border-radius: var(--tc-radius-sm); padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--tc-primary); box-shadow: 0 0 0 .2rem rgba(var(--tc-primary-rgb), .15); }
.form-check-input:checked { background-color: var(--tc-primary); border-color: var(--tc-primary); }
.form-check-input:focus { border-color: var(--tc-primary); box-shadow: 0 0 0 .2rem rgba(var(--tc-primary-rgb), .15); }
.form-text { color: var(--tc-text-muted); }
.input-group-text { background: var(--tc-surface-alt); border-color: var(--tc-border-strong); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pill-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill-options input { position: absolute; opacity: 0; pointer-events: none; }
.pill-options label {
  border: 1px solid var(--tc-border-strong); border-radius: var(--tc-radius-pill); padding: .35rem .85rem;
  font-size: var(--tc-fs-sm); cursor: pointer; background: var(--tc-surface); transition: all var(--tc-transition); user-select: none;
}
.pill-options input:checked + label { background: var(--tc-secondary); color: #fff; border-color: var(--tc-secondary); }
.pill-options input:focus-visible + label { outline: 3px solid rgba(var(--tc-primary-rgb), .35); }

/* --- Cards & surfaces ------------------------------------------------------ */
.card { border: 1px solid var(--tc-border); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow-sm); background: var(--tc-surface); }
.card-header { background: transparent; border-bottom-color: var(--tc-border); font-weight: 600; }
.surface { background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); padding: var(--tc-space-5); }
.section { padding: var(--tc-space-6) 0; }
@media (min-width: 992px) { .section { padding: var(--tc-space-7) 0; } }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: var(--tc-space-5); }
.section-title h2 { margin: 0; }

/* --- Badges -------------------------------------------------------------- */
.tc-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: var(--tc-fs-xs); font-weight: 700; padding: .25rem .55rem; border-radius: var(--tc-radius-pill); line-height: 1.2; white-space: nowrap; }
.tc-badge-featured { background: var(--tc-accent); color: #3D2A00; }
.tc-badge-new { background: var(--tc-secondary); color: #fff; }
.tc-badge-project { background: var(--tc-info); color: #fff; }
.tc-badge-drop { background: var(--tc-success); color: #fff; }
.tc-badge-verified { background: var(--tc-success-soft); color: var(--tc-success); }
.tc-badge-soft { background: var(--tc-secondary-soft); color: var(--tc-secondary); }
.tc-badge-op { background: rgba(255, 255, 255, .92); color: var(--tc-secondary); }
.status-badge { font-size: var(--tc-fs-xs); font-weight: 700; padding: .25rem .6rem; border-radius: var(--tc-radius-pill); }
.status-draft { background: #EEF0F2; color: #4A5560; }
.status-pending { background: var(--tc-warning-soft); color: var(--tc-warning); }
.status-active { background: var(--tc-success-soft); color: var(--tc-success); }
.status-rejected, .status-deleted { background: var(--tc-danger-soft); color: var(--tc-danger); }
.status-paused { background: var(--tc-info-soft); color: var(--tc-info); }
.status-sold { background: var(--tc-secondary-soft); color: var(--tc-secondary); }
.status-expired { background: #EEF0F2; color: #6B7680; }

/* --- Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--tc-surface); border-bottom: 1px solid var(--tc-border); height: var(--tc-header-h); }
.site-header .container-xl { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; flex-shrink: 0; line-height: 1; }
.brand img, .brand svg { height: 30px; width: auto; }
.brand-slogan { font-size: .68rem; font-weight: 500; color: var(--tc-text-muted); margin: 2px 0 0 32px; white-space: nowrap; letter-spacing: .01em; }
@media (max-width: 359.98px) { .brand-slogan { display: none; } }
.main-nav { display: none; gap: .25rem; margin-left: 1rem; }
.main-nav a { color: var(--tc-text); font-weight: 600; font-size: .95rem; padding: .5rem .75rem; border-radius: var(--tc-radius-sm); }
.main-nav a:hover, .main-nav a.active { background: var(--tc-secondary-soft); color: var(--tc-secondary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.header-actions .btn-publish { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tc-secondary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.user-menu .dropdown-toggle::after { display: none; }
.user-menu .dropdown-menu { border-radius: var(--tc-radius); box-shadow: var(--tc-shadow-lg); border-color: var(--tc-border); min-width: 240px; padding: .5rem; }
.user-menu .dropdown-item { border-radius: var(--tc-radius-sm); padding: .5rem .75rem; display: flex; align-items: center; gap: .6rem; }
.user-menu .dropdown-item:active { background: var(--tc-primary); }
.badge-count { background: var(--tc-primary); color: #fff; border-radius: var(--tc-radius-pill); font-size: .7rem; padding: .1rem .45rem; font-weight: 700; margin-left: auto; }
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-actions .btn-publish { display: inline-flex; }
  .mobile-menu-btn { display: none; }
}
.impersonation-bar { background: var(--tc-warning); color: #fff; font-size: var(--tc-fs-sm); padding: .4rem 0; }
.impersonation-bar button { color: #fff; text-decoration: underline; background: none; border: 0; font-weight: 700; }

/* --- Hero & search box ----------------------------------------------------- */
.hero {
  position: relative; color: #fff; padding: 3rem 0 4rem;
  background: linear-gradient(115deg, rgba(15, 61, 62, .92) 0%, rgba(15, 61, 62, .78) 45%, rgba(200, 67, 43, .55) 100%), var(--hero-image, none) center / cover no-repeat, var(--tc-secondary);
}
.hero h1 { color: #fff; font-size: var(--tc-fs-3xl); font-weight: 800; max-width: 760px; }
.hero p.lead { color: rgba(255, 255, 255, .88); max-width: 620px; }
@media (min-width: 992px) { .hero { padding: 5rem 0 6rem; } }
.search-box { background: var(--tc-surface); border-radius: var(--tc-radius-lg); box-shadow: var(--tc-shadow-lg); padding: .75rem; color: var(--tc-text); margin-top: 1.75rem; max-width: 980px; }
.search-tabs { display: flex; gap: .25rem; margin-bottom: .75rem; overflow-x: auto; scrollbar-width: none; }
.search-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.search-tabs label { padding: .45rem 1rem; border-radius: var(--tc-radius-pill); font-weight: 600; cursor: pointer; color: var(--tc-text-muted); white-space: nowrap; }
.search-tabs input:checked + label { background: var(--tc-secondary); color: #fff; }
.search-tabs input:focus-visible + label { outline: 3px solid rgba(var(--tc-primary-rgb), .35); }
.search-fields { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.search-fields .form-control, .search-fields .form-select { height: 52px; border-radius: var(--tc-radius); }
.search-fields .btn { height: 52px; border-radius: var(--tc-radius); }
@media (min-width: 768px) { .search-fields { grid-template-columns: 200px 1fr auto; } }
.hero-stats { display: flex; gap: 2rem; margin-top: 1.5rem; color: rgba(255, 255, 255, .85); font-size: var(--tc-fs-sm); flex-wrap: wrap; }
.hero-stats strong { color: #fff; font-size: 1.25rem; display: block; font-family: var(--tc-font-heading); }

/* Autocomplete */
.autocomplete { position: relative; }
.autocomplete-list { position: absolute; z-index: 1050; top: calc(100% + 4px); left: 0; right: 0; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow-lg); list-style: none; margin: 0; padding: .35rem; max-height: 340px; overflow: auto; }
.autocomplete-list li { padding: .55rem .75rem; border-radius: var(--tc-radius-sm); cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.autocomplete-list li[aria-selected="true"], .autocomplete-list li:hover { background: var(--tc-secondary-soft); }
.autocomplete-list small { color: var(--tc-text-muted); }

/* --- Quick links (home) ---------------------------------------------------- */
.type-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .type-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .type-tiles { grid-template-columns: repeat(6, 1fr); } }
.type-tile { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); color: var(--tc-text); font-weight: 600; transition: all var(--tc-transition); }
.type-tile .icon { width: 28px; height: 28px; color: var(--tc-primary); }
.type-tile:hover { border-color: var(--tc-primary); box-shadow: var(--tc-shadow); color: var(--tc-text); transform: translateY(-2px); }
.city-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .city-tiles { grid-template-columns: repeat(4, 1fr); } }
.city-tile { position: relative; border-radius: var(--tc-radius); overflow: hidden; padding: 1.1rem; min-height: 110px; color: #fff; display: flex; flex-direction: column; justify-content: end;
  background: linear-gradient(160deg, var(--tc-secondary) 0%, #1C5D5E 100%); transition: transform var(--tc-transition); }
.city-tile:nth-child(3n+2) { background: linear-gradient(160deg, #8C3A26 0%, var(--tc-primary) 100%); }
.city-tile:nth-child(3n) { background: linear-gradient(160deg, #3C4A52 0%, #5B6770 100%); }
.city-tile:hover { color: #fff; transform: translateY(-2px); }
.city-tile strong { font-family: var(--tc-font-heading); font-size: 1.1rem; }
.city-tile span { font-size: var(--tc-fs-sm); opacity: .85; }

/* --- Property card ----------------------------------------------------------- */
.prop-card { position: relative; display: flex; flex-direction: column; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); overflow: hidden; transition: box-shadow var(--tc-transition), transform var(--tc-transition); height: 100%; }
.prop-card:hover { box-shadow: var(--tc-shadow); }
.prop-card.is-featured { border-color: var(--tc-accent); box-shadow: 0 0 0 1px var(--tc-accent); }
.prop-media { position: relative; aspect-ratio: 4 / 3; background: var(--tc-surface-alt); overflow: hidden; flex-shrink: 0; }
.prop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.prop-slides::-webkit-scrollbar { display: none; }
.prop-slides > * { flex: 0 0 100%; scroll-snap-align: start; height: 100%; }
.prop-media .slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--tc-text); display: none; align-items: center; justify-content: center; box-shadow: var(--tc-shadow-sm); z-index: 2; }
.prop-media .slide-prev { left: .5rem; }
.prop-media .slide-next { right: .5rem; }
@media (hover: hover) { .prop-card:hover .slide-btn { display: inline-flex; } }
.prop-badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .3rem; flex-wrap: wrap; z-index: 2; max-width: calc(100% - 60px); }
.prop-photo-count { position: absolute; bottom: .6rem; left: .6rem; background: rgba(0, 0, 0, .6); color: #fff; border-radius: var(--tc-radius-pill); font-size: var(--tc-fs-xs); padding: .2rem .55rem; display: inline-flex; gap: .25rem; align-items: center; z-index: 2; }
.fav-btn { position: absolute; top: .5rem; right: .5rem; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--tc-text); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--tc-shadow-sm); transition: transform var(--tc-transition); }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn .icon-heart-fill { display: none; color: var(--tc-primary); }
.fav-btn.is-fav .icon-heart { display: none; }
.fav-btn.is-fav .icon-heart-fill { display: inline; }
.prop-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 0; }
.prop-price { font-family: var(--tc-font-heading); font-weight: 800; font-size: 1.3rem; color: var(--tc-text); display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.prop-price .per { font-size: var(--tc-fs-sm); font-weight: 500; color: var(--tc-text-muted); font-family: var(--tc-font-body); }
.prop-price .old { font-size: var(--tc-fs-sm); color: var(--tc-text-soft); text-decoration: line-through; font-weight: 500; font-family: var(--tc-font-body); }
.prop-equiv { font-size: var(--tc-fs-xs); color: var(--tc-text-muted); }
.prop-title { font-family: var(--tc-font-body); letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--tc-text); margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prop-title a { color: inherit; }
.prop-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.prop-location { font-size: var(--tc-fs-sm); color: var(--tc-text-muted); display: flex; align-items: center; gap: .3rem; }
.prop-specs { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: var(--tc-fs-sm); color: var(--tc-text); margin-top: .25rem; }
.prop-specs span { display: inline-flex; align-items: center; gap: .3rem; }
.prop-specs .icon { color: var(--tc-text-muted); }
.prop-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: var(--tc-fs-xs); color: var(--tc-text-muted); border-top: 1px solid var(--tc-border); }
.prop-seller { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.prop-seller img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; border: 1px solid var(--tc-border); background: #fff; }
.prop-seller span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-inline.is-fav { color: var(--tc-primary); border-color: var(--tc-primary); }
.fav-inline.is-fav .icon { fill: var(--tc-primary); stroke: var(--tc-primary); }
.compare-toggle { position: relative; z-index: 2; background: none; border: 0; color: var(--tc-text-muted); font-size: var(--tc-fs-xs); display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .35rem; border-radius: var(--tc-radius-sm); }
.compare-toggle:hover, .compare-toggle.is-active { color: var(--tc-secondary); background: var(--tc-secondary-soft); }

/* List view: horizontal cards from md */
@media (min-width: 768px) {
  .results-list .prop-card { flex-direction: row; min-height: 220px; }
  .results-list .prop-media { width: 38%; aspect-ratio: auto; min-height: 220px; }
  .results-list .prop-body { padding: 1.1rem 1.25rem; }
  .results-list .prop-title { font-size: 1.05rem; }
  .results-list .prop-desc { display: -webkit-box; }
}
.prop-desc { display: none; font-size: var(--tc-fs-sm); color: var(--tc-text-muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: .15rem 0 0; }

/* Horizontal scroller (home, similar) */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 576px) { .scroller { grid-auto-columns: 48%; } }
@media (min-width: 992px) { .scroller { grid-auto-columns: calc(25% - .75rem); } }

/* --- Search results page --------------------------------------------------- */
.search-head { background: var(--tc-surface); border-bottom: 1px solid var(--tc-border); padding: 1rem 0; }
.search-head h1 { font-size: 1.35rem; margin: 0; }
@media (min-width: 992px) { .search-head h1 { font-size: 1.6rem; } }
.search-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem 0 2.5rem; }
@media (min-width: 992px) { .search-layout { grid-template-columns: 300px minmax(0, 1fr); } }
.filters-panel .offcanvas-body { padding: 1rem; }
@media (min-width: 992px) {
  .filters-panel.offcanvas-lg { position: sticky; top: calc(var(--tc-header-h) + 1rem); max-height: calc(100vh - var(--tc-header-h) - 2rem); overflow: auto; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); scrollbar-width: thin; }
  .filters-panel .offcanvas-body { padding: 1.1rem; }
}
.filter-group { padding: .9rem 0; border-bottom: 1px solid var(--tc-border); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group > .form-label, .filter-group > legend { font-size: var(--tc-fs-sm); font-weight: 700; color: var(--tc-secondary); margin-bottom: .5rem; float: none; }
.filter-actions { position: sticky; bottom: 0; background: var(--tc-surface); padding: .75rem 0 0; display: flex; gap: .5rem; border-top: 1px solid var(--tc-border); }
.district-checklist { max-height: 220px; overflow: auto; border: 1px solid var(--tc-border); border-radius: var(--tc-radius-sm); padding: .5rem .75rem; background: var(--tc-surface-alt); }
.results-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; justify-content: space-between; margin-bottom: 1rem; }
.results-count { font-weight: 600; color: var(--tc-text); }
.view-toggle { display: inline-flex; background: var(--tc-surface); border: 1px solid var(--tc-border-strong); border-radius: var(--tc-radius-sm); overflow: hidden; }
.view-toggle a { padding: .45rem .7rem; color: var(--tc-text-muted); display: inline-flex; align-items: center; gap: .35rem; font-size: var(--tc-fs-sm); font-weight: 600; }
.view-toggle a + a { border-left: 1px solid var(--tc-border); }
.view-toggle a.active { background: var(--tc-secondary); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--tc-secondary-soft); color: var(--tc-secondary); border-radius: var(--tc-radius-pill); padding: .3rem .4rem .3rem .8rem; font-size: var(--tc-fs-sm); font-weight: 600; }
.chip a { color: var(--tc-secondary); width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.chip a:hover { background: rgba(var(--tc-secondary-rgb), .12); }
.results-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 576px) { .results-grid.grid-view { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1400px) { .results-grid.grid-view { grid-template-columns: repeat(3, 1fr); } }
.featured-block { margin-bottom: 1rem; }
.featured-block .results-grid { gap: 1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--tc-surface); border: 1px dashed var(--tc-border-strong); border-radius: var(--tc-radius); }
.empty-state .icon { width: 48px; height: 48px; color: var(--tc-text-soft); margin-bottom: 1rem; }
.mobile-filter-bar { position: sticky; top: var(--tc-header-h); z-index: 1020; background: var(--tc-bg); padding: .6rem 0; display: flex; gap: .5rem; }
@media (min-width: 992px) { .mobile-filter-bar { display: none; } }

/* Map view (split on desktop) */
.map-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.results-map { height: calc(100vh - var(--tc-header-h) - 140px); min-height: 420px; border-radius: var(--tc-radius); border: 1px solid var(--tc-border); overflow: hidden; background: #E8E4DE; }
@media (min-width: 1200px) {
  .map-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .map-layout .results-map { position: sticky; top: calc(var(--tc-header-h) + 1rem); height: calc(100vh - var(--tc-header-h) - 2rem); }
  .map-layout .map-list { max-height: none; }
}
@media (max-width: 1199.98px) {
  .map-layout .map-list { display: none; }
  .map-layout.show-list .map-list { display: block; }
  .map-layout.show-list .results-map { display: none; }
}
.map-search-area { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 800; }
.map-wrap { position: relative; }
.map-popup { width: 220px; font-family: var(--tc-font-body); }
.map-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: .4rem; }
.map-popup strong { display: block; font-family: var(--tc-font-heading); font-size: 1.05rem; color: var(--tc-text); }
.map-popup span { display: block; font-size: .8rem; color: var(--tc-text-muted); }
.map-popup a { font-weight: 600; font-size: .85rem; }
.price-marker { background: var(--tc-surface); color: var(--tc-text); border: 1px solid var(--tc-border-strong); border-radius: var(--tc-radius-pill); padding: .2rem .5rem; font-weight: 700; font-size: .78rem; white-space: nowrap; box-shadow: var(--tc-shadow-sm); transform: translate(-50%, -50%); display: inline-block; }
.price-marker.featured { background: var(--tc-accent); border-color: var(--tc-accent); }
.leaflet-div-icon.price-icon { background: none; border: 0; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(var(--tc-primary-rgb), .25) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: var(--tc-primary) !important; color: #fff !important; font-weight: 700; }

/* Pagination */
.pagination { --bs-pagination-color: var(--tc-text); --bs-pagination-active-bg: var(--tc-secondary); --bs-pagination-active-border-color: var(--tc-secondary); --bs-pagination-hover-color: var(--tc-primary); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(var(--tc-primary-rgb), .2); --bs-pagination-border-color: var(--tc-border); gap: .25rem; flex-wrap: wrap; }
.pagination .page-link { border-radius: var(--tc-radius-sm) !important; min-width: 40px; text-align: center; }

/* --- Property detail ----------------------------------------------------------- */
.breadcrumb { font-size: var(--tc-fs-sm); margin-bottom: .75rem; --bs-breadcrumb-divider-color: var(--tc-text-soft); }
.breadcrumb a { color: var(--tc-text-muted); }
.gallery { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; border-radius: var(--tc-radius-lg); overflow: hidden; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; background: var(--tc-surface-alt); min-width: 0; overflow: hidden; }
.gallery-main .prop-slides img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-side { display: none; }
@media (min-width: 992px) {
  .gallery { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; height: 480px; }
  .gallery-main { grid-row: 1 / 3; aspect-ratio: auto; height: 100%; }
  .gallery-side { display: block; position: relative; overflow: hidden; background: var(--tc-surface-alt); }
  .gallery-side img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .3s ease; }
  .gallery-side:hover img { transform: scale(1.03); }
  .gallery.single { grid-template-columns: minmax(0, 1fr); }
  .gallery.single .gallery-main { grid-row: auto; }
}
.gallery-actions { position: absolute; right: .75rem; bottom: .75rem; display: flex; gap: .4rem; z-index: 3; flex-wrap: wrap; justify-content: end; }
.gallery-actions .btn { background: rgba(255, 255, 255, .95); border: 0; color: var(--tc-text); box-shadow: var(--tc-shadow-sm); }
.gallery-counter { position: absolute; left: .75rem; bottom: .75rem; z-index: 3; background: rgba(0, 0, 0, .6); color: #fff; border-radius: var(--tc-radius-pill); padding: .2rem .6rem; font-size: var(--tc-fs-sm); }
.lightbox .modal-content { background: #0E1415; border: 0; }
.lightbox .modal-header { border: 0; color: #fff; }
.lightbox .btn-close { filter: invert(1); }
.lightbox .carousel-item img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; margin: 0 auto; display: block; object-fit: contain; }
.lightbox .carousel-caption { position: static; color: rgba(255,255,255,.8); padding: .5rem 0 0; }
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 992px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; } }
.detail-price { font-family: var(--tc-font-heading); font-weight: 800; font-size: 2rem; color: var(--tc-text); line-height: 1.1; }
.detail-price small { font-family: var(--tc-font-body); font-size: var(--tc-fs-base); color: var(--tc-text-muted); font-weight: 500; }
.key-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 576px) { .key-facts { grid-template-columns: repeat(4, 1fr); } }
.key-fact { background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); padding: .8rem; display: flex; gap: .6rem; align-items: center; }
.key-fact .icon { width: 26px; height: 26px; color: var(--tc-primary); }
.key-fact strong { display: block; font-size: 1.05rem; }
.key-fact span { font-size: var(--tc-fs-xs); color: var(--tc-text-muted); }
.detail-section { background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); padding: 1.25rem; margin-top: 1rem; }
.detail-section h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.spec-list { display: grid; grid-template-columns: 1fr; gap: 0 2rem; margin: 0; }
@media (min-width: 576px) { .spec-list { grid-template-columns: 1fr 1fr; } }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--tc-border); }
.spec-list dt { font-weight: 500; color: var(--tc-text-muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }
.feature-list li { display: flex; align-items: center; gap: .45rem; }
.feature-list .icon { color: var(--tc-success); }
.description-text { white-space: normal; line-height: 1.7; color: var(--tc-text); }
.description-text.collapsed { max-height: 260px; overflow: hidden; position: relative; }
.description-text.collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--tc-surface)); }
.detail-map { height: 320px; border-radius: var(--tc-radius); overflow: hidden; background: #E8E4DE; }
.video-embed { aspect-ratio: 16 / 9; border-radius: var(--tc-radius); overflow: hidden; background: #000; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-card { position: sticky; top: calc(var(--tc-header-h) + 1rem); }
.contact-card .card-body { padding: 1.25rem; }
.seller-box { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.seller-box img.logo { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--tc-border); border-radius: var(--tc-radius-sm); background: #fff; }
.seller-box .name { font-weight: 700; color: var(--tc-text); }
.mobile-contact-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1025; background: var(--tc-surface); border-top: 1px solid var(--tc-border); padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); display: flex; gap: .5rem; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.mobile-contact-bar .btn { flex: 1; }
@media (min-width: 992px) { .mobile-contact-bar { display: none; } }
body.has-contact-bar { padding-bottom: 76px; }
@media (min-width: 992px) { body.has-contact-bar { padding-bottom: 0; } }
.price-history li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--tc-border); font-size: var(--tc-fs-sm); }

/* Mortgage simulator */
.mortgage-card .result { background: var(--tc-secondary); color: #fff; border-radius: var(--tc-radius); padding: 1.1rem; text-align: center; }
.mortgage-card .result .amount { font-family: var(--tc-font-heading); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.mortgage-card .result small { opacity: .85; }
.mortgage-card .breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem; }
.mortgage-card .breakdown div { background: var(--tc-surface-alt); border: 1px solid var(--tc-border); border-radius: var(--tc-radius-sm); padding: .5rem .6rem; }
.mortgage-card .breakdown span { display: block; font-size: var(--tc-fs-xs); color: var(--tc-text-muted); }
.mortgage-card .breakdown strong { font-size: .95rem; }
.form-range::-webkit-slider-thumb { background: var(--tc-primary); }
.form-range::-moz-range-thumb { background: var(--tc-primary); }
.range-value { font-weight: 700; color: var(--tc-secondary); }
.mortgage-bar { display: flex; height: 10px; border-radius: var(--tc-radius-pill); overflow: hidden; margin-top: .75rem; background: var(--tc-border); }
.mortgage-bar .capital { background: var(--tc-secondary); }
.mortgage-bar .interest { background: var(--tc-primary); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .3rem; }

/* --- Compare ------------------------------------------------------------------ */
.compare-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; z-index: 1040; background: var(--tc-secondary); color: #fff; border-radius: var(--tc-radius-pill); padding: .5rem .5rem .5rem 1.1rem; display: none; align-items: center; gap: .75rem; box-shadow: var(--tc-shadow-lg); font-weight: 600; font-size: var(--tc-fs-sm); max-width: calc(100% - 2rem); }
.compare-bar.show { display: flex; }
.compare-bar .btn { padding: .35rem .9rem; }
body.has-contact-bar .compare-bar { bottom: 88px; }
.compare-table { table-layout: fixed; min-width: 640px; }
.compare-table th { width: 170px; color: var(--tc-text-muted); font-weight: 600; font-size: var(--tc-fs-sm); }
.compare-table td { vertical-align: top; }
.compare-table img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tc-radius-sm); }
.compare-table .best { color: var(--tc-success); font-weight: 700; }

/* --- Account area ------------------------------------------------------------ */
.account-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0 3rem; }
@media (min-width: 992px) { .account-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.account-nav { background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); padding: .5rem; }
.account-nav .nav-title { font-size: var(--tc-fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--tc-text-soft); font-weight: 700; padding: .75rem .75rem .35rem; }
.account-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: var(--tc-radius-sm); color: var(--tc-text); font-weight: 500; }
.account-nav a:hover { background: var(--tc-surface-alt); }
.account-nav a.active { background: var(--tc-primary-soft); color: var(--tc-primary); font-weight: 600; }
@media (max-width: 991.98px) {
  .account-nav { display: flex; overflow-x: auto; gap: .25rem; padding: .35rem; scrollbar-width: none; }
  .account-nav .nav-title { display: none; }
  .account-nav a { white-space: nowrap; flex-shrink: 0; }
}
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-header h1 { margin: 0; font-size: 1.5rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
.stat-tile { background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); padding: 1rem; }
.stat-tile .label { font-size: var(--tc-fs-xs); color: var(--tc-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat-tile .value { font-family: var(--tc-font-heading); font-size: 1.6rem; font-weight: 800; color: var(--tc-secondary); line-height: 1.2; margin-top: .25rem; }
.stat-tile .sub { font-size: var(--tc-fs-xs); color: var(--tc-text-muted); }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .75rem; border-bottom-color: var(--tc-border); }
.table thead th { font-size: var(--tc-fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--tc-text-muted); font-weight: 700; background: var(--tc-surface-alt); }
.listing-row { display: flex; gap: 1rem; padding: 1rem; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); flex-wrap: wrap; }
.listing-row .thumb { width: 120px; height: 90px; border-radius: var(--tc-radius-sm); object-fit: cover; background: var(--tc-surface-alt); flex-shrink: 0; }
.listing-row .info { flex: 1; min-width: 200px; }
.listing-row .actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: start; }

/* Wizard */
.wizard-steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; counter-reset: step; overflow-x: auto; }
.wizard-steps > a, .wizard-steps > span { flex: 1; min-width: 120px; display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border-radius: var(--tc-radius-sm); background: var(--tc-surface); border: 1px solid var(--tc-border); color: var(--tc-text-muted); font-weight: 600; font-size: var(--tc-fs-sm); }
.wizard-steps .num { width: 26px; height: 26px; border-radius: 50%; background: var(--tc-border); color: var(--tc-text); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.wizard-steps .current { border-color: var(--tc-primary); color: var(--tc-primary); background: var(--tc-primary-soft); }
.wizard-steps .current .num { background: var(--tc-primary); color: #fff; }
.wizard-steps .done .num { background: var(--tc-success); color: #fff; }
.dropzone { border: 2px dashed var(--tc-border-strong); border-radius: var(--tc-radius); padding: 2rem 1rem; text-align: center; background: var(--tc-surface-alt); transition: all var(--tc-transition); cursor: pointer; }
.dropzone.dragover { border-color: var(--tc-primary); background: var(--tc-primary-soft); }
.dropzone .icon { width: 40px; height: 40px; color: var(--tc-primary); }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 576px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-item { position: relative; border-radius: var(--tc-radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--tc-surface); cursor: grab; }
.photo-item.is-cover { border-color: var(--tc-primary); }
.photo-item.dragging { opacity: .4; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-item .photo-tools { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; gap: .25rem; padding: .35rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.photo-item .photo-tools button { border: 0; background: rgba(255,255,255,.92); border-radius: 6px; font-size: .72rem; padding: .2rem .4rem; font-weight: 600; }
.photo-item .photo-label { position: absolute; top: .35rem; left: .35rem; }
.upload-progress { height: 6px; }
.map-picker { height: 340px; border-radius: var(--tc-radius); border: 1px solid var(--tc-border); overflow: hidden; }

/* Bars chart (SVG-free, CSS only) */
.bar-chart { display: flex; align-items: end; gap: 3px; height: 160px; padding-top: .5rem; }
.bar-chart .bar { flex: 1; background: var(--tc-secondary); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; opacity: .85; }
.bar-chart .bar:hover { opacity: 1; background: var(--tc-primary); }
.bar-chart-labels { display: flex; justify-content: space-between; font-size: var(--tc-fs-xs); color: var(--tc-text-muted); margin-top: .35rem; }

/* --- Auth pages ---------------------------------------------------------------- */
.auth-wrap { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1rem 3.5rem; }
.auth-card { width: 100%; max-width: 460px; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius-lg); box-shadow: var(--tc-shadow); padding: 2rem 1.5rem; }
@media (min-width: 576px) { .auth-card { padding: 2.25rem 2.25rem; } }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.password-toggle { position: relative; }
.password-toggle .toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--tc-text-muted); padding: .25rem; }

/* --- Agencies -------------------------------------------------------------------- */
.agency-card { display: flex; gap: 1rem; align-items: center; padding: 1rem; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); color: var(--tc-text); height: 100%; transition: box-shadow var(--tc-transition); }
.agency-card:hover { box-shadow: var(--tc-shadow); color: var(--tc-text); }
.agency-card .logo { width: 72px; height: 72px; border-radius: var(--tc-radius-sm); object-fit: contain; border: 1px solid var(--tc-border); background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--tc-secondary); font-size: 1.4rem; }
.seller-hero { background: var(--tc-surface); border-bottom: 1px solid var(--tc-border); padding: 2rem 0; }
.seller-hero .logo { width: 96px; height: 96px; border-radius: var(--tc-radius); object-fit: contain; border: 1px solid var(--tc-border); background: #fff; }

/* --- CMS ------------------------------------------------------------------------------ */
.cms-content { background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); padding: 1.5rem; line-height: 1.75; }
@media (min-width: 768px) { .cms-content { padding: 2.5rem 3rem; } }
.cms-content h2 { font-size: 1.25rem; margin-top: 1.75rem; }
.cms-content h2:first-child { margin-top: 0; }

/* --- Plans ------------------------------------------------------------------------ */
.plan-card { background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius-lg); padding: 1.5rem; height: 100%; display: flex; flex-direction: column; }
.plan-card.recommended { border: 2px solid var(--tc-primary); box-shadow: var(--tc-shadow); }
.plan-card .price { font-family: var(--tc-font-heading); font-size: 2rem; font-weight: 800; color: var(--tc-secondary); }
.plan-card ul { list-style: none; padding: 0; margin: 1rem 0; }
.plan-card li { display: flex; gap: .5rem; padding: .3rem 0; }
.plan-card li .icon { color: var(--tc-success); }

/* --- Footer ----------------------------------------------------------------------- */
.site-footer { background: var(--tc-secondary); color: rgba(255, 255, 255, .78); padding: 3rem 0 1.5rem; margin-top: 3rem; font-size: var(--tc-fs-sm); }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.site-footer .social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; margin-right: .35rem; }
.site-footer .brand-light svg { height: 30px; width: auto; }

/* --- Cookie banner & toasts ------------------------------------------------------ */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1060; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow-lg); padding: 1rem 1.25rem; display: none; gap: 1rem; align-items: center; flex-wrap: wrap; max-width: 720px; margin: 0 auto; font-size: var(--tc-fs-sm); }
.cookie-banner.show { display: flex; }
@media (max-width: 991.98px) { body.has-contact-bar .cookie-banner { bottom: 88px; } }
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; }
.toast-stack { position: fixed; top: calc(var(--tc-header-h) + .75rem); right: .75rem; z-index: 1090; display: flex; flex-direction: column; gap: .5rem; max-width: calc(100% - 1.5rem); }
.tc-toast { background: var(--tc-text); color: #fff; padding: .7rem 1rem; border-radius: var(--tc-radius-sm); box-shadow: var(--tc-shadow-lg); font-size: var(--tc-fs-sm); animation: toast-in .2s ease; }
.tc-toast.success { background: var(--tc-success); }
.tc-toast.danger { background: var(--tc-danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.alert { border-radius: var(--tc-radius-sm); border: 0; }
.alert-success { background: var(--tc-success-soft); color: #145E3C; }
.alert-danger { background: var(--tc-danger-soft); color: #8E231B; }
.alert-warning { background: var(--tc-warning-soft); color: #7A4F10; }
.alert-info { background: var(--tc-info-soft); color: #1F4E80; }

/* Error pages */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page .code { font-family: var(--tc-font-heading); font-size: 5rem; font-weight: 800; color: var(--tc-primary); line-height: 1; }

/* --- Print (listing sheet) ---------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .mobile-contact-bar, .compare-bar, .cookie-banner, .no-print, .gallery-actions, .contact-card form, .fav-btn, .breadcrumb { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .detail-layout { grid-template-columns: 1fr !important; }
  .detail-section, .card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  .gallery { height: auto !important; display: block; }
  .gallery-side { display: none !important; }
  .gallery-main { aspect-ratio: 16 / 9; }
  a[href]::after { content: ""; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
