﻿.search-container {
    display: flex;
    flex-flow: row wrap;
}

.search-container .form-group {
    width: 380px;
    margin-right: 25px;
}

.filter-container {
    display: flex;
    flex-flow: row wrap;
    gap:15px;
}

.button-container label {    
    color: black;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 14px;
    position: relative;
    padding-left: 42px;
    display:block;
}

.button-container input {
    display: none;
}

.button-container label:has(> input:checked) {
    background: #EC008C;
    color: white;
}

.button-container label img {
    bottom: 11px;
    position: absolute;
    left: 15px;
    height: 20px;
    width: 20px;
}

.button-container label .white {
    display: none;
}

.button-container label:has(> input:checked) .white {
    display: block;
}

.button-container label:has(> input:checked) .pink {
    display: none;
}

.search-container input::placeholder {
    color: var(--form-field-text-color);
    font-weight: 600;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #D2CFDA;
}

::-webkit-scrollbar-thumb {
    background: #EC008C;
}

.map-info {
    min-width: 300px;
    padding: 20px;
}


/* STATION FILTER */
.station-filter-mobile {
    height: 0vh;
    overflow:hidden;
}
.station-filter {

}
.station-filter-mobile div .page-section,
.station-filter div .page-section {
    padding: 0;
}

#open-close-map-btn,
#open-filter-btn {
    display: none;
}

/* STATION LIST */
.locations .wrap-grid .wrap-grid-item .card .card-content {
    height: 100%;
    /*font-size: 16px;*/
}

.map-location .veva-grid .veva-grid-column .card {
    width: fit-content;
    height: fit-content;
    padding: 0;
}

/*.map-location .info-container .veva-grid .veva-grid-column.last {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}*/

.locations .wrap-grid .wrap-grid-item {
}

.location-name div p {
    font-size: 24px;
}
.location-dist div p {

}


@media screen and (max-width: 1079px) {
    .station-filter {
        height: 0vh;
        overflow: hidden;
    }
    /* Station filter overlay*/
    .station-filter-mobile.open {
        position: fixed;
        inset: 0;
        isolation: isolate;
        top: 0;
        z-index: 600001;
        height: 100vh;
        width: 100vw;
        padding: 52px 24px;
        background-color: var(--base-accent-color);
        transition: all ease-in-out 0.3s;
        overflow-y: scroll;
    }

    /* Unset default background color */
    .station-filter-mobile .page-section-loader .page-section,
    .station-filter-mobile .page-section-loader .page-section .page-section-wrapper {
        background-color: unset;
    }

    /* Unset values to prevent unpredictable behaviour */
    body:has(.station-filter-mobile.open) header,
    body:has(.station-filter-mobile.open) .ch2-icon {
        z-index: unset;
    }
    body:has(.station-filter-mobile) main div.page-section-loader.page-section--visible {
        transform: unset;
    }

    /* Checkboxes */
    .btn-group .input-container .form-check label {
        font-size: 14px;
    }

    /* MAP */
    .map-container .googlemaps-container .map__container {
        visibility: hidden;
        height: 0px;
    }
    .map-container .googlemaps-container .map__container.open {
        visibility: visible;
        height: 800px;
    }
    .map-container .googlemaps-container .locations {
        display: none;
    }
    .map-container .googlemaps-container .locations.open {
        display: block;
    }

    .close-filter-btn {
        cursor: pointer;
        font-family: "GT Flexa";
        font-weight: normal;
        font-size: 36px;
    }

    .close-filter-btn-l {
        display: flex;
        background-color: var(--primary-color);
        color: white;
        width: 100%;
        height: 50px;
        border-radius: 4px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
    .close-filter-btn-l p {
        margin-left: 16px;
    }

    #open-close-map-btn,
    #open-filter-btn {
        display: inline-flex;
    }
}


@media (max-width: 1500px) {


}

/*Orkuverð collapse*/

.orkuverd-collapse .collapse-panel {
    padding: 8px 28px;
    background: #FFFFFF;
    border: 1px solid #D2CFDA;
    border-radius: 8px;
    margin-bottom: 10px;
}

.orkuverd-collapse .collapse-panel-heading p{
    font-size: 22px;
}

.orkuverd-collapse .collapse-panel-heading::before {
    padding: 0px 28px;
}

.orkuverd-collapse .collapse-panel-content {
    margin-top: 0;
}


/*
    ==================================
    |        Nýtt Orkustöðvar        |
    ==================================
*/

.station-filter--mobile {
    visibility: hidden;
    height: 0px;
}

.station-filter--desktop {
    visibility: initial;
    height: auto;
}

body:has(.station-filter__overlay.open) header,
body:has(.station-filter__overlay.open) .ch2-icon {
    z-index: unset;
}

.station-filter__overlay {
    position: fixed;
    height: 0vh;
    overflow: hidden;
}

.station-filter__overlay > * {
    margin-bottom: 24px;
}
.station-filter__overlay .input-container p {
    font-size: 20px;
}

.apply-filter__btn {
    display: flex;
    background-color: var(--primary-color);
    padding: 8px 24px;
    gap: 8px;
    width: 100%;
    justify-content: center;

    border-radius: 4px;
    color: var(--primary-text-color);
    font-family: 'GT Flexa Condensed Bold'
}

.station-filter__activate {
    width: 17px;
    height: 21px;
}


.station-filter__close {
    width: 38px;
    height: 38px;
}

.orkustodva-wrapper {
    display: flex;
    flex-direction: column;
}
.orkustodva-wrapper__heading {
    padding: 48px var(--container-padding);
    background-color: var(--primary-color);
}
.orkustodva-wrapper__stations {
    display: flex;
    flex-direction: row;
    padding: 24px var(--container-padding);
}
.orkustodva-wrapper__filters {
    background-color: var(--primary-accent-color);
    padding: 16px var(--container-padding);
}
.orkustodva-wrapper__prices {
    background-color: var(--primary-accent-color);
    padding: 48px var(--container-padding);
}

.station-filter__btn {
    margin: 0;
    height: 43px;
}

.station-filter__btn.filter {
    background-color: #fff;
}

.filter-radio {
    display: flex;
}
.filter-radio input{
    appearance: none; /* For modern browsers */
    -webkit-appearance: none; /* For older WebKit browsers */
    -moz-appearance: none; /* For Firefox */
    
    width: 16px;
    height: 16px;
    outline: 2px solid var(--primary-color);
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    border-radius: 4px;
    outline-offset: 2px;

    margin: auto 0;
    margin-right: 16px;
}
.filter-radio input:checked {
    background-color: var(--primary-color);
    outline: 2px solid var(--primary-color);   
}
.filter-radio input:focus {
    outline: 2px solid var(--primary-color) !important;
}
.filter-radio label {
    padding: 0;
    margin: 4px 0;
    font-size: 16px;
}
.filter-input-group {
    display: flex;
    justify-content: space-between;
}
.filter-input-group > * {
    width: 49%;
}

/* ==== STATION LIST ==== */
.orkustodva-wrapper .scrollable-box {
    width: 43%;
}

.station-card__heading {
    font-family: 'GT Flexa Condensed Bold';
    font-weight: 500;
    font-size: 32px;
    font-style: normal;
    overflow-wrap: break-word;
}

.station-card__distance {
    font-family: 'GT Flexa';
    font-weight: 400;
    font-size: 14px;
}

.station-card__distance img {
    transform: translate(0, 4px);
}

.station-card__address {
    font-family: 'GT Flexa';
    font-weight: 400;
    font-size: 18px;
    font-style: normal;
    color: #AEABB5;
}

.station-card__services--heading {
    font-family: 'GT Flexa Condensed Bold';
    font-weight: 700;
    font-size: 16px;
    color: #000000;
}

.station-card__lowest-price {
    display: flex;
    padding: 6px 10px;
    gap: 8px;
    width: fit-content;
    margin-bottom: 12px;
    font-family: 'GT Flexa Condensed Bold';
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    background-color: var(--contrast-color);
    border-radius: 8px;
}

.station-card__services {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-bottom: 12px;
}

.station-card__services--icon {
    border: 0;
    padding: 0;
    height: 28px;
    width: 28px;
}

.station-card__link.btn {
    color: var(--primary-color);
    font-size: 16px;
}

.scrollable-box {
    height: 80vh;
    overflow-y: auto;
    padding-right: 10px;
}

.station-card {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 16px;
    margin-top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.station-card__column {
    flex: 1;
    padding: 16px;
    min-width: 120px;
}

@media (max-width: 1079px) {
    .station-card {
        margin: 0px;
        margin-bottom: 16px;
    }

    .station-card__heading {
        font-size: 24px;
    }

    .station-card__address {
        font-size: 14px;
        line-height: 13px;
    }

    .station-card__services--icon {
        height: 20px;
        width: 20px;
    }
}

@media (max-width: 459px) {
    .station-card__column {
        padding: 0 4px;
    }

    .station-card__link.btn {
        font-size: 12px;
    }

    .station-card__heading {
        font-size: 20px;
    }

    .station-card__services--heading {
        font-size: 14px;
    }
}

/* ==== MAP ==== */
.orkustodva-wrapper .orkustodva-map {
    width: 58%;
}

/* ==== PRICES ==== */
.orkustodva-wrapper__prices {

}
.prices {

}
.prices__list {

}
.prices__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    min-height: 51px;
    margin: 4px 0;

    border-radius: 8px;
    border: 1px solid var(--Grayscales-10, #D2CFDA);
    background: var(--Grayscales-0, #FFF);

    transition: height 2s ease-in-out;
}
.prices__card:first-child {
    display: none;
}
.prices__card-heading {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: 'GT Flexa Condensed Bold'
}
.prices__card-heading div {
    display: flex;
    align-items: center;
}
.prices__card-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 0;
    overflow: hidden;
}
.prices__card-content > div:first-child {
    display: none;
}
.prices__card.open {
    gap: 8px;
}
.prices__card.open .prices__card-content {
    height: auto;
    gap: 8px;
    transition: height 0.4s ease-in-out; 
}
.prices__card.open .prices__card-path {
    transform: rotate(90deg);
}
.prices__card-content > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}
.prices__price-heading {
    font-family: 'GT Flexa Condensed Bold'
}

@media (min-width: 1080px){
    .prices__card {
        flex-direction: row;
        justify-content: space-between;
        border-radius: unset;
        font-size: 18px;
    }
    .prices__card:first-child {
        display: flex;
    }
    .prices__card:first-child {
        border-radius: 8px 8px 0 0;
    }
    .prices__card:last-child {
        border-radius: 0 0 8px 8px;
    }
    .prices__card-heading {
        display: none;
    }
    .prices__card-content {
        height: initial;
        flex-direction: row;
    }
    .prices__card-content .prices__price-heading {
        display: none;
    }
    .prices__card-content > div {
        display: flex;
        box-sizing: border-box;
        width: 10%;
    }
    .prices__card-content > div:first-child {
        display: flex;
        width: 20%;
        padding-right: 5px;
    }
    .prices__price-heading {
        font-size: 20px;
    }
    .prices__card-content.heading .prices__price-heading {
        display: flex;
    }
    .prices__price-value:first-child {
        font-family: 'GT Flexa Condensed Bold';
    }
}

/* ==== LOWEST PRICE ==== */
.orkustodva-wrapper__lowest-price {
    display: flex;
    justify-content: space-between;
    padding: 48px var(--container-padding);
    background-color: var(--primary-color);
}
.orkustodva-wrapper__lowest-price > * {
    width: 50%;
    justify-content: center;
    margin: 0;
    color: var(--base-color);
}
.orkustodva-wrapper__lowest-price .lowest-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.orkustodva-wrapper__lowest-price h4 {
    color: var(--base-color);
}


@media (max-width: 1079px) {
    .station-filter--mobile {
        visibility: initial;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 75px;
        border-radius: 8px;
        font-variation-settings: "wdth" 0, "wght" 700, "ital" 0;
        float: right;
    }

    .station-filter__button--mobile.selected {
        background-color: var(--primary-color);
        color: var(--base-color);
    }

    .station-filter__dropdown {
        background-color: var(--base-color);
    }


    .station-filter__overlay.open {
        position: fixed;
        inset: 0;
        isolation: isolate;
        top: 0;
        z-index: 600001;
        height: 100vh;
        width: 100vw;
        padding: 52px 24px;
        background-color: var(--base-accent-color);
        transition: all ease-in-out 0.3s;
        overflow-y: scroll;
    }


    /* TABS */
    .orkustodva-tab {
        display: none;
    }
    .orkustodva-wrapper .orkustodva-tab.open {
        display:initial;
    }


    /* LIST */
    .orkustodva-wrapper .scrollable-box {
        width: 100%;
    }

    /* MAP */
    .orkustodva-wrapper .orkustodva-map {
        width: 100%;
    }


    .station-filter--desktop {
        visibility: hidden;
        height: 0px;
    }

    .station-filter--mobile.open {
        /*opens the filter for mobile*/
    }
    
}

@media (max-width: 800px) {
    .orkustodva-wrapper__lowest-price {
        flex-direction: column;
    }
    .orkustodva-wrapper__lowest-price > * {
        padding: 24px 0;
        width: 100%;
    }
    .orkustodva-wrapper__lowest-price .lowest-price-container {
        align-items: flex-start;
    }
}

@media (max-width: 299px) {
    .station-filter__btn.btn {
        padding: 8px 8px;
        line-height: 18px;
    }
}



.mobile-only {
    display: none;
}


@media (max-width: 1078px) {
    .mobile-only {
        display: block;
    }

    .mobile-hidden {
        display: none;
    }

    .orkustodva-wrapper__tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 1rem;
        justify-content: space-around;
        padding: 0 20px;
        margin-top: 20px;
    }

        .orkustodva-wrapper__tabs .btn {
            width: 100%;
        }

    .tab-button {
        flex: 1;
        padding: 10px;
        background: #f0f0f0;
        border: 1px solid #ccc;
        cursor: pointer;
    }

        .tab-button.active {
            background-color: #ddd;
            font-weight: bold;
        }
}


@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.shimmer * {
    pointer-events: none;
}

.shimmer-text,
.shimmer-tag,
.shimmer-icon,
.shimmer-link {
    background: #f6f7f8;
    background-image: linear-gradient(90deg, #f6f7f8 0px, #edeef1 40px, #f6f7f8 80px);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: 4px;
}

.shimmer-title {
    width: 60%;
    height: 24px;
    margin: 0.5rem 0;
}

.shimmer-distance {
    width: 40%;
    height: 16px;
    margin: 0.5rem 0;
}

.shimmer-address {
    width: 70%;
    height: 14px;
    margin: 0.5rem 0;
}

.shimmer-tag {
    width: 30%;
    height: 16px;
    margin: 0.5rem 0;
}

.shimmer-service-heading {
    width: 60%;
    height: 14px;
    margin: 0.5rem 0;
}

.shimmer-icon {
    height: 28px;
    width: 28px;
    margin: 0.2rem;
    border-radius: 50%;
}

.shimmer-link {
    width: 80px;
    height: 18px;
    margin-top: 1rem;
}

.shimmer {
    animation: pulse 1.2s ease-in-out infinite;
    background-color: #eeeeee;
    border-radius: 10px;
}

.shimmer-block {
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.prices__card.shimmer {
    height: 80px;
}

.station-card.shimmer {
    height: 120px;
}


@media(max-width: 1078px) {
    .shimmer-block {
        height: 500px;
    }

    .mobile-hidden {
        display: none;
    }

    .orkustodva-wrapper__stations .prices {
        width: 100vw;
    }
}


@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}