/* CorectRent — carduri pe pagina Favorite, sub 992px
   16 august 2026. Clasele ct-* vin din
   houzez-child/template-parts/dashboard/property/favorite-item.php
   Dezactivare: comentează linia de enqueue din functions.php */

@media (max-width: 991.98px) {

  .page-template-user_dashboard_favorites .table-responsive .table tr {
    display: grid;
    grid-template-columns: 88px 1fr 32px;
    grid-template-areas:
      "thumb title  actions"
      "thumb price  price"
      "meta  meta   meta";
    gap: 0 12px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
  }

  .page-template-user_dashboard_favorites .table-responsive .table td {
    display: block;
    padding: 0 !important;
    min-height: 0;
    border: none;
  }

  .page-template-user_dashboard_favorites .table-responsive .table td:before {
    display: none !important;
  }

  .page-template-user_dashboard_favorites .ct-thumb {
    grid-area: thumb;
  }

  .page-template-user_dashboard_favorites .ct-thumb .image-holder,
  .page-template-user_dashboard_favorites .ct-thumb a {
    display: block;
    width: 88px;
  }

  .page-template-user_dashboard_favorites .ct-thumb img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }

  .page-template-user_dashboard_favorites .ct-title {
    grid-area: title;
    min-width: 0;
  }

  .page-template-user_dashboard_favorites .ct-title a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-template-user_dashboard_favorites .ct-title br {
    display: none;
  }

  .page-template-user_dashboard_favorites .ct-title address {
    font-size: 13px;
    opacity: .7;
    margin-top: 2px;
  }

  .page-template-user_dashboard_favorites .ct-price {
    grid-area: price;
    align-self: end;
    font-size: 17px;
    font-weight: 700;
  }

  .page-template-user_dashboard_favorites .ct-actions {
    grid-area: actions;
    align-self: start;
    text-align: right;
  }

  .page-template-user_dashboard_favorites .ct-id,
  .page-template-user_dashboard_favorites .ct-type,
  .page-template-user_dashboard_favorites .ct-status {
    grid-area: meta;
    margin-top: 10px;
    padding-top: 8px;
    font-size: 11px;
    opacity: .75;white-space: nowrap;
  }

  .page-template-user_dashboard_favorites .ct-id {
    border-top: 1px solid #f0f0f0;
  }

  .page-template-user_dashboard_favorites .ct-type {
    text-align: center;
  }

  .page-template-user_dashboard_favorites .ct-status {
    text-align: right;
  }

  .page-template-user_dashboard_favorites .ct-date {
    display: none !important;
  }
}
/* CorectRent — carduri pe pagina Anunțuri, sub 992px
   17 august 2026. Clasele ct-* vin din
   houzez-child/template-parts/dashboard/property/property-item.php */

@media (max-width: 991.98px) {

  .page-template-user_dashboard_properties .table-responsive .table tr {
    display: grid;
    grid-template-columns: 88px 1fr auto auto;
    grid-template-areas:
      "thumb title  title  title"
      "thumb price  price  badge"
      "id    type   type   actions";
    gap: 0 12px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
  }

  .page-template-user_dashboard_properties .table-responsive .table td {
    display: block;
    padding: 0 !important;
    min-height: 0;
    border: none;
  }

  .page-template-user_dashboard_properties .table-responsive .table td:before {
    display: none !important;
  }

  .page-template-user_dashboard_properties .ct-select,
  .page-template-user_dashboard_properties .ct-tax,
  .page-template-user_dashboard_properties .ct-date {
    display: none !important;
  }
}
@media (max-width: 991.98px) {

  .page-template-user_dashboard_properties .ct-thumb {
    grid-area: thumb;
  }

  .page-template-user_dashboard_properties .ct-thumb img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }

  .page-template-user_dashboard_properties .ct-title {
    grid-area: title;
    min-width: 0;
  }

  .page-template-user_dashboard_properties .ct-title a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-template-user_dashboard_properties .ct-title br {
    display: none;
  }

  .page-template-user_dashboard_properties .ct-title address {
    font-size: 13px;
    opacity: .7;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-template-user_dashboard_properties .ct-badge {
    grid-area: badge;
    justify-self: end;
  }

  .page-template-user_dashboard_properties .ct-price {
    grid-area: price;
    align-self: end;
    font-size: 17px;
    font-weight: 700;
  }

  .page-template-user_dashboard_properties .ct-id,
  .page-template-user_dashboard_properties .ct-type,
  .page-template-user_dashboard_properties .ct-actions {
    align-self: center;
    margin-top: 10px;
    padding-top: 8px;
    font-size: 11px;
    opacity: .75;
    white-space: nowrap;
    border-top: 1px solid #f0f0f0;
  }

  .page-template-user_dashboard_properties .ct-type {
    text-align: center;
  }

  .page-template-user_dashboard_properties .ct-actions {
    text-align: right;
    opacity: 1;
  }
}
@media (max-width: 991.98px) {
  .page-template-user_dashboard_properties .ct-id      { grid-area: id; }
  .page-template-user_dashboard_properties .ct-type    { grid-area: type; }
  .page-template-user_dashboard_properties .ct-actions { grid-area: actions; }
}
/* ============================================================
   MESAJE — carduri pe mobil (17 august 2026)
   Ancoră: .page-template-user_dashboard_messages
   Celule: ct-from, ct-anunt, ct-ultim, ct-data, ct-actiuni
   ============================================================ */

@media (max-width: 991.98px) {

  .page-template-user_dashboard_messages .houzez-data-table thead {
    display: none;
  }

  .page-template-user_dashboard_messages .houzez-data-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "from  actiuni"
      "anunt anunt"
      "ultim ultim"
      "data  data";
    gap: 6px 8px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
  }

  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-c {
    display: block;
    width: auto;
    padding: 0 !important;
    min-height: 0 !important;
    border: none !important;
    white-space: normal !important;
  }

  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-c::before {
    display: none !important;
  }

  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-from    { grid-area: from; }
  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-anunt   { grid-area: anunt; }
  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-ultim   { grid-area: ultim; }
  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-data    { grid-area: data; }
  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-actiuni { grid-area: actiuni; align-self: start; }

  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-from .image-holder,
  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-from .image-holder img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
  }

  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-from .houzez-customer {
    gap: 10px !important;
  }

  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-anunt {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
  }

  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-ultim {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
  }

  .page-template-user_dashboard_messages .houzez-data-table tbody td.ct-data {
    font-size: 12px;
    color: #9ca3af;
  }
}
/* MESAJE - firul de discutie, 17 august 2026 */
/* Scopare: .customer-replay-box, absent pe pagina de lista */

@media (max-width: 991.98px) {

  .page-template-user_dashboard_messages .houzez-data-content {
    display: flex;
    flex-direction: column;
  }

  .page-template-user_dashboard_messages .customer-replay-box {
    order: 2;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
  }

  .page-template-user_dashboard_messages .customer-replay-box ~ .block-wrap,
  .page-template-user_dashboard_messages .houzez-data-content > .block-wrap {
    order: 1;
  }

  .page-template-user_dashboard_messages .customer-replay-box .message-reply-user {
    display: none;
  }

  .page-template-user_dashboard_messages .block-wrap .customer-image img,
  .page-template-user_dashboard_messages .message-reply-user img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    object-fit: cover;
  }

  .page-template-user_dashboard_messages .heading-text + .block-wrap .text-danger,
  .page-template-user_dashboard_messages .heading-text + .block-wrap .text-success {
    display: none !important;
  }

  .page-template-user_dashboard_messages .list-unstyled > li {
    padding: 12px;
    border-radius: 8px;
    background: #f9fafb;
  }

  .page-template-user_dashboard_messages .list-unstyled > li .message-reply-message {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Corectie 15:25 - structura reala: lista e in interiorul formularului */
@media (max-width: 991.98px) {
  .page-template-user_dashboard_messages .customer-replay-box {
    display: flex;
    flex-direction: column;
  }
  .page-template-user_dashboard_messages .customer-replay-box > .block-wrap:first-child {
    order: 2;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
  }
  .page-template-user_dashboard_messages .customer-image + .message-reply-user .text-danger,
  .page-template-user_dashboard_messages .customer-image + .message-reply-user .text-success {
    display: none !important;
  }
}

/* Corectie 15:40 - mesajele sunt DESC, formularul ramane sus */
@media (max-width: 991.98px) {
  .page-template-user_dashboard_messages .customer-replay-box > .block-wrap:first-child {
    order: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

/* Mesaje proprii vs primite - clasa msg-me pusa de tema */
@media (max-width: 991.98px) {
  .page-template-user_dashboard_messages .list-unstyled > li.msg-me {
    background: #eef2f7;
    border-left: 3px solid #cbd5e1;
  }
}

/* Statistici: ascuns fiindca pluginul favethemes-insights a fost dezactivat 18aug2026 (colectare IP+cookie nedeclarata). Se scoate cand exista contor propriu de vizualizari. */
.dashboard-sidebar li:has(a[href*="/insights/"]) { display: none !important; }

/* Rezultate cautare mobil 18aug2026: containerul listei avea overflow:scroll si 514px inaltime, inchizand 4255px de anunturi intr-o fereastra de un card. Derulare imbricata pe telefon. Harta (half-map-left) nu e afectata - verificat cu Map View. */
@media (max-width: 991.98px) {
  .half-map-right-wrap { height: auto !important; } /* overflow ramane scroll: overflow-x:hidden din tema forteaza axa Y la auto prin specificatie CSS. Irelevant - cu height:auto nu mai exista continut de derulat. */
}

/* CorectRent 19aug2026: butoanele de export CSV ascunse.
   Actiunea AJAX e blocata server-side in corectrent-export.php;
   ascunderea evita un buton care pare defect. */
#export-inquiries,
#export-leads {
    display: none !important;
}

/* URL-ul din campul Sursa (detaliu persoana interesata) depaseste
   containerul: nu are spatii, deci nu exista punct natural de rupere.
   Masurat 20aug2026: link 328px in container de 284px, la 1200px si la 390px.
   overflow-wrap:anywhere (nu word-break:break-all) rupe doar cand
   altfel ar iesi din container; nu afecteaza text normal. */
.houzez-inquiry .border-bottom.pb-2 a[href*="/property/"] {
    overflow-wrap: anywhere;
}

/* Tabelul Anunturi vizualizate (detaliu persoana interesata): pe mobil
   celulele aveau 902px intr-un viewport de 390px, deci continutul iesea
   in afara ecranului si se vedeau doar etichetele data-label.
   Cauza: .text-nowrap din tema tine adresele lungi pe un singur rand,
   corect pe desktop, fatal pe mobil. Masurat 20aug2026: 902 -> 294px. */
@media (max-width: 767px) {
    .houzez-inquiry table td.text-nowrap {
        white-space: normal !important;
    }
}

/* ---------------------------------------------------------------
   slick.woff2 din tema este trunchiat (820 octeti, antetul declara
   1900 decomprimat / 734 comprimat - imposibil). Produce eroare OTS
   la fiecare incarcare de pagina.
   Masurat 21 august 2026: fontul e cerut de 9 butoane .slick-dots,
   toate cu content:"•" (U+2022), caracter pe care il are orice font.
   Sagetile folosesc houzez-iconfont, nu slick.
   Scoatem slick din stiva -> browserul nu mai cere fisierul.
   Nu reparam fisierul din tema: s-ar pierde tacut la update.
   --------------------------------------------------------------- */
.slick-dots li button:before {
    font-family: inherit !important;
}
