/* ==========================================================================
   Yacht Rentals For Birthdays (/yacht-rentals-for-birthdays)
   Builds on the voyage-* hub system in styles.css. Prefix: ybday-*
   ========================================================================== */

/* ----------------------------------------
   Hero with photo
   ---------------------------------------- */
.ybday-hero-1 {
    isolation: isolate;
    padding: 96px 0 104px;
    background: var(--td-primary-dark);
}

.ybday-hero-1__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.ybday-hero-1__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 38, 38, 0.55) 0%, rgba(0, 38, 38, 0.35) 45%, rgba(0, 38, 38, 0.85) 100%),
        radial-gradient(90% 70% at 50% 45%, rgba(0, 38, 38, 0.15) 0%, rgba(0, 38, 38, 0.55) 100%);
}

.ybday-hero-1 .voyage-hero-1__title,
.ybday-hero-1 .voyage-hero-1__lede {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.ybday-hero-1 .voyage-hero-1__lede {
    color: rgba(255, 255, 255, 0.9);
}

.ybday-hero-1 .voyage-hero-1__facts li {
    background: rgba(0, 38, 38, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* ----------------------------------------
   Intro + feature tiles
   ---------------------------------------- */
.ybday-intro-1__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 56px;
}

.ybday-intro-1__head .voyage-head-1__tag {
    margin-bottom: 16px;
}

.ybday-intro-1__title {
    margin: 0;
    text-wrap: balance;
}

.ybday-intro-1__copy p {
    margin: 0 0 16px;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--td-gray-700);
    text-wrap: pretty;
}

.ybday-intro-1__copy p:last-child {
    margin-bottom: 0;
}

.ybday-tiles-1 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ybday-tiles-1__item {
    position: relative;
    padding: 28px 26px 26px;
    border: 1px solid var(--td-gray-200);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(55, 212, 217, 0.08) 0%, transparent 55%),
        var(--td-white);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.ybday-tiles-1__item:hover {
    transform: translateY(-3px);
    border-color: rgba(55, 212, 217, 0.45);
    box-shadow: var(--shadow-lg);
}

.ybday-tiles-1__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--td-primary);
    color: var(--td-secondary);
    font-size: 1.15rem;
}

.ybday-tiles-1__title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--td-primary);
    text-wrap: pretty;
}

.ybday-tiles-1__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--td-gray-500);
    text-wrap: pretty;
}

/* ----------------------------------------
   Yacht list: head
   ---------------------------------------- */
.ybday-list-1__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.ybday-list-1__head .voyage-head-1__tag {
    margin-bottom: 16px;
}

.ybday-list-1__sub {
    margin: 0;
    max-width: 58ch;
    text-wrap: pretty;
}

.ybday-list-1__all {
    flex-shrink: 0;
}

/* ----------------------------------------
   Yacht list: layout
   ---------------------------------------- */
.ybday-layout-1 {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

/* ----------------------------------------
   Filter bar
   ---------------------------------------- */
.ybday-filter-1 {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.ybday-filter-1__toggle {
    display: none;
}

.ybday-filter-1__form {
    max-height: calc(100vh - var(--header-height) - 40px);
    max-height: calc(100dvh - var(--header-height) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--td-gray-300) transparent;
    padding: 20px 18px;
    border: 1px solid var(--td-gray-200);
    border-radius: var(--radius-lg);
    background: var(--td-white);
    box-shadow: var(--shadow-sm);
}

.ybday-filter-1__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.ybday-filter-1__heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--td-primary);
}

.ybday-filter-1__clear {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--td-secondary-dark);
    text-decoration: none;
}

.ybday-filter-1__clear:hover {
    color: var(--td-primary);
    text-decoration: underline;
}

.ybday-filter-1__group {
    margin: 0;
    padding: 14px 0 0;
    border: 0;
    box-shadow: inset 0 1px 0 var(--td-gray-200);
    min-width: 0;
}

.ybday-filter-1__group + .ybday-filter-1__group {
    margin-top: 14px;
}

.ybday-filter-1__top + .ybday-filter-1__group {
    margin-top: 10px;
}

.ybday-filter-1__legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--td-gray-900);
}

.ybday-filter-1__legend i {
    color: var(--td-secondary-dark);
    font-size: 0.85rem;
}

.ybday-filter-1__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--td-gray-700);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.ybday-filter-1__opt:hover {
    background: var(--td-gray-100);
}

.ybday-filter-1__opt input {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--td-primary);
    cursor: pointer;
}

.ybday-filter-1__opt:has(input:checked) {
    color: var(--td-primary);
    font-weight: 600;
}

.ybday-filter-1__opt--empty {
    opacity: 0.55;
}

.ybday-filter-1__count {
    margin-left: auto;
    min-width: 26px;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    background: var(--td-gray-100);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--td-gray-500);
    font-variant-numeric: tabular-nums;
}

.ybday-filter-1__select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--td-gray-300);
    border-radius: var(--radius-md);
    background: var(--td-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--td-gray-900);
    cursor: pointer;
}

.ybday-filter-1__select:focus {
    outline: none;
    border-color: var(--td-secondary);
    box-shadow: 0 0 0 3px rgba(55, 212, 217, 0.2);
}

.ybday-filter-1__apply {
    margin-top: 18px;
}

/* Guest count chips */
.ybday-filter-1__chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.ybday-filter-1__chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.ybday-filter-1__chip input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.ybday-filter-1__chip span {
    display: block;
    padding: 7px 4px;
    border: 1px solid var(--td-gray-300);
    border-radius: var(--radius-sm);
    background: var(--td-white);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    color: var(--td-gray-700);
    font-variant-numeric: tabular-nums;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.ybday-filter-1__chip:hover span {
    border-color: var(--td-primary);
    color: var(--td-primary);
}

.ybday-filter-1__chip input:checked + span {
    background: var(--td-primary);
    border-color: var(--td-primary);
    color: var(--td-white);
    font-weight: 600;
}

.ybday-filter-1__chip input:focus-visible + span {
    outline: 3px solid var(--td-secondary);
    outline-offset: 2px;
}

/* Filters apply on change once the script runs */
.ybday-filter-1__form--live .ybday-filter-1__apply {
    display: none;
}

.ybday-filter-1__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--td-secondary);
    vertical-align: middle;
}

/* ----------------------------------------
   AJAX loading state
   ---------------------------------------- */
.ybday-listing-1 .ybday-results-1 {
    transition: opacity var(--transition-fast);
}

.ybday-listing-1.is-loading .ybday-results-1 {
    opacity: 0.45;
    pointer-events: none;
}

.ybday-listing-1.is-loading .ybday-filter-1__form {
    cursor: progress;
}

/* ----------------------------------------
   Results
   ---------------------------------------- */
.ybday-results-1 .results-header {
    margin-bottom: 18px;
}

.ybday-grid-1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.ybday-results-1 .pagination-tours {
    margin-top: 32px;
}

.ybday-results-1__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
    padding: 20px 24px;
    border: 1px dashed var(--td-gray-300);
    border-radius: var(--radius-lg);
    background: var(--td-white);
}

.ybday-results-1__more p {
    margin: 0;
    font-weight: 500;
    color: var(--td-gray-700);
    text-wrap: pretty;
}

/* ----------------------------------------
   Inquiry
   ---------------------------------------- */
.ybday-inquiry-1__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
}

.ybday-inquiry-1__copy .voyage-head-1__tag {
    margin-bottom: 16px;
}

.ybday-inquiry-1__lede {
    margin: 0 0 28px;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--td-gray-700);
    text-wrap: pretty;
}

.ybday-inquiry-1__call {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px 12px 12px;
    border: 1px solid var(--td-gray-200);
    border-radius: var(--radius-full);
    background: var(--td-white);
    font-weight: 700;
    color: var(--td-primary);
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ybday-inquiry-1__call:hover {
    border-color: var(--td-secondary);
    box-shadow: var(--shadow-md);
    color: var(--td-primary);
}

.ybday-inquiry-1__call small {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--td-gray-500);
}

.ybday-inquiry-1__call-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--td-primary);
    color: var(--td-secondary);
}

.ybday-form-1 {
    padding: 32px;
    border: 1px solid var(--td-gray-200);
    border-radius: var(--radius-xl);
    background: var(--td-white);
    box-shadow: var(--shadow-xl);
}

.ybday-form-1__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ybday-form-1__row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ybday-form-1__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    min-width: 0;
}

.ybday-form-1__field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--td-gray-900);
}

.ybday-form-1__opt {
    font-weight: 400;
    color: var(--td-gray-400);
}

.ybday-form-1__field input,
.ybday-form-1__field select,
.ybday-form-1__field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--td-gray-300);
    border-radius: var(--radius-md);
    background: var(--td-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--td-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ybday-form-1__field textarea {
    resize: vertical;
    min-height: 110px;
}

.ybday-form-1__field input:focus,
.ybday-form-1__field select:focus,
.ybday-form-1__field textarea:focus {
    outline: none;
    border-color: var(--td-secondary);
    box-shadow: 0 0 0 3px rgba(55, 212, 217, 0.2);
}

.ybday-form-1__error {
    font-size: 0.82rem;
    color: var(--td-error);
    text-wrap: pretty;
}

.ybday-form-1__error--captcha {
    display: block;
    margin: 12px 0 0;
}

.ybday-form-1__note {
    margin: 14px 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--td-gray-500);
    text-align: center;
    text-wrap: pretty;
}

.ybday-form-1__note a {
    color: var(--td-primary-light);
}

.ybday-form-1__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
    text-wrap: pretty;
}

.ybday-form-1__alert i {
    margin-top: 3px;
}

.ybday-form-1__alert--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.ybday-form-1__alert--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Anchor targets clear the fixed header */
.ybday-page-1 #birthday-yachts,
.ybday-page-1 #birthday-inquiry,
.ybday-page-1 #birthday-intro {
    scroll-margin-top: var(--header-height);
}

/* FAQ answer links */
.ybday-faqs-1 .voyage-faq-1__a a {
    color: var(--td-primary-light);
    font-weight: 600;
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (max-width: 1100px) {
    .ybday-layout-1 {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .ybday-intro-1__grid,
    .ybday-inquiry-1__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ybday-tiles-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ybday-layout-1 {
        grid-template-columns: 1fr;
    }

    .ybday-filter-1 {
        position: static;
    }

    .ybday-filter-1__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 18px;
        border: 1px solid var(--td-gray-200);
        border-radius: var(--radius-lg);
        background: var(--td-white);
        font-family: var(--font-primary);
        font-size: 1rem;
        font-weight: 600;
        color: var(--td-primary);
        cursor: pointer;
    }

    .ybday-filter-1__toggle i.fa-sliders-h {
        margin-right: 8px;
        color: var(--td-secondary-dark);
    }

    .ybday-filter-1__arrow {
        transition: transform var(--transition-fast);
    }

    .ybday-filter-1__toggle[aria-expanded="true"] .ybday-filter-1__arrow {
        transform: rotate(180deg);
    }

    .ybday-filter-1__form {
        display: none;
        max-height: none;
        overflow: visible;
        margin-top: 10px;
    }

    .ybday-filter-1__form--open {
        display: block;
    }
}

@media (max-width: 767px) {
    .ybday-hero-1 {
        padding: 64px 0 72px;
    }

    .ybday-tiles-1 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ybday-tiles-1__item {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 16px;
        padding: 20px;
    }

    .ybday-tiles-1__icon {
        grid-row: span 2;
        width: 44px;
        height: 44px;
        margin: 0;
        font-size: 1rem;
    }

    .ybday-list-1__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ybday-form-1 {
        padding: 22px 18px;
    }

    .ybday-form-1__row,
    .ybday-form-1__row--3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ybday-results-1__more {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}
