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

/* Map Container */
.tour-map-container {
    width: 100%;
    height: 800px; /* Increased height for map containers on desktop */
    margin-bottom: 30px;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* Ensure the map itself fills the container */
#tour-map, .leaflet-container {
    height: 100% !important;
    width: 100%;
}

.tour-map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-weight: bold;
}

/* Section Titles */
.tour-map-section-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-size: 1.5em;
}

/* Activities List */
.tour-map-activities {
    margin-bottom: 30px;
}

.tour-map-activities.tour-map-list .tour-map-activity-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tour-map-activities.tour-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tour-map-activities.tour-map-grid .tour-map-activity-item {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.tour-map-activities.tour-map-grid .tour-map-activity-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tour-map-activity-header {
    padding: 15px;
    border-left: 4px solid #4CAF50; /* Default color, will be overridden by inline style */
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
}

.tour-map-activity-icon {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Activity Category Icons */
.tour-map-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tour-map-icon-default::before {
    content: "•";
    font-size: 24px;
}

.tour-map-icon-hiking::before {
    content: "🥾";
}

.tour-map-icon-cycling::before {
    content: "🚲";
}

.tour-map-icon-swimming::before {
    content: "🏊";
}

.tour-map-icon-fishing::before {
    content: "🎣";
}

.tour-map-icon-camping::before {
    content: "⛺";
}

.tour-map-icon-sightseeing::before {
    content: "🔭";
}

.tour-map-icon-dining::before {
    content: "🍽️";
}

.tour-map-icon-shopping::before {
    content: "🛍️";
}

.tour-map-activity-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tour-map-activity-title {
    margin: 0;
    font-size: 1.2em;
}

.tour-map-activity-title a {
    text-decoration: none;
    color: #333;
}

.tour-map-activity-title a:hover {
    color: #4CAF50;
}

.tour-map-activity-details {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    background-color: #f5f5f5;
}

.tour-map-activity-duration,
.tour-map-activity-difficulty {
    display: inline-block;
}

.tour-map-activity-difficulty.difficulty-easy {
    color: #4CAF50;
}

.tour-map-activity-difficulty.difficulty-moderate {
    color: #FF9800;
}

.tour-map-activity-difficulty.difficulty-hard {
    color: #F44336;
}

.tour-map-activity-excerpt {
    padding: 15px;
    font-size: 0.95em;
    line-height: 1.5;
}

.tour-map-activity-link {
    padding: 0 15px 15px;
    text-align: right;
}

/* Locations List */
.tour-map-locations {
    margin-bottom: 30px;
}

.tour-map-locations.tour-map-list .tour-map-location-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
}

.tour-map-locations.tour-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tour-map-locations.tour-map-grid .tour-map-location-item {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.tour-map-locations.tour-map-grid .tour-map-location-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tour-map-locations.tour-map-list .tour-map-location-image {
    flex: 0 0 200px;
    margin-right: 20px;
}

.tour-map-locations.tour-map-list .tour-map-location-content {
    flex: 1;
}

.tour-map-location-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tour-map-location-title {
    margin: 15px 0 10px;
    font-size: 1.2em;
}

.tour-map-location-title a {
    text-decoration: none;
    color: #333;
}

.tour-map-location-title a:hover {
    color: #4CAF50;
}

.tour-map-location-tagline {
    font-style: italic;
    margin-bottom: 10px;
    color: #666;
}

.tour-map-location-address {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.tour-map-location-excerpt {
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.5;
}

.tour-map-location-link {
    text-align: right;
}

/* Custom Map Markers */
.activity-icon {
    background: none !important;
    border: none !important;
}

.activity-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Selected marker styling */
.selected-marker .leaflet-marker-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 3px rgba(51, 136, 255, 0.8));
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Info Panel Styles */
.tour-map-info-panel {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    max-width: 100%;
    margin: 10px;
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 400;
}

.info-panel-placeholder {
    padding: 15px;
    text-align: center;
    color: #777;
    font-style: italic;
}

.info-panel-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    width: 100%;
    display: block;
}

.info-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.info-panel-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFBF00;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.info-panel-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-panel-content {
    padding: 20px;
}

.info-panel-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
}

h4.info-panel-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
}

.info-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 18px;
}

.info-panel-meta span {
    display: flex;
    align-items: center;
    color: #666;
}

.info-panel-meta i {
    margin-right: 6px;
    font-size: 18px;
}

.info-panel-address {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 18px;
    color: #666;
}

.info-panel-address i {
    color: #555;
    font-size: 18px;
}

.info-panel-excerpt {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: rgba(0,0,0,0.7) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;  
}

.info-panel-price-tag {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 15px;
}

.info-panel-link {
    display: block;
    width: 100%;
    background-color: #FFBF00;
    color: #333 !important;
    padding: 0;
    height: 50px;
    line-height: 50px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 400;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.info-panel-link:hover {
    background-color: #14521a;
    color: white !important;
}

/* Custom Fullscreen Control */
.custom-fullscreen-control {
    margin-top: 10px !important;
    position: relative !important;
    z-index: 1000 !important;
}

.custom-fullscreen-button {
    background-color: white !important;
    color: #333 !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 26px !important;
    height: auto !important;
    width: auto !important;
    text-align: center !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #ccc !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
}

.custom-fullscreen-button:hover {
    background-color: #f5f5f5 !important;
    border-color: #0078A8 !important;
}

.custom-fullscreen-button i {
    margin-right: 5px !important;
}

/* Zoom instructions control */
.leaflet-control-zoom-instructions {
  background-color: rgba(26, 26, 26, 0.8);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.zoom-instructions {
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  font-family: Arial, sans-serif;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tour-map-activities.tour-map-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .tour-map-container {
        height: 300px;
    }
    
    .tour-map-info-panel {
        width: calc(100% - 20px);
        max-width: 100%;
    }
    
    .tour-map-locations.tour-map-list .tour-map-location-item {
        flex-direction: column;
    }
    
    .tour-map-locations.tour-map-list .tour-map-location-image {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .tour-map-activities.tour-map-grid,
    .tour-map-locations.tour-map-grid {
        grid-template-columns: 1fr;
    }
}

/* Tour Details Styles */
.tour-details {
    margin-bottom: 40px;
}

.tour-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.tour-info-item {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.tour-info-item strong {
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #666;
}

.tour-info-item span {
    font-size: 1.1em;
    font-weight: 500;
}

.tour-difficulty-easy {
    color: #4CAF50;
}

.tour-difficulty-moderate {
    color: #FF9800;
}

.tour-difficulty-challenging {
    color: #F44336;
}

.tour-difficulty-difficult {
    color: #D32F2F;
}

/* Tour Days Accordion Styles */
.tour-days-accordion {
    margin-top: 30px;
}

.tour-days-accordion{
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 60px;
}

.tour-days-accordion h3 {
    /* margin-bottom: 20px; */
    padding-bottom: 10px;
    /* border-bottom: 2px solid #eee; */
    font-size: 1.5em;
}

.tour-days-accordion h3.tour-title{
    padding-left: 0px;
}

.tour-days-container {
    /* border: 1px solid #ddd; */
    /* border-radius: 4px; */
    overflow: hidden;
}

.tour-day-item {
    margin-bottom: 1px;
}

.single-tour .container-wrap .container.main-content{
    padding: 0px !important;
}

.tour-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tour-day-header:hover {
    background-color: #eaeaea;
}

.tour-day-header.active {
    background-color: #4CAF50;
    color: white;
}

.tour-day-header h4 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.tour-day-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.tour-day-content {
    display: none;
    padding: 0;
    background-color: #fff;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tour-day-content.active {
    display: block;
    padding: 20px;
}

/* Tour Location Cards */
.tour-day-locations {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tour-location-card {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.tour-location-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tour-location-image {
    flex: 0 0 200px;
    max-width: 200px;
    overflow: hidden;
}

.tour-location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.tour-location-card:hover .tour-location-image img {
    transform: scale(1.05);
}

.tour-location-details {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.tour-location-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.tour-location-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tour-location-title a:hover {
    color: #4CAF50;
}

.tour-location-address,
.tour-location-category {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
}

.tour-location-address i,
.tour-location-category i {
    margin-right: 5px;
    color: #4CAF50;
}

.tour-location-excerpt {
    margin: 10px 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
}

.tour-location-link {
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.tour-location-link:hover {
    background-color: #388E3C;
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tour-location-card {
        flex-direction: column;
    }
    
    .tour-location-image {
        flex: 0 0 auto;
        max-width: 100%;
        height: 200px;
    }
    
    .tour-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .tour-info-item {
        width: 100%;
    }
}

/* Buttons */
.tour-map-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.tour-map-button:hover {
    background-color: #388E3C;
    color: white;
}

/* Messages */
.tour-map-error {
    padding: 10px 15px;
    background-color: #FFEBEE;
    color: #D32F2F;
    border-left: 4px solid #D32F2F;
    margin-bottom: 20px;
}

.tour-map-notice {
    padding: 10px 15px;
    background-color: #E8F5E9;
    color: #388E3C;
    border-left: 4px solid #4CAF50;
    margin-bottom: 20px;
}

/* Difficulty Info Icon Styles */
.difficulty-info-icon {
    display: inline-block;
    margin-left: 5px;
    color: #FFBF00;
    font-size: 14px;
    transition: color 0.3s ease;
}

.difficulty-info-icon:hover {
    color: #ffffff;
}

/* Difficulty Explanation Section Styles */
.difficulty-explanation-section {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #232323;
    border-radius: 8px;
    border: 1px solid #333333;
}

.difficulty-explanation-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.difficulty-levels-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media(max-width: 600px){
    .difficulty-levels-container {
        grid-template-columns: 1fr;
    }
}

.difficulty-level-item {
    padding: 30px;
    border-radius: 8px;
    background-color: #1a1a1a;
    border-left: 4px solid;
}

.difficulty-level-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    display: flex;
    letter-spacing: 0;
    align-items: center;
}

.difficulty-level-item h3 i {
    margin-right: 10px;
}

.difficulty-level-item p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
}

.difficulty-easy {
    border-color: #4CAF50;
}

.difficulty-easy h3 {
    color: #4CAF50;
}

.difficulty-moderate {
    border-color: #2196F3;
}

.difficulty-moderate h3 {
    color: #2196F3;
}

.difficulty-challenging {
    border-color: #FF9800;
}

.difficulty-challenging h3 {
    color: #FF9800;
}

.difficulty-difficult {
    border-color: #F44336;
}

.difficulty-difficult h3 {
    color: #F44336;
}

@media (max-width: 768px) {
    .difficulty-levels-container {
        grid-template-columns: 1fr;
    }
}

/* Highlight animation for difficulty explanation section */
@keyframes highlightSection {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 191, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 191, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 191, 0, 0);
    }
}

.highlight-section {
    animation: highlightSection 1.5s ease-out;
    border-color: #FFBF00;
}

/* Hero Section with Backdrop */
.hero-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

/* Backdrop Image Container Styles */
.location-article .row-bg-wrap,
.tour-article .row-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.location-article .row-bg-layer,
.tour-article .row-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.location-article .inner-wrap.row-bg-layer.using-image,
.tour-article .inner-wrap.row-bg-layer.using-image {
    z-index: 1;
}

.location-article .row-bg.viewport-desktop.using-image,
.tour-article .row-bg.viewport-desktop.using-image {
    width: 100%;
    height: 100%;
    background-size: cover;
}

.location-article .row-bg-overlay.row-bg-layer,
.tour-article .row-bg-overlay.row-bg-layer {
    z-index: 2;
}

/* Featured Image Styles */
.location-featured-image {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: 0 auto;
}

.location-featured-image img {
    display: block;
    width: 100%;
    position: relative;
    z-index: 3;
}

/* Position the article relatively to contain the backdrop */
.location-article, .tour-article {
    position: relative;
    /* overflow: hidden; */
}

/* Locations Grid Shortcode Styles */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 30px;
    margin: 30px 0;
}

.locations-columns-1 { --columns: 1; }
.locations-columns-2 { --columns: 2; }
.locations-columns-3 { --columns: 3; }
.locations-columns-4 { --columns: 4; }

.location-item {
    position: relative;
    height: 625px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
    background-color: #1a1a1a;
}

.location-item:hover {
    transform: translateY(-5px);
}

.location-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: center center;
}

.locations-grid-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    z-index: 3;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 70%;
}

/* Gradient overlay at bottom of card */
.location-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

/* Hover gradient with accent color */
.location-item:hover::after {
    background: linear-gradient(to top, #FFBF00 0%, rgba(255, 191, 0, 0.5) 30%, transparent 100%);
}

.location-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.location-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.location-meta span {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.location-meta i {
    margin-right: 6px;
    font-size: 16px;
}

.location-difficulty-easy {
    color: #4caf50 !important;
}

.location-difficulty-moderate {
    color: #ff9800 !important;
}

.location-difficulty-challenging,
.location-difficulty-difficult {
    color: #f44336 !important;
}

.location-price {
    font-weight: 600;
}

.location-more-link {
    display: inline-block;
    background-color: #FFBF00;
    color: #333333 !important;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 20px;
}

.location-more-link:hover {
    background-color: #14521a;
    color: #ffffff !important;
    text-decoration: none;
}

.location-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Activity badges styling */
.location-activity-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.more-activities {
    background-color: #232323;
}

/* Locations Filter Styles */
.locations-filter {
    margin-bottom: 30px;
    background-color: #2e3339;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.locations-filter .filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.locations-filter .main-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.locations-filter .filter-search {
    flex: 1;
    display: flex;
    gap: 10px;
}

.locations-filter .filter-search input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 16px;
}

.locations-filter .filter-button {
    padding: 10px 20px;
    background-color: #FFBF00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.locations-filter .filter-button:hover {
    background-color: #e6ac00;
}

.locations-filter .advanced-toggle .toggle-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.locations-filter .advanced-toggle .toggle-button:hover {
    background-color: #333;
}

.locations-filter .toggle-icon {
    font-size: 18px;
    line-height: 1;
}

.locations-filter .advanced-filters {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.locations-filter .advanced-filters.active {
    display: flex;
}

.locations-filter .filter-group {
    flex: 1;
    min-width: 200px;
}

.locations-filter .filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.locations-filter .filter-group select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: #fff;
}

.locations-filter .filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

.locations-filter .apply-filters-button {
    padding: 10px 20px;
    background-color: #FFBF00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.locations-filter .apply-filters-button:hover {
    background-color: #e6ac00;
}

.locations-filter .reset-filters-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.locations-filter .reset-filters-link:hover {
    background-color: #333;
}

/* Empty state */
.locations-empty {
    padding: 30px;
    text-align: center;
    background-color: #1a1a1a;
    border-radius: 8px;
    color: #fff;
}

/* Responsive styles */
@media (max-width: 992px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .locations-filter .main-filters {
        flex-wrap: wrap;
    }
    
    .locations-filter .filter-search {
        flex-basis: 100%;
        margin-bottom: 10px;
    }
    
    .locations-filter .advanced-toggle {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .locations-filter .main-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .locations-filter .advanced-toggle {
        width: 100%;
        margin-top: 10px;
    }
    
    .locations-filter .advanced-toggle .toggle-button {
        width: 100%;
        justify-content: center;
    }
    
    .locations-filter .advanced-filters {
        flex-direction: column;
    }
    
    .locations-filter .filter-actions {
        flex-direction: column;
    }
    
    .locations-filter .reset-filters-link {
        text-align: center;
    }
}

/**
 * Tour Book Styles
 */
.tour-book-wrapper {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    background-color: #121212;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tour-book-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Page styles */
.page {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: none;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.page .page-content {
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Cover page */
.page-cover {
    background-color: #232323;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-cover .page-content {
    justify-content: center;
    align-items: center;
}

.page-cover h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFBF00; /* Gold accent color */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cover .cover-image {
    width: 80%;
    max-width: 300px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
}

.page-cover .cover-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-cover .tour-subtitle {
    font-size: 1.2em;
    margin-top: 20px;
    font-style: italic;
}

/* Introduction page */
.tour-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tour-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    background-color: #232323;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #FFBF00;
}

.tour-detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: bold;
    color: #FFBF00;
    margin-bottom: 5px;
}

.detail-value {
    color: #ffffff;
}

.tour-description {
    line-height: 1.6;
}

/* Day pages */
.day-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #333333;
    padding-bottom: 10px;
}

.day-title {
    color: #FFBF00;
    font-size: 1.8em;
    margin: 0;
}

.day-locations {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: auto;
    max-height: calc(100% - 80px);
    padding-right: 10px;
}

.location-item {
    display: flex;
    gap: 20px;
    background-color: #232323;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.location-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333333;
    color: #999999;
    font-style: italic;
}

.location-details {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.location-title {
    color: #FFBF00;
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.location-tagline {
    font-style: italic;
    margin-bottom: 10px;
    color: #cccccc;
}

.location-address {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.location-excerpt {
    margin-bottom: 15px;
    flex: 1;
    font-size: 0.95em;
    line-height: 1.5;
}

.location-link {
    align-self: flex-start;
    padding: 8px 15px;
    background-color: #FFBF00;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.location-link:hover {
    background-color: #e0a800;
    color: #000000;
}

/* Back cover */
.page-cover-back {
    background-color: #232323;
}

.tour-book-cta {
    margin-top: 30px;
}

.tour-book-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FFBF00;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tour-book-button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

/* Controls */
.tour-book-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.tour-book-prev,
.tour-book-next {
    padding: 8px 16px;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tour-book-prev:hover,
.tour-book-next:hover {
    background-color: #FFBF00;
    color: #1a1a1a;
}

/* Error message */
.tour-book-error {
    padding: 15px;
    background-color: #ff3333;
    color: #ffffff;
    border-radius: 4px;
    margin: 15px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .location-item {
        flex-direction: column;
    }
    
    .location-image {
        flex: 0 0 200px;
    }
    
    .tour-details {
        grid-template-columns: 1fr;
    }
}

/* Difficulty Modal Styles */
.tour-difficulty-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.tour-difficulty-modal .modal-content {
    position: relative;
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #333333;
    border-radius: 8px;
    width: 80%;
    max-width: 1000px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-difficulty-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #FFBF00;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tour-difficulty-modal .close-modal:hover {
    color: #ffffff;
}

.tour-difficulty-modal .section-title {
    color: #FFBF00;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #333333;
    padding-bottom: 10px;
}

.tour-difficulty-modal .difficulty-levels-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tour-difficulty-modal .difficulty-level-item {
    background-color: #232323;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid;
}

.tour-difficulty-modal .difficulty-easy {
    border-color: #4CAF50;
}

.tour-difficulty-modal .difficulty-moderate {
    border-color: #FF9800;
}

.tour-difficulty-modal .difficulty-challenging {
    border-color: #FFC107;
}

.tour-difficulty-modal .difficulty-difficult {
    border-color: #F44336;
}

.tour-difficulty-modal .difficulty-level-item h3 {
    margin-top: 0;
    color: #ffffff;
}

.tour-difficulty-modal .difficulty-level-item p {
    color: #cccccc;
    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

/* Responsive adjustments for the modal */
@media (max-width: 768px) {
    .tour-difficulty-modal .modal-content {
        width: 90%;
        padding: 20px;
        margin: 10% auto;
    }
    
    .tour-difficulty-modal .difficulty-levels-container {
        grid-template-columns: 1fr;
    }
}

.tour-map-section .section-title{
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    margin-top: 50px;
}