/* Complementos al diseño de Ganados Pro: el resto del estilo viene del tema (clases gp-*). */
.gp-grid-1{grid-template-columns:1fr}
.ov-srm-card .gp-card-image{position:relative}
.ov-srm-single .gp-listing-header{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem}
.ov-srm-single .gp-details-table td{overflow-wrap:anywhere}
.ov-srm-single .gp-map-placeholder{min-height:160px;margin-top:1.5rem}
.ov-srm-single .gp-map-placeholder-text{display:flex;align-items:center;gap:.5rem}
.ov-srm-archive-title{margin-bottom:2rem}
.ov-srm-archive .nav-links{display:flex;gap:.5rem;justify-content:center;margin-top:2rem}
.ov-srm-single .gp-listing-video .gp-video-embed+.gp-video-embed{margin-top:1.5rem}

/* Fotos: cada cuadro tiene proporción fija y la foto lo llena recortando, sin deformarse. */
.ov-srm-single .gp-gallery-main{aspect-ratio:3/2;background:var(--gp-color-bg-alt)}
.ov-srm-single .gp-gallery-main img,.ov-srm-single .gp-gallery-main-img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center}
.ov-srm-single .gp-gallery-thumb img,.ov-srm-card .gp-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.ov-srm-single .gp-gallery-thumbs{scrollbar-width:thin;-webkit-overflow-scrolling:touch}

/* Página de la ficha adaptable: nada puede ensanchar la columna ni generar scroll horizontal. */
.ov-srm-single,.ov-srm-archive{overflow-x:clip}
.ov-srm-single .gp-grid-12>*{min-width:0}
.ov-srm-single img,.ov-srm-single iframe,.ov-srm-single video{max-width:100%}
.ov-srm-single .gp-details-table{width:100%;table-layout:fixed}
.ov-srm-single .gp-details-table th,.ov-srm-single .gp-details-table td{overflow-wrap:anywhere;word-break:break-word}
.ov-srm-single .gp-listing-title,.ov-srm-single .gp-listing-description,.ov-srm-single .gp-location-text{overflow-wrap:anywhere}
.ov-srm-single .gp-listing-description a{word-break:break-all}
.ov-srm-single .gp-social-share{flex-wrap:wrap}
@media(max-width:1024px){
  .ov-srm-single .gp-col-4{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));align-items:start}
  .ov-srm-single .gp-map-placeholder{margin-top:0}
}
@media(max-width:767px){
  .ov-srm-single .gp-container,.ov-srm-archive .gp-container{padding-left:1rem;padding-right:1rem}
  .ov-srm-single .gp-gallery-main{aspect-ratio:4/3;margin-left:-1rem;margin-right:-1rem;border-radius:0}
  .ov-srm-single .gp-breadcrumbs{padding:.5rem 0;margin-bottom:.75rem}
  .ov-srm-single .gp-breadcrumb-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
  .ov-srm-single .gp-details-table th{width:42%}
  .ov-srm-single .gp-map-placeholder{min-height:120px}
}

/* Pestañas del widget para filtrar por operación (venta / alquiler / pedidos). */
.ov-srm-card[hidden],.ov-srm-empty[hidden]{display:none}
.ov-srm-empty{grid-column:1/-1;text-align:center;color:var(--gp-color-text-secondary)}
.ov-srm-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem}
.ov-srm-tab{appearance:none;cursor:pointer;padding:.5rem 1.25rem;border-radius:999px;border:2px solid var(--gp-color-border);background:var(--gp-color-surface);color:var(--gp-color-text);font-family:var(--gp-font-primary);font-size:.875rem;font-weight:600;line-height:1.4;transition:border-color 200ms ease,background-color 200ms ease,color 200ms ease}
.ov-srm-tab:hover{border-color:var(--gp-color-primary-urban)}
.ov-srm-tab.is-active{background:var(--gp-color-primary-urban);border-color:var(--gp-color-primary-urban);color:#fff}
.ov-srm-tab:focus-visible{outline:2px solid var(--gp-color-primary-urban);outline-offset:2px}
@media(max-width:767px){.ov-srm-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.ov-srm-tab{flex:0 0 auto}}

/* Video de YouTube: miniatura con botón de reproducir; al tocarla se carga el reproductor. */
.ov-srm-yt{display:block;background:#000;cursor:pointer;color:#fff}
.ov-srm-yt img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity 200ms ease}
.ov-srm-yt:hover img{opacity:.85}
.ov-srm-yt-play{position:absolute;left:50%;top:50%;width:68px;height:48px;transform:translate(-50%,-50%);border-radius:14px;background:rgba(0,0,0,.7);transition:background-color 200ms ease}
.ov-srm-yt-play::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-35%,-50%);border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent #fff}
.ov-srm-yt:hover .ov-srm-yt-play,.ov-srm-yt:focus-visible .ov-srm-yt-play{background:#f00}
.ov-srm-yt:focus-visible{outline:3px solid var(--gp-color-primary-agro);outline-offset:2px}
.ov-srm-yt-play-sm{width:52px;height:36px;border-radius:10px}
.ov-srm-card .gp-card-image .ov-srm-yt-play{pointer-events:none}
.ov-srm-gallery-video .gp-video-embed{margin:0}
.ov-srm-single .gp-listing-video .gp-video-embed+.gp-video-embed{margin-top:1.5rem}
@media(max-width:767px){.ov-srm-gallery-video{margin-left:-1rem;margin-right:-1rem}.ov-srm-gallery-video .gp-video-embed,.ov-srm-gallery-video .gp-video-embed iframe{border-radius:0}}

/* Carrusel del widget: tarjetas en una fila que se desliza, con flechas a los costados. */
.ov-srm-carousel{--ov-cols:var(--ov-cols-desktop,3);--ov-gap:1.5rem;position:relative}
.ov-srm-carousel[hidden]{display:none}
.ov-srm-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--ov-cols) - 1) * var(--ov-gap)) / var(--ov-cols));gap:var(--ov-gap);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding:.25rem .125rem 1rem;-webkit-overflow-scrolling:touch}
.ov-srm-track::-webkit-scrollbar{display:none}
.ov-srm-track:focus-visible{outline:2px solid var(--gp-color-primary-agro,#2e7d32);outline-offset:4px;border-radius:.75rem}
.ov-srm-track>.ov-srm-card{scroll-snap-align:start;min-width:0}
.ov-srm-track>.ov-srm-card:hover{transform:none}
.ov-srm-nav{position:absolute;top:calc(50% - 1.5rem);z-index:2;display:grid;place-items:center;width:2.75rem;height:2.75rem;padding:0;border-radius:50%;border:1px solid var(--gp-color-border,#e0e0e0);background:var(--gp-color-surface,#fff);color:var(--gp-color-text,#212121);box-shadow:0 4px 14px rgba(0,0,0,.15);cursor:pointer;transition:opacity 200ms ease,background-color 200ms ease,color 200ms ease}
.ov-srm-nav:hover:not(:disabled){background:var(--gp-color-primary-agro,#2e7d32);border-color:var(--gp-color-primary-agro,#2e7d32);color:#fff}
.ov-srm-nav:focus-visible{outline:2px solid var(--gp-color-primary-agro,#2e7d32);outline-offset:2px}
.ov-srm-nav:disabled{opacity:0;pointer-events:none}
.ov-srm-prev{left:-1.375rem}
.ov-srm-next{right:-1.375rem}
.ov-srm-carousel.is-static .ov-srm-nav{display:none}
.ov-srm-more-wrap{display:flex;justify-content:center;margin-top:1.5rem}
@media(max-width:1280px){.ov-srm-prev{left:.25rem}.ov-srm-next{right:.25rem}}
@media(max-width:1024px){.ov-srm-carousel{--ov-cols:min(var(--ov-cols-desktop,3),2)}}
@media(max-width:600px){.ov-srm-carousel{--ov-cols:1.15;--ov-gap:1rem}.ov-srm-nav{width:2.25rem;height:2.25rem}}
@media(prefers-reduced-motion:reduce){.ov-srm-track{scroll-behavior:auto}}
