/**
 * Tour Map Plugin - Location Styles
 * Designed to work with the Salient WordPress theme
 */

:root {
    --accent: #FFBF00;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-medium: #666666;
    --shadow: rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --background-light: #f9f9f9;
    --background-white: #ffffff;
    --border-light: #eee;
    --heading-color: #222222;
}

/* Force Salient theme compatibility */
.single-tour_location #ajax-content-wrap .container-wrap {
    padding-top: 0 !important;
    /* background-color: var(--background-white) !important; */
}

/* Match Salient's container width */
.single-tour_location .container-wrap .container.main-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
}

/* Fix for Salient theme image margins */
.single-tour_location .row .col img {
    margin-bottom: 0 !important;
}

/* Back to Locations Navigation */
.location-navigation {
    margin: 30px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.back-to-locations {
    display: inline-flex;
    align-items: center;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

.back-to-locations:hover {
    color: var(--accent);
}

.back-arrow {
    margin-right: 8px;
    font-size: 1.3rem;
    line-height: 1;
}

/* Main Article */
.location-article {
    margin-bottom: 60px;
}

/* Featured Image (Big Image at the top) */
.location-featured-image {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    min-height: 300px; /* Ensure minimum height */
}

.location-header-image {
    width: 100%;
    height: 500px;
    display: block;
    object-fit: cover;
}

/* Fix for Salient theme potentially hiding images */
.single-tour_location .row .col .location-featured-image img.location-header-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Title Section */
.location-title-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.location-title {
    font-size: 2.8rem;
    font-weight: 700;
    /* margin-bottom: 15px; */
    color: var(--heading-color);
    line-height: 1.2;
}

.location-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--text-medium);
    line-height: 1.4;
}

/* Location Meta Details (Horizontal Layout) */


.location-details-box.animated-in {
    opacity: 1;
    transform: translateY(0);
}

.location-meta-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 60px;
}

.location-meta-item{
}

/* .location-meta-item {
    flex: 1 1 200px;
    padding: 20px;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
} */

/* .location-meta-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
} */

.location-meta-item strong {
    display: block;
    /* margin-bottom: 10px; */
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.location-meta-item span {
    display: block;
    color: rgba(0, 0, 0, 0.7) !important;
    line-height: 1.6;
}

.location-meta-item a {
    color: rgba(0, 0, 0, 0.7) !important;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
}

.location-meta-item a:hover {
    color: ;
    text-decoration: underline;
}

.location-opening-hours span {
    white-space: pre-line;
}

/* Location Content (Description) */
.location-content {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.location-content.animated-in {
    opacity: 1;
    transform: translateY(0);
}

.location-content p {
    margin-bottom: 1.5em;
}

.location-content h2, 
.location-content h3, 
.location-content h4 {
    color: #ffffff;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

/* Location Map */
.location-map-container {
    /* margin-bottom: 50px; */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.3s;
    /* margin-top: 100px; */
}

.location-map-container.animated-in {
    opacity: 1;
    transform: translateY(0);
}

.location-map-container h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding: 20px 20px 10px;
    /* border-bottom: 2px solid var(--border-light); */
    color: #ffffff;
    font-weight: 600;
}

.tour-map-container {
    border: none !important;
    margin-bottom: 0px !important;
}



/* Location Gallery */
.location-gallery {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.4s;
}

.location-gallery.animated-in {
    opacity: 1;
    transform: translateY(0);
}

.location-gallery h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

/* Flickity Carousel Styles */
.location-gallery-carousel {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

.carousel-cell {
    width: 100%;
    height: 600px;
    margin-right: 10px;
    border-radius: var(--border-radius);
    overflow: hidden;

}

.carousel-cell img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Flickity Custom Controls */
.flickity-button {
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.flickity-button:hover {
    background: white;
}

.flickity-prev-next-button {
    width: 40px;
    height: 40px;
}

.flickity-button-icon {
    fill: var(--text-dark);
}

.flickity-page-dots {
    bottom: 15px;
}

.flickity-page-dots .dot {
    width: 10px;
    height: 10px;
    opacity: 0.8;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.flickity-page-dots .dot.is-selected {
    background: var(--accent);
    border-color: var(--accent);
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .carousel-cell {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .carousel-cell {
        height: 200px;
    }
    
    .flickity-prev-next-button {
        width: 30px;
        height: 30px;
    }
}

/* Activity Categories Section */
.tour-map-section-title {
    font-size: 1.8rem !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid var(--border-light) !important;
    color: var(--heading-color) !important;
    font-weight: 600 !important;
}

/* Remove green activity categories bar */
.tour-map-activities-empty,
.tour-map-notice {
    display: none !important;
}

/* Custom Leaflet Map Styling */
.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-popup-content {
    margin: 15px !important;
    line-height: 1.5 !important;
}

.leaflet-popup-content strong {
    color: var(--heading-color);
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--text-medium) !important;
    opacity: 0.7;
    transition: var(--transition);
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--text-dark) !important;
    opacity: 1;
}

/* Location Activity Badges */
.location-activity-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.activity-badge {
    display: inline-block;
    padding: 3px 15px;
    border-radius: 20px;
    color: white;
    font-size: 15px;
    line-height: 24px;
    font-weight: 400;
    /* text-transform: ; */
    /* letter-spacing: 0.5px; */
}

/* Featured Tours Section */
.location-featured-tours {
    margin-top: 60px;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.location-featured-tours .section-title {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .location-title {
        font-size: 2.2rem;
    }
    
    .location-tagline {
        font-size: 1.2rem;
    }
    
    .location-meta-item {
        flex: 1 1 100%;
    }
    
    /* .location-gallery-images {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    } */
    
    /* .location-gallery-item img {
        height: 150px;
    } */
    
    .location-header-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .location-navigation {
        margin: 20px 0;
    }
    
    .location-title {
        font-size: 1.8rem;
    }
    
    .location-tagline {
        font-size: 1rem;
    }
    
    .location-details-box {
        padding: 20px;
    }
    
    .location-meta-item {
        padding: 15px;
    }
    
    .location-header-image {
        height: 200px;
    }
}

.location-article .location-body{
    max-width: 1100px;
    margin: 0 auto;
}

.location-article .location-featured-image{
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 3%;
    margin-bottom: 2%;
    height: 650px;
}

.location-article .location-featured-image img{
    height: 650px;
}


.location-column-container{
    /* display: grid; */
    /* grid-template-columns: 1fr 1fr 1fr; */
    gap: 50px;
    align-items: start;
}

.location-left-column{
    /* grid-column: span 2; */
}

.location-left-column p{
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0px;
}

.location-left-column p strong{
    color: #ffffff;
}

.location-right-column{
  background: #ffffff;
  border-radius: 20px;
  padding: 4%;
}

.location-title-section{
    padding-left: 0px !important;
    margin-bottom: 10px !important;
}

.location-title-section h1{
    text-align: left !important;
    padding-left: 0px !important;
    color: #ffffff;
}


.location-tagline{
    color: rgba(255,255,255,0.7);
    text-align: left;
}

.location-meta-container{
    /* max-width: 70%; */
    background: #ffbb22;
    padding: 2%;
    border-radius: 20px;
    margin-bottom: 40px;
    margin-top: 20px;
    padding-left: 3%;
    padding-right: 3%;
}

.location-tagline{
    margin-bottom: 0px !important;
}


.tour-item{
    height: 450px;
}

/* What we Think Box Styles - Properly scoped for single location */
.single-tour_location .location-article .location-content-with-sidebar {
    display: flex !important;
    gap: 40px !important;
    align-items: flex-start !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.single-tour_location .location-article .location-description-column {
    flex: 2 !important;
    min-width: 0 !important; /* Prevents flex item from overflowing */
    width: 66.666% !important;
}

.single-tour_location .location-article .location-what-we-think-column {
    flex: 1 !important;
    width: 33.333% !important;
    max-width: 33.333% !important;
    min-width: 300px !important;
    background-color: #1a1a1a ;
    /* background-size: cover !important; */
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    /* top: 100px !important; */
    box-sizing: border-box !important;

}

.single-tour_location .location-article .location-what-we-think-column::before {
    content: "";
    position: absolute;
    /* Position absolutely within the parent */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://splashdevelopment.net/valhallatours/wp-content/uploads/2025/03/15-2.webp') no-repeat center center;
    /* background-size: cover; */
    /* Add this to make the image cover the area */
    opacity: 0.2;
    /* Use decimal instead of percentage */
    border-radius: 20px;
    /* Match parent's border radius */
    z-index: 10;
    /* Put it behind the content */
}

.single-tour_location .what-we-think-title {
    margin: 0 0 20px 0 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #FFBF00 !important;
    padding-bottom: 10px !important;
}

.single-tour_location .what-we-think-content {
    color: #e0e0e0 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
    border-bottom: 2px solid #FFBF00 !important;
    /* padding-bottom: 10px !important; */
}

.single-tour_location .what-we-think-content p {
    margin-bottom: 15px !important;
    color: #e0e0e0 !important;
}

.single-tour_location .what-we-think-content p:last-child {
    margin-bottom: 0 !important;
}

/* Responsive adjustments for What we Think layout */
@media (max-width: 992px) {
    .single-tour_location .location-article .location-content-with-sidebar {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .single-tour_location .location-article .location-description-column,
    .single-tour_location .location-article .location-what-we-think-column {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    .single-tour_location .location-article .location-what-we-think-column {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .single-tour_location .location-article .location-what-we-think-column {
        padding: 20px !important;
    }
    
    .single-tour_location .what-we-think-title {
        font-size: 1.2rem !important;
    }
}