/* NextToYou Core 0.1.4 – mobile-first app shell + mesagerie + homepage */
:root {
  --nty-green: #2e7d32;
  --nty-green-strong: #1b5e20;
  --nty-green-soft: #eaf7ee;
  --nty-text: #172033;
  --nty-muted: #758096;
  --nty-line: #e7ebef;
  --nty-surface: #ffffff;
  --nty-surface-soft: #f6f8fa;
  --nty-danger: #ff4d5a;
  --nty-nav-height: 68px;
}

.hp-form__field input[name="nty_listing_type"] + span,
.hp-form__field input[name="nty_account_type"] + span {
  font-weight: 600;
}

/* -------------------------------------------------------------
   Mobile application shell
   ------------------------------------------------------------- */
.nty-mobile-nav {
  display: none;
}

@media (max-width: 899px) {
  html {
    scroll-padding-bottom: calc(var(--nty-nav-height) + 16px + env(safe-area-inset-bottom));
  }

  body.nty-app-shell {
    padding-bottom: calc(var(--nty-nav-height) + env(safe-area-inset-bottom));
  }

  body.nty-app-shell .site-container {
    min-height: 100%;
  }

  /* Header compact: logo sus, navigația reală jos. */
  body.nty-app-shell .site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--nty-line);
    box-shadow: 0 1px 8px rgba(15,23,39,.04);
  }

  body.nty-app-shell .header-navbar {
    min-height: 62px;
    padding: 8px 16px;
  }

  body.nty-app-shell .header-logo img,
  body.nty-app-shell .custom-logo {
    width: auto;
    max-width: 128px;
    max-height: 48px;
  }

  body.nty-app-shell .header-navbar__menu,
  body.nty-app-shell .header-navbar__actions,
  body.nty-app-shell .header-navbar__burger {
    display: none !important;
  }

  body.nty-app-shell .site-content > .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nty-mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--nty-nav-height) + env(safe-area-inset-bottom));
    padding: 6px 6px env(safe-area-inset-bottom);
    z-index: 10000;
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--nty-line);
    box-shadow: 0 -6px 24px rgba(15,23,39,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nty-mobile-nav__item {
    min-width: 0;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #8a93a3;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .nty-mobile-nav__item:hover,
  .nty-mobile-nav__item:focus,
  .nty-mobile-nav__item.is-active {
    color: var(--nty-green);
  }

  .nty-mobile-nav__icon {
    width: 28px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 20px;
  }

  .nty-mobile-nav__badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--nty-danger);
    color: #fff;
    border: 2px solid #fff;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    font-weight: 800;
  }

  .nty-mobile-nav__item--publish {
    position: relative;
    color: var(--nty-green);
  }

  .nty-mobile-nav__item--publish .nty-mobile-nav__icon {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-bottom: 1px;
    border-radius: 50%;
    color: #fff;
    background: var(--nty-green);
    box-shadow: 0 8px 18px rgba(46,125,50,.26);
    font-size: 19px;
    border: 4px solid #fff;
  }

  .nty-mobile-nav__item--publish:hover .nty-mobile-nav__icon,
  .nty-mobile-nav__item--publish.is-active .nty-mobile-nav__icon {
    background: var(--nty-green-strong);
  }

  /* Checkout/legal pages should still have room above the fixed bar. */
  body.woocommerce-checkout.nty-app-shell,
  body.woocommerce-cart.nty-app-shell {
    padding-bottom: calc(var(--nty-nav-height) + 20px + env(safe-area-inset-bottom));
  }
}

/* -------------------------------------------------------------
   Messages – shared foundation
   ------------------------------------------------------------- */
body.nty-messages-page .hp-message__sent-date,
body.nty-messages-page .hp-message__date {
  color: var(--nty-muted);
}

body.nty-message-view .nty-conversation-context {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
  border: 1px solid var(--nty-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,23,39,.04);
}

body.nty-message-view .nty-conversation-context__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nty-green);
  background: var(--nty-green-soft);
}

body.nty-message-view .nty-conversation-context__body {
  min-width: 0;
  flex: 1;
}

body.nty-message-view .nty-conversation-context__label {
  display: block;
  margin-bottom: 1px;
  color: var(--nty-muted);
  font-size: 11px;
  line-height: 1.2;
}

body.nty-message-view .nty-conversation-context a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--nty-text);
  font-weight: 700;
}

/* Link-ul anunțului se afișează o singură dată, în cardul de context. */
body.nty-message-view .hp-message--view-block .hp-message__listing {
  display: none !important;
}

/* -------------------------------------------------------------
   Messages – mobile-first
   ------------------------------------------------------------- */
@media (max-width: 899px) {
  body.nty-messages-page .site-content {
    padding-top: 12px;
  }

  /* Sidebar-ul de cont nu are ce căuta într-un ecran de chat pe telefon. */
  body.nty-messages-page .hp-page__sidebar {
    display: none !important;
  }

  body.nty-messages-page .hp-page__content {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.nty-messages-page .hp-page__content > h1,
  body.nty-messages-page .hp-page__content > .hp-page__title,
  body.nty-messages-page .hp-page__title {
    margin-bottom: 14px;
    font-size: 1.45rem;
    line-height: 1.2;
  }

  /* Lista conversațiilor: din tabel într-o listă de carduri. */
  body.nty-message-thread .hp-messages.hp-table,
  body.nty-message-thread .hp-messages.hp-table tbody {
    display: block;
    width: 100%;
    border: 0;
    margin: 0;
  }

  body.nty-message-thread .hp-messages.hp-table tr.hp-message {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "sender date"
      "listing date";
    gap: 3px 10px;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 14px 10px 14px 14px;
    border: 0;
    border-bottom: 1px solid var(--nty-line);
    background: #fff;
  }

  body.nty-message-thread .hp-messages.hp-table tr.hp-message:first-child {
    border-top: 1px solid var(--nty-line);
  }

  body.nty-message-thread .hp-messages.hp-table tr.hp-message:not(.hp-message--read) {
    background: #f4fbf6;
  }

  body.nty-message-thread .hp-messages.hp-table tr.hp-message:not(.hp-message--read)::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    width: 5px;
    height: 28px;
    border-radius: 5px;
    background: var(--nty-green);
    transform: translateY(-50%);
  }

  body.nty-message-thread .hp-messages.hp-table td {
    display: block;
    border: 0 !important;
    padding: 0 !important;
    min-width: 0;
  }

  body.nty-message-thread .hp-message__sender {
    grid-area: sender;
    font-size: 15px;
    font-weight: 700;
  }

  body.nty-message-thread .hp-message__sender a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nty-text);
  }

  body.nty-message-thread .hp-message__sender i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--nty-green);
    background: var(--nty-green-soft);
    font-size: 11px;
  }

  body.nty-message-thread .hp-message__listing {
    grid-area: listing;
    min-width: 0;
  }

  body.nty-message-thread .hp-message__listing a {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--nty-muted);
    font-size: 12px;
  }

  body.nty-message-thread .hp-message__listing i {
    display: none;
  }

  body.nty-message-thread .hp-message__sent-date {
    grid-area: date;
    align-self: center;
    white-space: nowrap;
    font-size: 10px;
    text-transform: none;
    color: var(--nty-muted);
  }

  /* Conversation view. */
  body.nty-message-view .hp-messages.hp-grid {
    display: flex !important;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    margin: 0 !important;
    padding: 2px 0 10px;
  }

  body.nty-message-view .hp-messages.hp-grid > .hp-grid__item {
    display: block;
    width: auto !important;
    max-width: 84%;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
    align-self: flex-start;
  }

  body.nty-message-view .hp-messages.hp-grid > .hp-grid__item.nty-message-item--sent {
    align-self: flex-end;
  }

  body.nty-message-view .hp-message--view-block {
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 0;
    border-radius: 15px 15px 15px 5px;
    background: #f1f4f7;
    box-shadow: none;
    color: var(--nty-text);
  }

  body.nty-message-view .hp-message--view-block.hp-message--sent {
    border-radius: 15px 15px 5px 15px;
    background: #e7f6eb;
  }

  body.nty-message-view .hp-message--view-block::before,
  body.nty-message-view .hp-message--view-block::after {
    display: none !important;
  }

  body.nty-message-view .hp-message__header {
    padding: 0 !important;
    margin: 0 0 3px !important;
  }

  body.nty-message-view .hp-message__details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    align-items: baseline;
  }

  body.nty-message-view .hp-message__sender {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--nty-text);
  }

  body.nty-message-view .hp-message__sent-date {
    margin: 0 !important;
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: 0;
  }

  body.nty-message-view .hp-message__text {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  body.nty-message-view .hp-message__text p {
    margin: 0 !important;
    line-height: 1.45;
  }

  body.nty-message-view .hp-message__attachment {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 9px;
    background: rgba(255,255,255,.72);
    color: var(--nty-text);
    font-size: 11px;
  }

  body.nty-message-view .hp-message__attachment span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Composer-ul este lipit deasupra navigației de jos. */
  body.nty-message-view form.nty-message-composer {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 44px;
    align-items: end;
    gap: 7px;
    position: sticky;
    bottom: calc(var(--nty-nav-height) + env(safe-area-inset-bottom));
    z-index: 50;
    margin: 8px -14px -1px;
    padding: 8px 14px 9px;
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--nty-line);
    box-shadow: 0 -5px 18px rgba(15,23,39,.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.nty-message-view form.nty-message-composer .hp-form__messages,
  body.nty-message-view form.nty-message-composer .hp-form__footer,
  body.nty-message-view form.nty-message-composer > .hp-form__fields {
    display: contents;
  }

  body.nty-message-view form.nty-message-composer .hp-form__field {
    margin: 0 !important;
  }

  body.nty-message-view form.nty-message-composer .nty-composer__text {
    grid-column: 2;
    grid-row: 1;
  }

  body.nty-message-view form.nty-message-composer textarea[name="text"] {
    display: block;
    width: 100%;
    min-height: 42px !important;
    max-height: 118px;
    height: 42px;
    margin: 0;
    padding: 10px 12px;
    resize: none;
    overflow-y: auto;
    border: 1px solid #dfe4e9;
    border-radius: 20px;
    background: #f6f8fa;
    color: var(--nty-text);
    font-size: 15px;
    line-height: 20px;
    box-shadow: none;
  }

  body.nty-message-view form.nty-message-composer textarea[name="text"]:focus {
    border-color: #a8d5b0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46,125,50,.08);
  }

  body.nty-message-view form.nty-message-composer .nty-composer__attachment {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
    overflow: visible;
  }

  body.nty-message-view form.nty-message-composer .nty-composer__attachment > label,
  body.nty-message-view form.nty-message-composer .nty-composer__attachment .hp-form__label {
    display: none !important;
  }

  body.nty-message-view form.nty-message-composer .nty-composer__attachment button,
  body.nty-message-view form.nty-message-composer .nty-composer__attachment .button,
  body.nty-message-view form.nty-message-composer .nty-composer__attachment label[for] {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f0f3f5 !important;
    color: var(--nty-muted) !important;
    box-shadow: none !important;
    font-size: 0 !important;
  }

  body.nty-message-view form.nty-message-composer .nty-composer__attachment button::before,
  body.nty-message-view form.nty-message-composer .nty-composer__attachment .button::before,
  body.nty-message-view form.nty-message-composer .nty-composer__attachment label[for]::before {
    content: '\f0c6';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 17px;
    line-height: 42px;
  }

  body.nty-message-view form.nty-message-composer .nty-composer__send {
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--nty-green) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 0 !important;
  }

  body.nty-message-view form.nty-message-composer .nty-composer__send::before {
    content: '\f1d8';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    line-height: 44px;
  }

  body.nty-message-view form.nty-message-composer .nty-composer__send:hover,
  body.nty-message-view form.nty-message-composer .nty-composer__send:focus {
    background: var(--nty-green-strong) !important;
  }

  /* Selectarea fișierului poate genera preview-uri/mesaje; ele rămân pe al doilea rând. */
  body.nty-message-view form.nty-message-composer .nty-composer__attachment > :not(button):not(label):not(.button) {
    max-width: 220px;
  }
}

/* Desktop: doar o curățare ușoară, fără să forțăm layout-ul de aplicație. */
@media (min-width: 900px) {
  body.nty-message-view .hp-messages.hp-grid {
    row-gap: 10px;
  }

  body.nty-message-view .hp-message--view-block {
    border-radius: 14px;
  }
}

/* -------------------------------------------------------------
   NextToYou 0.1.4 – homepage + categorii mobile-first
   ------------------------------------------------------------- */
.nty-home {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--nty-text);
}

body.nty-modern-home .site-content {
  padding-top: 0;
}

body.nty-modern-home .site-content > .container,
body.nty-modern-home .content-area,
body.nty-modern-home .site-main {
  width: 100%;
  max-width: none;
}

body.nty-modern-home .entry-header,
body.nty-modern-home .page-header,
body.nty-modern-home .entry-title {
  display: none !important;
}

.nty-home-hero {
  position: relative;
  overflow: hidden;
  margin: 0 -14px 0;
  padding: 34px 20px 26px;
  background: linear-gradient(145deg, #f0fbf3 0%, #ffffff 58%, #f7faf8 100%);
  border-bottom: 1px solid var(--nty-line);
}

.nty-home-hero::after {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  right: -85px;
  top: -80px;
  border-radius: 50%;
  background: rgba(46,125,50,.06);
}

.nty-home-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.nty-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--nty-green-soft);
  color: var(--nty-green-strong);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nty-home-hero h1 {
  margin: 12px 0 8px;
  color: var(--nty-text);
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.nty-home-hero p {
  max-width: 650px;
  margin: 0;
  color: #5f6b7c;
  font-size: 15px;
  line-height: 1.55;
}

.nty-home-search {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.nty-home-search .hp-form {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nty-home-search .hp-form__fields {
  gap: 8px;
}

.nty-home-search .hp-form__field {
  margin-bottom: 8px !important;
}

.nty-home-search input,
.nty-home-search select {
  min-height: 50px !important;
  border: 1px solid #dfe7e2 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 7px 24px rgba(15,23,39,.04) !important;
}

.nty-home-search button,
.nty-home-search .button {
  min-height: 50px;
  border-radius: 14px !important;
  background: var(--nty-green) !important;
}

.nty-home-section {
  padding: 26px 0 4px;
}

.nty-section-heading {
  margin: 0 0 15px;
}

.nty-section-heading--compact {
  margin-bottom: 14px;
}

.nty-section-heading h2 {
  margin: 0 0 5px;
  color: var(--nty-text);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.nty-section-heading p {
  margin: 0;
  color: var(--nty-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Pe homepage avem deja titlul secțiunii, evităm dublarea titlului din picker. */
.nty-home-section > .nty-publish-picker > .nty-section-heading {
  display: none;
}

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

.nty-action-card {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 15px;
  align-items: center;
  gap: 10px;
  min-height: 104px;
  padding: 14px 12px;
  border: 1px solid var(--nty-line);
  border-radius: 17px;
  background: #fff;
  color: var(--nty-text) !important;
  text-decoration: none !important;
  box-shadow: 0 5px 18px rgba(15,23,39,.035);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.nty-action-card:hover,
.nty-action-card:focus {
  transform: translateY(-1px);
  border-color: #bcdac3;
  box-shadow: 0 8px 24px rgba(15,23,39,.07);
}

.nty-action-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--nty-green-soft);
  color: var(--nty-green);
  font-size: 18px;
}

.nty-action-card--sale .nty-action-card__icon,
.nty-action-card--wanted .nty-action-card__icon {
  background: #f4f5f8;
  color: #596579;
}

.nty-action-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.nty-action-card__body strong {
  color: var(--nty-text);
  font-size: 14px;
  line-height: 1.25;
}

.nty-action-card__body small {
  color: var(--nty-muted);
  font-size: 11px;
  line-height: 1.3;
}

.nty-action-card__body em {
  color: var(--nty-green-strong);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.nty-action-card__arrow {
  justify-self: end;
  color: #b5bcc6;
  font-size: 11px;
}

.nty-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px 8px;
}

.nty-topic {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  color: var(--nty-text) !important;
  text-align: center;
  text-decoration: none !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.nty-topic__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2ece5;
  border-radius: 17px;
  background: #f5fbf7;
  color: var(--nty-green);
  font-size: 19px;
  box-shadow: 0 3px 12px rgba(15,23,39,.025);
}

.nty-topic:hover .nty-topic__icon,
.nty-topic:focus .nty-topic__icon {
  background: var(--nty-green-soft);
  border-color: #bfdcc5;
}

.nty-home-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 22px;
  padding: 15px;
  border: 1px solid var(--nty-line);
  border-radius: 17px;
  background: #fff;
}

.nty-home-note__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--nty-green-soft);
  color: var(--nty-green);
}

.nty-home-note strong,
.nty-home-note span {
  display: block;
}

.nty-home-note strong {
  margin-bottom: 2px;
  font-size: 13px;
}

.nty-home-note div > span {
  color: var(--nty-muted);
  font-size: 11px;
  line-height: 1.4;
}

/* Cărțile native HivePress din pasul de alegere a categoriei. */
body.nty-submit-category .hp-page__content {
  width: 100%;
}

body.nty-submit-category .hp-listing-categories .hp-row {
  align-items: stretch;
}

body.nty-submit-category .hp-listing-category--view-block {
  height: 100%;
  padding: 16px 10px 14px;
  border: 1px solid var(--nty-line);
  border-radius: 17px;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15,23,39,.035);
}

body.nty-submit-category .hp-listing-category__header {
  margin-bottom: 9px;
}

.nty-category-icon {
  display: flex;
  justify-content: center;
}

.nty-category-icon a {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: var(--nty-green-soft);
  color: var(--nty-green) !important;
  font-size: 20px;
  text-decoration: none !important;
}

body.nty-submit-category .hp-listing-category__name {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

body.nty-submit-category .hp-listing-category__name a {
  color: var(--nty-text);
}

body.nty-submit-category .hp-listing-category__details--primary,
body.nty-submit-category .hp-listing-category__description {
  display: none !important;
}

body.nty-submit-category .nty-publish-picker {
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 899px) {
  body.nty-modern-home .site-content > .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nty-home-section {
    padding-top: 24px;
  }

  .nty-home-search .hp-form__fields,
  .nty-home-search .hp-form__footer {
    display: block;
    width: 100%;
  }

  .nty-home-search .hp-form__field,
  .nty-home-search .hp-form__button,
  .nty-home-search button {
    width: 100%;
  }

  body.nty-submit-category .hp-grid__item {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    margin-bottom: 10px;
  }

  body.nty-submit-category .hp-row {
    margin-left: -5px !important;
    margin-right: -5px !important;
  }

  body.nty-submit-category .nty-action-grid {
    grid-template-columns: 1fr;
  }

  body.nty-submit-category .nty-action-card {
    min-height: 92px;
  }
}

@media (max-width: 380px) {
  .nty-action-grid {
    grid-template-columns: 1fr;
  }

  .nty-topic-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (min-width: 900px) {
  .nty-home-hero {
    margin: 0;
    padding: 58px 54px 42px;
    border: 1px solid var(--nty-line);
    border-radius: 26px;
  }

  .nty-home-search {
    max-width: 850px;
    margin-top: 26px;
  }

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

  .nty-action-card {
    grid-template-columns: 52px minmax(0,1fr);
    min-height: 132px;
    padding: 18px;
  }

  .nty-action-card__arrow {
    display: none;
  }

  .nty-topic-grid {
    grid-template-columns: repeat(8, minmax(0,1fr));
  }

  .nty-home-section {
    padding-top: 38px;
  }
}


/* 0.1.6: selectorul propriu de categorii din fluxul Publică */
.nty-publish-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--nty-muted) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.nty-category-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.nty-category-choice {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 14px;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 12px 13px;
  border: 1px solid var(--nty-line);
  border-radius: 16px;
  background: #fff;
  color: var(--nty-text) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(15,23,39,.03);
}

.nty-category-choice__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--nty-green-soft);
  color: var(--nty-green);
  font-size: 17px;
}

.nty-category-choice strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
}

.nty-category-choice__arrow {
  justify-self: end;
  color: #b5bcc6;
  font-size: 10px;
}

.nty-publish-error {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 1px solid #f0d9d9;
  border-radius: 15px;
  background: #fff8f8;
}

.nty-publish-error span {
  color: var(--nty-muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 899px) {
  .nty-category-choice-grid {
    grid-template-columns: 1fr;
  }

  .nty-category-choice {
    min-height: 68px;
  }
}

@media (min-width: 900px) {
  .nty-category-choice-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

/* -------------------------------------------------------------
   NextToYou 0.1.8 – flux Publică stabil pe mobil
   ------------------------------------------------------------- */
body.nty-submit-category .hp-page__title,
body.nty-submit-category .hp-page__content > h1,
body.nty-submit-category .page-header,
body.nty-submit-category .entry-header {
  display: none !important;
}

/* Cardurile native HivePress nu mai trebuie să apară în noul flux. Acesta este
   doar un safety-net vizual; PHP le înlocuiește deja complet. */
body.nty-submit-category .hp-listing-categories {
  display: none !important;
}

body.nty-submit-category .nty-publish-picker {
  display: block !important;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 4px 0 22px;
}

body.nty-submit-category .nty-section-heading--compact {
  margin: 0 0 18px;
}

body.nty-submit-category .nty-section-heading--compact h2 {
  margin: 10px 0 6px;
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

body.nty-submit-category .nty-section-heading--compact p {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 899px) {
  body.nty-submit-category .site-content {
    padding-top: 18px;
  }

  body.nty-submit-category .site-content > .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.nty-submit-category .nty-action-grid,
  body.nty-submit-category .nty-category-choice-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  body.nty-submit-category .nty-action-card {
    grid-template-columns: 62px minmax(0,1fr) 18px;
    min-height: 94px;
    padding: 14px;
    gap: 13px;
    border-radius: 19px;
  }

  body.nty-submit-category .nty-action-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 24px;
  }

  body.nty-submit-category .nty-action-card__body strong {
    font-size: 17px;
    line-height: 1.2;
  }

  body.nty-submit-category .nty-action-card__body small {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
  }

  body.nty-submit-category .nty-action-card__body em {
    margin-top: 3px;
    font-size: 11px;
  }

  body.nty-submit-category .nty-action-card__arrow {
    font-size: 13px;
  }

  body.nty-submit-category .nty-category-choice {
    grid-template-columns: 60px minmax(0,1fr) 18px;
    min-height: 84px;
    padding: 12px 14px;
    gap: 13px;
    border-radius: 18px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
  }

  body.nty-submit-category .nty-category-choice__icon {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    font-size: 23px;
  }

  body.nty-submit-category .nty-category-choice strong {
    font-size: 15px;
    line-height: 1.25;
  }

  body.nty-submit-category .nty-category-choice__arrow {
    font-size: 12px;
  }
}


/* NextToYou 0.1.9 - publicare proprie, independentă de selectorul HivePress */
.nty-publish-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.nty-publish-page .nty-section-heading--compact {
  margin-bottom: 22px;
}

@media (max-width: 899px) {
  body.page .nty-publish-page {
    padding: 6px 0 28px;
  }

  body.page:has(.nty-publish-page) .entry-header,
  body.page:has(.nty-publish-page) .page-header,
  body.page:has(.nty-publish-page) .entry-title {
    display: none !important;
  }

  .nty-publish-page .nty-section-heading--compact h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.08;
    margin: 6px 0 8px;
  }
}

/* NextToYou 0.1.10 - întregul card HivePress de categorie este zonă de click */
.hp-listing-category--view-block,
.hp-listing-category {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Dacă tema lasă linkul numelui foarte îngust, nu mai pare singura zonă activă. */
.hp-listing-category--view-block .hp-listing-category__name a,
.hp-listing-category .hp-listing-category__name a {
  display: inline-block;
}

/* -------------------------------------------------------------
   NextToYou 0.1.11 – desktop polish pentru categoriile native.
   Mobile (<900px) rămâne neschimbat.
   ------------------------------------------------------------- */
@media (min-width: 900px) {
  /* Pe paginile unde HivePress afișează categoriile-rădăcină, transformăm
     cele două opțiuni în carduri desktop reale, nu în blocuri de imagine
     gândite de ListingHive. */
  .hp-listing-categories:has(.nty-managed-category--root) {
    width: 100%;
    max-width: 980px;
    margin: 34px auto 10px !important;
  }

  .hp-listing-categories:has(.nty-managed-category--root) > .hp-row,
  .hp-listing-categories:has(.nty-managed-category--root) .hp-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch !important;
    gap: 28px;
    margin: 0 !important;
  }

  .hp-listing-categories:has(.nty-managed-category--root) .hp-grid__item {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nty-managed-category--root.hp-listing-category--view-block,
  .nty-managed-category--root.hp-listing-category {
    position: relative !important;
    display: flex !important;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 30px 28px !important;
    border: 1px solid #dfe9e2 !important;
    border-radius: 24px !important;
    background: #fff !important;
    color: var(--nty-text) !important;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 39, .055) !important;
    transform: none !important;
  }

  .nty-managed-category--root.hp-listing-category--view-block:hover,
  .nty-managed-category--root.hp-listing-category:hover {
    border-color: #b9d9c0 !important;
    box-shadow: 0 16px 36px rgba(15, 23, 39, .09) !important;
    transform: translateY(-3px) !important;
  }

  .nty-managed-category--root .hp-listing-category__header {
    position: static !important;
    width: auto !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
  }

  .nty-managed-category--root .nty-category-icon {
    display: flex;
    justify-content: center;
  }

  .nty-managed-category--root .nty-category-icon a {
    width: 82px;
    height: 82px;
    border: 1px solid #d9eadf;
    border-radius: 24px;
    background: var(--nty-green-soft) !important;
    color: var(--nty-green) !important;
    font-size: 30px;
    box-shadow: none !important;
  }

  .nty-managed-category--root .hp-listing-category__content {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--nty-text) !important;
    text-align: center !important;
  }

  .nty-managed-category--root .hp-listing-category__name {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--nty-text) !important;
    text-align: center !important;
    font-size: 23px !important;
    font-weight: 750;
    line-height: 1.18 !important;
  }

  .nty-managed-category--root .hp-listing-category__name a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--nty-text) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: inherit !important;
  }

  .nty-managed-category--root .hp-listing-category__details,
  .nty-managed-category--root .hp-listing-category__description,
  .nty-managed-category--root .hp-listing-category__item-count {
    display: none !important;
  }

  /* Search-ul de pe desktop primește puțin aer înaintea cardurilor. */
  .hp-form--listing-search {
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* -------------------------------------------------------------
   NextToYou 0.1.12 – proporții desktop + eliminare completă a
   stilului vechi ListingHive de pe cardurile rădăcină.
   Mobile rămâne neschimbat.
   ------------------------------------------------------------- */
@media (min-width: 900px) {
  /* Mai compact și mai echilibrat pe monitoare mari. */
  .hp-listing-categories:has(.nty-managed-category--root) {
    max-width: 860px !important;
    margin-top: 42px !important;
    margin-bottom: 34px !important;
  }

  .hp-listing-categories:has(.nty-managed-category--root) > .hp-row,
  .hp-listing-categories:has(.nty-managed-category--root) .hp-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  .nty-managed-category--root.hp-listing-category--view-block,
  .nty-managed-category--root.hp-listing-category {
    min-height: 185px !important;
    padding: 26px 30px !important;
    border-radius: 22px !important;
  }

  .nty-managed-category--root .hp-listing-category__header {
    margin: 0 0 14px !important;
  }

  .nty-managed-category--root .nty-category-icon a {
    width: 72px !important;
    height: 72px !important;
    border-radius: 21px !important;
    font-size: 27px !important;
  }

  /* ListingHive + CSS-ul vechi pot picta fundalul direct pe content/name.
     Resetăm toate straturile care pot produce bara verde din screenshot. */
  .nty-managed-category--root .hp-listing-category__content,
  .nty-managed-category--root .hp-listing-category__name,
  .nty-managed-category--root .hp-listing-category__name a {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: none !important;
    color: var(--nty-text) !important;
    text-align: center !important;
    text-shadow: none !important;
  }

  .nty-managed-category--root .hp-listing-category__content::before,
  .nty-managed-category--root .hp-listing-category__content::after,
  .nty-managed-category--root .hp-listing-category__name::before,
  .nty-managed-category--root .hp-listing-category__name::after,
  .nty-managed-category--root .hp-listing-category__name a::before,
  .nty-managed-category--root .hp-listing-category__name a::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }

  .nty-managed-category--root .hp-listing-category__name {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  .nty-managed-category--root .hp-listing-category__name a {
    font: inherit !important;
    line-height: inherit !important;
  }

  /* Zona între search și categorii să nu pară nici goală, nici înghesuită. */
  .hp-form--listing-search {
    max-width: 1030px !important;
  }
}

@media (min-width: 1280px) {
  .hp-listing-categories:has(.nty-managed-category--root) {
    max-width: 900px !important;
  }

  .nty-managed-category--root.hp-listing-category--view-block,
  .nty-managed-category--root.hp-listing-category {
    min-height: 195px !important;
  }
}


/* -------------------------------------------------------------
   NextToYou 0.1.14 – transport robust pentru alegerea categoriei
   Designul este intenționat identic cu 0.1.13; doar <a> devine <button>.
   ------------------------------------------------------------- */
.nty-category-choice-form {
  margin: 0;
  padding: 0;
  min-width: 0;
}

button.nty-category-choice {
  width: 100%;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* 0.1.15 — formularul de publicare randat în pagina NextToYou. Picker-ele rămân neschimbate. */
.nty-publish-page--details .nty-publish-details {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}
.nty-publish-details__form {
  margin-top: 22px;
}
@media (max-width: 899px) {
  .nty-publish-page--details .nty-publish-details {
    max-width: none;
  }
  .nty-publish-details__form {
    margin-top: 16px;
  }
}

/* 0.1.17 – formularul nativ HivePress în fluxul /publica/. Selectorul aprobat rămâne neschimbat. */
.nty-native-listing-form {
    margin-top: 1.25rem;
}
.nty-native-listing-form .hp-form {
    max-width: 760px;
}
.nty-publish-success {
    max-width: 720px;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid rgba(31, 122, 59, .18);
    border-radius: 16px;
    background: rgba(31, 122, 59, .06);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.nty-publish-success strong { font-size: 1.2rem; }
.nty-publish-success .button { align-self: flex-start; }
@media (max-width: 899px) {
    .nty-native-listing-form .hp-form { max-width: none; }
    .nty-publish-details { padding-bottom: 7rem; }
}

/* -------------------------------------------------------------
   NextToYou 0.1.19 — pagina individuală de anunț.
   IMPORTANT: totul este scoped la .nty-listing-view, fără efect asupra
   publicării, mesajelor, homepage-ului sau listelor de anunțuri.
   ------------------------------------------------------------- */
.nty-listing-view .hp-listing__images:empty,
.nty-listing-view .hp-listing__images:not(:has(img)) {
  display: none !important;
}

.nty-listing-view .hp-listing__action--message {
  width: 100%;
  font-weight: 700;
}

.nty-listing-view .hp-listing__action--report span {
  white-space: normal;
}

.nty-listing-view .hp-listing__map,
.nty-listing-view .hp-listing__map .hp-map {
  border-radius: 16px;
  overflow: hidden;
}

.nty-listing-view .hp-vendor--view-block,
.nty-listing-view .hp-vendor {
  border-radius: 16px;
}

@media (min-width: 900px) {
  .nty-listing-view .hp-page__sidebar {
    max-width: 390px;
  }

  .nty-listing-view .hp-listing__map .hp-map,
  .nty-listing-view .hp-listing__map[data-component="map"] {
    min-height: 260px !important;
    height: 300px !important;
  }
}

@media (max-width: 899px) {
  .nty-listing-view {
    padding-bottom: 132px !important;
  }

  .nty-listing-view .hp-page__content,
  .nty-listing-view .hp-page__sidebar {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
  }

  .nty-listing-view .hp-page__sidebar {
    position: static !important;
    margin-top: 20px !important;
  }

  .nty-listing-view .hp-page__sidebar > div,
  .nty-listing-view .hp-page__sidebar .widget-area,
  .nty-listing-view .hp-page__sidebar > .widget {
    position: static !important;
  }

  /* Profilul devine prima informație din sidebar, imediat după descriere. */
  .nty-listing-view .hp-page__sidebar {
    display: flex !important;
    flex-direction: column !important;
  }

  .nty-listing-view .hp-page__sidebar .hp-vendor,
  .nty-listing-view .hp-page__sidebar .hp-vendor--view-block {
    order: 10 !important;
  }

  .nty-listing-view .hp-page__sidebar .hp-listing__map,
  .nty-listing-view .hp-page__sidebar .widget:has(.hp-map) {
    order: 20 !important;
  }

  .nty-listing-view .hp-page__sidebar .hp-listing__actions--primary {
    order: 30 !important;
  }

  .nty-listing-view .hp-vendor--view-block,
  .nty-listing-view .hp-page__sidebar .hp-vendor {
    margin: 0 0 22px !important;
    padding: 16px !important;
    border: 1px solid #e5e9e7 !important;
    background: #fff !important;
    box-shadow: 0 7px 24px rgba(24, 45, 35, .06) !important;
  }

  .nty-listing-view .hp-listing__map {
    margin-top: 4px !important;
    margin-bottom: 18px !important;
  }

  .nty-listing-view .hp-listing__map .hp-map,
  .nty-listing-view .hp-listing__map[data-component="map"] {
    min-height: 220px !important;
    height: 240px !important;
  }

  /* CTA principal ca într-o aplicație: fix deasupra navigației NextToYou. */
  .nty-listing-view .hp-listing__actions--primary {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 78px !important;
    z-index: 9997 !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 -5px 22px rgba(20, 40, 30, .12) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nty-listing-view .hp-listing__actions--primary .hp-listing__action--message {
    min-height: 54px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    font-size: 18px !important;
  }

  /* Linkul de raportare nu trebuie să stea în bara sticky. */
  .nty-listing-view .hp-listing__actions--primary .hp-listing__action--report {
    display: none !important;
  }

  .nty-listing-view .hp-listing__title {
    margin-bottom: 14px !important;
  }

  .nty-listing-view .hp-listing__details--primary {
    margin-bottom: 24px !important;
  }
}

.nty-listing-view .nty-vendor-label {
  margin: 4px 0 10px;
  color: #6f7885;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 899px) {
  .nty-listing-view .nty-vendor-label {
    order: 9 !important;
    margin-top: 6px;
  }

  .nty-listing-view .nty-mobile-report {
    order: 25 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 22px !important;
    color: #7f8793 !important;
    text-align: center;
  }
}

/* -------------------------------------------------------------
   NextToYou 0.1.20 — lista de anunțuri / rezultate.
   STRICT scoped la .nty-listings-view: nu atinge pagina individuală,
   publicarea, mesajele sau homepage-ul.
   ------------------------------------------------------------- */
.nty-listings-view .hp-listing--view-block {
  overflow: hidden;
  border: 1px solid #e7ebe9 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 7px 24px rgba(20, 40, 30, .055) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.nty-listings-view .hp-listing--view-block:hover {
  border-color: #d7e5db !important;
  box-shadow: 0 11px 30px rgba(20, 40, 30, .08) !important;
}

.nty-listings-view .hp-listing--view-block .hp-listing__header,
.nty-listings-view .hp-listing--view-block .hp-listing__image {
  overflow: hidden;
  background: #f3f5f4;
}

.nty-listings-view .hp-listing--view-block .hp-listing__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.nty-listings-view .hp-listing--view-block .hp-listing__content {
  padding: 18px 18px 14px !important;
}

.nty-listings-view .hp-listing--view-block .hp-listing__title {
  margin: 0 0 9px !important;
  color: var(--nty-text);
  font-weight: 700 !important;
  line-height: 1.22 !important;
}

.nty-listings-view .hp-listing--view-block .hp-listing__title a {
  color: var(--nty-text) !important;
  text-decoration: none !important;
}

.nty-listings-view .hp-listing--view-block .hp-listing__details--primary {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin: 0 0 10px !important;
}

.nty-listings-view .hp-listing--view-block .hp-listing__categories a,
.nty-listings-view .hp-listing--view-block .hp-listing__category a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f0f2f3;
  color: #77808d !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.nty-listings-view .hp-listing--view-block .hp-listing__created-date {
  color: #929aa5 !important;
  font-size: 12px !important;
}

.nty-listings-view .hp-listing--view-block .hp-listing__location {
  color: #697381 !important;
  line-height: 1.35;
}

.nty-listings-view .hp-listing--view-block .hp-listing__location a,
.nty-listings-view .hp-listing--view-block .hp-listing__location span {
  color: inherit !important;
}

.nty-listings-view .hp-listing--view-block .hp-listing__footer {
  min-height: 48px;
  padding: 11px 18px !important;
  border-top: 1px solid #eef1ef !important;
  background: #fbfcfb !important;
}

.nty-listings-view .hp-listing--view-block .hp-listing__actions--primary a,
.nty-listings-view .hp-listing--view-block .hp-listing__actions--primary button {
  color: var(--nty-green) !important;
}

@media (max-width: 899px) {
  .nty-listings-view .hp-listings .hp-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .nty-listings-view .hp-listings .hp-grid__item {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 16px !important;
  }

  .nty-listings-view .hp-listing--view-block {
    border-radius: 16px !important;
    box-shadow: 0 5px 18px rgba(20, 40, 30, .055) !important;
  }

  /* Cu fotografie: suficient de vizual, fără să ocupe aproape tot ecranul. */
  .nty-listings-view .hp-listing--view-block .hp-listing__header,
  .nty-listings-view .hp-listing--view-block .hp-listing__image {
    height: 210px !important;
    min-height: 210px !important;
  }

  /* Fără fotografie: placeholder compact în locul blocului uriaș HivePress. */
  .nty-listings-view .hp-listing--view-block.nty-listing-card--placeholder .hp-listing__header,
  .nty-listings-view .hp-listing--view-block.nty-listing-card--placeholder .hp-listing__image {
    height: 128px !important;
    min-height: 128px !important;
  }

  .nty-listings-view .hp-listing--view-block.nty-listing-card--placeholder .hp-listing__image img {
    object-fit: contain !important;
    width: 72px !important;
    height: 72px !important;
    margin: 28px auto !important;
    opacity: .58;
  }

  .nty-listings-view .hp-listing--view-block .hp-listing__content {
    padding: 16px 16px 13px !important;
  }

  .nty-listings-view .hp-listing--view-block .hp-listing__title {
    margin-bottom: 8px !important;
    font-size: 23px !important;
  }

  .nty-listings-view .hp-listing--view-block .hp-listing__location {
    margin-top: 5px !important;
    font-size: 15px !important;
  }

  .nty-listings-view .hp-listing--view-block .hp-listing__footer {
    min-height: 46px;
    padding: 9px 16px !important;
  }

  .nty-listings-view .hp-listing--view-block .hp-listing__actions--primary a,
  .nty-listings-view .hp-listing--view-block .hp-listing__actions--primary button {
    min-width: 42px;
    min-height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }
}

/* Desktop: carduri aerisite, fără dimensiuni exagerate. */
@media (min-width: 900px) {
  .nty-listings-view .hp-listings .hp-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .nty-listings-view .hp-listings .hp-grid__item {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nty-listings-view .hp-listing--view-block .hp-listing__header,
  .nty-listings-view .hp-listing--view-block .hp-listing__image {
    height: 220px !important;
    min-height: 220px !important;
  }

  .nty-listings-view .hp-listing--view-block.nty-listing-card--placeholder .hp-listing__header,
  .nty-listings-view .hp-listing--view-block.nty-listing-card--placeholder .hp-listing__image {
    height: 155px !important;
    min-height: 155px !important;
  }

  .nty-listings-view .hp-listing--view-block.nty-listing-card--placeholder .hp-listing__image img {
    object-fit: contain !important;
    width: 82px !important;
    height: 82px !important;
    margin: 36px auto !important;
    opacity: .56;
  }

  .nty-listings-view .hp-listing--view-block .hp-listing__title {
    font-size: 22px !important;
  }
}

@media (min-width: 1450px) {
  .nty-listings-view .hp-page__content:not(:only-child) .hp-listings .hp-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nty-listings-view .hp-page__content:only-child .hp-listings .hp-row,
  .nty-listings-view .content-area > .hp-listings .hp-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------------
   NextToYou 0.1.21 — discovery bundle:
   homepage final + rază locală + profil mobile-first.
   Nu modifică fluxul de publicare, mesageria sau listing view.
   ------------------------------------------------------------- */

/* Home: eliminăm nesting-ul vizual al selectorului și adăugăm conținut recent. */
.nty-modern-home .nty-publish-picker--embedded {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.nty-modern-home .nty-section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.nty-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nty-green) !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.nty-home-latest-listings .hp-listings {
  margin-top: 4px;
}

.nty-home-latest-listings .hp-listing--view-block {
  overflow: hidden;
  height: 100%;
  border: 1px solid #e7ebe9 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 7px 24px rgba(20,40,30,.055) !important;
}

.nty-home-latest-listings .hp-listing__content {
  padding: 15px 16px 13px !important;
}

.nty-home-latest-listings .hp-listing__title {
  margin-bottom: 7px !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.nty-home-latest-listings .hp-listing__location {
  font-size: 13px !important;
  color: #6f7885 !important;
}

.nty-home-latest-listings .hp-listing__footer {
  min-height: 45px;
  padding: 9px 16px !important;
  border-top: 1px solid #eef1ef !important;
  background: #fbfcfb !important;
}

.nty-home-latest-listings .nty-listing-card--placeholder .hp-listing__header,
.nty-home-latest-listings .nty-listing-card--placeholder .hp-listing__image {
  height: 130px !important;
  min-height: 130px !important;
}

.nty-home-latest-listings .nty-listing-card--placeholder .hp-listing__image img {
  object-fit: contain !important;
  width: 70px !important;
  height: 70px !important;
  margin: 29px auto !important;
  opacity: .55;
}

/* Radius: păstrăm inputul HivePress funcțional și adăugăm preseturi tactile. */
.nty-radius-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.nty-radius-preset {
  appearance: none;
  border: 1px solid #dfe5e1;
  border-radius: 999px;
  background: #fff;
  color: #667180;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
}

.nty-radius-preset:hover,
.nty-radius-preset.is-active {
  border-color: var(--nty-green);
  background: var(--nty-green-soft);
  color: var(--nty-green);
}

/* Profil / Setări: curat pe mobil, fără sidebar duplicat cu bottom-nav. */
@media (max-width: 899px) {
  body.nty-profile-form-page .site-content {
    padding-top: 10px;
  }

  body.nty-profile-form-page .hp-page__sidebar {
    display: none !important;
  }

  body.nty-profile-form-page .hp-page__content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.nty-profile-form-page .hp-page__title,
  body.nty-profile-form-page h1.hp-page__title {
    margin-bottom: 18px !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
  }

  body.nty-profile-form-page .hp-form {
    padding: 18px 16px 20px;
    border: 1px solid var(--nty-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(20,40,30,.05);
  }

  body.nty-profile-form-page .hp-form__field {
    margin-bottom: 17px !important;
  }

  body.nty-profile-form-page .hp-form__label,
  body.nty-profile-form-page label {
    color: #6f7885;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
  }

  body.nty-profile-form-page input[type="text"],
  body.nty-profile-form-page input[type="email"],
  body.nty-profile-form-page input[type="password"],
  body.nty-profile-form-page select,
  body.nty-profile-form-page textarea {
    border-radius: 12px !important;
    min-height: 48px;
  }

  body.nty-profile-form-page textarea {
    min-height: 120px;
  }

  body.nty-profile-form-page button[type="submit"],
  body.nty-profile-form-page .hp-form__button {
    width: 100%;
    min-height: 50px;
    border-radius: 12px !important;
    font-weight: 700;
  }

  .nty-modern-home .nty-section-heading--row {
    align-items: flex-start;
  }

  .nty-modern-home .nty-section-heading--row .nty-text-link {
    margin-top: 6px;
    font-size: 12px;
  }

  .nty-home-latest-listings .hp-grid__item {
    margin-bottom: 14px !important;
  }

  .nty-home-latest-listings .hp-listing__header,
  .nty-home-latest-listings .hp-listing__image {
    height: 180px !important;
    min-height: 180px !important;
  }

  .nty-home-latest-listings .nty-listing-card--placeholder .hp-listing__header,
  .nty-home-latest-listings .nty-listing-card--placeholder .hp-listing__image {
    height: 112px !important;
    min-height: 112px !important;
  }

  .nty-home-latest-listings .nty-listing-card--placeholder .hp-listing__image img {
    width: 62px !important;
    height: 62px !important;
    margin: 24px auto !important;
  }
}

@media (min-width: 900px) {
  .nty-home-latest-listings .hp-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px !important;
    margin: 0 !important;
  }

  .nty-home-latest-listings .hp-grid__item {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nty-home-latest-listings .hp-listing__header,
  .nty-home-latest-listings .hp-listing__image {
    height: 175px !important;
    min-height: 175px !important;
  }
}


/* 0.1.22 — profil public + finisaje discovery. Scoped, fără impact pe publicare/mesaje. */
.nty-vendor-view .hp-page__sidebar,
.nty-vendor-view .hp-vendor__summary,
.nty-vendor-view .hp-vendor__attributes--primary,
.nty-vendor-view .hp-vendor__actions--primary {
    border-radius: 20px;
}

.nty-vendor-view .hp-vendor__summary {
    padding: 28px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(17, 24, 39, .07);
    border: 1px solid rgba(17, 24, 39, .06);
}

.nty-vendor-view .hp-vendor__image img {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 50%;
}

.nty-vendor-view .hp-vendor__name {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1.55rem;
    line-height: 1.2;
}

.nty-vendor-view .hp-vendor__description {
    margin-top: 18px;
    color: #4b5563;
    line-height: 1.65;
}

.nty-vendor-view .hp-vendor__registered-date,
.nty-vendor-view .hp-vendor__details {
    color: #6b7280;
    font-size: .92rem;
}

.nty-vendor-view .hp-page__content .hp-listings {
    gap: 22px;
}

.nty-vendor-view .hp-page__content .hp-listings::before {
    content: "Anunțurile utilizatorului";
    display: block;
    grid-column: 1 / -1;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin: 2px 0 4px;
}

.nty-modern-home .nty-home-search .hp-form--listing-search,
.nty-listings-view .hp-form--listing-search {
    border-radius: 18px;
}

@media (max-width: 899px) {
    .nty-vendor-view .hp-page {
        padding-bottom: 88px;
    }

    .nty-vendor-view .hp-page__sidebar,
    .nty-vendor-view .hp-page__content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .nty-vendor-view .hp-page__sidebar {
        position: static !important;
        margin-bottom: 18px;
    }

    .nty-vendor-view .hp-vendor__summary {
        padding: 22px 18px;
        text-align: center;
        border-radius: 18px;
    }

    .nty-vendor-view .hp-vendor__image img {
        width: 88px;
        height: 88px;
    }

    .nty-vendor-view .hp-vendor__name {
        font-size: 1.35rem;
        margin-top: 12px;
    }

    .nty-vendor-view .hp-vendor__description {
        text-align: left;
        padding-top: 14px;
        border-top: 1px solid rgba(17,24,39,.07);
    }

    .nty-vendor-view .hp-page__content .hp-listings::before {
        font-size: 1.18rem;
        margin: 6px 0 0;
    }

    .nty-vendor-view .hp-page__content .hp-listings {
        display: block;
    }

    .nty-vendor-view .hp-page__content .hp-listing {
        margin-bottom: 14px;
    }
}

/* 0.1.23 — ecranul de plată pentru „Ofer servicii”. Izolat de restul UI-ului. */
.nty-payment-gate {
    max-width: 620px;
    margin: 28px auto;
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .08);
    text-align: center;
}
.nty-payment-gate__icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(40, 167, 69, .10);
    color: #218838;
    font-size: 1.35rem;
    margin-bottom: 14px;
}
.nty-payment-gate h2 { margin: 8px 0 10px; }
.nty-payment-gate > p { color: #6b7280; margin: 0 auto 20px; max-width: 480px; }
.nty-payment-gate__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 20px;
}
.nty-payment-gate__price strong { font-size: 2.25rem; line-height: 1; color: #111827; }
.nty-payment-gate__price span { color: #6b7280; font-weight: 600; }
.nty-payment-gate ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 24px;
    max-width: 430px;
    text-align: left;
}
.nty-payment-gate li { margin: 9px 0; color: #374151; }
.nty-payment-gate li i { color: #28a745; margin-right: 8px; }
.nty-payment-gate__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px !important;
}
.nty-payment-gate > small { display: block; color: #6b7280; margin-top: 14px; }
.nty-payment-success { max-width: 620px; margin: 28px auto; }

@media (max-width: 899px) {
    .nty-payment-gate {
        margin: 10px 0 96px;
        padding: 26px 20px;
        border-radius: 20px;
    }
    .nty-payment-gate__price strong { font-size: 2rem; }
    .nty-payment-gate__button { width: 100%; }
}
