/* CSS Document */

/* Haupt-Wrapper für die Ergebnisanzeige */
#search-result {
    position: fixed;
    top: 0;
    left: 300px;
    width: calc(100% - 320px);
    max-height: 97vh;
    overflow-y: auto;
    background: white;
    border-left: 1px solid #ddd;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 10px;
    z-index: 111111111;
}




@media screen and (max-width: 730px) {
    #search-result {
        left: 0;
        width: 96%;
    }
}

/* Ergebnisliste */
#search-list {
	position: relative;
    background: white;
    width: calc(100% - 40px);
    /* max-width: 900px; */
    padding: 20px;
    /* border-radius: 10px; */
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
    /* margin: 5vh auto; */
	height: calc(100vh - 118px);
}

#search-list.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*background: url('icons/loading-icon.png') no-repeat center center;*/
    background-size: 200px 200px;
    width: 200px;
    height: 200px;
    z-index: 999;
    opacity: 0.5;
    pointer-events: none;
	animation: sway 3s ease-in-out infinite;

}

@keyframes sway {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(0px) translateY(0px);
    }
    25% {
        transform: translate(-50%, -50%) rotate(-2deg) translateX(-3px) translateY(-2px);
    }
    50% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(0px) translateY(0px);
    }
    75% {
        transform: translate(-50%, -50%) rotate(2deg) translateX(3px) translateY(2px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(0px) translateY(0px);
    }
}


#search-list.loading.variant-1::before {
    background-image: url('icons/loading1.png');
}
#search-list.loading.variant-2::before {
    background-image: url('icons/loading2.png');
}
#search-list.loading.variant-3::before {
    background-image: url('icons/loading3.png');
}
#search-list.loading.variant-4::before {
    background-image: url('icons/loading4.png');
}


/* Header & Close */
#search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

#search-results-header:hover {
    background: #eaeaea;
}



#close-results {
    margin-left: auto;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}


/* Produktkarte */
#search-list .product-card {
    position: relative;
	margin-bottom: 20px;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: background 0.3s ease;
}
#search-list .product-card:hover {
	background-color: #f9f9f9;
}

.product-card-inner {
	position: relative;
	padding-top: 10px;
	border-left: 4px solid #4CAF50; /* Grüner Strich oben links */
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	background: #fff;
	overflow: hidden;
}

/* Produktinhalt */
#search-list .product-content {
	display: flex;
	align-items: stretch; /* sorgt dafür, dass alle Boxen gleich hoch bleiben */
	width: 100%;
}
#search-list .product-image {
	flex: 1 1 25%;
	max-width: 25%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 15px;
}
#search-list .product-image img,
#search-list .image-placeholder {
	background: #ccc;
	padding: 2px;
    margin: 5px;
	height: auto;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
}
#search-list .image-placeholder {
	/*display: block;*/
	background: linear-gradient(135deg, #ddd, #eee);
}

/* Tour-Typ-Badge oben rechts */
#search-list .tour-type-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #eee;
	padding: 5px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: bold;
	color: #333;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-private-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #e74c3c;
	color: white;
	padding: 5px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: bold;
	z-index: 10;
}

.product-content.has-badge .product-details {
	margin-top: 20px;
}


#search-list .product-link-container {
	text-align: center;
	margin: 15px 0 5px 0;
}
#search-list .product-link-btn {
	display: inline-block;
	padding: 8px 14px;
	background-color: #007BFF;
	color: white;
	border-radius: 6px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s ease;
}
#search-list .product-link-btn:hover {
	background-color: #0056b3;
}
#search-list .product-info {
    flex: 1 1 50%;
	max-width: 50%;
	padding: 0 15px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
#search-list .product-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}
#search-list .product-teaser {
    font-size: 14px;
    color: #555;
}
#search-list .product-includes,
#search-list .product-start-time,
#search-list .product-duration,
#search-list .product-languages,
#search-list .product-difficulty {
    font-size: 13px;
    color: #333;
    margin-top: 5px;
}

/* Detailspalte */
#search-list .product-details {
    flex: 1 1 25%;
	max-width: 25%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	padding: 0 10px; 
}
#search-list .product-price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}
#search-list .product-private {
    font-size: 12px;
    color: #c0392b;
    margin-top: 5px;
}
#search-list .product-distance,
#search-list .product-accommodation {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
}
#search-list .product-participants {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

/* Quick-View-Icons */
#search-list .quick-view-container {
    width: 100%;
    padding: 10px 0 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
}
#search-list .quick-view-container img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
#search-list .quick-view-container img:hover {
    opacity: 1;
}

/* Quick-View Content */
#search-list .quick-view-content {
    display: none;
    padding: 15px;
    background: #fefefe;
    border-top: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
}
.quick-view-content iframe {
    border: none;
    border-radius: 6px;
}
.timeline-list {
    list-style: none;
    padding: 0;
}
.timeline-list li {
    margin-bottom: 10px;
    text-align: left;
}

/* Similar Tours */
.similar-tours-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.similar-tour {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
}
.similar-tour h3 {
    margin: 5px 0;
    font-size: 16px;
}
.similar-tour p {
    margin: 3px 0;
    font-size: 13px;
}
.similar-tour-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 6px;
}
.similar-tour-link {
    color: inherit;
    text-decoration: none;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    #search-list .product-content {
        flex-direction: column;
        text-align: center;
    }
    #search-list .product-details {
        text-align: center;
        margin-top: 10px;
    }
}

@media (min-width: 700px) and (max-width: 1000px) {
    #search-list .product-content {
        flex-direction: column;
        text-align: center;
    }
    #search-list .product-details {
        text-align: center;
        margin-top: 10px;
    }
}


.product-available {
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 5px;
}

.additional-product-image {
    width: 100px;
    height: auto;
    margin: 5px;
    border-radius: 4px;
}

.quick-view-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.similar-tour-link:hover {
    text-decoration: underline;
    color: #2980b9;
}

#search-list p {
    text-align: center;
    color: #999;
}





