/* Calendar & Booking Components */

/* Availability Section */
.availability-section {
    background: var(--surface);
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cont[id] {
    scroll-margin-top: 280px;
}

.availability-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
}

.availability-section .item.small {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
}

.availability-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.availability-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #222;
}

.availability-content > p {
    font-size: 18px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.calendar-widget {
    position: static;
    width: 100%;
}

.calendar-card {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.1);
    padding: 32px 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.calendar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.calendar-card-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
}

.calendar-subtitle {
    margin: 6px 0 0 0;
    font-size: 14px;
    color: #64748b;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-nav {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background: #e0e7ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.18);
}

.calendar-month-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    font-weight: 600;
    font-size: 18px;
    color: #1f2937;
    padding: 0 24px;
    text-align: center;
}

.month-name {
    min-width: 0;
}

.calendar-grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.calendar-grid {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    padding: 22px 22px 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    border-radius: 12px;
    transition: all 0.18s ease;
    position: relative;
    cursor: default;
}

.calendar-day.other-month {
    color: #cbd5f5;
    cursor: default;
}

.calendar-day.placeholder {
    background: none;
    cursor: default;
    pointer-events: none;
}

.calendar-day.past {
    color: #d4dbe9;
    cursor: default;
    background: none !important;
}

.calendar-day.booked {
    background: #fef2f2;
    color: #b91c1c;
    cursor: default;
}

.calendar-day.available {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.08);
}

.calendar-day.available:hover {
    background: rgba(59, 130, 246, 0.16);
    transform: translateY(-1px);
}

.calendar-day.today {
    border: 1px solid rgba(59, 130, 246, 0.35);
    font-weight: 600;
}

.calendar-day.changeover {
    background: rgba(250, 204, 21, 0.18);
    color: #a16207;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.legend-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.45);
}

.legend-dot.booked {
    background: #f87171;
}

.calendar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    width: fit-content;
    margin: 12px auto 0;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
}

.calendar-cta:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 4px;
}

.calendar-note {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .availability-container {
        gap: 36px;
    }
}

@media (max-width: 880px) {
    .calendar-card {
        padding: 24px 20px 28px;
        gap: 22px;
    }

    .calendar-month-labels {
        padding: 0 12px;
        font-size: 16px;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .calendar-controls {
        position: absolute;
        top: 32px;
        right: 20px;
        gap: 8px;
    }

    .calendar-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calendar-grid {
        padding: 18px 16px 20px;
    }
}

@media (max-width: 560px) {
    .availability-content h2 {
        font-size: 30px;
    }

    .availability-content > p {
        font-size: 16px;
    }

    .calendar-card {
        border-radius: 20px;
        padding: 20px 16px 24px;
        gap: 18px;
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .calendar-card-header {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 8px;
        position: relative;
        margin-bottom: -20px;
    }

    .calendar-card-title {
        width: 100%;
    }

    .calendar-controls {
        width: auto;
        justify-content: flex-end;
        gap: 12px;
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .calendar-nav {
        width: 32px;
        height: 32px;
    }

    .calendar-weekdays {
        gap: 3px;
    }

    .calendar-days {
        gap: 4px;
    }

    .weekday {
        font-size: 11px;
    }

    .calendar-day {
        font-size: 13px;
        border-radius: 8px;
        min-height: 36px;
    }

    .calendar-legend {
        justify-content: center;
    }

    .calendar-cta {
        width: 70%;
    }

    .calendar-month-labels {
        padding: 0;
        font-size: 15px;
    }

    .calendar-grid-container {
        gap: 16px;
    }

    .calendar-grid {
        padding: 14px 12px 16px;
    }

    .calendar-controls {
        top: 24px;
        right: 16px;
    }

    #nextCalendar,
    .calendar-month-labels .month-name:last-child {
        display: none;
    }

    .calendar-month-labels {
        text-align: left;
    }
}

/* Testimonials */
.testimonials-section {
    background: var(--surface);
    padding: 80px 0;
}

.testimonials-section .item {
    max-width: 1170px;
    width: 94%;
    margin: 0 auto;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 400;
    color: #222;
    margin-bottom: 60px;
    letter-spacing: 0.5px;
}

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

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
}

.testimonial-content p:before {
    content: '"';
    font-size: 48px;
    color: var(--accent);
    position: absolute;
    top: -20px;
    left: -20px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.author-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.rating {
    color: #ffd700;
    font-size: 14px;
    letter-spacing: 2px;
}

/* FAQ Section */
.faq-section {
    background: var(--surface);
    padding: 60px 0;
}

.faq-section h2 {
    text-align: center !important;
    font-size: 32px;
    font-weight: 400;
    color: #222;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.faq-section .item {
    max-width: 1170px;
    width: 94%;
    margin: 0 auto;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-icon {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.01);
}

.faq-answer p {
    margin: 0;
    padding: 0 24px 24px 24px;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}
