/* Single Event Page Styles */

/* Hero Section with Parallax */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI4MDAiIHZpZXdCb3g9IjAgMCAxMjAwIDgwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZGllbnQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPgo8c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjojMDA3N2JlO3N0b3Atb3BhY2l0eToxIiAvPgo8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDMzNjY7c3RvcC1vcGFjaXR5OjEiIC8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPHJlY3Qgd2lkdGg9IjEyMDAiIGhlaWdodD0iODAwIiBmaWxsPSJ1cmwoI2dyYWRpZW50KSIvPgo8L3N2Zz4=');
    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 {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: #fff;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-badges .badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.book-now-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
    color: white;
    text-decoration: none;
}

/* Tags Section */
.tags-section {
    background: white;
    padding: 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tag-item {
    text-align: center;
    background: #f8f9fa;
    padding: 20px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.tag-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.tag-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 5px;
}

.tag-label {
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description Section */
.description-section {
    padding: 80px 0;
    background: white;
}

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

.description-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

.description-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.description-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

/* Yacht Section */
.yacht-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.yacht-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Daily Itinerary */
.itinerary-section {
    padding: 80px 0;
    background: white;
}

.day-item {
    background: white;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.day-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.day-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 15px;
}

.day-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.day-content {
    padding: 30px;
}

.day-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

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

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-item:nth-child(1) { background: linear-gradient(135deg, #ff9a56, #ff6b35); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #ffecd2, #fcb69f); }

/* Captain Section */
.captain-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.captain-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.captain-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.captain-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.captain-role {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 20px;
}

.captain-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: white;
}

.map-container {
    background: linear-gradient(135deg, #667eea, #764ba2);
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin-top: 30px;
}

/* Q&A Section */
.qa-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.qa-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 25px 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.qa-question {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.qa-answer {
    color: #555;
    line-height: 1.7;
}

/* Contact Form */
.contact-section {
    padding: 80px 0;
    background: #2c3e50;
    color: white;
}

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

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.submit-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .description-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tags-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .day-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Equipment Section */
.equipment-section {
    padding: 80px 0;
    background: white;
}

.equipment-list-component {
    max-width: 800px;
    margin: 0 auto;
}

.equipment-category {
    margin-bottom: 40px;
}

.equipment-category-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.equipment-items {
    display: grid;
    gap: 15px;
}

.equipment-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.equipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.equipment-name {
    font-weight: 600;
    color: #2c3e50;
}

.equipment-requirement-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.requirement-required {
    background: #dc3545;
    color: white;
}

.requirement-recommended {
    background: #ffc107;
    color: #212529;
}

.requirement-optional {
    background: #28a745;
    color: white;
}

.equipment-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.equipment-notes {
    margin-top: 30px;
    padding: 20px;
    background: #e9ecef;
    border-radius: 10px;
}

.equipment-note {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
}

.captain-profile-link {
    text-align: center;
    margin-top: 30px;
}

/* Yacht Info Component Styles */
.yacht-info-component {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.yacht-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.yacht-header h3 a {
    color: inherit;
    text-decoration: none;
}

.yacht-header h3 a:hover {
    color: #007bff;
}

.yacht-subtitle {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.yacht-model {
    color: #666;
    font-size: 1.1rem;
}

.yacht-year {
    opacity: 0.8;
}

.yacht-type-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.yacht-image {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

.yacht-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.yacht-quick-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-icon {
    font-size: 1.2rem;
}

.spec-label {
    font-weight: 500;
    color: #495057;
}

.spec-value {
    font-weight: 600;
    color: #007bff;
}

.yacht-detailed-info {
    margin: 30px 0;
}

.yacht-feature {
    margin-bottom: 20px;
}

.yacht-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.yacht-actions {
    text-align: center;
    margin-top: 30px;
}

/* Enhanced Day Photo Grid Styles */
.day-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
    width: 100%;
}

/* For 2 photos - make them equal width */
.day-photo-grid:has(.photo-preview:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
}

/* For 3 photos - equal width */
.day-photo-grid:has(.photo-preview:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

/* For 4 photos - 2x2 grid */
.day-photo-grid:has(.photo-preview:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* For 5+ photos - responsive grid */
.day-photo-grid:has(.photo-preview:nth-child(n+5)) {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.photo-preview {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.photo-preview:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-preview:hover .photo-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 24px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.photo-preview:hover .zoom-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Fallback day activities */
.day-activities {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.activity-emoji {
    font-size: 2rem;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.activity-emoji:hover {
    transform: scale(1.05);
    background: #e9ecef;
}

/* Custom Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10002;
    padding: 5px;
    line-height: 1;
}

.modal-close:hover {
    opacity: 0.7;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Mobile responsiveness for enhanced photo grid */
@media (max-width: 768px) {
    .day-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* For mobile, always use 2 columns for better fit */
    .day-photo-grid:has(.photo-preview:nth-child(2):last-child),
    .day-photo-grid:has(.photo-preview:nth-child(3):last-child),
    .day-photo-grid:has(.photo-preview:nth-child(4):last-child),
    .day-photo-grid:has(.photo-preview:nth-child(n+5)) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-preview {
        aspect-ratio: 1;
    }
    
    .modal-close {
        top: -35px;
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .day-photo-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .day-photo-grid:has(.photo-preview:nth-child(2):last-child),
    .day-photo-grid:has(.photo-preview:nth-child(3):last-child),
    .day-photo-grid:has(.photo-preview:nth-child(4):last-child),
    .day-photo-grid:has(.photo-preview:nth-child(n+5)) {
        grid-template-columns: 1fr;
    }
    
    .photo-preview {
        aspect-ratio: 16/9;
    }
}

/* Alternative layout for cases where :has() is not supported */
@supports not (selector(:has(*))) {
    .day-photo-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: space-between;
    }
    
    .photo-preview {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 200px;
        max-width: 300px;
    }
    
    @media (max-width: 768px) {
        .photo-preview {
            flex: 1 1 calc(50% - 8px);
            min-width: 150px;
        }
    }
    
    @media (max-width: 480px) {
        .photo-preview {
            flex: 1 1 100%;
            min-width: unset;
        }
    }
}