body {
  margin: 0;
  padding: 3.5rem 1rem 1rem 1rem;
  background-color: #f9f9f9;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.ui,
.ui.header,
.ui.card,
.ui.segment,
.ui.label,
.ui.menu,
.ui.button,
.ui.message,
.ui.message .header,
.ui.input>input {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.ui.form input:not([type]),
.ui.form input[type=date],
.ui.form input[type=datetime-local],
.ui.form input[type=email],
.ui.form input[type=file],
.ui.form input[type=number],
.ui.form input[type=password],
.ui.form input[type=search],
.ui.form input[type=tel],
.ui.form input[type=text],
.ui.form input[type=time],
.ui.form input[type=url] {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.vehiculo-imagen {
  filter: sepia(0.2) contrast(1.2) brightness(1.05) saturate(1.2);
  position: relative;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
}

.vehiculo-imagen .bg-imagen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.85) contrast(1.1) saturate(1.2);
  transition: filter 0.3s ease, transform 0.3s ease;
  z-index: 0;
}

.vehiculo-imagen .ui.label {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.90) ;
  color: #000 ;
  font-weight: 500 !important;
  margin: 0.25rem 0.25rem 0 0;
}

.vehiculo-imagen:hover {
  transform: scale(1.01);
}


.ui.menu .floating.label {
  top: 0.4em;
  font-size: 0.8rem;
  z-index: 1;
}

.item.active.lm-menu {
  color: rgba(0, 0, 0, .95) !important;
}

.item.lm-menu {
  color: rgba(0, 0, 0, .51) !important;
  font-weight: 700 !important;
}

.ui.bottom.fixed.menu {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}


#loader {
  transition: opacity 0.5s ease;
  background-color: #ffffff !important;
  /* Fondo blanco sólido */
}

#loader.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.text-green {
  color: #3B9500 !important;
}

.text-red {
  color: #F50057 !important;
}


/* ---------------------------------------------
   Estilos base (mobile-first: ocupa toda la vista)
--------------------------------------------- */
.detalle-panel, #panelOferta, #panelUsuario {
  position: fixed;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 */
  width: 100vw;
  /* 100 % del viewport */
  height: 100vh;
  background: #fff;
  overflow-y: auto;
  z-index: 1000;

  /* animación slide-in desde la derecha */
  transform: translateX(100%);
  transition: transform 0.35s ease;
}


/* estado visible */
.detalle-panel.visible, #panelOferta.visible, #panelUsuario.visible  {
  transform: translateX(0);
}

/* botón cerrar */
.detalle-panel .cerrar-btn, #panelOferta .cerrar-btn {
  position: fixed;
  /* para que siempre sea accesible */
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: 12px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
}

.detalle-imagen {
  filter: brightness(1) contrast(1.2) saturate(1.4);
}

/*
.detalle-imagen:hover {
  transform: scale(1.01);
}
*/

/* ---------------------------------------------
   Refinamos sólo en pantallas > 600 px
   (tablet / escritorio) para volver al sidebar
--------------------------------------------- */
@media (min-width: 600px) {
  .detalle-panel {
    width: 420px;
    inset: 0 0 0 auto;
    /* sólo pegado al borde derecho */
    border-left: 1px solid #e0e0e0;
  }
}





/* --- slider --- */
#det-swiper {
  width: 100%;
  height: 260px;
  position: relative;
}

#det-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- puntitos central (swiper-pagination) --- */
.swiper-pagination {
  bottom: 14px !important;
}

/* bullets redondos gris/claro */
.sw-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  margin: 0 3px !important;
  opacity: 1;
}

.sw-bullet-active {
  background: #fff;
}

/* --- contador 1/15 en esquina --- */
.sw-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
}

/* --- botones overlay (back/share/fav) --- */
.sw-btn {
  position: absolute;
  top: 3.5rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sw-btn.back {
  left: 12px;
}

.sw-btn.share {
  right: 56px;
}

.sw-btn.fav {
  right: 12px;
}

.sw-btn i {
  margin: 0 !important;
}

/* El bloque donde vive el slider debe ser contexto de posicionamiento */
.detalle-imagen,
#det-swiper {
  position: relative;
}

/* Que nada los tape */
.swiper-pagination,
.sw-count,
.sw-btn {
  z-index: 11;
}

/* Botones un poco más grandes si lo deseas */
.sw-btn {
  width: 34px;
  height: 34px;
}

/* Iconos centrados (Semantic UI icons) */
.sw-btn i {
  margin: 0 !important;
  line-height: 1;
}


/* --- CONTENEDOR DE PUNTITOS -------------------------------------- */
#det-swiper .swiper-pagination {
  bottom: 36px !important;
  /* un poco más separada del borde */
  width: 100%;
  text-align: center;
  z-index: 12;
  /* por encima del <img> */
}

/* --- BULLET GENÉRICO --------------------------------------------- */
.sw-bullet {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  /* más opaco = se ve mejor */
  margin: 0 4px !important;
  opacity: 1;
  /* Swiper cambia opacity si no */
  transition: transform .2s;
}

/* --- BULLET ACTIVO ----------------------------------------------- */
.sw-bullet-active {
  background: #fff;
  transform: scale(1.25);
  /* lo agranda ligeramente */
}


#det-swiper .ui.black.label {
  background-color: rgba(0, 0, 0, 0.65) !important;
}

.ui.large.menu .item{font-weight: 600!important}

