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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 90px;
    width: auto;
    border-radius: 5px;
}

.nav-logo h2 {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2d5a27;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d5a27;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* Анимация превращения бургера в крестик */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
    box-shadow: 0 10px 30px rgba(45, 90, 39, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(45, 90, 39, 0.4);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2d5a27;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.about-text h3 {
    color: #2d5a27;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    margin-bottom: 2rem;
}

.about-text li {
    padding: 0.5rem 0;
    color: #555;
}

.about-text li i {
    color: #2d5a27;
    margin-right: 10px;
    width: 20px;
}

.about-text li i.fa-castle {
    color: #00ff00 !important;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link.telegram {
    background: #0088cc;
    color: white;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(0.95) brightness(1.02) saturate(1.05);
    transition: all 0.3s ease;
}

.about-image img:hover {
    filter: contrast(1.0) brightness(1.05) saturate(1.1);
    transform: scale(1.02);
}

/* Team Section */
.team {
    padding: 100px 0;
    background: white;
}

.team-intro {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.team-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

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

.feature i {
    font-size: 3rem;
    color: #2d5a27;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #2d5a27;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Calendar Section */
.calendar-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.calendar-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.nav-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.nav-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

#currentMonth {
    font-size: 1.8em;
    color: var(--text-dark);
    min-width: 250px;
    text-align: center;
    font-weight: 600;
}

.calendar-container {
    max-width: 800px;
    margin: 0 auto 40px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calendar-grid {
    background: #f8f9fa;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--primary-color);
    color: white;
}

.weekdays div {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dee2e6;
}

.day {
    background: white;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border: 2px solid transparent;
}

.day:hover {
    background: #e8f5e8;
    transform: scale(1.02);
}

.day.other-month {
    color: #adb5bd;
    background: #f8f9fa;
}

.day.available {
    background: #d4edda;
    border-left: 4px solid var(--primary-color);
}

.day.booked {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.day.traveling {
    background: #cce7ff;
    border-left: 4px solid var(--secondary-color);
    color: #0066cc;
    font-weight: bold;
}

.day.today {
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

.day.selected {
    border: 2px solid var(--primary-color) !important;
    background: #e8f5e8 !important;
    transform: scale(1.02);
}

.trip-label {
    font-size: 0.75em;
    margin-top: 5px;
    font-weight: bold;
    line-height: 1.2;
}

.calendar-legend {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
}

.calendar-legend h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.2em;
}

.legend-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--text-dark);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}

.legend-color.available {
    background: #4CAF50; /* Зеленый для "Доступно для бронювання" */
}

.legend-color.booked {
    background: #ffc107; /* Желтый остается для "Заброньовано" */
}

.legend-color.traveling {
    background: #2196F3; /* Голубой для "У подорожі" */
}

.trip-details {
    max-width: 600px;
    margin: 0 auto;
    background: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.trip-details h4 {
    margin-bottom: 15px;
    margin-left: 10px;
    color: var(--text-dark);
    font-size: 1.2em;
}

#tripDetails {
    color: var(--text-light);
    line-height: 1.6;
    margin-left: 10px;
}

/* Desktop Calendar Layout */
@media (min-width: 769px) {
    .calendar-content {
        display: flex;
        gap: 40px;
        align-items: flex-start;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .calendar-container {
        max-width: 650px;
        margin: 0;
        flex: 0 0 650px;
    }
    
    .calendar-right-column {
        flex: 0 0 350px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .calendar-legend {
        margin: 0;
        text-align: left;
        background: white;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        height: fit-content;
    }
    
    .legend-items {
        justify-content: flex-start;
        flex-direction: column;
        gap: 15px;
    }
    
    .weekdays div {
        padding: 12px;
        font-size: 1em;
    }
    
    .day {
        padding: 12px 8px;
        min-height: 60px;
        font-size: 1em;
    }
    
    .trip-label {
        font-size: 0.7em;
    }
    
    .trip-details {
        margin: 0;
        background: white;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        text-align: left;
    }
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-navigation {
        gap: 15px;
    }

    #currentMonth {
        font-size: 1.4em;
        min-width: 200px;
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 1em;
    }

    .weekdays div {
        padding: 10px 5px;
        font-size: 0.9em;
    }

    .day {
        padding: 10px 5px;
        min-height: 60px;
    }

    .trip-label {
        font-size: 0.7em;
    }

    .legend-items {
        gap: 15px;
    }

    .legend-item {
        font-size: 0.8em;
    }
}

.trip-date {
    text-align: center;
    background: #2d5a27;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
}

.trip-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.trip-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.trip-info h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.trip-info i {
    color: white;
    margin-right: 0.5rem;
    width: 15px;
}

.trip-info i {
    color: #2d5a27;
    margin-right: 0.5rem;
    width: 15px;
}

.trip-price {
    text-align: center;
}

.trip-price span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5a27;
}

/* Booking Section */
.booking {
    padding: 100px 0;
    background: #f8f9fa;
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.booking-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    z-index: 10;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    overflow: visible;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d5a27;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group select {
    /* Забезпечуємо відкриття випадаючого списку вниз */
    position: relative;
    z-index: 1;
    /* Примусово відкриваємо список вниз */
    direction: ltr;
    appearance: menulist;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

.form-group select option {
    /* Стилі для опцій випадаючого списку */
    padding: 8px 12px;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5a27;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 90, 39, 0.3);
}

.booking-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.booking-info h3 {
    color: #2d5a27;
    margin-bottom: 1rem;
    font-weight: 600;
}

.booking-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.booking-info li {
    padding: 0.5rem 0;
    color: #555;
}

.booking-info li i {
    color: #2d5a27;
    margin-right: 10px;
    width: 20px;
}

/* Footer */
.footer {
    background: #2d5a27;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: #b8d4b8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-section .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
}

.telegram-link {
    color: #b8d4b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.telegram-link:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8d4b8;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 2rem 0 1.5rem 0;
    padding-bottom: 1.5rem;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: #b8d4b8;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-btn:hover {
    background: #4a7c59;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(74, 124, 89, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .booking-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .trip-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .team-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .booking-form,
    .booking-info {
        padding: 2rem;
    }
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
    background: white;
}

.reviews-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.review-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info h4 {
    color: #2d5a27;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rating {
    display: flex;
    gap: 0.2rem;
}

.rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-date {
    color: #888;
    font-size: 0.9rem;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-trip {
    color: #2d5a27;
    font-weight: 500;
    font-size: 0.9rem;
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d5a27;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* Responsive Design for Reviews */
@media (max-width: 768px) {
    .reviews-content {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .reviews-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

.trip-date {
    text-align: center;
    background: #2d5a27;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
}

.trip-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.trip-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.trip-info h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.trip-info i {
    color: white;
    margin-right: 0.5rem;
    width: 15px;
}

.trip-info i {
    color: #2d5a27;
    margin-right: 0.5rem;
    width: 15px;
}

.trip-price {
    text-align: center;
}

.trip-price span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5a27;
}

/* Trips Section */
.trips-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.trip-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.2);
}

.trip-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.synevyr-placeholder {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.petros-placeholder {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.hoverla-placeholder {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.bakota-placeholder {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.trip-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.trip-item:hover .trip-overlay {
    transform: translateY(0);
}

.trip-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.trip-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.trip-info p {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin: 0;
    max-width: 250px;
    display: block;
}

.trip-btn {
    background: #4CAF50;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.trip-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.trip-btn i {
    font-size: 0.8rem;
}

/* Page Header */
.page-header {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/castle8tourists.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
    color: white;
    position: relative;
    min-height: 400px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;

    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

.page-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design for Page Header */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
        background-attachment: scroll;
        min-height: 300px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: #f8f9fa;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    color: #2d5a27;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    color: #2d5a27;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem 0;
    max-height: 0;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 500px;
    overflow: hidden;
}


.faq-answer p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}



/* Responsive FAQ */
@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }

    .faq-question {
        padding: 1rem 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1rem;
        max-height: 500px;
        overflow: hidden;
    }
}

/* Filter Panel */
.filter-panel {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #2d5a27;
    color: #2d5a27;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.2);
}

.filter-btn.active {
    background: #2d5a27;
    border-color: #2d5a27;
    color: white;
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
}

.filter-btn i {
    font-size: 0.8rem;
}

/* Trip items animation */
.trip-item {
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

/* Trip Details Page Styles */
.trip-details {
    padding: 80px 0;
    background: #f8f9fa;
    margin: 0 auto;
}

.trip-content {
    max-width: 800px;
    margin: 0 auto;
}

.trip-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.trip-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.trip-schedule {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trip-schedule h2 {
    color: #2d5a27;
    margin-bottom: 2rem;
    text-align: center;
}

.schedule-item {
    display: flex;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.schedule-item.highlight {
    background: linear-gradient(135deg, #4CAF50, #2d5a27);
    color: white;
}

.schedule-item.adventure {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.schedule-time {
    min-width: 100px;
    text-align: center;
    margin-right: 1.5rem;
}

.schedule-time i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4CAF50;
}

.schedule-item.highlight .schedule-time i,
.schedule-item.adventure .schedule-time i {
    color: white;
}

.schedule-time span {
    font-weight: 600;
    font-size: 0.9rem;
}

.schedule-content h3 {
    margin-bottom: 0.5rem;
    color: #2d5a27;
}

.schedule-item.highlight .schedule-content h3,
.schedule-item.adventure .schedule-content h3 {
    color: white;
}

.trip-info-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trip-info-box h3 {
    color: #2d5a27;
    margin-bottom: 1.5rem;
    text-align: center;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.checklist li i {
    color: #4CAF50;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.trip-booking {
    background: linear-gradient(135deg, #4CAF50, #2d5a27);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trip-booking h3 {
    margin-bottom: 1rem;
}

.booking-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #2d5a27;
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2d5a27;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .schedule-item {
        flex-direction: column;
        text-align: center;
    }

    .schedule-time {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .booking-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1.2rem;
    }

    .hero-buttons .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* Photo Gallery Styles */
.photo-gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.photo-gallery .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.photo-gallery .section-header h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.photo-gallery .section-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-image-wrapper {
        height: 250px;
    }

    .photo-gallery .section-header h2 {
        font-size: 2rem;
    }

    .gallery-overlay i {
        font-size: 2.5rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }

    .container {
        padding: 0 10px;
    }
}

/* Основные стили для галереи */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0;
        padding: 0;
        width: calc(100% - 30px);
        max-width: calc(100vw - 30px);
    }

    .trip-item {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .trip-image {
        width: 100%;
        max-width: 100%;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .gallery-grid {
        gap: 10px;
        width: calc(100% - 20px);
        max-width: calc(100vw - 20px);
    }
}

/* Дополнительная защита от переполнения */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.gallery {
    overflow-x: hidden;
    max-width: 100%;
}

/* Основные стили для сетки галереи */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.trip-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.trip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.2);
}

.trip-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
    .trips-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .trips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
        margin: 20px auto 0;
        width: calc(100% - 20px);
        max-width: calc(100vw - 20px);
    }

    .trip-item {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .trip-image {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .trips-grid {
        gap: 1rem;
        padding: 0 5px;
        width: calc(100% - 10px);
        max-width: calc(100vw - 10px);
    }
}

/* Instagram CTA Section */
.instagram-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.instagram-cta .cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.instagram-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.instagram-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #2d5a27;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.instagram-btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #2d5a27;
    text-decoration: none;
}

.instagram-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .instagram-cta {
        padding: 60px 0;
    }
    
    .instagram-cta h2 {
        font-size: 2rem;
    }
    
    .instagram-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Floating Action Bar */
.floating-action-bar {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: top 0.3s ease-in-out;
    padding: 12px 0;
    border-bottom: 2px solid rgba(45, 90, 39, 0.2);
    height: 70px;
    display: flex;
    align-items: center;
}



.floating-action-bar.show {
    top: 70px;
}

.floating-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.floating-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
    box-shadow: 0 2px 10px rgba(45, 90, 39, 0.3);
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.4);
    background: linear-gradient(135deg, #4a7c59, #2d5a27);
}

.floating-btn:visited {
    color: white;
}

.floating-btn i {
    font-size: 14px;
}

/* Responsive для мобільних пристроїв */
@media (max-width: 768px) {
    .floating-action-bar {
        height: 80px;
        padding: 15px 0;
    }

    .floating-action-bar.show {
        top: 70px;
    }

    .floating-buttons {
        gap: 12px;
        padding: 0 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .floating-btn {
        padding: 12px 18px;
        font-size: 14px;
        gap: 8px;
        min-width: 140px;
        justify-content: center;
    }

    .floating-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .floating-action-bar {
        height: 90px;
        padding: 10px 0;
    }

    .floating-buttons {
        flex-direction: row;
        gap: 8px;
        padding: 0 15px;
        justify-content: space-between;
    }

    .floating-btn {
        flex: 1;
        max-width: 48%;
        padding: 10px 12px;
        font-size: 12px;
        gap: 6px;
        min-width: auto;
        text-align: center;
    }

    .floating-btn i {
        font-size: 12px;
    }
}

/* Trip Locations Section */
.trip-locations {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.location-item {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.location-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.location-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.location-item p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .location-item {
        padding: 25px 15px;
    }
}