


/* Header styles removed - using Blocksy header */

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('assets/canadian-rockies-panoramic-hero.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--text-light) !important; /* Force white color */
    margin-bottom: 2rem;
    font-size: 1.2rem;
    text-align: center !important;
    width: 100%;
    max-width: 100% !important;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Search container for hero section */
.hero .search-container {
    max-width: 600px;
    margin: 20px auto;
    position: relative;
}

.hero .search-input-wrapper {
    position: relative;
    display: flex;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

#destinationSearch {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

.search-button {
    background: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-button svg {
    fill: var(--primary-color);
}

.search-button:hover {
    transform: scale(1.1);
}

/* Autocomplete suggestions */
.autocomplete-suggestions {
    display: none;
    position: absolute;
    margin-top: 0.5rem;
    width: 100%;
    background: white;
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 160px;
    overflow-y: auto;
}

.autocomplete-suggestions div {
    padding: 12px 25px;
    cursor: pointer;
    transition: background 0.2s;
}

.autocomplete-suggestions div:hover {
    background: #f8f9fa;
    border-radius: 10px;
}

.destinations {
    padding: 4rem 2rem;
    background: var(--background-color);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.destination-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.destination-card h3 {
    color: var(--primary-color);
    margin: 1rem 0;
    padding: 0 1rem;
}

.destination-card p {
    padding: 0 1rem 1rem;
    min-height: 80px;
}

.cta-primary {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.cta-primary:hover {
    background: #1a3257;
}

.cta-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 1rem;
    transition: background 0.3s ease;
}

.cta-secondary:hover {
    background: #c22a22;
}

.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
}

.centered{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    p{
        max-width: 40ch;
    }

    .search-container {
        margin: 15px auto;
    }

    #destinationSearch {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

.hero .search-button {
    background: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 30px !important;
}

/* Top Tours Carousel Section */
.top-tours {
    position: relative;
    min-height: 100vh;
    padding: 0;
    background: none;
    color: white;
    overflow: hidden;
}

.background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    z-index: 0;
}

.carousel-wrapper {
    position: relative;
    z-index: 1;
    padding: 4rem;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.carousel-wrapper h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-wrapper h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.carousel-wrapper p {
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(90deg, black 0%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, black 0%, black 95%, transparent 100%);
    transition: mask-image 0.3s ease-in-out, -webkit-mask-image 0.3s ease-in-out;
}

.carousel-container.scrolling {
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.carousel {
    display: flex;
    gap: 30px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
    scroll-behavior: smooth;
}

.carousel-card {
    min-width: 300px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.location {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.carousel-card h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.discover-btn {
    background: none;
    border: 2px solid white;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.discover-btn:hover {
    background: white;
    color: black;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.welcome-section {
    padding: 4rem 2rem;
    background-color: var(--background-color); /* Dark blue background */
    color: var(--text-dark); /* White text */
}

.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout */
    gap: 2rem;
}

.welcome-images {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Left column wider than right */
    gap: 1rem;
}

.welcome-images img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* First image takes full height */
.welcome-images img:first-child {
    height: 450px; /* Tall image on the left */
    grid-row: 1 / span 2;
}

/* Second and third images take half height each */
.welcome-images img:nth-child(2),
.welcome-images img:nth-child(3) {
    height: 215px; /* Half height for right side images */
}

.welcome-content {
    text-align: left; /* Align text to the left */
}

.welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color); /* White title */
}

.welcome-content p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Interactive Map Styles */
.interactive-map-section {
    padding: 4rem 2rem;
    background-color: var(--background-color);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    position: relative; /* Added for absolute positioning context */
}

@media (max-width: 768px) {
    .map-layout {
        grid-template-columns: 1fr;
    }
}

#itinerary-legend {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    position: relative; /* Keep for potential absolute/sticky children */
    display: flex; /* Use Flexbox */
    flex-direction: column; /* Stack children vertically */
    /* padding-bottom: 70px; Removed */
}

#itinerary-legend h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#itinerary-legend ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: relative; /* Keep for ::before pseudo-element */
    /* max-height: calc(100% - 100px); Removed */
    overflow-y: auto; /* Make the list scrollable */
    flex-grow: 1; /* Allow list to take available space */
}

/* Add vertical dotted line connecting major stops */
#itinerary-legend ul::before {
    content: '';
    position: absolute;
    left: 6px; /* Align with center of major indicators */
    top: 25px; /* Start below first major indicator */
    width: 0;
    height: var(--legend-line-height, 0px); /* Use the calculated height from JS, with 0px as fallback */
    border-left: 2px dashed #000; /* Vertical dotted line */
    z-index: 1;
}

/* Extended dotted line when scrolling is active */
#itinerary-legend ul.scrolling::before {
    height: 100%; /* Override the calculated height to cover the full container */
    bottom: 0; /* Ensure it extends to the bottom of the container */
}

#itinerary-legend li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
}

#itinerary-legend li:last-child {
    border-bottom: none;
}

#itinerary-legend .major-stop {
    font-weight: bold;
    color: var(--primary-color);
}

#itinerary-legend .minor-stop-item {
    display: flex;
    align-items: center;
    padding-left: 30px; /* Increased indent for minor stops */
    margin-bottom: 8px; /* Add space between items */
    min-height: 24px; /* Ensure minimum height */
    position: relative;
}

/* Add horizontal dotted line for minor stops */
#itinerary-legend .minor-stop-item::before {
    content: '';
    position: absolute;
    left: 6px; /* Align with vertical line */
    top: 50%;
    width: 20px; /* Length of horizontal line */
    height: 1px;
    border-top: 2px dotted #000; /* Horizontal dotted line */
}

#itinerary-legend .minor-stop {
    font-style: italic;
    color: #666;
    margin-left: 15px; /* Increased margin for better spacing */
    white-space: nowrap; /* Prevent text wrapping */
}

#itinerary-legend .stop-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    z-index: 2; /* Place above the vertical line */
}

#itinerary-legend .major-indicator {
    background-color: var(--secondary-color);
    border: 1px solid white; /* Reduced border width to match unselected map markers */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

#itinerary-legend .minor-indicator {
    display: none; /* Hide the minor indicator dot */
}

#itinerary-legend .empty-message {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Sticky Finished Button */
#finish-route-btn {
    /* Position */
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;

    /* Appearance (overriding .cta-secondary) */
    background: var(--secondary-color); /* Red */
    color: var(--text-light); /* White text */
    padding: 12px 20px;
    border: none;
    border-top: 1px solid #eee; /* Optional separator */
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    margin: 0; /* Remove any inherited margin */
    transition: background 0.3s ease;
    border-bottom-left-radius: 10px; /* Match legend corner */
    border-bottom-right-radius: 10px; /* Match legend corner */
    /* Ensure it doesn't shrink if legend is short */
    flex-shrink: 0;
}

#finish-route-btn:hover {
    background: #c22a22; /* Darker red */
    color: var(--text-light); /* Keep text white */
}


.map-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

#interactive-map {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #DBB28E; /* Updated map background color */
}

/* Custom Marker Styles */
.custom-marker {
    background-color: var(--primary-color); /* Default blue */
    border: 1px solid white;
    border-radius: 50%; /* Ensure circle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-width 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    transform-origin: center center;
    will-change: transform;
    z-index: 500;
}

/* Inner div that holds the background image */
.marker-size {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%; /* Add this to make the image container round */
    background-size: cover; /* Ensure image covers the area */
    background-position: center; /* Center the image */
    /* background-image is set via inline style from JS */
}


/* Minor stop marker style - Using SVG image */
#interactive-map .minor-stop {
    /* Removed background-color, border, and other styles that would conflict with SVG */
    width: 16px !important;
    height: 16px !important;
    z-index: 400;
    overflow: visible; /* Allow SVG to be fully visible */
    background: transparent !important; /* Ensure background is transparent */
    border: none !important; /* Remove the border inherited from .custom-marker */
    box-shadow: none !important; /* Remove shadow */
}

/* Ensure minor stop img is properly sized */
#interactive-map .minor-stop img {
    width: 100%;
    height: 100%;
    display: block;
}

#interactive-map .minor-stop:hover, #interactive-map .minor-stop.hover {
    transform: scale(1.3); /* Keep minor stop scaling */
    cursor: pointer;
    z-index: 900;
    /* Removed background-color override */
}


/* Hover state for MAJOR stops */
.custom-marker.circle:hover, .custom-marker.circle.hover {
    transform: scale(1.6); /* Increased scaling */
    cursor: pointer;
    border-width: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    background-color: transparent !important; /* Reveal inner div's background image */
}


/* Selected marker style */
.custom-marker.selected {
    background-color: var(--secondary-color); /* Red background */
    border: 1px solid white; /* Reduced border width */
    transform: scale(1.5); /* Increased scale for better visibility */
    z-index: 900;
    /* Inner .marker-size image is hidden by this background color */
}

/* Add checkmark to selected markers */
.custom-marker.selected::after {
    content: ''; /* Remove content URL */
    position: absolute;
    top: -4px; /* Adjusted positioning */
    right: -4px; /* Adjusted positioning */
    width: 14px;  /* Reduced size for background */
    height: 14px; /* Reduced size for background */
    z-index: 901; /* Ensure it's above the marker's background */
    background-color: white;
    background-image: url('assets/checkmark_green.svg'); /* Revert to relative path */
    background-size: 10px 10px; /* Reduced checkmark size */
    background-repeat: no-repeat;
    background-position: center; /* Center the checkmark */
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Add subtle shadow */
}

/* Hover state for SELECTED major stops */
.custom-marker.selected:hover, .custom-marker.selected.hover {
    transform: scale(1.6); /* Increased scaling */
    z-index: 1100;
    background-color: transparent !important; /* Reveal background image */
    /* Inherit other hover styles like cursor, border-width, box-shadow */
}

/* Reposition checkmark for specific markers */
.custom-marker.selected.marker-jasper::after { /* Keep Jasper at bottom-right */
    top: auto;
    bottom: -4px;
    right: -4px;
}

.custom-marker.selected.marker-lake-louise::after {
    top: auto; /* Remove top positioning */
    bottom: -4px; /* Position near bottom */
    left: -4px; /* Position near left */
    right: auto; /* Remove right positioning */
}


/* Custom Popup Styles */
.custom-popup {
    max-width: 300px;
}

.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
}

.popup-content {
    display: flex;
    flex-direction: column;
}

.popup-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.popup-text {
    padding: 15px;
}

.popup-text h3 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.popup-text p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.popup-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem; /* Explicitly set base font size */
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    flex: 1; /* Make buttons share space equally */
}

.popup-button:hover {
    background-color: #c22a22;
}

/* Style for the Remove from Itinerary button */
.popup-button.remove-mode {
    background-color: transparent !important; /* Transparent background */
    color: #333 !important; /* Dark text color */
    border: 2px solid #000 !important; /* Black outline */
}

.popup-button.remove-mode:hover {
    background-color: rgba(0, 0, 0, 0.1) !important; /* Slight dark background on hover */
}

/* Make Explore button always outlined by default */
#explore-button {
    background-color: transparent !important;
    color: #333 !important;
    border: 2px solid #000 !important;
    font-size: 0.95rem; /* Make Explore button slightly smaller */
    display: flex; /* Center the text */
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
}

/* Ensure buttons within the panel have consistent padding and no margin */
.panel-buttons .popup-button {
    margin: 0 !important; /* Override any potential inherited margin */
    padding: 10px 15px !important; /* Enforce consistent padding */
    /* Flex properties are inherited from .popup-button, should be fine */
}

/* Route Line Style (Removed - Handled in JS) */
/*
.route-line {
    stroke: #ffffff;
    stroke-width: 3;
    stroke-opacity: 0.8;
    stroke-dasharray: 5, 10;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}
*/

/* Tour Suggestions Modal Styles */
.tour-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.tour-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--secondary-color);
}

#tour-suggestions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tour-suggestion-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tour-suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tour-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
}

.tour-card-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.tour-card-header p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tour-card-body {
    padding: 15px;
}

/* Removed .tour-map-placeholder styles as it's replaced by .tour-map-image */

.tour-map-image { /* Basic styling for the map image */
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 200px; /* Increased height */
    object-fit: cover; /* Cover the area */
    background-color: #f5f5f5; /* Background for loading/error */
    margin-bottom: 15px;
    border: 1px solid #eee; /* Optional border */
}

.tour-highlights {
    margin-bottom: 15px;
}

.tour-highlights h4 {
    margin: 0 0 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tour-highlights ul {
    margin: 0;
    padding-left: 20px;
}

.tour-highlights li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.tour-card-footer {
    padding: 15px;
    background-color: #f9f9f9;
    text-align: center;
}

.tour-details-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.tour-details-btn:hover {
    background-color: #c22a22;
}

/* Greyed-out marker style */
.marker-invalid-next {
    opacity: 0.3;
    filter: grayscale(100%);
    pointer-events: none;
}

/* Map Preview Page Styles */
.map-preview-body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

.map-preview-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.map-preview-h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.map-preview-note {
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.map-preview-note h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Province Label Styles */
.province-label-bc, .province-label-alberta {
    font-size: 18px;
    color: #888;
    font-weight: bold;
    text-align: center;
}

/* Location Label Styles */
.location-label-text {
    text-align: center;
    white-space: nowrap;
    font-weight: bold;
    font-size: 12px;
    color: #333;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

/* Custom Marker Size Styles */
.marker-size {
    width: 100%;
    height: 100%;
    display: block;
}

/* Fix for province label container */
.province-label {
    background: none !important;
    border: none !important;
}

/* Fix for location label container */
.location-label {
    background: none !important;
    border: none !important;
}

/* Map Overlay Styles */
#map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 950;
    display: none; /* Hidden by default */
    pointer-events: none; /* Allow clicks to pass through when visible */
}

/* Location Info Panel Styles */
#location-info-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    display: none; /* Hidden by default */
}

.panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.panel-text {
    padding: 15px;
    overflow-y: auto;
}

.panel-text h3 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.panel-text p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.panel-buttons {
    display: flex;
    /* justify-content: space-between; */ /* Removed */
    justify-content: stretch; /* Make items fill the container */
    gap: 10px; /* Add space between buttons */
    margin-top: 15px;
}

/* Style the Add to Itinerary button specifically */
#add-to-itinerary-button {
    background-color: var(--secondary-color) !important; /* Red */
    color: var(--text-light) !important; /* White text */
    border: none !important; /* Ensure no border overrides */
}

.close-panel-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-panel-button:hover {
    background-color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .welcome-container {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }

    .carousel-wrapper {
        padding: 2rem;
    }

    .carousel-wrapper h1 {
        font-size: 2.5rem;
    }

    .carousel-card {
        min-width: 250px;
        padding: 1.5rem;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #interactive-map {
        height: 350px;
    }

    .map-container h2 {
        font-size: 1.5rem;
    }
}

/* Hide Leaflet attribution */
.leaflet-control-attribution {
    display: none !important; /* Use !important to ensure override */
}

/* Hide interactive map section on smaller screens */
@media (max-width: 768px) {
    .interactive-map-section {
        display: none;
    }
}

/* Ensure the map description paragraph is centered */
.map-container > p {
    display: block !important; /* Ensure it's treated as a block */
    width: fit-content !important; /* Make width only as wide as content */
    max-width: 90%; /* Prevent it from getting too wide on large screens */
    margin-left: auto !important; 
    margin-right: auto !important;
    text-align: center; /* Keep text-align just in case, but margin should do the work */
}
