/* Availability Calendar Modal Styles */
.availability-calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 20px;
    box-sizing: border-box;
}

.availability-calendar-modal.active {
    display: flex;
}

.calendar-modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--spacing-xl);
    position: relative;
    box-sizing: border-box;
}

.calendar-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.calendar-modal-close:hover {
    color: var(--error-color);
}

.calendar-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.calendar-header h2 {
    margin: 0 0 var(--spacing-sm);
    color: var(--secondary-color);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.available {
    background: var(--success-color, #4CAF50);
}

.legend-dot.unavailable {
    background: #ccc;
}

.legend-dot.selected {
    background: var(--primary-color);
}

/* Calendar Navigation */
.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.calendar-navigation h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.calendar-nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.calendar-nav-btn:hover {
    background: var(--accent-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 8px 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #e8f5e9;
    color: var(--text-primary);
}

.calendar-day:hover:not(.unavailable):not(.empty):not(.past) {
    background: var(--primary-color);
    color: white;
}

.calendar-day.unavailable {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.past {
    background: #fafafa;
    color: #ddd;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.calendar-day.selected-start,
.calendar-day.selected-end {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.calendar-day.selected-range {
    background: rgba(var(--primary-rgb), 0.3); /* Need fallback or variable */
    background: #b3e5fc; /* Fallback light blue/primary */
    color: var(--text-primary);
}

/* Actions */
.calendar-actions {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.calendar-actions .btn {
    min-width: 200px;
}

.calendar-actions .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background: #ccc;
    border-color: #ccc;
}

/* List View Styles for 'Alle Boten' */
.modal-boats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boat-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.boat-list-row:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.boat-list-row h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
    flex: 2;
}

.boat-list-row .boat-details {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 2;
    justify-content: flex-end;
}

.boat-fleet-grid {
        display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
        gap: 1.5rem;
        min-height: 200px;
}

.category-filter {
    cursor: pointer;
    transition: all 0.2s;
}
.category-filter.active {
    border: 2px solid var(--primary-color);
    background: #f0f7ff;
}

@media (max-width: 768px) {
    .calendar-modal-content {
        padding: var(--spacing-md);
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .boat-list-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .boat-list-row .boat-details {
        width: 100%;
        justify-content: space-between;
    }
}

/* Modern FAQ Accordion Styles */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

details.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

details.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #ddd;
}

details.faq-item[open] {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--primary-color, #0056b3);
}

details.faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color, #333);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Hide default marker in Webkit/Chrome */
details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary:focus {
    outline: none;
}

.faq-question {
    font-size: 1.1rem;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color, #0056b3);
    border-radius: 2px;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 14px;
    transition: transform 0.3s ease;
}

details.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

details.faq-item[open] .faq-icon::after {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #666;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
