/* Homepage responsive refresh — scoped to index.php. */
.mobile-home-highlights,
.mobile-section-kicker,
.mobile-result-count,
.property-result-card .arrow em { display: none; }

@media (max-width: 700px) {
  .site-header > .container,
  main > .container {
    width: calc(100% - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  .site-header { padding: 6px 0 !important; }
  .nav-shell {
    min-height: 58px !important;
    padding: 8px 10px !important;
    border-radius: 0 0 14px 14px !important;
  }
  .site-logo-header { max-width: 112px !important; max-height: 40px !important; }
  .mobile-menu-button { width: 42px !important; height: 42px !important; flex-basis: 42px !important; }

  .home-page { padding-top: 2px; }
  .home-page .hero {
    margin-top: 2px !important;
    min-height: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background-position: center !important;
    box-shadow: 0 16px 38px rgba(47, 42, 39, .15);
  }
  .home-page .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(20,17,15,.03) 15%, rgba(20,17,15,.2) 100%);
  }
  .home-page .hero-inner { position: relative; z-index: 1; padding: 42px 12px 14px !important; }
  .home-page .eyebrow { font-size: 13px !important; line-height: 1.35; letter-spacing: .02em; }
  .home-page .hero h1 {
    max-width: 340px;
    margin: 8px auto 12px !important;
    font-size: clamp(34px, 10vw, 44px) !important;
    line-height: 1.02 !important;
    text-wrap: balance;
  }
  .home-page .hero p {
    max-width: 320px;
    margin: 0 auto 18px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .home-page .hero-property-search {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 30px rgba(20, 17, 15, .2) !important;
  }
  .home-page .hero-property-search .field {
    grid-column: auto !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
    border-radius: 11px !important;
  }
  .home-page .hero-property-search .field:first-child { grid-column: 1 / -1 !important; }
  .home-page .hero-property-search .field label { margin-bottom: 2px !important; font-size: 10px !important; letter-spacing: .04em; }
  .home-page .hero-property-search input,
  .home-page .hero-property-search select {
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    font-size: 16px !important;
  }
  .home-page .hero-property-search input[type="date"] { font-size: 14px !important; }
  .home-page .hero-property-search .property-search-submit {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    box-shadow: 0 7px 16px rgba(38,32,28,.18);
  }
  .home-page .property-search-submit b { font-size: 14px !important; }

  .home-page .mobile-home-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
  }
  .home-page .mobile-home-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    background: rgba(20,17,15,.2);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 10px;
  }
  .home-page .mobile-home-highlights i { font-style: normal; color: #f4d9a4; }

  .home-page .smart-property-filters {
    margin: 18px 0 28px !important;
    padding: 16px !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #fbf8f5);
    box-shadow: 0 10px 28px rgba(47, 42, 39, .06);
  }
  .home-page .smart-filter-form { gap: 14px; }
  .home-page .smart-filter-heading { align-items: center; }
  .home-page .smart-filter-heading strong { font-size: 16px !important; line-height: 1.25; }
  .home-page .smart-filter-heading span { margin-top: 4px; font-size: 12px !important; line-height: 1.4; }
  .home-page .smart-filter-clear {
    flex: 0 0 auto;
    padding: 7px 9px;
    border-radius: 999px;
    background: var(--soft);
    font-size: 11px !important;
  }
  .home-page .smart-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px 8px !important; }
  .home-page .smart-filter-grid label > span { font-size: 10px !important; line-height: 1.2; }
  .home-page .smart-filter-grid select {
    width: 100%;
    height: 46px !important;
    padding: 0 10px;
    border-radius: 10px;
    background-color: #fff;
    font-size: 16px !important;
  }
  .home-page .smart-filter-submit {
    grid-column: 1 / -1 !important;
    width: 100%;
    height: 48px !important;
    border-radius: 11px;
    font-size: 14px !important;
  }

  .home-page .all-properties-section { margin-bottom: 30px !important; }
  .home-page .section-head { align-items: flex-end; margin-bottom: 20px !important; }
  .home-page .mobile-section-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .home-page .mobile-result-count {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
  }
  .home-page .section h2 { font-size: 27px !important; line-height: 1.12; }
  .home-page .section-sub { margin-top: 4px; font-size: 12px !important; }
  .home-page .property-address-group { margin-bottom: 32px !important; }
  .home-page .property-address-head { align-items: center; margin-bottom: 12px !important; padding: 0 2px; }
  .home-page .property-address-head span { font-size: 9px !important; }
  .home-page .property-address-head h3 { margin-top: 3px; font-size: 19px !important; line-height: 1.2; }
  .home-page .property-address-head > strong {
    flex: 0 0 auto;
    padding: 6px 8px;
    border-radius: 999px;
    background: var(--soft);
    font-size: 10px !important;
  }

  .home-page .cards { grid-template-columns: 1fr !important; gap: 16px !important; }
  .home-page .property-result-card {
    border: 1px solid rgba(75,65,58,.09) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(47, 42, 39, .08) !important;
    overflow: hidden;
  }
  .home-page .property-result-card .card-image { aspect-ratio: 16 / 10 !important; }
  .home-page .property-result-card .card-body { padding: 15px !important; }
  .home-page .property-result-card .card-title { font-size: 18px !important; line-height: 1.25 !important; }
  .home-page .property-result-card .card-location { margin: 4px 0 8px !important; font-size: 12px !important; line-height: 1.4 !important; }
  .home-page .property-review-inline { min-height: 20px; margin: 2px 0 11px !important; gap: 5px !important; }
  .home-page .property-review-inline .review-stars { font-size: 12px !important; }
  .home-page .property-review-inline strong { font-size: 12px !important; }
  .home-page .property-review-inline small { font-size: 10px !important; }
  .home-page .property-result-card .price { font-size: 15px !important; line-height: 1.25 !important; }
  .home-page .property-result-card .price small { font-size: 11px !important; }
  .home-page .property-result-card .arrow {
    width: auto !important;
    height: 38px !important;
    flex-basis: auto !important;
    padding: 0 12px;
    gap: 6px;
    border-radius: 999px !important;
    font-size: 13px !important;
  }
  .home-page .property-result-card .arrow em { display: inline; font-style: normal; font-size: 11px; font-weight: 700; }
  .home-page .property-result-card .arrow b { font-size: 14px; }
  .home-page .property-promo-badges { top: 10px !important; left: 10px !important; gap: 5px !important; }
  .home-page .property-promo-badges span { padding: 6px 9px !important; font-size: 9px !important; line-height: 1.2 !important; }
  .home-page .no-availability { padding: 24px 18px; border-radius: 16px; font-size: 14px; }
  .home-page .no-availability span { font-size: 12px; }
}

@media (min-width: 601px) and (max-width: 700px) {
  .home-page .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .home-page .property-result-card .card-title { font-size: 15px !important; }
  .home-page .property-result-card .card-body { padding: 12px !important; }
}

@media (max-width: 390px) {
  .home-page .hero-inner { padding-left: 9px !important; padding-right: 9px !important; }
  .home-page .hero-property-search { gap: 6px !important; padding: 8px !important; }
  .home-page .hero-property-search .field { padding-left: 8px !important; padding-right: 8px !important; }
  .home-page .hero-property-search input[type="date"] { font-size: 12px !important; }
  .home-page .smart-property-filters { padding: 13px !important; }
  .home-page .smart-filter-grid { grid-template-columns: 1fr !important; }
  .home-page .property-address-head > strong { max-width: 92px; text-align: center; }
}

/* Finisaje pentru ecrane tactile mici. */
@media (max-width: 700px) {
  .home-page { overflow: hidden; }
  .home-page .hero-property-search .field:focus-within {
    outline: 2px solid rgba(115, 82, 55, .32);
    outline-offset: -2px;
    background: #fff;
  }
  .home-page .hero-property-search input,
  .home-page .hero-property-search select,
  .home-page .smart-filter-grid select { touch-action: manipulation; }
  .home-page .property-result-card .card-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(20, 17, 15, .16));
  }
  .home-page .property-result-card img {
    transition: transform .35s ease;
  }
  .home-page .property-result-card:active img { transform: scale(1.025); }
  .home-page .property-address-head > div { min-width: 0; }
  .home-page .property-address-head h3 {
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
}

@media (max-width: 430px) {
  .home-page .hero { border-radius: 16px !important; }
  .home-page .hero-inner { padding-top: 34px !important; }
  .home-page .hero h1 { font-size: clamp(32px, 10vw, 40px) !important; }
  .home-page .section-head { gap: 10px; }
  .home-page .section-sub { max-width: 245px; }
  .home-page .property-result-card .card-image { aspect-ratio: 4 / 3 !important; }
}

/* V18.33 — carduri și footer mobile complet lizibile. */
@media (max-width: 700px) {
  .home-page .property-address-group {
    padding: 14px 10px 10px;
    border-radius: 22px;
    background: #f8f5f2;
  }
  .home-page .cards { display: grid !important; grid-template-columns: 1fr !important; gap: 14px !important; }
  .home-page .property-result-card { background: #fff !important; }
  .home-page .property-result-card > a { display: block; color: inherit; text-decoration: none; }
  .home-page .property-result-card .card-image { min-height: 210px !important; }
  .home-page .property-result-card .card-bottom {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(75,65,58,.1);
  }
  .home-page .property-result-card .price { flex: 1; font-size: 17px !important; font-weight: 800; }
  .home-page .property-result-card .arrow {
    min-width: 94px !important;
    min-height: 44px !important;
    justify-content: center;
    background: var(--ink) !important;
    color: #fff !important;
  }

  .footer-v18-25 { margin-top: 28px !important; padding: 28px 0 16px !important; }
  .footer-v18-25 > .container { width: calc(100% - 32px) !important; margin: 0 16px !important; }
  .footer-v18-25 .footer-main-grid { grid-template-columns: 1fr 1fr !important; gap: 24px 18px !important; }
  .footer-v18-25 .footer-brand-column { padding-bottom: 18px; border-bottom: 1px solid #ddd6cf; }
  .footer-v18-25 .site-logo-footer { max-width: 130px !important; max-height: 52px !important; }
  .footer-v18-25 .footer-brand-column p { max-width: 290px !important; margin-top: 8px !important; font-size: 12px !important; line-height: 1.55 !important; }
  .footer-v18-25 .footer-links-column { gap: 9px !important; }
  .footer-v18-25 .footer-links-column > strong { margin-bottom: 3px !important; font-size: 13px !important; }
  .footer-v18-25 .footer-links-column > a { padding: 2px 0 !important; font-size: 12px !important; line-height: 1.4 !important; overflow-wrap: anywhere; }
  .footer-v18-25 .footer-compact-section { padding: 16px 0 !important; }
  .footer-v18-25 .footer-compact-heading { margin-bottom: 12px !important; }
  .footer-v18-25 .footer-compact-heading span { font-size: 9px !important; }
  .footer-v18-25 .footer-compact-heading strong { font-size: 12px !important; line-height: 1.4; }
  .footer-v18-25 .classification-stars span { font-size: 15px !important; }
  .footer-v18-25 .footer-google-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .footer-v18-25 .footer-google-rating { padding: 13px !important; gap: 10px !important; }
  .footer-v18-25 .google-review-copy strong,
  .footer-v18-25 .google-review-score b { font-size: 12px !important; }
  .footer-v18-25 .google-stars { font-size: 11px !important; }
  .footer-v18-25 .google-review-cta { font-size: 9px !important; }
  .footer-v18-25 .footer-bottom-v18-25 { margin-top: 10px !important; padding-top: 14px !important; gap: 7px !important; font-size: 9px !important; line-height: 1.5 !important; }
}

@media (max-width: 390px) {
  .footer-v18-25 .footer-main-grid { grid-template-columns: 1fr !important; }
  .footer-v18-25 .footer-links-column { padding-bottom: 12px; border-bottom: 1px solid rgba(75,65,58,.1); }
}

/* Refresh mobil 2026: reguli finale intenționat prioritare. */
@media screen and (max-width: 820px) {
  body { overflow-x: hidden; background: #f6f3ef; }
  main > .container { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 14px !important; }
  .home-page .all-properties-section { margin-top: 0 !important; }
  .home-page .property-address-group { margin: 0 -4px 24px !important; padding: 16px 10px 10px !important; background: #eee8e1 !important; border-radius: 20px !important; }
  .home-page .property-address-head { display: block !important; }
  .home-page .property-address-head > strong { display: inline-block !important; margin-top: 8px; }
  .home-page .cards { display: flex !important; flex-direction: column !important; gap: 14px !important; }
  .home-page article.property-result-card { width: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 18px !important; background: #fff !important; box-shadow: 0 8px 24px rgba(35,27,22,.12) !important; }
  .home-page article.property-result-card > a { display: block !important; }
  .home-page article.property-result-card .card-image { width: 100% !important; height: 220px !important; min-height: 0 !important; aspect-ratio: auto !important; }
  .home-page article.property-result-card .card-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
  .home-page article.property-result-card .card-body { padding: 16px !important; }
  .home-page article.property-result-card .card-title { font-size: 20px !important; }
  .home-page article.property-result-card .card-bottom { margin-top: 10px !important; }
  .home-page article.property-result-card .arrow { display: inline-flex !important; min-width: 108px !important; height: 46px !important; background: #27211d !important; color: #fff !important; }
  .home-page .smart-filter-submit, .home-page .property-search-submit { display: flex !important; align-items: center; justify-content: center; min-height: 50px !important; color: #fff !important; background: #27211d !important; }

  footer.footer-v18-25 { margin-top: 24px !important; padding: 30px 0 18px !important; }
  footer.footer-v18-25 > .container { width: 100% !important; margin: 0 !important; padding: 0 18px !important; }
  footer.footer-v18-25 .footer-main-grid,
  footer.footer-v18-25 .footer-info-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; }
  footer.footer-v18-25 .footer-brand-column,
  footer.footer-v18-25 .footer-links-column,
  footer.footer-v18-25 .footer-compact-section,
  footer.footer-v18-25 .footer-google-reviews { padding: 18px 0 !important; border-bottom: 1px solid rgba(70,58,48,.14) !important; }
  footer.footer-v18-25 .footer-links-column a { display: block !important; min-height: 34px; padding: 7px 0 !important; font-size: 14px !important; }
  footer.footer-v18-25 .footer-logo-strip,
  footer.footer-v18-25 .footer-payment-row { flex-wrap: wrap !important; }
  footer.footer-v18-25 .footer-bottom-v18-25 { display: flex !important; flex-direction: column !important; text-align: center; font-size: 11px !important; }
}

@media screen and (max-width: 380px) {
  .home-page article.property-result-card .card-image { height: 190px !important; }
  .home-page article.property-result-card .card-bottom { align-items: stretch !important; flex-direction: column !important; }
  .home-page article.property-result-card .arrow { width: 100% !important; }
}
