/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

:root{
    --det-green: #00a651;
	--det-green-light: #CCE6DD;
    --det-blue: #004772;
	--det-purple-light: #DCDEF1;
    --det-grey-light: #f0f0f0;
    --fast-trans: all 300ms ease-in-out;
    --slow-trans: all 800ms ease-in-out;
}

/** List and Map Element General Styling **/
.det-mainmapanditem-container{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.det-content-container {
    display: grid;
}
.det-list-container {

}
.det-list-container-map {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-right: 0.5rem;
}
.tourstop-grid-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 1rem !important;
    transition: color 0.3s ease;
}

/* Custom scrollbar styling for WebKit-based browsers */
.det-list-container-map::-webkit-scrollbar {
    width: 10px;
}
.det-list-container-map::-webkit-scrollbar-track {
    background: var(--det-grey-light);
    border-radius: 10px;
}
.det-list-container-map::-webkit-scrollbar-thumb {
    background-color: var(--det-green);
    border-radius: 10px;
    border: 2px solid var(--det-grey-light);
}
.det-list-container-map::-webkit-scrollbar-thumb:hover {
    background-color: var(--det-green);
}
.det-list-container-map {
    scrollbar-color: var(--det-green) var(--det-grey-light);
    scrollbar-width: thin;
}

/** Styling for List Items **/
.det-mainlist-container,
.det-map-container{
    width: 50%;
}
.det-mapandlist-item {
    border-bottom: 1px solid #036;
    padding: 1rem 0rem 1rem 0rem !important ;
    background-color: white;
    transition:color 0.3s ease;
}

.det-clock-item{
    display:flex !important;
}

.tourstop-ort, .tourstop-title {
    color: var(--det-blue);
    cursor: pointer;
    transition: color 0.3s ease;
}

.tourstop-ort:hover, .tourstop-title:hover {
    color: var(--det-green);
}
.tourstop-date, 
.tourstop-clock,
.tourstop-ort {
    font-size: 0.9rem;
    line-height: 1.1rem;
    display: flex;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.tourstop-title {
    font-weight: 600;
    font-size: 1rem;
}


/** Styling for Filters **/
.det-filter-container{
    width: 100%;
    display:flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    align-items:center;
    flex-wrap: wrap;
    background : var(--det-green-light);
}

.det-filter-container > .det-content-container{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    height: 70px;
    justify-content: center;

}
.det-filter-container label {
    font-size: 0.9rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    background : var(--det-green-light);
    transition: var(--fast-trans);
}
.det-filter-container input:focus ~ label {
    font-size: 0.9rem;
    font-weight: 400;
    background : var(--det-green) ;
    color: white;
}
.det-filter-container input:not([type=submit]),
.det-filter-container select{
    font-weight: 400;
    letter-spacing: 0em;
    border-radius: 0rem;
    height: 100%;
    padding: 8px;
    box-shadow: none !important;
    border: none;
    background: var(--det-green-light);
    font-size: 0.8rem;
    flex-grow: 0;
    transition: var(--fast-trans);
}
.det-filter-container select:focus{
    background: var(--det-green);
    color: white;
}
.filter-start-date, .filter-end-date {
    width: auto;
    flex: 1 1 200px;
}
.det-label-date{
    text-wrap:nowrap;
}
.filter-plz{
    width: 95px !important;
}
.filter-distance {
    flex: 1 1 100px;
    flex-grow : 0.5 ;
}
.det-filter-container input[type="number"]::-webkit-outer-spin-button,
.det-filter-container input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.det-filter-container input[type="number"] {
    -moz-appearance: textfield !important;
}
.det-content-container > a.w-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    font-size: 1rem;
}

/** Styling for Leaflet Map and Pins **/
#map {
    border: 2px solid var(--det-blue);
    z-index: 1;
}
.custom-fa-marker i {
    font-size: 28px;
    color: var(--det-blue);
}
.leaflet-popup-content-wrapper {
    background-color: var(--det-blue) !important;
    color: white;
    border-radius: 0 !important;
}
.leaflet-popup-content {
    margin: 10px !important;
    width: 300px !important;
}
.leaflet-popup-tip{
    background : var(--det-blue) !important;
}
.popup-title {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px !important;
    color: white;
    backdrop-color: var(--det-blue);
}
.popup-content p{
    font-size: 0.9rem;
    color: white;
    margin: 0 !important;
}
.popup-location i {
    margin-right: 10px;
}
.leaflet-popup-content-wrapper {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    padding: 5px !important;
}


/* card Design */
.tourstop-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #e0e0e0;
}

.tourstop-image::before {
    content: "";
    display: block;
    padding-top: 75%;
}
.tourstop-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.det-mainlist-container-card{
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr ;
    padding-right: none !important;
    gap: 1rem;
}
.tourstop-grid-item-title a {
    color : var(--det-blue);
}
.hashtag {
    color: var(--det-blue);
}

.det-tourstop-notification-form-element{
    margin: 3rem 0;
}
.det-tourstop-notification-form-element #tourstop-notification-form{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 2rem 0;
    gap: 2rem;
}
.det-tourstop-notification-form-element #tourstop-notification-form .tnf-input{
    display: flex;
    width: calc(33.33333% - 1.33333rem);
    flex-direction: column;
}
.det-tourstop-notification-form-element #tourstop-notification-form .tnf-input.acceptence{
    width: 100%;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .det-mainlist-container-card{
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .det-mapandlist-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .det-tourstop-notification-form-element #tourstop-notification-form .tnf-input{
        width: 100%;
    }
    .det-mainlist-container-card{
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .det-mapandlist-container,
    .det-mainlist-container-card{
        grid-template-columns: 1fr;
    }
    .det-filter-container > .det-content-container{
        height: 50px;
    }
}