/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}


/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.8s ease-out;
    overflow-x: hidden;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Current Language Flag Indicator */
.current-lang-flag {
    width: 45px;
    height: 30px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.current-lang-flag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 75px;
    width: auto;
    object-fit: contain;
    margin-right: 20px;
}

.logo-text h1 {
    color: #2e7d32;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

.logo-text span {
    color: #66bb6a;
    font-size: 0.9rem;
    font-weight: 300;
    display: block;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #4caf50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: #2e7d32;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #2e7d32;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #4caf50;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Language Toggle Button */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.lang-toggle:hover {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.lang-toggle:active {
    transform: translateY(0);
}

.lang-flag-img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3)),
                url('https://www.discover-montenegro.com/wp-content/uploads/2016/03/boka-kotorska.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-nature-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.discover-montenegro.com/wp-content/uploads/2016/03/boka-kotorska.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
    100% { text-shadow: 2px 2px 20px rgba(76, 175, 80, 0.5); }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 25px;
    padding: 15px 30px;
    margin: 0 auto 40px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    animation: slideInBounce 0.8s ease-out, glow 2s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

@keyframes slideInBounce {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    }
    100% {
        box-shadow: 0 4px 25px rgba(76, 175, 80, 0.5), 0 0 15px rgba(76, 175, 80, 0.3);
    }
}

.info-box p {
    margin: 0;
    font-size: 1rem;
    color: #2e7d32;
    font-weight: 500;
}

.info-box strong {
    color: #1b5e20;
    font-weight: 600;
}

/* ATV Showcase Section */
.atv-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.atv-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1920&h=100&fit=crop&crop=top');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    mask: linear-gradient(to bottom, black, transparent);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.atv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* ATV Boxes */
.atv-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.atv-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.atv-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.atv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.atv-box:hover .atv-image img {
    transform: scale(1.1);
}

.atv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.8), rgba(139, 195, 74, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.atv-box:hover .atv-overlay {
    opacity: 1;
}

.rent-btn {
    background: white;
    color: #2e7d32;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.atv-box:hover .rent-btn {
    transform: translateY(0);
}

.rent-btn:hover {
    background: #2e7d32;
    color: white;
}

.atv-info {
    padding: 30px;
}

.atv-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 10px;
}

.atv-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e7d32;
}

.price-period {
    color: #666;
    font-size: 1rem;
}

.features {
    list-style: none;
}

.features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.features li:last-child {
    border-bottom: none;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Why Choose Us Section */
.why-us {
    padding: 100px 0;
    background: url('https://i.ibb.co/XkKQ9Q8r/AFTER-2-1-NEW.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.why-us-content {
    position: relative;
}

.why-us {
    text-align: center;
}

.why-us .section-title {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    display: inline-block;
}


@keyframes cornerFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(2deg); }
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.why-grid::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(139, 195, 74, 0.15)),
                url('https://images.unsplash.com/photo-1558618047-fd90e3d09615?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.3;
    z-index: 0;
    border-radius: 0 0 0 30px;
    animation: cornerFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.why-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.why-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.6s ease;
}

.why-item:hover::before {
    left: 100%;
}

.why-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.why-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 15px;
}

.why-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-features {
    list-style: none;
}

.about-features li {
    padding: 10px 0;
    color: #555;
    font-size: 1rem;
    position: relative;
    padding-left: 30px;
}

.about-features li::before {
    content: '🌿';
    position: absolute;
    left: 0;
    top: 10px;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
    max-width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.submit-btn {
    background: white;
    color: #2e7d32;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Animations */
@keyframes leafFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* AOS Animation Overrides */
[data-aos="fade-up"] {
    transform: translateY(50px);
    opacity: 0;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .why-grid::after {
        width: 300px;
        height: 220px;
        top: 0;
        right: 0;
        clip-path: polygon(40% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .atv-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nav {
        display: none;
    }
    
    .social-icons {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .header .container {
        justify-content: center;
        position: relative;
        padding: 0 100px 0 10px;
    }
    
    .logo-image {
        height: 50px;
        margin-right: 10px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 0.75rem;
    }
    
    .header-left {
        gap: 10px;
        flex-wrap: wrap;
        max-width: 100%;
    }
    
    .header {
        width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .why-grid::after {
        width: 250px;
        height: 180px;
        top: 0;
        right: 0;
        clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    
    .container {
        padding: 0 15px;
    }
    
    .why-item {
        padding: 30px 20px;
    }
    
    .atv-info {
        padding: 20px;
    }
    
    .contact-form {
        padding: 15px;
        margin: 0;
        width: calc(100% - 20px);
        max-width: calc(100vw - 40px);
    }
    
    .contact-content {
        padding: 0 10px;
        margin: 0;
        width: 100%;
    }
    
    /* Force all sections to respect viewport width */
    .contact,
    .hero,
    .about,
    .atv-showcase,
    .group-tours,
    .tour-info {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Ensure images don't cause overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix contact section specifically */
    .contact-item p {
        word-break: break-word;
    }
    
    .contact-form input,
    .contact-form textarea {
        width: 100%;
        max-width: 100%;
    }
    
    .contact {
        padding: 60px 0;
        overflow-x: hidden;
    }
    
    .contact .container {
        padding: 0 15px;
    }
}

/* Floating elements for nature effect */
.nature-particle {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    animation: leafFall 8s linear infinite;
}

/* Tour Information Section */
.tour-info {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tour-info-content {
    max-width: 1000px;
    margin: 0 auto;
}

.tour-description {
    font-size: 1.2rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 50px;
    line-height: 1.8;
    font-weight: 300;
}

.tour-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.detail-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #4caf50;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.detail-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item p {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.detail-item ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.detail-item ul li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.detail-item ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.1rem;
}

.booking-note {
    background: rgba(46, 125, 50, 0.1);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #2e7d32;
    text-align: center;
}

.booking-note p {
    margin: 0;
    font-size: 1rem;
    color: #2e7d32;
    line-height: 1.6;
}

.booking-note strong {
    color: #1b5e20;
}

/* Group Tours Gallery Section */
.group-tours {
    padding: 100px 0;
    background: #ffffff;
}

.tours-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tours-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tour Categories */
.tour-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.category-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.category-item.active {
    background: #2e7d32;
    color: white;
    border-left-color: #4caf50;
    transform: translateX(5px);
}

.category-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2e7d32;
}

.category-item.active h3 {
    color: white;
}

.category-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.category-item.active p {
    color: rgba(255, 255, 255, 0.8);
}

/* Gallery Container */
.gallery-container {
    position: relative;
    background: transparent;
    border-radius: 15px;
    overflow: visible;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery {
    display: none;
    width: 100%;
    position: relative;
}

.gallery.active {
    display: block;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.slideshow-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: -25px;
}

.next-arrow {
    right: -25px;
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow:disabled:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
}

/* Show arrows on container hover */
.slideshow-container:hover .nav-arrow {
    opacity: 1;
}

.nav-arrow {
    opacity: 0.7;
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Gallery Images and Videos - Slideshow Style */
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.gallery-slide.active {
    opacity: 1;
    position: relative;
}

.gallery-slide img,
.gallery-slide video {
    display: block;
    max-width: 1000px;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.gallery-slide:hover img,
.gallery-slide:hover video {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Ensure videos maintain aspect ratio */
.gallery-slide video {
    max-height: 550px;
}

/* For very tall images, limit height but allow more width */
.gallery-slide img {
    max-height: 550px;
}

/* Video specific styling */
.gallery-image video {
    cursor: pointer;
}

.gallery-image video::-webkit-media-controls {
    display: none;
}

.gallery-image video::-webkit-media-controls-enclosure {
    display: none;
}

/* Play button overlay for videos */
.gallery-image .video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-image:hover .video-overlay {
    opacity: 1;
}

.gallery-slide.playing .video-overlay {
    opacity: 0;
}

/* Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-content img,
.fullscreen-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullscreen-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.fullscreen-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.fullscreen-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.fullscreen-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.fullscreen-prev {
    left: 30px;
}

.fullscreen-next {
    right: 30px;
}

.fullscreen-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.fullscreen-nav:disabled:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
}

/* Image Placeholder */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #666;
    text-align: center;
    font-size: 1.1rem;
}

.image-placeholder p {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 2px dashed #ccc;
}

/* Responsive for Tour Info and Group Tours */
@media (max-width: 768px) {
    .tour-info {
        padding: 60px 0;
    }
    
    .tour-description {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .tour-details {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .detail-item {
        padding: 25px 20px;
    }
    
    .detail-item h3 {
        font-size: 1.3rem;
    }
    
    .booking-note {
        padding: 20px;
    }
    
    .tours-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tour-categories {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .category-item {
        min-width: 200px;
        flex-shrink: 0;
    }
    
    /* Mobile gallery adjustments */
    .prev-arrow {
        left: 10px;
    }
    
    .next-arrow {
        right: 10px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
        opacity: 0.9;
    }
    
    .gallery-container {
        overflow: visible;
    }
    
    .slideshow-container {
        padding: 0 10px;
    }
    
    .gallery-slide img,
    .gallery-slide video {
        max-width: 700px;
        max-height: 450px;
    }
    
    .gallery-slide video {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .tour-info {
        padding: 50px 0;
    }
    
    .tour-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .detail-item {
        padding: 20px 15px;
    }
    
    .detail-item h3 {
        font-size: 1.2rem;
    }
    
    .booking-note {
        padding: 15px;
    }
    
    .prev-arrow {
        left: 5px;
    }
    
    .next-arrow {
        right: 5px;
    }
    
    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
        opacity: 0.9;
    }
    
    .slide-counter {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .gallery-slide img,
    .gallery-slide video {
        max-width: 450px;
        max-height: 350px;
    }
    
    .gallery-slide video {
        max-height: 300px;
    }
}

/* Nature texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="20" height="20" fill="%23ffffff"/><circle cx="10" cy="10" r="1" fill="%23e8f5e8" opacity="0.3"/></svg>');
    pointer-events: none;
    z-index: -1;
}
