/* === GRILLE RESPONSIVE === */
.showroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

/* === SELECT 2 === */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
	border: 1px solid #666;
	border-right: none;
	border-radius: 3px 0 0 3px;
	height: 42px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
	padding-left: 15px;
	padding-top: 5px;
	padding-bottom: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: black;
}

/* === ANIMATION APPARITION === */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInSlide 0.4s ease-out forwards;
}

@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === CARTE SHOWROOM === */
.showroom-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
  cursor: pointer;
  max-width: 100%;
}

.showroom-card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* === IMAGE & OVERLAY === */
.card-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-stock,
.card-badge {
  position: absolute;
  top: 10px;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.card-stock {
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
}

.card-badge {
  left: 10px;
  background: #ffc107;
  color: #000;
}

.badge-new { background: #ffc107; color: #000; }
.badge-used { background: #90a4ae; color: #fff; }
.badge-reduced { background: #e53935; color: #fff; }
.badge-special { background: #6a1b9a; color: #fff; }

/* === OVERLAY === */
.floorplan-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,15,15,0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

.card-image:hover .floorplan-overlay {
  opacity: 1;
  transform: translateY(0);
}

.floorplan-overlay img {
  max-width: 90%;
  max-height: 60%;
  object-fit: contain;
  margin-bottom: 10px;
}

.view-details {
  background: #fff;
  color: #000;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.3s ease;
  text-decoration: none;
}

.view-details:hover {
  background: #fdd835;
}

/* === CONTENU TEXTE === */
.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #222;
  min-height: 300px;
}

.card-type {
  font-size: 12px;
  text-transform: uppercase;
  color: #666;
}

.card-title {
  font-size: 16px;
  margin: 0;
  font-weight: bold;
}

.card-price {
  font-size: 14px;
	margin-top: auto;
}

.card-price strong {
  font-size: 18px;
  color: #2a8f45;
}

.card-specs {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  text-align: center;
	margin-top: auto;
}

.card-specs .spec {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.card-specs img {
  height: 16px;
  opacity: 0.6;
}

.card-dealer {
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  color: #555;
	margin-top: auto;
}

/* UNIT CARDS CTA */
.cta-buttons-wrapper{
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	padding: 0 15px 10px 15px;
}

.cta-button-1 {
	padding: 10px 15px;
	background-color: var(--e-global-color-accent);
	color: var(--e-global-color-text);
	text-align: center;
	text-transform: uppercase;
	border-radius: 30px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

.cta-button-1 a:hover {
	color: inherit !important;
}

.cta-button-2 {
	padding: 10px 15px;
	background-color: var(--e-global-color-0647575);
	color: var(--e-global-color-accent) !important;
	text-align: center;
	text-transform: uppercase;
	border-radius: 30px;
}
.cta-button-2:hover {
	background-color: #1e3044de;
}
.cta-button-2 a {
	color: var(--e-global-color-accent) !important;
}
.cta-button-2 a:hover {
	color: inherit !important;
}

.cta-buttons-wrapper .cta-button-1 a {
	display: flex;
	justify-content: center;
	gap: 5px;
	position: relative;
}

.cta-buttons-wrapper .cta-button-1:hover a {
  animation: bounceText 0.8s ease-in-out 1;
}

#iso-popup-overlay {
	position: fixed;
	top:0; left:0; right:0; bottom:0;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}
#iso-popup-content {
	background-color: #1E3044CF;
	padding: 50px 30px;
	width: 50%;
	border-radius: 8px;
	position: relative;
}
#iso-popup-close {
	position: absolute;
	top:10px;
	right:15px;
	font-size: 24px;
	cursor: pointer;
	border: none;
	color: darkgray;
}

#iso-popup-close:hover {
	background-color: unset;
	color: var(--e-global-color-accent);
}

.iso-popup-body .jet-form-builder__action-button-wrapper{
	justify-content: center;
	padding-top: 30px;
}

.iso-popup-body .jet-form-builder__action-button {
	background-color: var(--e-global-color-accent);
	color:  var(--e-global-color-text);
	border: none;
	border-radius: 30px;
	text-transform: uppercase;
	font-size: 18px;
	font-weight: 600; 
	animation: bounceText 1.5s ease-in-out infinite;
	width: 70%;
    justify-content: center;
}

.iso-popup-body .jet-form-builder__action-button:hover {
	background-color: var(--e-global-color-0647575);
}

.iso-popup-body .jet-form-builder__label{
	color: white;
}

/* === STRUCTURE SQUELETTE === */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

.skeleton-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.skeleton-image {
  height: 200px;
  background: #eee;
  background-image: linear-gradient(90deg, #f0f0f0 25%, #e2e2e2 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite linear;
}

.skeleton-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-badge,
.skeleton-title,
.skeleton-price,
.skeleton-spec,
.skeleton-dealer {
  height: 12px;
  border-radius: 6px;
  background: #eee;
  background-image: linear-gradient(90deg, #f0f0f0 25%, #e2e2e2 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite linear;
}

.skeleton-title {
  height: 18px;
  width: 80%;
}

.skeleton-price {
  width: 60%;
  height: 14px;
}

.skeleton-specs {
  display: flex;
  justify-content: space-between;
}

.skeleton-spec {
  flex: 1;
  height: 10px;
  margin: 0 2px;
}

.skeleton-dealer {
  width: 90%;
  height: 12px;
}

/* === ANIMATIONS === */
@keyframes shimmer {
  0% { background-position: -450px 0; }
  100% { background-position: 450px 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceText {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  50% { transform: translateY(2px); }
  70% { transform: translateY(-4px); }
}

.no-results-wrapper {
	display: grid;
	width: 100%;
	justify-content: center;
	text-align: center;
	padding: 60px 20px;
	animation: fadeIn 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

.slider-double-container {
  position: relative;
  height: 50px;
  margin-bottom: 30px;
}

#filters-panel {
    position: fixed;
    z-index: 9999999;
    top: 0;
    left: 0;
    background: #fff;
    max-height: 100vh;
    max-width: 100vw;
    width: 320px;
    box-shadow: 2px 0px 15px 0px #000;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    border-radius: 0;
}
#iso-advanced-search-form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    /* gap: 15px; */
    background: #fff;
    position: relative;
}
#dynamic-fields {
    padding: 20px;
    overflow: auto;
    height: 85vh;
    height: calc(100vh - 180px);
}
#filters-panel > div {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: #ffffffa3;
    z-index: 0;
}
#filters-panel button {
    font-family: "Lato", Sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--e-global-color-text);
    background-color: var(--e-global-color-accent);
    border-style: none;
    border-radius: 0px 0px 0px 0px;
    padding: 20px 20px 20px 20px;
    margin: 0px 0px 0px 0px;
    -webkit-align-self: stretch;
    align-self: stretch;
    height: 60px;
    display: block;
    line-height: 10px;
}
#filters-panel button#form-close {
    background-color: white;
    align-self: end !important;
	padding: 10px;
    position: relative;
    z-index: 999;
}
#filters-panel button#reset-search {
    background-color: var(--e-global-color-0647575);
	color: white;
    height: 50px;
}
#filters-panel button#submit-search {
	height: 70px;
}
#filters-panel button:hover {
    background-color: var(--e-global-color-0fd7889);
}
#iso-advanced-search-results-count  {
    margin: 40px 0 20px;
    text-align: start;
    font-weight: bold;
	font-size: 1.2rem;
}
#iso-advanced-search-results-count p  {
    margin: 0;
}
#toggle-filters, #toggle-filters-mobile{
	width: 100%; 
	background-color: var(--e-global-color-accent);
	color: black;
	border: 1px solid var(--e-global-color-accent);
}
#toggle-filters:hover, #toggle-filters-mobile:hover {
	cursor: pointer;
}
#toggle-filters-mobile{
	display: none
}
#share{
	display: flex; 
	flex-direction: row; 
	align-items: center; 
	justify-content: end; 
	width: 100%;
}
#share-search {
	border: none;
	color: var(--e-global-color-accent);
	padding: 8px;
}
#share-search:hover {
	background-color: white;
	color: var(--e-global-color-accent);
	cursor: pointer;
}
#share-search:focus {
	background-color: white;
	border: none;
	color: black;
	cursor: default;
}
.share-links-wrapper{
	display: flex; 
	flex-direction: row; 
	gap: 5px
}
#share-url{
	width: 85%;
}
#copy-link{
	border-color: var(--e-global-color-accent);
	color: var(--e-global-color-accent);
	width: 15%;
}
#copy-link:hover, #copy-link:focus{
	background-color: var(--e-global-color-accent);
	border-color: var(--e-global-color-accent);
	color: white;
}
#showroom-searchsubmit-btn, .button-search {
	background-color: var(--e-global-color-accent) !important;
	border-color: var(--e-global-color-accent) !important;
	color: var(--e-global-color-text) !important;
}
#showroom-searchsubmit-btn:hover {
	background-color: var(--e-global-color-0647575);
	border-color: var(--e-global-color-0647575);
	color: white;
}
#iso-showroom-search-form {
    position: relative;
}
/*#iso-showroom-search-form.loading:after {
    display: block;
    content: '';
    position: absolute;
    z-index: 99;
    background: #ffffffa3;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}*/
#iso-advanced-search-results-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#iso-advanced-search-results-sort {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}
#sort-results {
    width: 150px;
    height: 40px;
    background-color: white;
    background-repeat: no-repeat;
    background-position: right 10px center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: black;
}
.loader-container {
  position: relative;
  overflow: hidden;
}

/* Overlay plein écran */
.loader-container.loading::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6); /* Voile semi-transparent */
  z-index: 999;
}

/* Barre de chargement */
.loader-container.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 4px;
  background: #FFC100;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 2px;
  z-index: 1000;
  animation: loader-bar 1s linear infinite;
}

/* Animation de déplacement de la barre */
@keyframes loader-bar {
  0% {
    transform: translate(-50%, -50%) scaleX(0.2);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, -50%) scaleX(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scaleX(0.2);
    opacity: 0.2;
  }
}
#isoBackToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;    
	background-color: var(--e-global-color-0647575);
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;
}


/* BASIC */
.flex-row{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

/* SIMPLE SEARCH */
#iso-showroom-search-form{
	display: flex; 
 	flex-direction: column; 
	font-size: 1rem;
	gap: 20px;
}
#keyword-search{
	display: flex; 
	flex-direction: row; 
	padding: 0 30px;
}
.container{
	display: flex; 
	flex-direction: row; 
	gap: 20px; 
}
.condition-label{
	display: flex; 
	align-items: center; 
	gap: 5px;
}
.condition-input {
	width: 20px; 
	height: 40px; 
	accent-color: #ffc100; 
	background-color: white;
}
.selected-label,
#province, #brand, #type, #distance,
#subbrand, #model, #sleeps, #sort-results {
	background-color: white; 
	background-image: url('data:image/svg+xml;utf8,<svg fill=\'none\'  stroke-width=\'1.5\' stroke=\'currentColor\' class=\'size-6\' viewBox=\'0 0 24 24\' width=\'20\' xmlns=\'http://www.w3.org/2000/svg\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' d=\'m19.5 8.25-7.5 7.5-7.5-7.5\'/></svg>'); 
	background-repeat: no-repeat; 
	background-position: right 10px center; 
	appearance: none; 
	-webkit-appearance: none; 
	-moz-appearance: none; 
	color: black;
}

.selected-label {
    background: #fff;
	display: none;
    font-size: 1rem;
    margin-bottom: 20px;
    width: 100%;
    border: 1px solid #ffc100;
    border-radius: 3px;
    padding: .5rem 1rem;
    transition: all .3s;
    line-height: 24px;
    position: relative;
}
.selected-label > span {
    background: no-repeat center center transparent;
	background-image: url('data:image/svg+xml;utf8,<svg fill=\'none\'  stroke-width=\'1.5\' stroke=\'currentColor\' class=\'size-6\' viewBox=\'0 0 24 24\' width=\'20\' xmlns=\'http://www.w3.org/2000/svg\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' d=\'M6 18 18 6M6 6l12 12\'/></svg>');
	display: block;
    font-size: 1rem;
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
    line-height: 24px;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

.irs--sharp .irs-bar,
.irs--sharp .irs-handle,
.irs--sharp .irs-from, .irs--sharp .irs-to, .irs--sharp .irs-single {
    background-color: #ffc100;
}
.irs--sharp .irs-handle>i:first-child,
.irs--sharp .irs-from:before, .irs--sharp .irs-to:before, .irs--sharp .irs-single:before {
    border-top-color: #ffc100;
}
.irs--sharp .irs-min, .irs--sharp .irs-max,
irs--sharp .irs-min, .irs--sharp .irs-max {
    background-color: #1E3044;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

@media only screen and (max-width: 800px) {
	.container{
		flex-wrap: wrap;
	}
	#keyword-search{
		padding: 0;
	}
	#province-or-postalcode{
		width:100%;
		display: flex;
		justify-content: center;
	}
	#province, #brand, #type, #subbrand, #model, #sleeps, .inner-container {
		width: 100% !important;
	}
	#toggle-filters-mobile{
		display: block;
		position: sticky;
		bottom: 10px;
		z-index: 1000;
		padding: 15px;
		box-shadow: 0 4px 6px rgba(0,0,0,0.2);
		transition: opacity 0.3s ease;
	}
	#toggle-filters{
		display: none;
	}
	.share-links-wrapper{
		flex-wrap: wrap;
	}
	#copy-link, #share-url{
		width: 100%;
	}
	#isoBackToTop {
		right: 10px;
		bottom: 90px;
	}
	#iso-popup-content{
		width: 90%;
	}
	.iso-popup-body .jet-form-builder__action-button {
		width: 90%;
	}
	.iso-popup-body .is-layout-flex{
		gap: 5px;
	}
}