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

h1, h2, h3 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

:root {
    --bg-color: hsl(220, 13%, 18%);
    --fg-color: hsl(0, 0%, 100%);
}

body{
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    background-color: var(--bg-color);
    color: var(--fg-color);
    font-size: 16px;
    position: relative;
}

/* ==================================
             CONTAINER           
  =================================== */
.grid-container{
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));    
    justify-items: center;
    grid-auto-flow: row;
    row-gap: 2rem; 
    padding-top: 3rem;    
}

/* ==================================
	           CARD                
=================================== */
.card {
    width: 24rem;
    border: 1px solid #fff;
    border-radius: 15px;
    padding: 1rem .5rem;
    position:relative;
}

/******* CARD HEADER ********/
.card>header>h3{
    max-height: 50px;
    overflow-y: hidden;
    font-size: 1.3rem;
    text-align: center;
}
.card>header>p{
    height: 95px;
    overflow-y: hidden;
    display: flex; 
    align-items: center;    
    font-size: .9em;
}
.card>header>a{
    height: 25px;
    overflow-y: hidden;
    display: block;
    font-size: 0.9em;
    text-decoration: none;
    color:goldenrod;
    text-align:right;
}

/******* CARD MAIN ********/
.card>main{
    position:relative;
    background-color: white;
    width: 100%;
    height: 24rem;    
    border-radius: 1em;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.card>main>div{
    border: 2px solid white;
    border-radius: 15px;
	overflow: hidden;
	height: 12rem;
	
    /* background-position: center; 
    background-repeat: no-repeat; 
    background-size: cover; */
}

.card>main>div>img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Ajusta la imatge: cover (omplena) o contain (ajusta) */
}

.card>main>.numFotos{
    position:absolute;
    width: 40px;
    height: 40px;    
    top: calc(50% - 20px);
    left:  calc(50% - 20px);
    background-color: goldenrod;
    border-radius: 50%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
}

/******* CARD ITINERARI ********/
.card img.route{    
    width: 100%;
    height: 20rem;    
    margin-top: 1rem;
    border-radius: 15px;
    background-repeat: no-repeat;
}


/*******/
.card>footer{
    margin-top: 1rem;
	display:flex;
	justify-content: space-between
}


/* ==================================
             PUJAR AMUNT
  =================================== */
.to-up {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    width: 20px;
    height: 20px;
}

/* ==================================
             CERCADOR
  =================================== */

.search {
    position: fixed;
    z-index:2;
    width: 100%;
    left:0;
    top:0;
    text-align: center;
    &>input[type='text'] {
        width: 100%;
        max-width: 800px;
        border: none;
        outline: none;
        font-size: 1rem;
        padding: 10px;
        border-radius: 50px;
        color: #eee;
        background-color: rgba( 255, 255, 255, 0.05);
    }
}