/* ==========================================================================
   Bachelor & Bachelorette Party Ideas (/bachelor-bachelorette-party-ideas-bahamas)
   Builds on the voyage-* hub system in styles.css. Prefix: bach-*
   ========================================================================== */

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

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

.bach-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%);
}

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

.bach-hero-1 .voyage-hero-1__title {
    text-wrap: balance;
}

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

/* ----------------------------------------
   Intro
   ---------------------------------------- */
.bach-intro-1 {
    padding-bottom: 48px;
}

.bach-intro-1__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
}

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

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

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

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

/* ----------------------------------------
   Section filter bar (icon over label, sticky)
   ---------------------------------------- */
.bach-nav-1 {
    position: sticky;
    top: var(--header-height);
    z-index: 20;
    background: var(--td-white);
    border-top: 1px solid var(--td-gray-200);
    border-bottom: 1px solid var(--td-gray-200);
    transition: box-shadow var(--transition-base);
}

.bach-nav-1.is-stuck {
    box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.25);
}

.bach-nav-1__inner {
    position: relative;
    display: flex;
    align-items: center;
}

.bach-nav-1__list {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: safe center;
}

.bach-nav-1__list::-webkit-scrollbar {
    display: none;
}

.bach-nav-1__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 16px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--td-gray-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.bach-nav-1__link i {
    font-size: 1.15rem;
    color: var(--td-gray-400);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.bach-nav-1__link::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--td-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.bach-nav-1__link:hover {
    color: var(--td-primary);
}

.bach-nav-1__link:hover i {
    color: var(--td-primary);
    transform: translateY(-1px);
}

.bach-nav-1__link.is-active {
    color: var(--td-primary);
    font-weight: 600;
}

.bach-nav-1__link.is-active i {
    color: var(--td-secondary-dark);
}

.bach-nav-1__link.is-active::after {
    transform: scaleX(1);
}

.bach-nav-1__link:focus-visible {
    outline: 3px solid var(--td-secondary);
    outline-offset: -3px;
    border-radius: var(--radius-sm);
}

.bach-nav-1__more {
    display: none;
    flex-shrink: 0;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: 8px;
    border: 0;
    border-radius: 50%;
    background: var(--td-primary);
    color: var(--td-white);
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: -18px 0 18px 6px var(--td-white);
}

.bach-nav-1.has-more .bach-nav-1__more {
    display: grid;
}

/* Anchor targets clear the fixed header and the sticky bar */
.bach-page-1 [id^="party-"],
.bach-page-1 #voyage-faqs {
    scroll-margin-top: calc(var(--header-height) + 76px);
}

/* ----------------------------------------
   Carousels: arrows sit beside the track on desktop
   ---------------------------------------- */
.bach-row-1 .voyage-actions-1 {
    margin-top: 28px;
}

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

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

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

.bach-inquiry-1__perks {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.bach-inquiry-1__perks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.98rem;
    color: var(--td-gray-900);
    text-wrap: pretty;
}

.bach-inquiry-1__perks i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(55, 212, 217, 0.18);
    color: var(--td-primary);
    font-size: 0.7rem;
}

.bach-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);
}

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

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

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

/* ----------------------------------------
   Inquiry form
   ---------------------------------------- */
.bach-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);
}

.bach-form-1 fieldset {
    min-width: 0;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.bach-form-1 legend {
    margin: 0 0 8px;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--td-gray-900);
}

.bach-form-1__chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bach-form-1__chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}

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

.bach-form-1__chip span {
    display: block;
    padding: 10px 6px;
    border: 1px solid var(--td-gray-300);
    border-radius: var(--radius-md);
    background: var(--td-white);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    color: var(--td-gray-700);
    text-wrap: pretty;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

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

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

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

.bach-form-1__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bach-form-1__check {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.bach-form-1__check input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.bach-form-1__check span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--td-gray-300);
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    color: var(--td-gray-700);
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.bach-form-1__check:hover span {
    border-color: var(--td-primary);
    color: var(--td-primary);
}

.bach-form-1__check input:checked + span {
    border-color: var(--td-secondary-dark);
    background: rgba(55, 212, 217, 0.14);
    color: var(--td-primary);
    font-weight: 600;
}

.bach-form-1__check input:checked + span::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.7rem;
}

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

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

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

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

.bach-form-1__field input,
.bach-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);
}

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

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

.bach-form-1__error {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--td-error);
    text-wrap: pretty;
}

.bach-form-1__field .bach-form-1__error {
    margin-top: 0;
}

.bach-form-1__error--captcha {
    margin: 12px 0 0;
}

.bach-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;
}

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

.bach-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;
}

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

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

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

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

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

/* The site header scrolls away on phones, so the bar sticks to the very top */
@media (max-width: 768px) {
    .bach-nav-1 {
        top: 0;
    }

    .bach-page-1 [id^="party-"],
    .bach-page-1 #voyage-faqs {
        scroll-margin-top: 72px;
    }
}

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

    .bach-nav-1__list {
        justify-content: flex-start;
        gap: 2px;
    }

    .bach-nav-1__link {
        padding: 12px 12px 10px;
        font-size: 0.75rem;
    }

    .bach-nav-1__link::after {
        left: 12px;
        right: 12px;
    }

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

    .bach-form-1__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bach-form-1__chips {
        grid-template-columns: 1fr;
    }
}
