* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Masquer toutes les scrollbars */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

.skate-spots {
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Rows */
.row {
    width: 100%;
    position: relative;
}

.top-row {
    height: auto;
    overflow: visible;
}

.bottom-row {
    height: 60px;
    border-top: 1px solid #009;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteneur principal */
.main-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.columns-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Wrapper pour les colonnes 2 et 3 (côte à côte) */
.colonnes-2-3-wrapper {
    display: flex;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

/* Container pour les colonnes 2 et 3 (70% de largeur) */
.container-colonnes-2-3 {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 70%;
}

/* Colonnes */
.column {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.column-1 {
    width: 30%;
    background-color: #005;
    border-right: 1px solid #009;
}

.column-2 {
    width: 50%;
    background-color: #005;
    border-right: 1px solid #009;
}

.column-3 {
    width: 50%;
    background-color: #005;
}

.column-content {
    height: 100%;
    overflow: auto;
}

/* Handles de redimensionnement */
.resize-handle {
    position: absolute;
    background-color: #009;
    z-index: 10;
}

.resize-handle-horizontal {
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent, #009 50%, transparent);
    position: absolute;
    z-index: 10;
}

.resize-handle-vertical {
    top: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
    background: linear-gradient(to right, transparent, #009 50%, transparent);
}

.resize-handle-vertical[data-direction="right"] {
    right: 0;
}

/* Boutons de contrôle */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

button {
    background-color: #005;
    color: #f90;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #009;
}

button:active {
    transform: translateY(1px);
}

/* États de redimensionnement */
.resizing {
    user-select: none;
}

/* Empêcher la sélection de texte sur les éléments interactifs */
.skate-spots,
.skate-spots * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Autoriser la sélection uniquement sur les champs de texte */
.skate-spots input,
.skate-spots textarea,
.skate-spots [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Empêcher la sélection bleue après les clics */
.skate-spots ::selection {
    background-color: transparent;
    color: inherit;
}

.skate-spots ::-moz-selection {
    background-color: transparent;
    color: inherit;
}

/* Colonnes réduites à 0 */
.column.minimized {
    width: 0 !important;
    min-width: 0 !important;
}

.column.minimized .column-content {
    display: none;
}

.column.minimized .resize-handle {
    display: none;
}

/* End colonne setup */


/* container liste spots */
.spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(200px, 25%), 1fr));
  gap: 0.3rem;
  container-type: inline-size;
  padding: 0;
  margin: 15px;
}

/* the spot */
.the-spot{
  position: relative;
  border-radius: 17px;
  border: thick double #009;
  border-width: 0.3em;
  container-type: inline-size;
}
.the-spot:hover{
  z-index: 100;
  -webkit-transform: scale3d(1.1, 1.1, 1.1);
  -ms-transform: scale3d(1.1, 1.1, 1.1);
  transform: scale3d(1.1, 1.1, 1.1);
  transition: 1s ease;
  opacity: 1;
  border: thick double #f90;
  border-width: 0.3em;
}

/* size image class */
.img-size{
  width: 100%;
  height: 242px;
  border-radius: 7px;
}

/* the-spot-infos */
.the-spot-infos {
  z-index: 6;
  position: absolute;
  width: 100%;
  transition: 3s ease;
  opacity: 0;
}
.the-spot:hover .the-spot-infos {
  opacity: 0.9;
}

/* Pour l'infowindow affichée après clic sur marker */
#column3 .the-spot-infos {
  opacity: 0.9;
}

/* element on the-spot-infos  */

.the-spot-name {
  position: absolute;
  top: -244px;
  left: 0px;
  width: 100%;
  height: 50px;
  font-size: 26px;
  color: #f90;
  text-align: center;
  text-shadow: 2px 1px 1px #008;
  border-radius: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 5px;
  cursor: pointer;
}
.the-spot-name:hover {
  color: #009;
  text-shadow: 2px 1px 1px #f90;
}
.the-spot-town {
  background-color: #f90;
  position: absolute;
  top: -37px;
  left: 0px;
  width: 100%;
  height: 37px;
  margin: 0;
  padding: 0;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  font-size: 23px;
  color: #009;
  text-align: center;
  text-shadow: 2px 1px 1px #fc6;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.the-spot-town:hover {
  background-color: #009;
  color: #f90;
  text-shadow: 2px 1px 1px #fc6;
}

/* medias */

/* icon website the spot */

.the-spot-media-website{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 7;
  height: 50px;
  width: 50px;
}
/* icon video the spot */

.the-spot-media-video {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	z-index: 7;
	height: 50px;
	width: 50px;
}

/* slideshow image */
@keyframes slideshow__fade {
  0% {
    opacity: 0;
    z-index: 2;
  }
  6.6666666667% {
    opacity: 1;
  }
  27.6666666667% {
    opacity: 0;
    z-index: 1;
  }
  100% {
    opacity: 0;
  }
}

.slideshow {
  position: relative;
}

.slideshow img:not(:first-child) {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0 auto;
  animation-duration: 15s;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  animation-name: slideshow__fade;
  animation-timing-function: ease-in;
  transition: opacity 2s ease-in;
}

.slideshow img:nth-child(1) {
  animation-delay: 0s;
}
.slideshow img:nth-child(2) {
  animation-delay: 6s;
}
.slideshow img:nth-child(3) {
  animation-delay: 12s;
}

/* Classes accordeon section menu filters */
.menu-filter-title {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.menu-filter-section {
  margin-bottom: 1rem;
}

.menu-accordion {
  border: none;
}

.menu-accordion-item {
  border-radius: 25px;
  background-color: #000066;
  border: 1px solid #000099;
  margin-bottom: 0.5rem;
}

.menu-accordion-header {
  margin-bottom: 0;
}

.menu-accordion-button {
  width: 100%;
  min-width: 120px;
  text-align: left;
  border: none;
  background-color: #000055;
  border-radius: 25px;
  padding: 0.75rem 1rem;
  color: #f90;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  word-wrap: break-word; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
  overflow: hidden;
}

.menu-accordion-button:hover {
  background-color: #000077;
}

.menu-accordion-button.collapsed {
  background-color: #000055;
}

.menu-accordion-button::after {
  content: '>';
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.menu-accordion-button:not(.collapsed)::after {
  transform: rotate(90deg);
}

.menu-accordion-label {
  margin: 0;
  color: #f90;
  font-weight: bold;
}

.menu-accordion-collapse {
  transition: height 0.3s ease;
}

.menu-accordion-body {
  padding: 0;
}

.menu-filter-checkbox-group {
  border-radius: 25px;
  background-color: #005;
  padding: 10px;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  overflow: hidden;
  max-width: 100%;
}

.menu-filter-checkbox-group.text-left {
  justify-content: flex-start;
  align-items: flex-start;
}

.menu-filter-checkbox-item {
  background-color: #000066;
  position: relative;
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  width: 120px;
  height: 115px;
  border-radius: 15px; 
}

.menu-filter-checkbox-item.text-item {
  width: auto;
  height: auto;
  text-align: left;
}

.menu-filter-checkbox {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: transparent;
}

.menu-filter-checkbox:checked {
  opacity: 1;
}

.menu-filter-checkbox:checked::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
}

.menu-filter-checkbox:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #080;
  font-size: 60px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  width: 120px;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-filter-checkbox-label {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 5;
  position: relative;
}

.menu-filter-checkbox-label.text-label {
  padding: 10px;
  margin-left: 2.5rem;
  width: auto;
  height: auto;
}

.menu-filter-image {
  width: 120px;
  height: 115px;
  position: absolute;
  top: 0;
  left: 0;
  border-bottom-left-radius: 5px; 
  border-bottom-right-radius: 5px; 
  border-top-left-radius: 25px; 
  border-top-right-radius: 25px; 
  z-index: 1;
}

.menu-filter-text {
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  min-width: 120px;
  background: rgba(255,153,0,0.9); 
  color: #009; 
  font-size: 14px; 
  border-bottom-left-radius: 5px; 
  border-bottom-right-radius: 5px; 
  border-top-left-radius: 50%; 
  border-top-right-radius: 50%; 
  word-wrap: break-word; 
  text-align: center; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
  overflow: hidden; 
  padding-top: 2px;
  z-index: 2;
}

/* Text filter country regions*/
.text-filter {
    background: #007;
    width: 120px; 
    height: 115px; 
    color: #f90; 
    font-size: 17px; 
    border-radius: 50%; 
    border: 5px solid #f90;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
}

/* End Classes accordeon section menu filters */

/* Classes pour les badges de filtres actifs */
.filter-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  background-color: #006;
  padding: 5px;
  margin-left: 10px;
  border-radius: 25px;
  color: #f90;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

.filter-badge-item {
  background-color: #007;
  position: relative;
  display: inline-block;
  margin-right: 0.25rem;
  width: 120px;
  height: 115px;
  border-radius: 25px;
  margin: 5px;
}

/* Boutons de fermeture filters actif*/
.filter-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.filter-close-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.filter-close-btn::before {
    content: '×';
    font-weight: bold;
    font-size: 30px;
    line-height: 1;
}
/* End Classes pour les badges de filtres actifs */

/* Classes pour la section des modules google map */
.module-section {
  flex: 0 0 40%; 
  overflow-y: auto;
}
/* End Classes pour la section des modules google map */

/* class pour les boutons des colonnes */

.btncolumns {
    background-color: #005;
    color: #f90;
    padding: 5px;
    width: 67px;
    border: 1px solid #009;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 1s;
}
.btncolumns:hover {
    background-color: #f90;
    color: #009;
    border: 1px solid #fc6;
}

/* media queries pour les filters badges du menu et les filters actifs */

@media (max-width: 1200px) {
  .menu-filter-checkbox-item {
    width: 67px;
    height: 67px;
  }

  .menu-filter-image {
    width: 67px;
    height: 67px;
  }

  .menu-filter-text {
    min-width: 67px;
    font-size: 11px;
  }

  .filter-badge {
    padding: 0px;
    font-size: 11px;
    margin-left: 10px;
  }

  .filter-badge-item {
    width: 67px;
    height: 67px;
    margin: 5px;
  }

  .filter-close-btn {
    width: 20px;
    height: 20px;
  }
}

/* End media queries pour les filters badges du menu et les filters actifs */