/* Occhiuzzi v36 — buscador general, carruseles, mapa por área y cierre de página. */

/* Buscador general integrado al video de portada. */
.home-hero {
  min-height: 780px;
}

.home-hero__copy {
  bottom: clamp(28px, 5vh, 58px);
}

.oc36-hero-search {
  position: relative;
  overflow: hidden;
  width: min(1240px, 100%);
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(7, 21, 37, .64), rgba(24, 75, 118, .42)),
    rgba(7, 21, 37, .48);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
  backdrop-filter: blur(24px) saturate(128%);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.oc36-hero-search::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .2), transparent 34%),
    linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, .07) 48%, transparent 72%);
}

.oc36-hero-search > * {
  position: relative;
  z-index: 1;
}

.oc36-hero-search:focus-within {
  border-color: rgba(158, 207, 255, .76);
  box-shadow: 0 28px 76px rgba(0, 0, 0, .28), 0 0 0 3px rgba(158, 207, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .22);
  transform: translateY(-2px);
}

.oc36-hero-search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.oc36-hero-search__head strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.oc36-hero-search__operations {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
}

.oc36-hero-search__operations button {
  min-width: 100px;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.oc36-hero-search__operations button.is-active {
  background: #fff;
  color: #071525;
}

.oc36-hero-search__grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(6, minmax(100px, 1fr)) auto;
  gap: 9px;
  align-items: end;
}

.oc36-hero-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.oc36-hero-field > span {
  color: #d9efff;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.oc36-hero-field input,
.oc36-hero-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 255, 255, .96);
  color: #071525;
}

.oc36-hero-field input:focus,
.oc36-hero-field select:focus {
  border-color: #9ecfff;
  box-shadow: 0 0 0 3px rgba(158, 207, 255, .22);
}

.oc36-hero-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
}

.oc36-hero-check input {
  width: 16px;
  height: 16px;
  accent-color: #226cb5;
}

.oc36-hero-search__submit {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #9ecfff, #fff);
  color: #071525;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
}

.oc36-hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 11px;
}

.oc36-hero-shortcuts a {
  border-bottom: 1px solid rgba(255, 255, 255, .65);
  padding-bottom: 3px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Se eliminan las pastillas redundantes; el formulario sigue siendo completo. */
.oc33-type-tabs {
  display: none !important;
}

/* Carrusel real dentro de cada vista previa del catálogo. */
.property-card > .property-card__details {
  display: block;
}

.property-carousel {
  isolation: isolate;
}

.property-media-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.property-media-link img,
.property-media-link .property-placeholder {
  width: 100%;
  height: 100%;
}

.property-carousel__button {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 21, 37, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(7, 21, 37, .2);
  color: #071525;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  transform: translateY(-50%);
}

.property-carousel__button:hover,
.property-carousel__button:focus-visible {
  background: #071525;
  color: #fff;
}

.property-carousel__button--prev { left: 11px; }
.property-carousel__button--next { right: 11px; }

.property-carousel__count {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(7, 21, 37, .78);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.property-carousel .property-badge {
  z-index: 4;
}

/* CTA del recorrido horizontal: visible, táctil y lejos del borde inferior. */
.experience-card__copy {
  bottom: clamp(74px, 9vh, 104px) !important;
}

.experience-card__cta {
  margin-top: 20px !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 999px;
  background: rgba(7, 21, 37, .62);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .2);
  line-height: 1.2;
}

/* En escritorio, la ficha técnica queda a la izquierda y la llamada a la acción a la derecha. */
@media (min-width: 1001px) {
  .experience-card__copy {
    grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr) !important;
  }

  .experience-card__copy > div:first-child {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-end;
    text-align: right;
  }

  .experience-card__copy > dl {
    grid-column: 1;
    grid-row: 1;
  }
}

/* El cierre de marca acompaña al resto del footer sin dominarlo. */
.site-footer .footer-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer .footer-phrase {
  max-width: 280px;
  margin-top: 20px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(16px, 1.15vw, 20px) !important;
  line-height: 1.2;
  text-align: center;
}

/* Aire entre el hero y el comienzo del buscador en Venta y Alquiler. */
.catalog-main .catalog-content {
  padding-top: clamp(38px, 4vw, 62px) !important;
}

.catalog-main .catalog-content .filter-shell {
  top: 12px !important;
  transform: none !important;
}

/* Carruseles en las tarjetas de Propiedades destacadas. */
.oc36-featured-carousel__button {
  position: absolute;
  z-index: 20 !important;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 50%;
  background: rgba(7, 21, 37, .76) !important;
  box-shadow: 0 4px 14px rgba(7, 21, 37, .26);
  color: #fff !important;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.oc36-featured-carousel__button:hover,
.oc36-featured-carousel__button:focus-visible {
  background: rgba(34, 108, 181, .9) !important;
  transform: translateY(-50%) scale(1.04);
}

.oc36-featured-carousel__button--prev { left: 10px; }
.oc36-featured-carousel__button--next { right: 10px; }

.oc36-featured-carousel__count {
  position: absolute;
  z-index: 20;
  right: 13px;
  bottom: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(7, 21, 37, .8);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

@media (max-width: 700px) {
  .oc36-featured-carousel__button {
    width: 40px;
    height: 40px;
    font-size: 25px;
  }

  .oc36-featured-carousel__button--prev { left: 9px; }
  .oc36-featured-carousel__button--next { right: 9px; }
}

/* Accesos sociales visibles también en escritorio, sobre WhatsApp. */
@media (min-width: 1001px) {
  .site-rail .rail-socials {
    position: fixed;
    z-index: 890;
    right: auto;
    bottom: 255px;
    left: calc(100vw - 68px);
    display: flex !important;
    flex-direction: column;
    gap: 9px;
    width: auto;
    margin: 0;
    writing-mode: initial;
    transform: none;
  }

  .site-rail .rail-social {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(7, 21, 37, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 35px rgba(7, 21, 37, .18);
  }

  .site-rail .rail-social svg {
    display: block;
    width: 25px;
    height: 25px;
  }
}

/* Contacto pasa al cierre; el footer queda concentrado en enlaces útiles. */
.oc26-contact-strip.oc36-contact-final {
  margin-left: var(--rail);
  border-top: 1px solid rgba(7, 21, 37, .1);
}

.site-footer .footer-grid {
  grid-template-columns: minmax(260px, 1.15fr) repeat(3, minmax(150px, .72fr)) !important;
}

.site-footer .oc28-footer-contact {
  display: none !important;
}

/* Selección dibujada y estado de propiedades ya consultadas. */
.oc36-map-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.oc36-map-area button {
  min-height: 42px;
  border: 1px solid rgba(7, 21, 37, .16);
  border-radius: 12px;
  background: #fff;
  color: #071525;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.oc36-map-area button.is-active {
  background: #071525;
  color: #fff;
}

.oc36-map-area__hint {
  grid-column: 1 / -1;
  margin: 0;
  color: #637481;
  font-size: 10px;
  line-height: 1.5;
}

.oc36-map-drawing {
  cursor: crosshair !important;
}

.oc19-pin--visited {
  background: #7a4ce0 !important;
  border-color: #fff !important;
  box-shadow: 0 0 0 5px rgba(122, 76, 224, .22), 0 8px 20px rgba(7, 21, 37, .25) !important;
}

.oc36-area-rectangle {
  stroke: #071525;
  stroke-width: 2;
  fill: #226cb5;
  fill-opacity: .14;
}

@media (max-width: 1180px) and (min-width: 701px) {
  .oc36-hero-search__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .oc36-hero-field--query {
    grid-column: span 2;
  }
}

@media (max-width: 1000px) {
  .oc26-contact-strip.oc36-contact-final {
    margin-left: 0;
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .home-hero {
    height: auto !important;
    min-height: 1040px !important;
  }

  .home-hero video,
  .home-hero__shade {
    position: absolute;
    inset: 0;
  }

  .home-hero__copy {
    top: 104px !important;
    bottom: auto !important;
    left: 18px !important;
    right: 18px !important;
  }

  .home-hero h1 {
    font-size: clamp(44px, 13vw, 58px) !important;
  }

  .home-hero__copy > p:not(.eyebrow) {
    margin: 12px 0;
    font-size: 14px;
  }

  .oc36-hero-search {
    margin-top: 14px;
    padding: 13px;
    border-radius: 18px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(145deg, rgba(7, 21, 37, .78), rgba(24, 75, 118, .66));
  }

  .oc36-hero-search__head {
    display: grid;
    gap: 8px;
  }

  .oc36-hero-search__operations,
  .oc36-hero-search__operations button {
    width: 100%;
  }

  .oc36-hero-search__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oc36-hero-field--query,
  .oc36-hero-field--location,
  .oc36-hero-search__submit,
  .oc36-hero-check {
    grid-column: 1 / -1;
  }

  .oc36-hero-search__submit {
    width: 100%;
  }

  .oc36-hero-shortcuts {
    justify-content: space-between;
    gap: 10px;
  }

  .experience-card__copy {
    bottom: 78px !important;
  }

  .experience-card__cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .property-carousel__button {
    width: 38px;
    height: 38px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .site-footer .footer-grid > div:first-child {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .oc34-footer-brand,
  .site-footer .footer-phrase {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .home-hero {
    min-height: 1080px !important;
  }

  .oc36-hero-field input,
  .oc36-hero-field select,
  .oc36-hero-check,
  .oc36-hero-search__submit {
    min-height: 42px;
    font-size: 11px;
  }
}
