/* assets/css/60-hourly-desktop-vehicle-gallery.css
   Hourly / Daily desktop vehicle gallery.
   Alcance:
   - solo desktop
   - affordance de galería sobre la foto desktop de Hourly
   - lightbox/modal de vehículo
   - no toca móvil
   - no toca tarifa, CTA ni payload
*/

.hourly-desktop-vehicle-gallery[hidden]{
  display:none !important;
}

@media (min-width:721px){
  body[data-hourly-desktop-vehicle-gallery-active="true"]{
    overflow:hidden !important;
  }

  #services-expand-hourly .services-hourly-panel__vehicle-media[data-hourly-desktop-vehicle-gallery-trigger="1"]{
    position:relative;
    cursor:pointer;
  }

  #services-expand-hourly .services-hourly-panel__vehicle-media[data-hourly-desktop-vehicle-gallery-trigger="1"]::after{
    content:"";
    position:absolute;
    top:9px;
    right:9px;
    z-index:2;
    width:26px;
    height:26px;
    border:1px solid rgba(236,220,189,.42);
    border-radius:999px;
    background:
      rgba(15,17,19,.72)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4.5' y='6.5' width='13' height='11' rx='2' stroke='%23fff5e4' stroke-width='1.7'/%3E%3Cpath d='M7.5 15l2.8-3 2.1 2 1.3-1.4 2.8 2.4' stroke='%23fff5e4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 4.5h11.5v10' stroke='%23fff5e4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
      center / 16px 16px
      no-repeat;
    pointer-events:none;
  }

  #services-expand-hourly .services-hourly-panel__vehicle-media[data-hourly-desktop-vehicle-gallery-trigger="1"]:focus-visible{
    outline:2px solid rgba(31,122,109,.95);
    outline-offset:3px;
  }

  .hourly-desktop-vehicle-gallery{
    position:fixed;
    inset:0;
    z-index:96;
    display:grid;
    place-items:center;
    padding:28px;
    background:rgba(0,0,0,.72);
    overflow:hidden;
  }

  .hourly-desktop-vehicle-gallery__backdrop{
    position:absolute;
    inset:0;
    z-index:0;
    display:block;
    width:100%;
    height:100%;
    border:0;
    padding:0;
    background:transparent;
  }

  .hourly-desktop-vehicle-gallery__panel{
    position:relative;
    z-index:1;
    width:min(860px, calc(100vw - 56px));
    max-height:calc(100vh - 56px);
    display:grid;
    grid-template-rows:minmax(0, 1fr) auto;
    gap:10px;
    overflow:hidden;
    border:1px solid rgba(236,220,189,.18);
    border-radius:14px;
    background:#0f1113;
    box-shadow:0 18px 42px rgba(0,0,0,.42);
  }

  .hourly-desktop-vehicle-gallery__close{
    position:absolute;
    top:10px;
    right:10px;
    z-index:3;
    width:36px;
    height:36px;
    border:0;
    border-radius:999px;
    background:rgba(15,17,19,.72);
    color:rgba(255,249,238,.94);
    font:inherit;
    font-size:24px;
    line-height:1;
    font-weight:500;
    cursor:pointer;
  }

  .hourly-desktop-vehicle-gallery__close:focus-visible,
  .hourly-desktop-vehicle-gallery__nav:focus-visible{
    outline:2px solid rgba(31,122,109,.95);
    outline-offset:2px;
  }

  .hourly-desktop-vehicle-gallery__image-wrap{
    width:100%;
    min-height:0;
    background:#090a0b;
    overflow:hidden;
  }

  .hourly-desktop-vehicle-gallery__image{
    display:block;
    width:100%;
    height:auto;
    max-height:calc(100vh - 156px);
    object-fit:contain;
    background:#090a0b;
  }

  .hourly-desktop-vehicle-gallery__footer{
    display:grid;
    gap:3px;
    padding:0 16px 16px;
    background:#0f1113;
  }

  .hourly-desktop-vehicle-gallery__label{
    margin:0;
    color:rgba(255,249,238,.94);
    font-size:14px;
    line-height:1.2;
    font-weight:760;
    letter-spacing:-.01em;
  }

  .hourly-desktop-vehicle-gallery__counter{
    margin:0;
    color:rgba(255,245,228,.54);
    font-size:11.5px;
    line-height:1.2;
    font-weight:700;
  }

  .hourly-desktop-vehicle-gallery__nav{
    position:absolute;
    top:50%;
    z-index:3;
    width:40px;
    height:46px;
    border:0;
    border-radius:10px;
    background:rgba(15,17,19,.62);
    color:rgba(255,249,238,.92);
    font:inherit;
    font-size:34px;
    line-height:1;
    font-weight:300;
    transform:translateY(-50%);
    cursor:pointer;
  }

  .hourly-desktop-vehicle-gallery__nav[hidden]{
    display:none !important;
  }

  .hourly-desktop-vehicle-gallery__nav--prev{
    left:10px;
  }

  .hourly-desktop-vehicle-gallery__nav--next{
    right:10px;
  }
}