#rutes-senderisme {
    padding: 2rem;
  }

  #rutes-senderisme p {
    max-width: 90%;
    padding: 1em;
  }

  .ruta {
    border-top: 1px solid #ccc;
    padding: 2em;
  }
  
  .ruta h3 {
    margin-top: 1rem;
    text-align: center;
    color: #717e6a;
  }

  .ruta ul {
    list-style: none;
    padding: 1em;
    color: #717e6a;
    text-align: left;
    margin-left: 10%;
  }

  #consellsul {
    list-style-type: disc;
  }


  .ruta li {
    margin: 0.5rem 0;
    color: #717e6a;
  }
  
  .foto-ruta, .foto-consell {
    margin: 10px 0;
    text-align: center;
  }
  
  .foto-ruta img, .foto-consell img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  
  /* Llista dades */
  .dades-ruta {
    display: flex;
    gap: 1rem;
    align-items: flex-start; /* que quedin alineats a dalt */
  }
  
  .dades-ruta #llistadades {
    flex: 1; /* la llista ocupa l'espai que calgui */
  }
  
  .dades-ruta #fotocarros {
    align-items: right;
  }
  .dades-ruta #foto4 {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    padding: 1em;
  }
  
  /*forfet modal img*/
  #forfetimg {
    width: 100%;
    height: auto;
    
  }

  
  /*modal container*/

.modal-container {
    display: flex;
    background-color: rgb(0, 0, 0, 0.63);
    align-items: center;
    justify-content: center;
    position: fixed;
    pointer-events: none;
    opacity: 0;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 9999
  }
  
  .modal {
    padding: 30px 50px;
    border-radius: 5px;
    background-color: #717e6a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #bbcbb7;
    width: 900px;
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .modal h1 {
    color: #604a33;
    text-align: center;
  }
  .modal h2{
    color: #604a33;
  }
  .modal p {
    color: #bbcbb7;
    padding-bottom: 1em;
  }
  
  .modal table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
  }
  
  .modal table, th, td {
    border: 1px solid #ccc;
  }
  
  th, td {
    padding: 0.5rem;
    text-align: center;
  }


   /*Botons per ensenyar*/
   .show{
    opacity: 1;
    pointer-events: auto;
  }



  /*MODAL CARROS*/
  .modalcarros {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }
  
  .modalcarros.active {
    display: flex;
  }
  
  .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  
  .closecarros {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    color: #717e6a;
    cursor: pointer;
  }