html, body {
    overflow-x: hidden;
}

/* Base styles and animations */
.gallery-item {
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f4f6;
    border-top-color: #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.gallery-item img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: relative;
    z-index: 2;
}

.gallery-item img.loaded {
    opacity: 1;
}

/* Gradient Backgrounds */
.gradient-bg-primary {
    background: linear-gradient(135deg, #4A90E2 0%, #1E3D6B 100%);
}

.gradient-bg-light {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

/* Decorative Elements */
.wave-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-pattern svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.dotted-pattern {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(#4A90E2 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.1;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    color: white;
    transition: color 0.3s ease;
}

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

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

/* Button Styles */
.primary-button {
    background: #4A90E2;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.25);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(74, 144, 226, 0.35);
    background: #1E3D6B;
}

/* Section Headers */
.section-title {
    position: relative;
    display: inline-block;
    color: #1E3D6B;
    font-style: italic;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #4A90E2;
}

/* Gallery Enhancements */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

/* Form Styling */
.form-input {
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Scroll to Top Button */
#scrollToTop {
    z-index: 100;
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4A90E2;
    color: white;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#scrollToTop.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#scrollToTop:hover {
    background: #1E3D6B;
    transform: translateY(-2px);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

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

/* Spoiler styles */
.spoiler {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.spoiler-button {
    width: 100%;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: none;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.spoiler-button:hover {
    background-color: #e9ecef;
}

.spoiler-icon {
    transition: transform 0.3s;
}

.spoiler-button.active .spoiler-icon {
    transform: rotate(180deg);
}

.spoiler-content {
    display: none;
    padding: 20px;
}

/* Excursion list styles */
.excursion-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.excursion-table th {
    background-color: #3498db;
    color: white;
    padding: 12px;
    text-align: left;
    border: 1px solid #2980b9;
}

.excursion-table td {
    padding: 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.excursion-name {
    font-weight: bold;
    color: #2c3e50;
}

.excursion-name .sub-name { 
    display: block;
    font-size: smaller;
    margin-top: 0.2em;
}

.price {
    text-align: right;
    font-weight: bold;
    color: #27ae60;
}

.footer-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .excursion-table {
        display: block;
        overflow-x: auto;
    }
}

/* Previous styles remain the same */

/* Additional styles for price columns */
.excursion-table td[colspan="2"] {
    text-align: center;
    background-color: #f8f9fa;
}

.excursion-table td.price {
    min-width: 100px;
}

/* Highlight single price rows */
.excursion-table tr:has(td[colspan="2"]) {
    background-color: #f8f9fa;
}