/* ========================================
   THEROS SHOWROOMS - CSS COMPLET
   ======================================== */

/* Section principale */
.theros-showrooms-section {
  padding: 60px 0;
  background: #fff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */
.theros-showrooms-header {
  margin-bottom: 40px;
}

.theros-header-accent {
  font-size: 2.5rem;
  font-weight: 700;
  color: #008080;
  margin: 0 0 16px 0;
  padding-left: 20px;
  border-left: 7px solid #008080;
  line-height: 1.2;
}

.theros-showrooms-subtitle {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  padding-left: 27px;
  margin: 0;
}

/* ========================================
   ONGLETS
   ======================================== */
.theros-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.theros-tab {
  background: #f0f0f0;
  border: none;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.theros-tab:hover {
  background: #e0e0e0;
  color: #008080;
}

.theros-tab.active {
  background: #008080;
  color: #fff;
}

/* ========================================
   LAYOUT 2 COLONNES
   ======================================== */
.theros-main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* ========================================
   COLONNE CARTE (GAUCHE)
   ======================================== */
.theros-map-column {
  position: sticky;
  top: 20px;
}

.theros-map-container {
  position: relative;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  background: #e0e0e0;
}

.theros-map {
  width: 100%;
  height: 100%;
}

/* Adresse en haut de la carte */
.theros-map-address-box {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  line-height: 1.5;
}

/* Bouton recentrer (haut droite) */
.theros-map-recenter-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  color: #008080;
  transition: all 0.3s ease;
}

.theros-map-recenter-btn:hover {
  background: #008080;
  color: #fff;
  transform: scale(1.05);
}

/* Boutons en bas de la carte */
.theros-map-bottom-actions {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.theros-map-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theros-map-btn svg {
  flex-shrink: 0;
}

.theros-map-btn-primary {
  background: #008080;
  color: #fff;
}

.theros-map-btn-primary:hover {
  background: #006666;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

.theros-map-btn-outline {
  background: #fff;
  color: #333;
  border: 2px solid #e0e0e0;
}

.theros-map-btn-outline:hover {
  border-color: #008080;
  color: #008080;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 128, 128, 0.2);
}

/* ========================================
   COLONNE SHOWROOMS (DROITE)
   ======================================== */
.theros-showrooms-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.theros-showroom-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Cacher par défaut les cartes B2C au chargement */
.theros-showroom-card[data-type="b2c"] {
  display: none;
}

.theros-showroom-card.hidden {
  display: none !important;
}

.theros-showroom-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.theros-showroom-card.active {
  box-shadow: 0 0 0 3px #008080;
}

/* Image du showroom - EN FOND avec texte par-dessus */
.theros-card-image-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #000;
}

.theros-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================
   SLIDER D'IMAGES
   ======================================== */
.theros-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.theros-slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0 !important;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.theros-slider-image.active {
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 1;
}

/* Fond quand pas d'image */
.theros-no-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 0;
}

/* Overlay sombre pour meilleure lisibilité */
.theros-card-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

/* Badge sur l'image */
.theros-card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #008080;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  z-index: 3;
}

/* TEXTE PAR-DESSUS L'IMAGE */
.theros-card-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
  color: #fff;
}

.theros-card-overlay-content .theros-card-city {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theros-card-overlay-content .theros-card-hours {
  margin-bottom: 24px;
}

.theros-card-overlay-content .theros-hour-item {
  color: rgba(255, 255, 255, 0.95);
}

.theros-card-overlay-content .theros-hour-item svg {
  color: #fff;
}

.theros-card-overlay-content .theros-hour-item span {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Flèches de navigation EN BAS */
.theros-image-nav-btn {
  position: absolute;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: rgba(139, 0, 0, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.theros-nav-prev {
  left: 30px;
}

.theros-nav-next {
  right: 30px;
}

.theros-image-nav-btn:hover {
  background: rgba(139, 0, 0, 1);
  transform: scale(1.1);
}

.theros-image-nav-btn svg {
  color: #fff;
  transition: color 0.3s ease;
}

/* Footer actions EN DEHORS de l'image */
.theros-card-footer {
  padding: 24px 30px;
  background: #fff;
}

/* Corps de la carte - SUPPRIMÉ car contenu dans l'image */
.theros-card-body {
  /* Supprimé - le contenu est maintenant dans l'overlay */
}

.theros-card-city {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
}

/* Horaires */
.theros-card-hours {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.theros-hour-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #008080;
  font-size: 15px;
}

.theros-hour-item svg {
  flex-shrink: 0;
}

.theros-hour-item span {
  color: #333;
  font-weight: 500;
}

/* Footer avec boutons */
.theros-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theros-card-btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theros-card-btn-primary {
  background: #008080;
  color: #fff;
}

.theros-card-btn-primary:hover {
  background: #006666;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

.theros-card-btn-icon {
  width: 50px;
  height: 50px;
  background: #008080;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.theros-card-btn-icon svg {
  color: #fff;
}

.theros-card-btn-icon:hover {
  background: #006666;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

/* ========================================
   LEAFLET CUSTOM
   ======================================== */
.leaflet-container {
  font-family: inherit;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .theros-main-layout {
    grid-template-columns: 1fr;
  }

  .theros-map-column {
    position: relative;
    top: 0;
  }

  .theros-map-container {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .theros-showrooms-section {
    padding: 40px 0;
  }

  .theros-header-accent {
    font-size: 2rem;
    padding-left: 15px;
    border-left-width: 5px;
  }

  .theros-showrooms-subtitle {
    font-size: 14px;
    padding-left: 20px;
  }

  .theros-tabs {
    flex-direction: column;
  }

  .theros-tab {
    width: 100%;
    text-align: center;
  }

  .theros-map-container {
    height: 350px;
  }

  .theros-map-address-box {
    font-size: 13px;
    padding: 12px 16px;
  }

  .theros-map-bottom-actions {
    flex-direction: column;
  }

  .theros-card-image-wrapper {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .theros-header-accent {
    font-size: 1.75rem;
    padding-left: 12px;
    border-left-width: 4px;
  }

  .theros-map-container {
    height: 300px;
  }

  .theros-map-address-box {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .theros-map-recenter-btn {
    right: 10px;
    top: 10px;
  }

  .theros-map-bottom-actions {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .theros-card-body {
    padding: 20px;
  }

  .theros-card-city {
    font-size: 20px;
  }
}
.theros-main-layout {
    grid-template-columns: 1.5fr 1fr;
}


button#getDirectionBtn,.theros-map-btn-outline {
    width: fit-content !important;
    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
    max-width: fit-content;
}

.theros-map-bottom-actions {
    align-items: center;
}

.theros-map-btn-outline {
    border-color: rgba(60, 60, 60, 1);
}

button#recenterMap {
    top: unset;
    bottom: 20px;
}

.leaflet-bottom.leaflet-right {
    display: none;
}

div#mapAddressBox {
    border-radius: 120px;
    width: fit-content;
    padding-top: 10px;
    padding-bottom: 10px;
}

.theros-tabs {
    background: rgba(230, 242, 242, 1);
    width: fit-content;
    padding: 10px;
    border-radius: 100px;
    gap: 0;
}

button.theros-tab {
    border-radius: 100px 0 0 100px;
}

button.theros-tab[data-filter="b2c"]{
  border-radius: 0 100px 100px 0;
}



button#recenterMap {
    border-radius: 100px;
}

.theros-card-overlay-content {
    display: flex;
}

.theros-image-nav-btn {
    position: relative;
    top: 0;
    bottom: 0;
    right: 0;
    top: 0;
    left: 0;
}

.theros-card-footer {
    background: transparent;
}

.theros-card-image-wrapper {
    height: 459px;
}


.theros-map-container {
    height: 459px;
}

.theros-card-footer {
    padding: 0;
}
.bouton.select {
    display: flex;
    justify-content: flex-end;
    max-width: 166px;
    margin-left: auto;
    gap: 50px;
}

.element-image-droite {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

button.theros-card-btn.theros-card-btn-primary {
    font-size: 14px;
    font-weight: 400;
    padding: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

button.theros-card-btn-icon {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 1);
}

h3.theros-card-city {
    font-size: 28px !important;
}

.theros-card-overlay-content {
    gap: 20px;
}

.theros-card-badge {
    color: #000;
    font-size: 12px;
    border-radius: 120px;
}
.bouton.select {
    display: flex;
    justify-content: flex-end;
    max-width: 166px;
    margin-left: auto;
    gap: 50px;
}

.element-image-droite {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

button.theros-card-btn.theros-card-btn-primary {
    font-size: 14px;
    font-weight: 400;
    padding: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

button.theros-card-btn-icon {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 1);
}

h3.theros-card-city {
    font-size: 28px !important;
}

.theros-card-overlay-content {
    gap: 20px;
}

.theros-card-badge {
    color: #000;
    font-size: 12px;
    border-radius: 120px;
}
.element-image-droite {
    width: 70%;
}

button.theros-image-nav-btn {
    background: rgb(223 142 142 / 87%);
    width: 33px;
    height: 33px;
}