/* General styles for text and layout */
html {
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    padding: 0;
    min-height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fa;
    color: #1d1d1f;
    line-height: 1.5;
    letter-spacing: -0.022em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    padding: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 100%;
}

.main-width {
    width: calc(100% - 32px);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.tagline {
    font-size: clamp(16px, 4vw, 18px);
    color: #666;
    padding-top: 12px;
}

h1 {
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 700;
    margin-bottom: 16px;
}

svg {
    font-size: 10px;
}

.footer-content, .about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
}

.footer-title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
}

.footer-description .highlight {
    color: #ffa436;
    font-weight: 600;
}

.about-title {
    font-size: clamp(24px, 5vw, 32px);
    margin: 0 0 16px 0;
    color: #1d1d1f;
}

.about-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: #1d1d1f;
}

/* Specific styles for elements */
.image-box {
    flex: none;
    height: 500px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 0;
    font-size: 0;
    display: block;
    width: 100%;
    max-width: 800px;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 20px 20px 0 0;
}

.navigation-group {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: -20px auto 0;
    font-size: 16px;
    line-height: normal;
    width: calc(100% - 32px);
    max-width: 800px;
}

.activities-scroll {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.activities-scroll::-webkit-scrollbar {
    display: none;
}

.activity-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 100px;
    margin-right: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}

.activity-tag:last-child {
    margin-right: 0;
}

.tag-surf { background: #E8F4F8; }
.tag-sail { background: #E3EFE3; }
.tag-raft { background: #FDF2E9; }
.tag-dolphins { background: #EEE9F5; }
.tag-hike { background: #E6F2EF; }

.trip-date, .trip-label {
    width: 100%;
    color: #444;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 600;
    padding: 8px clamp(15px, 4vw, 35px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.trip-label {
    font-size: clamp(14px, 4vw, 16px);
}

.details-section, .step-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.details-section h2, .step-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: 0.004em;
}

.details-section p, .step-list li {
    margin: 12px 0;
    font-size: 17px;
    color: #333;
}

.step-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.step-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #ff9800;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 12px;
    font-weight: 600;
    font-size: 14px;
}

.step-description {
    margin-top: 8px;
    color: #666;
    padding-left: 36px;
}

.back-button svg {
    width: 24px;
    height: 24px;
    fill: #1d1d1f;
    display: block;
}

.back-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    text-decoration: none;
}

.back-button:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(15px, 4vw, 25px) clamp(15px, 4vw, 35px);
}

.nav-links {
    display: flex;
    gap: clamp(15px, 4vw, 30px);
}

nav a:not(.join-trip) {
    text-decoration: underline;
    color: #333;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 500;
    padding: clamp(10px, 2vw, 20px) 0;
    transition: color 0.3s ease;
}

nav a:hover:not(.join-trip) {
    color: #007AFF;
}

.join-trip {
    background: #ffa436;
    color: #fff;
    text-decoration: none;
    padding: clamp(12px, 3vw, 20px) clamp(20px, 4vw, 40px);
    border-radius: 50px;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s ease;
}

.join-trip:hover {
    background: #005bb5;
    transform: scale(1.05);
}

/* Adjust image slider to display images horizontally */
.image-slider {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.image-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.slider-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 160px;
}

.slider-image {
    flex: 0 0 auto;
    width: 160px;
    height: 284px;
    scroll-snap-align: start;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

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

.footer {
    width: 100%;
    background: #f5f7fa;
    display: flex;
    color: #666;
    padding: 40px 0;
    overflow-x: hidden;
}

.footer-content {
    width: calc(100% - 32px);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.site-footer {
    width: 100%;
    padding: 32px 0;
    background: #f5f7fa;
    margin-top: 0;
}

.site-footer-content {
    width: calc(100% - 32px);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.site-footer-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer-links a {
    color: #424245;
    text-decoration: none;
    font-size: 14px;
}

.site-footer-links a:hover {
    color: #1d1d1f;
    text-decoration: underline;
}

.site-footer-tagline {
    font-size: 14px;
    color: #6e6e73;
}

.site-footer-social {
    display: flex;
    align-content: flex-end;
}

.about-section {
    width: 100%;
    position: relative;
    background: #f5f7fa;
    padding: 40px 0;
}

.about-content {
    width: calc(100% - 32px);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.about-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.about-text {
    text-align: left;
    flex: 1;
}

.about-title {
    font-size: clamp(24px, 5vw, 32px);
    margin: 0 0 16px 0;
    color: #1d1d1f;
}

.about-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: #1d1d1f;
}

@media (max-width: 600px) {
    .about-content {
        gap: 24px;
    }
    
    .about-image {
        width: 100px;
        height: 100px;
    }

    .about-text {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .main-width {
        width: calc(100% - 30px);
    }
    
    .container {
        padding: 0;
    }

    h1 {
        font-size: 30px;
    }

    .nav-container {
        width: calc(100% - 30px);
    }

    .trip-label {
        padding: 10px 15px;
    }

    nav {
        padding: 12px 15px;
        gap: 10px;
    }

    .nav-links {
        gap: 12px;
    }

    nav a:not(.join-trip) {
        padding: 8px 0;
    }

    .join-trip {
        padding: 10px 20px;
    }

    .site-footer {
        padding: 16px 0;
        margin-top: 40px;
        margin-bottom: 32px;
    }
    
    .site-footer-content {
        width: calc(100% - 32px);
        gap: 10px;
    }

    .site-footer-top {
        gap: 10px;
    }

    .site-footer-nav-header {
        padding: 4px 10px;
        font-size: 11px;
    }

    .image-slider {
        gap: 16px;
        margin: 0;
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .slider-item {
        width: 140px;
    }

    .slider-image {
        width: 140px;
        height: 249px;
    }
}
