body,
html {
    height: 100%;
    overflow-x: hidden;
}

.topbar {
    position: fixed;
    z-index: 1000;
}

#banner {
    padding-top: 8vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.field {
    color: #FF6A00;
}

a:-webkit-any-link {
    text-decoration: none;
}
 
#shops-section {
    padding: 1rem;
    gap: 1.5rem;              
    display: flex;
    align-items: center; 
    justify-content: center; 
    transition: opacity 0.4s ease-in-out;
    height: 90%;
    max-height: 90%;
}

.shop-name {
    color: #FF6A00;
    font-size: 1rem;
    font-weight: bolder;
}

.shops-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 0.5fr));
    gap: 1.5rem;                   
    max-width: 65%;
    height: auto;
    padding: 2rem 2rem;
    border-radius: 30px;
}

.shop-item {
    background-color: #fff;
    padding: 0 1rem;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    font-size: 1rem;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-item.appear {
    opacity: 1;
    transform: translateY(0);
}

.shop-item:hover {
    cursor: pointer;
    transform: translateY(0) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shop-item.selected {
    background-color: #FFFAF0;
    border: 2px solid #ff6a007e;
    transform: scale(1.05);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25), -5px -5px 10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.shops-map-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    height: 60%;
}

.shops-map {
    padding: 1.5rem 1.5rem 0 1.5rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.shops-map iframe {
    width: 100%;
    height: 100%;
}

#slider {
    width: 80%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #FF6A00;
    font-size: 1rem;
    font-family: 'Averta', sans-serif;
    padding: 1rem;
}

#slider input[type="range"] {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.3s;
}

#slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #FF6A00;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

#slider input[type="range"]::-moz-range-thumb,
#slider input[type="range"]::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #FF6A00;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

#distanceValue {
    color: #FF6A00;
    font-weight: bolder;
    text-align: center;
} 

@media screen and (max-width: 599px) {
    #div-icons {
        margin-right: 5vw;
    }

    #div-icons svg {
        margin-right: 4vw;
        width: 4vw;
        cursor: pointer;
    }

    #banner {
        background-image: url("/images/banner-m.webp");
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        background-position: 50% 5rem;
        height: auto;
        min-height: 100vh;
    }

    #form {
        position: absolute;
        background-color: rgba(255, 255, 255, 0.8);
        padding: 1rem 3rem;
        border-radius: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2vh;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 70vw;
        transition: 0.3s opacity;
    }

    #form h2 {
        color: #FF6A00;
        font-weight: bold;
        text-align: center;
    }

    #form input {
        box-sizing: border-box;
        outline: none;
        border: 1px solid transparent;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        width: 100%;
        transition: border 0.3s;
    }

    #form input:focus {
        border: 1px solid #FF6A00;
        transition: border 0.3s;
    }

    #form input:hover {
        border: 1px solid #FF4A00;
        transition: border 0.3s;
    }

    #form button:not(:disabled) {
        background-color: #FF6A00;
        color: white;
        cursor: pointer;
        border: none;
        outline: none;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        transition: 0.3s background-color;
        font-size: 1rem;
    }

    #form button:disabled {
        background-color: #606062;
        color: white;
        cursor: default;
        border: none;
        outline: none;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        transition: 0.3s background-color;
        font-size: 1rem;
    }

    .field {
        font-size: 1rem;
    }

    #shops-section {
        flex-direction: column;
        width: 100%;
        max-width: 100%;  
        min-height: 101vh; 
        overflow-y: scroll;     
        box-sizing: border-box;
    }
    
    .shop-name {
        font-size: 1.1rem;
    }
    
    .shops-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 75%;
        max-width: 80%;
        order: 2;
        padding: 0;
    }
    
    .shop-item {
      width: 100%;
      height: fit-content;
    }
        
    .shops-map-container {
        width: 100%;
        height: 40vh;
        order: 1;
    }
}

@media screen and (min-width: 600px) and (max-width: 899px) {
    #div-icons {
        margin-right: 5vw;
    }

    #div-icons svg {
        margin-right: 4vw;
        width: 3vw;
        cursor: pointer;
    }

    #banner {
        background-image: url("/images/banner-m.webp");
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        background-position: 50% 5rem;
        height: auto;
        min-height: 100vh;
    }

    #form {
        position: absolute;
        background-color: rgba(255, 255, 255, 0.8);
        padding: 1rem 3rem;
        border-radius: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2vh;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 70vw;
        transition: 0.3s opacity;
    }

    #form h2 {
        color: #FF6A00;
        font-weight: bold;
        text-align: center;
    }

    #form input {
        box-sizing: border-box;
        outline: none;
        border: 1px solid transparent;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        width: 100%;
        transition: border 0.3s;
    }

    #form input:focus {
        border: 1px solid #FF6A00;
        transition: border 0.3s;
    }

    #form input:hover {
        border: 1px solid #FF4A00;
        transition: border 0.3s;
    }

    #form button:not(:disabled) {
        background-color: #FF6A00;
        color: white;
        cursor: pointer;
        border: none;
        outline: none;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        transition: 0.3s background-color;
        font-size: 1rem;
    }

    #form button:disabled {
        background-color: #606062;
        color: white;
        cursor: default;
        border: none;
        outline: none;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        transition: 0.3s background-color;
        font-size: 1rem;
    }

    .field {
        font-size: 1rem;
    }

    #shops-section {
        flex-direction: column; 
        width: 100%;
        max-width: 100%;  
        min-height: 101vh; 
        overflow-y: scroll;     
        box-sizing: border-box;
    }
    
    .shop-name {
        font-size: 1.1rem;
    }
    
    .shops-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 75%;
        max-width: 80%;
        order: 2;
        padding: 0;
    }
    
    .shop-item {
      width: 80%;
      height: fit-content;
      font-size: 1rem;
    }
        
    .shops-map-container {
        width: 100%;
        max-width: 85vw;
        height: 50vh;
        order: 1;
    }
    
    #slider {
        font-size: 1.1rem;
        font-weight: bold;
    }
}

@media screen and (min-width: 900px) and (max-width: 1399px) { 
    #div-icons {
        margin-right: 5vw;
    }

    #div-icons svg {
        margin-right: 4vw;
        width: 2vw;
        cursor: pointer;
    }

    #banner {
        background-image: url("/images/banner-m.webp");
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        background-position: 50% 5rem;
        height: auto;
        min-height: 100vh;
    }

    #form {
        position: absolute;
        background-color: rgba(255, 255, 255, 0.8);
        padding: 1rem 3rem;
        border-radius: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2vh;
        top: 40%;
        left: 55%;
        min-width: 25vw;
        transition: 0.3s opacity;
    }

    #form h2 {
        color: #FF6A00;
        font-weight: bold;
        text-align: center;
    }

    #form input {
        box-sizing: border-box;
        outline: none;
        border: 1px solid transparent;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        width: 100%;
        transition: border 0.3s;
    }

    #form input:focus {
        border: 1px solid #FF6A00;
        transition: border 0.3s;
    }

    #form input:hover {
        border: 1px solid #FF4A00;
        transition: border 0.3s;
    }

    #form button:not(:disabled) {
        background-color: #FF6A00;
        color: white;
        cursor: pointer;
        border: none;
        outline: none;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        transition: 0.3s background-color;
    }

    #form button:disabled {
        background-color: #606062;
        color: white;
        cursor: default;
        border: none;
        outline: none;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        transition: 0.3s background-color;
    }

    .field {
        font-size: 1rem;
    }

    #shops-section {
        flex-direction: column;
        width: 100%;
        max-width: 100%;  
        min-height: 101vh; 
        overflow-y: scroll;     
        box-sizing: border-box;
    }
    
    .shop-name {
        font-size: 1.1rem;
    }
    
    .shops-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 75%;
        max-width: 80%;
        order: 2;
        padding: 0;
    }
    
    .shop-item {
      width: 60%;
      height: fit-content;
      font-size: 1rem;
    }
        
    .shops-map-container {
        width: 80%;
        height: 60vh;
        order: 1;
    }
    
    #slider {
        font-size: 1.1rem;
        font-weight: bold;
    }
}

@media screen and (min-width: 1400px) {
    #form {
        position: absolute;
        background-color: rgba(255, 255, 255, 0.8);
        padding: 1rem 3rem;
        border-radius: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2vh;
        top: 40%;
        left: 55%;
        min-width: 25vw;
        transition: 0.3s opacity;
    }

    #form h2 {
        color: #FF6A00;
        font-weight: bold;
        text-align: center;
    }

    #form input {
        box-sizing: border-box;
        outline: none;
        border: 1px solid transparent;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        width: 100%;
        transition: border 0.3s;
    }

    #form input:focus {
        border: 1px solid #FF6A00;
        transition: border 0.3s;
    }

    #form input:hover {
        border: 1px solid #FF4A00;
        transition: border 0.3s;
    }

    #form button:not(:disabled) {
        background-color: #FF6A00;
        color: white;
        cursor: pointer;
        border: none;
        outline: none;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        transition: 0.3s background-color;
    }

    #form button:disabled {
        background-color: #606062;
        color: white;
        cursor: default;
        border: none;
        outline: none;
        border-radius: 20px;
        padding: 0.5rem 2rem;
        transition: 0.3s background-color;
    }

    #banner {
        background-image: url("/images/banner.webp");
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    
    .footer-side2 p {
        font-size: 0.8vw;
    }

    .footer-side3 {
        justify-content: flex-end;
        padding-right: 4vw;
    }

    .footer-side3 svg {
        width: 1vw;
    }

    .field {
        font-size: 1rem;
    }
         
    #shops-section {
        padding: 2rem;
        gap: 2rem;              
    }
    
    .shop-name {
        font-size: 1.1rem;
    }
    
    .shops-list {
        background-color: rgba(255, 255, 255, 0.75);
    }

    #slider {
        font-size: 1.1rem;
        font-weight: bold;
    }
}