/* LCH Consultancy V2 release additions — social utility and property detail. */

.menu-panel__utility {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 10px 8px 2px 14px;
  border-top: 1px solid var(--menu-border);
}

.menu-panel__utility > .menu-panel__meta {
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.menu-panel__utility > .menu-panel__meta a {
  align-items: center;
  justify-content: center;
}

.menu-panel__social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.menu-panel__social a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--menu-muted);
  transition: color 160ms ease, background-color 160ms ease;
}

.menu-panel__social a svg {
  width: 19px;
  height: 19px;
  display: block;
  flex: 0 0 19px;
}

.menu-panel__social a:focus-visible {
  outline: 2px solid var(--menu-ink);
  outline-offset: -2px;
  background: var(--menu-row-hover);
  color: var(--menu-ink);
  box-shadow: none;
}

.menu-panel__social a:active {
  background: var(--menu-row-active);
  color: var(--menu-ink);
}

.site-footer__social {
  column-gap: clamp(10px, 1.2vw, 18px);
}

.site-footer__social a {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

/* Property single: retain Estatik's complete UX and place it in the V2 shell. */
body[data-page="property-detail"] {
  background: var(--surface);
}

.property-detail__topbar {
  padding: clamp(138px, 14vw, 184px) 0 clamp(28px, 4vw, 48px);
  background: var(--surface-sand);
}

.property-detail__back {
  padding-top: 14px;
  border-top: 1px solid rgba(18, 26, 35, 0.22);
}

.property-detail__back a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.property-detail__back a:hover,
.property-detail__back a:focus-visible {
  color: var(--blue-hover);
}

.property-detail__content {
  padding: clamp(42px, 6vw, 88px) 0 clamp(72px, 8vw, 120px);
  background: #fff;
}

.property-detail__shell {
  width: min(calc(100% - (var(--section-edge) * 2)), 1296px);
}

.property-detail__native,
.property-detail__native .es-single {
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: "LCH Inter", Inter, Arial, sans-serif !important;
  color: var(--ink);
}

.property-detail__native .es-single,
.property-detail__native .es-single *:not(.es-icon):not([class^="es-icon_"]):not([class*=" es-icon_"]) {
  font-family: "LCH Inter", Inter, Arial, sans-serif !important;
}

.property-detail__native .es-icon,
.property-detail__native [class^="es-icon_"],
.property-detail__native [class*=" es-icon_"] {
  font-family: es-icon !important;
}

.property-detail__native .es-breadcrumbs {
  margin-bottom: clamp(22px, 3vw, 38px);
  color: var(--ink-muted);
  font-size: 12px;
}

.property-detail__native .property-title,
.property-detail__native .es-single h1 {
  color: var(--ink) !important;
  font-size: clamp(36px, 5vw, 70px) !important;
  font-weight: 500 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
}

.property-detail__native .es-price {
  color: var(--nav) !important;
  font-size: clamp(25px, 3vw, 38px) !important;
  font-weight: 600 !important;
}

.property-detail__native .es-address,
.property-detail__native .es-property-section p,
.property-detail__native .es-property-section li,
.property-detail__native .es-field__label {
  color: var(--ink-muted) !important;
}

.property-detail__native .es-btn--primary,
.property-detail__native a.es-btn--primary,
.property-detail__native button.es-btn--primary {
  min-height: 48px !important;
  border-color: var(--nav) !important;
  border-radius: var(--radius-10) !important;
  background: var(--nav) !important;
  color: var(--inverse) !important;
  box-shadow: none !important;
}

.property-detail__native .es-btn--primary:hover,
.property-detail__native .es-btn--primary:focus-visible {
  border-color: var(--blue) !important;
  background: var(--blue) !important;
  color: var(--inverse) !important;
}

.property-detail__native .es-gallery img,
.property-detail__native .es-mobile-gallery img {
  border-radius: var(--radius-10);
}

.property-detail__native .es-property-section {
  border-color: rgba(18, 26, 35, 0.16) !important;
}

.property-detail__native input,
.property-detail__native textarea,
.property-detail__native select {
  border-color: rgba(18, 26, 35, 0.24) !important;
  border-radius: var(--radius-10) !important;
  color: var(--ink) !important;
}

.property-detail__native input:focus,
.property-detail__native textarea:focus,
.property-detail__native select:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(49, 90, 134, 0.15) !important;
  outline: none !important;
}

.property-detail__native a:not(.es-btn):hover,
.property-detail__native a:not(.es-btn):focus-visible {
  color: var(--blue) !important;
}

.idealista-band {
  padding: clamp(72px, 9vw, 132px) 0;
  background: var(--surface-sand);
  color: var(--nav);
}

.idealista-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(42px, 8vw, 128px);
  align-items: end;
}

.idealista-band__eyebrow {
  display: block;
  margin-bottom: clamp(38px, 6vw, 78px);
  padding-top: 13px;
  border-top: 1px solid rgba(18, 26, 35, 0.25);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.idealista-band h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(52px, 7.2vw, 108px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.idealista-band__action {
  display: grid;
  gap: 30px;
}

.idealista-band__action p {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}

.idealista-band__action a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border: 1px solid rgba(18, 26, 35, 0.24);
  border-radius: var(--radius-10);
  background: rgba(247, 247, 242, 0.48);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}

.idealista-band__action a:hover,
.idealista-band__action a:focus-visible {
  background: var(--nav);
  color: var(--inverse);
}

.property-detail__handoff {
  padding-top: clamp(72px, 8vw, 118px);
}

@media (hover: hover) {
  .menu-panel__social a:hover {
    background: var(--menu-row-hover);
    color: var(--menu-ink);
  }
}

@media (max-width: 760px) {
  .idealista-band__grid {
    grid-template-columns: 1fr;
  }

  .idealista-band__eyebrow {
    margin-bottom: 36px;
  }

  .property-detail__native .es-single__header {
    gap: 22px;
  }
}

@media (max-width: 359px) {
  .menu-panel__utility {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu-panel__social {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idealista-band__action a,
  .menu-panel__social a {
    transition: none;
  }
}

/* The V2 menu contains the approved EN/ES control, so the legacy floating
   TranslatePress switcher would duplicate the same action. */
body.lch-codex-v2 #trp-floater-ls {
  display: none !important;
}
