/* Bristol Walking Tours Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    opacity: 0.8;
    z-index: 0;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-menu a.active {
    background-color: #3498db;
}

/* Hamburger Menu for Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-toggle {
        display: block;
        width: 100%;
        text-align: right;
        padding-right: 2rem;
    }
    
    .nav-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .nav-menu ul.show {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.8rem 1rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section picture,
.hero-section img.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
    margin: 0;
}

/* Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}

/* Tour Cards */
.tour-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tour-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    /* Placeholder gradient - replace with actual images */
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tour-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    margin-top: 0;
}

.tour-card .description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tour-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    min-height: 90px; /* forces consistency across all cards */
}

.tour-detail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.tour-detail-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.tour-detail-value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: bold;
    line-height: 1.2;
}

/* Call to Action Button */
.cta {
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: block;
    width: 100%;
}

.cta:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.25rem;
    }
    
    .hero-section {
        height: 350px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tour-card {
        margin-bottom: 1rem;
    }
}

/* About Section on the About Page */
.about-section {
    padding: 3rem 0;
    color: #333;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-align: center;
}

.about-content h2 {
    color: #3498db;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.feature-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.back-to-tours {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.back-to-tours:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .about-content h1 {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 1.5rem;
    }
}

/* About Preview Section on Index Page */
.about-preview {
    padding: 4rem 0;
    background-color: #111;
    color: white;
    position: relative;
}

.about-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f1c40f, #e74c3c, #9b59b6);
}

.about-preview-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-preview-text {
    flex: 2;
}

.about-preview-text h3 {
    color: #3498db;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.about-preview-text p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #e0e0e0;
    font-size: 1.05rem;
}

.about-preview-image {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.preview-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.about-preview-image:hover .preview-img {
    transform: scale(1.03);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.8rem;
    font-size: 0.9rem;
    text-align: center;
}

.about-preview-cta {
    margin-top: 2rem;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Responsive adjustments for About Preview */
@media (max-width: 1024px) {
    .about-preview-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .about-preview-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-preview {
        padding: 3rem 0;
    }
    
    .about-preview-text h3 {
        font-size: 1.3rem;
    }
    
    .about-preview-text p {
        font-size: 1rem;
    }
    
    .btn-secondary {
        display: block;
        text-align: center;
    }
}

/* Highlights Section Styles */
.highlights-section {
    padding: 3rem 0;
    margin-top: 2rem;
    background-color: #1a2a3a;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.about-teaser {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.text-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Responsive Adjustments for Highlights Section */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .about-teaser {
        padding: 1rem;
        margin: 1.5rem 1rem 0 1rem;
    }
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slideshow-slide {
    display: none;
    animation: fade 1.5s ease;
    height: 500px;
    position: relative;
}

/* Make the first slide visible by default */
.slideshow-slide:first-child {
    display: block;
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    text-align: center;
}

.slideshow-caption h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.slideshow-caption p {
    margin: 0;
    font-size: 1rem;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.slideshow-button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 1rem;
}

.slideshow-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slideshow-dots {
    text-align: center;
    position: absolute;
    bottom: 70px;
    width: 100%;
    z-index: 10;
}

.slideshow-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slideshow-dot.active {
    background-color: white;
}

@keyframes fade {
    from {opacity: 0.6}
    to {opacity: 1}
}

@media (max-width: 768px) {
    .slideshow-container {
        margin-bottom: 2rem;
    }
    
    .slideshow-slide {
        height: 350px;
    }
    
    .slideshow-caption h3 {
        font-size: 1.2rem;
    }
    
    .slideshow-caption p {
        font-size: 0.9rem;
    }
    
    .slideshow-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}