/* Promote the entire component to a new stacking context */
.sightseeing-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 40px 0;
    background-color: #f4f9fc;
    width: 100%;
  max-width: 2000px;
  margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

/* This is the outer container that creates the visible scrolling window */
.scrolling-wrapper {
    overflow: hidden; /* Hides the parts of the banner that are off-screen */
    cursor: grab;     /* Shows a "grab" hand cursor to indicate it's draggable */
  	-webkit-user-select: none;
    user-select: none;/* Prevents text selection while dragging */
}

/* This is the inner container that holds and aligns all the cards */
.animation-container {
    display: flex; /* This is the most important part: it aligns your cards in a row */
    width: max-content; /* Ensures the container is wide enough to hold all cards without wrapping */
}
.sightseeing-main-title {
    text-align: center;
    font-size: 2.5rem;
    color: #343a40;
    margin-bottom: 40px;
    font-weight: 600;
}

/* FIX: overflow-x: hidden prevents scroll hijacking. overflow-y: visible is needed but might be overridden. The JS now solves this. */
.scrolling-wrapper {
    width: 85%;
    overflow-x: hidden; 
    overflow-y: visible; 
    padding: 20px;
  	margin: 0 auto;
    padding-bottom: 30px;
  	-webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  	mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Wrapper for each card-panel pair */
.card-wrapper {
    flex: 0 0 auto;
    width: 320px;
    margin-left: 25px; 
    position: relative;
}

/* Individual card styling */
.sightseeing-card {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-image 1.5s ease-in-out;
}

.sightseeing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Specific background images with updated paths */
#valkenburg-card { background-image: url('/Assets/Images/POI/Valkenburg.jpg'); }
#bruges-card { background-image: url('/Assets/Images/POI/Bruges.jpg'); }
#kinderdijk-card { background-image: url('/Assets/Images/POI/Kinderdijk.jpg'); }
#moselle-card { background-image: url('/Assets/Images/POI/Moselle1.jpg'); }
#dehaar-card { background-image: url('/Assets/Images/POI/DeHaar.jpg'); }
#cochem-card { background-image: url('/Assets/Images/POI/Cochem.jpg'); }
#ghent-card { background-image: url('/Assets/Images/POI/Ghent.jpg'); }
#vianden-card { background-image: url('/Assets/Images/POI/Vianden.jpg'); }

/* Dark overlay for better text readability */
.sightseeing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
}

.card-content {
    position: relative;
    padding: 25px;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.card-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Accordion Toggle Button */
.accordion-toggle {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.accordion-toggle:hover {
    background-color: #0056b3;
}

.accordion-toggle .fa-minus { display: none; }
.accordion-toggle.active .fa-plus { display: none; }
.accordion-toggle.active .fa-minus { display: inline; }


/* FIX: Default state for the panel is to be completely hidden. */
.accordion-panel {
    display: none;
}

/* FIX: This class, added by JS, makes the panel visible ON THE BODY. */
.panel-active {
    display: block !important; /* Use important to override default display:none */
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px;
    box-sizing: border-box;
    z-index: 999; /* Extremely high z-index to guarantee it's on top */
    opacity: 0;
    animation: fadeInPanel 0.3s ease-in-out forwards;
}

@keyframes fadeInPanel {
    to {
        opacity: 1;
    }
}


.accordion-panel h4, .accordion-panel h5, .accordion-panel p {
    color: #343a40;
    line-height: 1.6;
}
.accordion-panel h4 { font-size: 1.5rem; margin-top: 0; }
.accordion-panel h5 { font-size: 1.1rem; color: #007bff; margin-top: 20px; }
.accordion-panel p { color: #6c757d; }


/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .sightseeing-main-title {
        font-size: 2rem;
    }
    .card-wrapper {
        width: 220px;
        margin-left: 15px;
    }
    .sightseeing-card {
        height: 350px;
    }
  .sightseeing-container {
    width: 100vw;
  }
  .scrolling-wrapper {
    width: 94%;
  }
}

@media (max-width: 500px) {
  .scrolling-wrapper {
    width: 85%;
  }
}
