/* ==========================================================================
   Scheda Barca — single-barca.php
   Figma node 196:803
   ========================================================================== */

/* ---------- Page ---------- */
.scheda-page {
    background: #fff;
    padding-top: 72px; /* header height */
}

/* ---------- Header: Breadcrumb + Share ---------- */
.scheda-header {
    background: #fff;
    padding: 16px 80px;
    border-bottom: 1px solid #f0f0f0;
}
.scheda-header__inner {
    max-width: calc(var(--container-max) + 160px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.scheda-breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 13px;
}
.scheda-breadcrumb a {
    color: #808080;
}
.scheda-breadcrumb a:hover {
    color: var(--coral-accent);
}
.scheda-breadcrumb__sep {
    color: #bfbfbf;
}
.scheda-breadcrumb__current {
    color: #1a1a1a;
    font-weight: var(--fw-medium);
}
.scheda-share {
    display: flex;
    align-items: center;
    gap: 8px;
}
.scheda-share__label {
    font-size: 13px;
    color: #808080;
}
.scheda-share__btn {
    background: #f5f5f5;
    border: none;
    border-radius: var(--radius-full);
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: var(--fw-medium);
    color: #4d4d4d;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.scheda-share__btn:hover {
    background: #ebebeb;
}

/* ---------- Content: Two Column ---------- */
.scheda-content {
    padding: 32px 80px 48px;
}
.scheda-content__inner {
    max-width: calc(var(--container-max) + 160px);
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.scheda-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.scheda-sidebar {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}

/* ---------- Gallery ---------- */
.scheda-gallery {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.scheda-gallery__main {
    border-radius: 20px;
    overflow: hidden;
    background: #4da6b2;
    flex: 1;
    min-width: 0;
    aspect-ratio: 4 / 3;
}
.scheda-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.scheda-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100px;
    flex-shrink: 0;
}
.scheda-gallery__thumb {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2.5px solid transparent;
    cursor: pointer;
    background: #66b2bf;
    transition: border-color var(--transition-fast);
}
.scheda-gallery__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.scheda-gallery__thumb--active {
    border-color: var(--coral-accent);
}
.scheda-gallery__thumb--more {
    background: #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scheda-gallery__thumb--more span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: var(--fw-medium);
    color: #666;
}

/* ---------- Specs ---------- */
.scheda-specs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.scheda-specs__title {
    font-size: 32px;
    color: #1a1a1a;
}
.scheda-specs__subtitle {
    font-size: 14px;
    color: #808080;
}
.scheda-specs__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.scheda-specs__stars {
    font-size: 15px;
    font-weight: var(--fw-bold);
    color: var(--coral-accent);
}
.scheda-specs__grid {
    display: flex;
    flex-direction: column;
}
.scheda-specs__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid #ededed;
}
.scheda-specs__row:last-child {
    border-bottom: none;
}
.scheda-specs__label {
    color: #808080;
}
.scheda-specs__value {
    color: #1a1a1a;
    font-weight: var(--fw-medium);
}

/* ---------- Divider ---------- */
.scheda-divider {
    border: none;
    height: 1px;
    background: #ededed;
    margin: 0;
}

/* ---------- Section Title ---------- */
.scheda-section-title {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: var(--fw-bold);
    color: #1a1a1a;
}

/* ---------- Dotazioni ---------- */
.scheda-dotazioni {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.scheda-dotazioni__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.scheda-chip {
    background: #ebf7f5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: var(--fw-medium);
    color: #1a1a1a;
}

/* ---------- Descrizione ---------- */
.scheda-descrizione {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.scheda-descrizione__text {
    font-size: 15px;
    color: #5e5e5e;
    line-height: 24px;
}
.scheda-descrizione__text p {
    margin-bottom: 16px;
}
.scheda-descrizione__text p:last-child {
    margin-bottom: 0;
}

/* ---------- Cosa Include ---------- */
.scheda-include {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.scheda-include__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.scheda-include__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: var(--fw-medium);
}
.scheda-include__item--yes {
    background: #ebf7f5;
    color: #1a1a1a;
}
.scheda-include__item--yes .scheda-include__icon {
    color: #22c55e;
    font-weight: var(--fw-bold);
}
.scheda-include__item--no {
    background: #f5f5f5;
    color: #808080;
}
.scheda-include__item--no .scheda-include__icon {
    color: #999;
    font-weight: var(--fw-bold);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

/* ---------- Calendar ---------- */
.scheda-calendar {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.scheda-calendar__title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: var(--fw-bold);
    color: #1a1a1a;
}
.scheda-calendar__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.scheda-calendar__arrow {
    background: none;
    border: none;
    font-size: 20px;
    color: #4d4d4d;
    cursor: pointer;
    padding: 4px 8px;
    font-weight: var(--fw-medium);
}
.scheda-calendar__month {
    font-size: 14px;
    font-weight: var(--fw-bold);
    color: #1a1a1a;
}
.scheda-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: var(--fw-medium);
    color: #808080;
}
.scheda-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.scheda-calendar__day {
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: var(--fw-medium);
    color: #1a1a1a;
    cursor: default;
    transition: all var(--transition-fast);
}
.scheda-calendar__day--free {
    background: #ebf7f5;
    cursor: pointer;
}
.scheda-calendar__day--free:hover {
    background: #d4f0ea;
}
.scheda-calendar__day--busy {
    background: #ffebeb;
    color: #e54d4d;
    font-weight: var(--fw-regular);
}
.scheda-calendar__day--partial {
    background: linear-gradient(135deg, #ebf7f5 50%, #ffebeb 50%);
    cursor: pointer;
}
.scheda-calendar__day--empty {
    background: transparent;
}
.scheda-calendar__day--selected {
    background: var(--coral-accent);
    color: #fff;
    font-weight: var(--fw-bold);
}
.scheda-calendar__day--past {
    background: #f9f9f9;
    color: #ccc;
}
.scheda-calendar__legend {
    display: flex;
    gap: 16px;
}
.scheda-calendar__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #808080;
}
.scheda-calendar__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}
.scheda-calendar__dot--free {
    background: #ebf7f5;
}
.scheda-calendar__dot--busy {
    background: #ffebeb;
}
.scheda-calendar__error {
    font-size: 13px;
    color: #e54d4d;
    font-weight: var(--fw-medium);
    text-align: center;
    padding: 8px 0 0;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Price Panel ---------- */
.scheda-price {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.scheda-price__date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}
.scheda-price__date span {
    color: #666;
}
.scheda-price__date strong {
    color: var(--navy-deep);
    font-weight: var(--fw-semibold);
}
.scheda-price__divider {
    border: none;
    height: 1px;
    background: #e6e6e6;
    margin: 0;
}
.scheda-price__slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    background: #faf7f3;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    text-align: left;
    width: 100%;
}
.scheda-price__slot:hover {
    border-color: #e6e6e6;
}
.scheda-price__slot--active {
    background: #fcf1ec;
    border-color: var(--coral-accent);
}
.scheda-price__slot-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.scheda-price__slot-name {
    font-size: 14px;
    font-weight: var(--fw-medium);
    color: var(--navy-deep);
}
.scheda-price__slot-time {
    font-size: 12px;
    color: #666;
}
.scheda-price__amount {
    font-size: 22px;
    font-weight: var(--fw-bold);
    color: var(--navy-deep);
}
.scheda-price__slot--active .scheda-price__amount {
    color: var(--coral-accent);
}
.scheda-price__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: var(--fw-bold);
    width: 100%;
    text-align: center;
}
.scheda-price__wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 28px;
    border: 1.5px solid #25d366;
    color: #25d366;
    font-size: 15px;
    font-weight: var(--fw-semibold);
    transition: all var(--transition-fast);
}
.scheda-price__wa:hover {
    background: #25d366;
    color: #fff;
}

/* ==========================================================================
   RECENSIONI
   ========================================================================== */
.scheda-reviews {
    background: #f7f7f7;
    padding: 64px 80px;
}
.scheda-reviews__inner {
    max-width: calc(var(--container-max) + 160px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.scheda-reviews__header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.scheda-reviews__title {
    font-size: 40px;
    color: #1a1a1a;
}
.scheda-reviews__badge {
    margin-left: auto;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: var(--radius-full);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: var(--fw-bold);
    color: var(--coral-accent);
}
.scheda-reviews__grid {
    display: flex;
    gap: 20px;
}
.scheda-review-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.scheda-review-card__stars {
    font-size: 16px;
    color: var(--coral-accent);
}
.scheda-review-card p {
    font-size: 14px;
    color: #5e5e5e;
    line-height: 22px;
}
.scheda-review-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.scheda-review-card__author strong {
    color: #1a1a1a;
    font-weight: var(--fw-medium);
}
.scheda-review-card__author span {
    color: #808080;
}

/* ==========================================================================
   BOOKING FORM
   ========================================================================== */
.scheda-booking {
    background: var(--navy-deep);
    padding: 64px 80px;
}
.scheda-booking__inner {
    max-width: calc(var(--container-max) + 160px);
    margin: 0 auto;
    display: flex;
    gap: 64px;
    align-items: center;
}
.scheda-booking__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.scheda-booking__title {
    font-size: 48px;
    color: #fff;
    line-height: 50px;
}
.scheda-booking__sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 24px;
}
.scheda-booking__wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 12px 24px 12px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: var(--fw-medium);
    width: fit-content;
    transition: opacity var(--transition-fast);
}
.scheda-booking__wa:hover {
    opacity: 0.9;
}
.scheda-booking__form {
    width: 420px;
    flex-shrink: 0;
    background: #081f29;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.scheda-booking__form-title {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: var(--fw-bold);
    color: #fff;
}
.scheda-booking__field {
    background: #1f333d;
    border: 1px solid #334d59;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: #fff;
    width: 100%;
    outline: none;
    transition: border-color var(--transition-fast);
}
.scheda-booking__field::placeholder {
    color: #8099a6;
}
.scheda-booking__field:focus {
    border-color: var(--coral-accent);
}
.scheda-booking__field--textarea {
    resize: none;
    min-height: 70px;
}
.scheda-booking__row {
    display: flex;
    gap: 8px;
}
.scheda-booking__row .scheda-booking__field {
    flex: 1;
}
.scheda-booking__field option {
    background: #1f333d;
    color: #fff;
}
.scheda-booking__field--error {
    border-color: #e54d4d !important;
}
.scheda-booking__field-error {
    display: block;
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 4px;
    animation: fadeIn 0.2s ease;
}
.scheda-booking__submit {
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: var(--fw-medium);
    width: 100%;
    text-align: center;
    justify-content: center;
}
.scheda-booking__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.scheda-booking__feedback {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}
.scheda-booking__feedback--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.scheda-booking__feedback--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   BARCHE SIMILI
   ========================================================================== */
.scheda-similar {
    background: #fff;
    padding: 48px 80px 64px;
}
.scheda-similar__inner {
    max-width: calc(var(--container-max) + 160px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.scheda-similar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.scheda-similar__title {
    font-size: 40px;
    color: #1a1a1a;
}
.scheda-similar__grid {
    display: flex;
    gap: 24px;
}
.scheda-similar__grid .boat-card-glass {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .scheda-header {
        padding: 16px 40px;
    }
    .scheda-content {
        padding: 24px 40px 40px;
    }
    .scheda-sidebar {
        width: 320px;
    }
    .scheda-reviews,
    .scheda-booking,
    .scheda-similar {
        padding-left: 40px;
        padding-right: 40px;
    }
    .scheda-booking__title {
        font-size: 36px;
        line-height: 40px;
    }
    .scheda-booking__form {
        width: 360px;
    }
    .scheda-similar__grid .boat-card-glass {
        flex: 0 0 280px;
    }
    .scheda-similar__grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }
    .scheda-similar__grid::-webkit-scrollbar {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .scheda-page {
        padding-top: 60px;
    }
    .scheda-header {
        padding: 12px 20px;
    }
    .scheda-share {
        display: none;
    }
    .scheda-content {
        padding: 16px 20px 32px;
    }
    .scheda-content__inner {
        flex-direction: column;
        gap: 24px;
    }
    .scheda-sidebar {
        width: 100%;
        position: static;
    }
    .scheda-gallery {
        flex-direction: column;
    }
    .scheda-gallery__main {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }
    .scheda-gallery__thumbs {
        flex-direction: row;
        width: 100%;
    }
    .scheda-gallery__thumb {
        flex: 1;
        height: 72px;
        padding-bottom: 0;
        border-radius: 10px;
    }
    .scheda-gallery__thumb img {
        position: static;
    }
    .scheda-gallery__thumb--more span {
        position: static;
        transform: none;
    }
    .scheda-specs__title {
        font-size: 24px;
    }
    .scheda-reviews {
        padding: 40px 20px;
    }
    .scheda-reviews__header {
        flex-direction: column;
        align-items: flex-start;
    }
    .scheda-reviews__badge {
        margin-left: 0;
    }
    .scheda-reviews__grid {
        flex-direction: column;
    }
    .scheda-reviews__title {
        font-size: 28px;
    }
    .scheda-booking {
        padding: 40px 20px;
    }
    .scheda-booking__inner {
        flex-direction: column;
        gap: 32px;
    }
    .scheda-booking__form {
        width: 100%;
    }
    .scheda-booking__title {
        font-size: 32px;
        line-height: 36px;
    }
    .scheda-similar {
        padding: 32px 20px 48px;
    }
    .scheda-similar__title {
        font-size: 28px;
    }
    .scheda-similar__grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .scheda-similar__grid::-webkit-scrollbar {
        display: none;
    }
    .scheda-similar__grid .boat-card-glass {
        flex: 0 0 280px;
    }
}
