/* ==========================================================================
   Design tokens
   ========================================================================== */
.abt-activity {
    --abt-navy: #10344C;
    --abt-teal: #14505E;
    --abt-gold: #F1653B;
    --abt-gold-deep: #C24825;
    --abt-bg: #F4F7F6;
    --abt-white: #FFFFFF;
    --abt-ink: #5B6572;
    --abt-muted: #6B7B80;
    --abt-border: #E1E8E7;
    --abt-danger: #C6474D;

    --abt-font-display: 'Fraunces', Georgia, serif;
    --abt-font-body: 'Inter', -apple-system, sans-serif;
    --abt-font-mono: 'Space Grotesk', -apple-system, sans-serif;

    background: var(--abt-bg);
    color: var(--abt-ink);
    font-family: var(--abt-font-body);
    line-height: 1.5;
    padding-bottom: 100px;
}

.abt-activity * {
    box-sizing: border-box;
}

.abt-eyebrow {
    display: block;
    font-family: var(--abt-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--abt-teal);
    margin-bottom: 12px;
}

/* ==========================================================================
   Hero gallery / slider
   ========================================================================== */
.abt-hero-gallery-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

.abt-hero-gallery {
    position: relative;
    width: 100%;
    height: 62vh;
    min-height: 340px;
    max-height: 620px;
    overflow: hidden;
    background: var(--abt-navy);
    border-radius: 22px;
}

.abt-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.abt-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s ease;
    background: var(--abt-navy);
}

.abt-slide.is-active {
    opacity: 1;
}

.abt-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.abt-slide-placeholder {
    background: linear-gradient(135deg, var(--abt-navy), var(--abt-teal));
}

.abt-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50%;
    border: none !important;
    background: rgba(255, 255, 255, .9) !important;
    color: var(--abt-navy) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    z-index: 2;
}

.abt-slider-nav:hover {
    background: #fff !important;
}

.abt-slider-nav svg {
    width: 20px;
    height: 20px;
    color: var(--abt-navy) !important;
    stroke: currentColor;
    flex: 0 0 auto;
}

.abt-slider-prev {
    left: 20px;
}

.abt-slider-next {
    right: 20px;
}

.abt-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.abt-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    padding: 0;
    transition: background .15s ease, transform .15s ease;
}

.abt-slider-dot.is-active {
    background: var(--abt-gold);
    transform: scale(1.3);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.abt-activity-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.abt-activity-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

/* ==========================================================================
   Stats card
   ========================================================================== */
.abt-stats-card {
    background: var(--abt-white);
    border: 1px solid var(--abt-border);
    border-radius: 16px;
    padding: 28px;
}

.abt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px 20px;
}

.abt-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.abt-stat-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 80, 94, .08);
    color: var(--abt-teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.abt-stat-icon svg {
    width: 19px;
    height: 19px;
}

.abt-stat-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--abt-ink);
}

/* ==========================================================================
   Share
   ========================================================================== */
.abt-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.abt-share .abt-eyebrow {
    margin-bottom: 0;
}

.abt-share-icons {
    display: flex;
    gap: 10px;
}

.abt-share-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--abt-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--abt-teal);
    transition: background .15s ease, color .15s ease;
}

.abt-share-link:hover {
    background: var(--abt-teal);
    color: #fff;
}

.abt-share-link svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Description
   ========================================================================== */
.abt-description h2 {
    font-family: var(--abt-font-display);
    font-weight: 500;
    font-size: 28px;
    color: var(--abt-navy);
    margin: 0 0 16px;
}

.abt-content p {
    margin: 0 0 14px;
    color: var(--abt-ink);
    line-height: 1.75;
    font-size: 15.5px;
}

/* ==========================================================================
   Booking sidebar
   ========================================================================== */
.abt-booking-sidebar {
    position: relative;
}

.abt-booking-box {
    position: sticky;
    top: 24px;
    background: var(--abt-white);
    border: 1px solid var(--abt-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 44px rgba(14, 42, 61, .08);
}

.abt-activity-title {
    font-family: var(--abt-font-display);
    font-weight: 500;
    font-size: 28px;
    line-height: 1.2;
    color: var(--abt-navy);
    margin: 2px 0 12px;
}

.abt-from-price {
    font-family: var(--abt-font-mono);
    font-size: 14px;
    color: var(--abt-muted);
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--abt-border);
}

.abt-from-price strong {
    color: var(--abt-gold);
    font-size: 21px;
    margin-left: 4px;
}

.abt-step-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
}

.abt-step-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 0;
    justify-content: center;
    padding: 8px 6px;
    border: 1px solid var(--abt-border);
    border-radius: 999px;
    background: var(--abt-white);
    color: var(--abt-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: not-allowed;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.abt-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--abt-border);
    color: var(--abt-white);
    font-size: 11px;
    flex: 0 0 auto;
}

.abt-step-pill.is-active {
    border-color: var(--abt-navy);
    color: var(--abt-navy);
}

.abt-step-pill.is-active .abt-step-number {
    background: var(--abt-navy);
}

.abt-step-pill.is-complete {
    cursor: pointer;
    color: var(--abt-teal);
    border-color: var(--abt-teal);
}

.abt-step-pill.is-complete .abt-step-number {
    background: var(--abt-teal);
}

.abt-step-pill.is-complete:hover {
    background: rgba(20, 80, 94, .06);
}

.abt-form-step h3 {
    font-family: var(--abt-font-display);
    font-size: 22px;
    color: var(--abt-navy);
    margin: 0 0 18px;
}

.abt-field-group {
    margin-bottom: 18px;
}

.abt-form-label {
    display: block;
    font-family: var(--abt-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--abt-teal);
    margin-bottom: 8px;
}

.abt-input,
.abt-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--abt-border);
    border-radius: 10px;
    background: var(--abt-white);
    color: var(--abt-ink);
    font-family: var(--abt-font-body);
    font-size: 14.5px;
    line-height: 1.3;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.abt-input:read-only {
    color: var(--abt-ink) !important;
    -webkit-text-fill-color: var(--abt-ink);
    opacity: 1 !important;
}

.abt-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2314505E' stroke-width='1.8'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.abt-input:focus,
.abt-select:focus {
    outline: none;
    border-color: var(--abt-gold);
    box-shadow: 0 0 0 3px rgba(217, 164, 65, .18);
}

.abt-stepper-list {
    display: flex;
    flex-direction: column;
}

.abt-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px dashed var(--abt-border);
}

.abt-stepper-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.abt-stepper-label {
    font-size: 14px;
    font-weight: 600;
}

.abt-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.abt-stepper-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: 1px solid var(--abt-border) !important;
    background: var(--abt-white) !important;
    color: var(--abt-teal) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    transition: background .15s ease, color .15s ease;
}

.abt-stepper-btn:hover {
    background: var(--abt-teal);
    color: #fff;
}

.abt-stepper-btn svg {
    width: 13px;
    height: 13px;
}

.abt-stepper-input {
    width: 26px;
    text-align: center;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: var(--abt-font-mono);
    font-weight: 700;
    font-size: 14px;
    line-height: normal;
    color: var(--abt-ink) !important;
    -webkit-text-fill-color: var(--abt-ink);
    opacity: 1 !important;
}

.abt-addon-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abt-addon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--abt-border);
    border-radius: 10px;
    font-size: 13.5px;
    cursor: pointer;
}

.abt-addon-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.abt-addon-check input {
    accent-color: var(--abt-teal);
    width: 16px;
    height: 16px;
}

.abt-addon-price {
    font-family: var(--abt-font-mono);
    color: var(--abt-muted);
}

.abt-inline-checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.abt-inline-checkbox-field input {
    accent-color: var(--abt-teal);
    width: 16px;
    height: 16px;
}

/* Ticket-stub price summary */
.abt-price-summary {
    background: linear-gradient(135deg, var(--abt-navy), var(--abt-teal));
    border-radius: 14px;
    padding: 20px 22px;
    color: #fff;
    margin: 24px 0 18px;
}

.abt-ticket-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .85);
}

.abt-ticket-value {
    font-family: var(--abt-font-mono);
    font-weight: 700;
}

.abt-ticket-divider {
    height: 0;
    border-top: 1px dashed rgba(255, 255, 255, .3);
    margin: 14px 0;
}

.abt-ticket-row-highlight {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.abt-ticket-row-highlight .abt-ticket-value {
    color: var(--abt-gold);
    font-size: 19px;
}

.abt-ticket-row-muted {
    margin-top: 8px;
    font-size: 12.5px;
    opacity: .7;
}

.abt-form-error {
    color: var(--abt-danger);
    font-size: 13px;
    margin: 0 0 14px;
}

.abt-btn-cta {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: var(--abt-gold);
    color: #fff;
    font-family: var(--abt-font-mono);
    font-weight: 700;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.abt-btn-cta:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(217, 164, 65, .35);
}

.abt-btn-text {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: var(--abt-muted);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 12px;
}

.abt-form-note {
    font-size: 12px;
    color: var(--abt-muted);
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.5;
}

.abt-booking-confirm h3 {
    font-family: var(--abt-font-display);
    font-size: 22px;
    color: var(--abt-navy);
    margin: 0 0 16px;
}

.abt-booking-confirm-details {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.abt-booking-confirm-details strong {
    color: var(--abt-navy);
}

.abt-payment-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--abt-muted);
    padding: 16px 0;
}

.abt-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--abt-border);
    border-top-color: var(--abt-teal);
    border-radius: 50%;
    animation: abt-spin 0.8s linear infinite;
    flex: 0 0 auto;
}

@keyframes abt-spin {
    to { transform: rotate(360deg); }
}

.abt-stripe-element {
    padding: 14px;
    border: 1px solid var(--abt-border);
    border-radius: 10px;
    margin-bottom: 16px;
    background: var(--abt-white);
}

.abt-booking-success {
    text-align: center;
    padding: 12px 4px 4px;
}

.abt-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 80, 94, .1);
    color: var(--abt-teal);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
}

.abt-booking-success h3 {
    font-family: var(--abt-font-display);
    font-size: 22px;
    color: var(--abt-navy);
    margin: 0 0 10px;
}

.abt-booking-success p {
    font-size: 14px;
    color: var(--abt-muted);
    line-height: 1.6;
    margin: 0;
}

.abt-note-pulse {
    animation: abt-pulse 1.2s ease;
}

@keyframes abt-pulse {
    0% { color: var(--abt-danger); }
    100% { color: var(--abt-muted); }
}

.abt-reveal-transition {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .35s ease, transform .35s ease;
}

.abt-reveal-transition.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Related activities
   ========================================================================== */
.abt-related {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 0 24px;
}

.abt-related-carousel {
    position: relative;
}

.abt-related-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 12px 6px 26px;
    margin-top: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.abt-related-grid::-webkit-scrollbar {
    display: none;
}

.abt-related-card {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    display: block;
    background: var(--abt-white);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(14, 42, 61, .04), 0 6px 16px rgba(14, 42, 61, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.abt-related-carousel .abt-slider-nav {
    top: 42%;
    background: var(--abt-white);
    border: 1px solid var(--abt-border);
    color: var(--abt-navy);
    box-shadow: 0 4px 14px rgba(14, 42, 61, .12);
}

.abt-related-carousel .abt-slider-nav:hover {
    background: var(--abt-bg);
}

.abt-related-prev {
    left: -18px;
}

.abt-related-next {
    right: -18px;
}

.abt-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 5px rgba(14, 42, 61, .06), 0 12px 24px rgba(14, 42, 61, .13);
}

.abt-related-card-image {
    aspect-ratio: 4 / 3;
    background: var(--abt-border);
    overflow: hidden;
}

.abt-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.abt-related-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--abt-navy), var(--abt-teal));
}

.abt-related-card-body {
    padding: 16px 18px 20px;
}

.abt-related-card-location {
    display: block;
    font-family: var(--abt-font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--abt-teal);
    margin-bottom: 6px;
}

.abt-related-card-body h3 {
    font-family: var(--abt-font-display);
    font-size: 17px;
    color: var(--abt-navy);
    margin: 0 0 6px;
}

.abt-related-card-price {
    font-family: var(--abt-font-mono);
    font-size: 12.5px;
    color: var(--abt-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .abt-activity-layout {
        grid-template-columns: 1fr;
        padding: 28px 18px 12px;
        gap: 28px;
    }

    .abt-booking-sidebar {
        order: -1;
    }

    .abt-booking-box {
        position: static;
    }

    .abt-hero-gallery-wrap {
        padding: 18px 16px 0;
    }

    .abt-hero-gallery {
        height: 42vh;
        min-height: 260px;
        border-radius: 16px;
    }

    .abt-related-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .abt-related-prev {
        left: 4px;
    }

    .abt-related-next {
        right: 4px;
    }
}

@media (max-width: 520px) {
    .abt-stats-grid {
        grid-template-columns: 1fr;
    }

    .abt-slider-nav {
        width: 38px;
        height: 38px;
    }

    .abt-related-card {
        flex-basis: 82%;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.abt-activity a:focus-visible,
.abt-activity button:focus-visible,
.abt-activity input:focus-visible,
.abt-activity select:focus-visible {
    outline: 2px solid var(--abt-gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .abt-activity * {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   GeneratePress compatibility - the theme keeps its own max-width on the
   content container regardless of sidebar settings, so this removes it
   specifically on the activity template (scoped via WP's own body class)
   ========================================================================== */
body.single-abt_activity #primary,
body.single-abt_activity .content-area,
body.single-abt_activity .site-content,
body.single-abt_activity .inside-article,
body.single-abt_activity .site.grid-container,
body.single-abt_activity .site-content .grid-container {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.single-abt_activity .inside-article {
    padding: 0 !important;
}

/* ==========================================================================
   Flatpickr theme override - matches the navy/gold design system instead
   of the library's generic default look
   ========================================================================== */
.flatpickr-calendar {
    font-family: var(--abt-font-body, 'Inter', sans-serif);
    border-radius: 14px;
    border: 1px solid #E1E8E7;
    box-shadow: 0 16px 40px rgba(14, 42, 61, .16);
    overflow: hidden;
}

.flatpickr-months {
    background: #10344C;
    padding: 10px 0 6px;
}

.flatpickr-months .flatpickr-month,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff;
    fill: #fff;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent;
}

.flatpickr-weekdays {
    background: #10344C;
}

span.flatpickr-weekday {
    background: #10344C;
    color: rgba(255, 255, 255, .75);
    font-weight: 600;
    font-size: 12px;
}

.flatpickr-day {
    border-radius: 8px;
    color: #5B6572;
    font-weight: 500;
}

.flatpickr-day.today {
    border-color: #F1653B;
}

.flatpickr-day:hover,
.flatpickr-day.today:hover {
    background: rgba(20, 80, 94, .08);
    border-color: transparent;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: #F1653B;
    border-color: #F1653B;
    color: #10344C;
    font-weight: 700;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(36, 51, 58, .3);
}
