.gb-ai-trip-planner-page {
    background: #f8faf6;
    color: #071827;
}

.gb-ai-hero {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center right;
    overflow: hidden;
}

.gb-ai-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 26, 32,0.9) 0%, rgba(2, 26, 32,.7) 45%, rgba(2, 26, 32,.3) 100%);
    z-index: 1;
}

.gb-ai-hero__container {
    position: relative;
    z-index: 2;
}

.gb-ai-hero__content {
    min-height: 80vh;
    padding-top: 70px;
    padding-bottom: 70px;
    display: grid;
    grid-template-columns: 1.05fr .75fr;
    gap: 70px;
    align-items: center;
}

.gb-ai-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(36, 179, 75, .1);
    color: #6ABB39;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
}

.gb-ai-hero__text h1 {
    max-width: 720px;
    margin: 0;
    font-size: 48px;
    line-height: 1.1;
    color: #FFF;
}

.gb-ai-hero__text h1 span {
    color: #6ABB39;
}

.gb-ai-hero__text p {
    max-width: 610px;
    margin: 28px 0 0;
    font-size: 16px;
    line-height: 1.45;
    color: rgba(255,255,255,0.85);
}

.gb-ai-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.gb-ai-benefits div {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(7, 24, 39, .08);
    box-shadow: 0 12px 30px rgba(7, 24, 39, .06);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(14px);
}

.gb-ai-form-card {
    max-width: 450px;
    width: 100%;
    margin-left: auto;
    padding: 35px;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(7, 24, 39, .08);
    box-shadow: 0 15px 40px rgba(7, 24, 39, .14);
    backdrop-filter: blur(18px);
}

.gb-ai-form-card h2 {
    margin: 0 0 25px;
    font-size: 24px;
    line-height: 1.2;
    color: #FFF;
}

.gb-ai-form {
    display: grid;
    gap: 10px;
}

.gb-field-ai label {
    display: block;
    margin-bottom: 1px;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    padding-left: 18px;
}

.gb-field-ai select {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(7, 24, 39, .13);
    background: rgba(255,255,255,0.07);
    color: #071827;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: .2s ease;
    box-shadow: none !important;
    color: #FFF !important;
}

.gb-field-ai select:focus {
    border-color: rgba(36, 179, 75, .2);
    /*box-shadow: 0 0 0 4px rgba(36, 179, 75, .1);*/
}

.gb-ai-submit {
    width: 100%;
    height: 52px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #24B34B 0%, #AFC426 100%) !important;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
    text-transform: none !important;
}

.gb-ai-submit:hover {
    transform: translateY(-1px);
}

.gb-ai-submit:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.gb-ai-status {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
}

.gb-ai-status.is-loading {
    background: rgba(36, 179, 75, .1);
    color: rgba(255,255,255,0.8);
}

.gb-ai-status.is-success {
    background: rgba(36, 179, 75, .12);
    color: rgba(255,255,255,0.8);
}

.gb-ai-status.is-error {
    background: rgba(220, 38, 38, .1);
    color: rgba(255,255,255,0.8);
}

/* Section */

.gb-ai-results-section {
    margin-top: 40px;
    padding-bottom: 90px;
    position: relative;
    z-index: 5;
}

.gb-ai-plan-box {
    padding: 42px;
    border-radius: 34px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(7, 24, 39, .08);
    box-shadow: 0 30px 90px rgba(7, 24, 39, .08);
}

.gb-ai-plan-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 34px;
}

.gb-ai-plan-icon {
    font-size: 32px;
}

.gb-ai-plan-header h2 {
    margin: 8px 0 8px;
    font-size: 34px;
    color: #034354;
}

.gb-ai-plan-eyebrow {
    color: #167834;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 600;
    opacity: 0.9;
}

.gb-ai-plan-header p {
    margin: 0;
    color: rgba(7, 24, 39, .66);
    font-weight: 650;
}

.gb-ai-plan-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.gb-ai-plan-pills span {
    padding: 5px 15px;
    border-radius: 999px;
    background: #f0f7eb;
    color: #167834;
    font-size: 13px;
    font-weight: 600;
}

.gb-ai-days {
    display: grid;
    gap: 26px;
}

.gb-ai-day-box {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 22px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(7, 24, 39, .08);
    background: #fff;
}

.gb-ai-day-marker {
    position: relative;
    text-align: center;
}

.gb-ai-day-marker strong {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #24B34B 0%, #AFC426 100%) !important;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 3px 6px rgba(36,179,75,.24);
}

.gb-ai-day-marker span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(2, 26, 32, 0.4);
}

.gb-ai-day-content h3 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.2;
    color: #034354;
}

.gb-ai-day-description {
    max-width: 1000px;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(2, 26, 32, 0.6);
}

.gb-ai-day-description p {
    margin: 0 0 8px;
}

.gb-ai-itinerary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.gb-ai-place-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    border: 1px solid rgba(7, 24, 39, .09);
    text-decoration: none;
    color: inherit;
    transition: .2s ease;
}

.gb-ai-place-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(7, 24, 39, .1);
}

.gb-ai-place-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gb-ai-place-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .35s ease;
}

.gb-ai-place-card__body {
    padding: 16px;
}

.gb-ai-place-card__body h4 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.25;
    color: #034354;
}

.gb-ai-place-card__body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(2, 26, 32, 0.6);
}

.gb-ai-place-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.gb-ai-place-card__meta span {
    padding: 4px 12px;
    border-radius: 999px;
    background: #f0f7eb;
    color: #167834;
    font-size: 11px;
    font-weight: 800;
}

.gb-ai-assistant-note {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
    padding: 16px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(36,179,75,.08), rgba(195,216,46,.09));
    border: 1px solid rgba(36,179,75,.13);
    color: #021a20;
}

.gb-ai-assistant-note strong {
    white-space: nowrap;
}

.gb-ai-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.gb-ai-extra-section {
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(7, 24, 39, .08);
}

.gb-ai-extra-section header {
    margin-bottom: 18px;
}

.gb-ai-extra-section h3 {
    margin: 0;
    font-size: 22px;
    color: #034354;
}

.gb-ai-extra-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.gb-ai-small-card {
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    border: 1px solid rgba(7, 24, 39, .08);
    color: inherit;
    text-decoration: none;
    transition: .2s ease;
}

.gb-ai-small-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(7, 24, 39, .08);
}

.gb-ai-small-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gb-ai-small-card div {
    padding: 12px;
}

.gb-ai-small-card h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #034354;
}

.gb-ai-small-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(2, 26, 32, 0.6);
}

.gb-ai-empty {
    padding: 18px 20px;
    border-radius: 16px;
    background: #f8faf6;
    color: rgba(7, 24, 39, .7);
}

@media (max-width: 1100px) {
    .gb-ai-hero__content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 80px 0 130px;
    }

    .gb-ai-form-card {
        margin-left: 0;
        max-width: 560px;
    }

    .gb-ai-itinerary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gb-ai-extra-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .gb-ai-hero__text h1 {
        font-size: 32px;
    }
    .gb-ai-hero,
    .gb-ai-hero__content {
        min-height: auto;
    }

    .gb-ai-hero__content {
        padding: 60px 0 60px;
    }

    .gb-ai-hero__text p {
        font-size: 14px;
    }
    
    .gb-ai-benefits {
        gap: 6px;
    }
    
    .gb-ai-benefits div {
        padding: 6px 12px;
        font-size: 11px;
    }

    .gb-ai-form-card {
        padding: 25px;
        border-radius: 15px;
    }
    
    .gb-ai-plan-header h2 {
        font-size: 28px;
    }
    
    .gb-ai-plan-pills span {
        font-size: 12px;
        padding: 3px 13px;
    }

    .gb-ai-plan-box {
        padding: 22px;
        border-radius: 26px;
    }

    .gb-ai-plan-header {
        flex-direction: column;
    }

    .gb-ai-day-box {
        grid-template-columns: 1fr;
    }

    .gb-ai-day-marker {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .gb-ai-day-marker strong {
        margin: 0;
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .gb-ai-day-marker:after {
        display: none;
    }

    .gb-ai-itinerary-grid,
    .gb-ai-extra-cards {
        grid-template-columns: 1fr;
    }

    .gb-ai-assistant-note {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Save as PDF */

.gb-ai-save-pdf-btn {
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #ED6023 0%, #EFA722 100%) !important;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
    letter-spacing: 1px;
}

.gb-ai-save-pdf-btn:hover {
    background: #1f9b41;
    transform: translateY(-1px);
}

@media print {
    .gb-ai-save-pdf-btn {
        display: none !important;
    }

    .gb-ai-plan-box {
        background: #fff !important;
        box-shadow: none !important;
    }

    .gb-ai-day-box,
    .gb-ai-place-card,
    .gb-ai-extra-section,
    .gb-ai-small-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Lightbox */

.gb-ai-place-card-lightbox {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
    border: inherit;
    border-radius: inherit;
    background: inherit;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    border-radius: 15px !important;
    border: 1px solid rgba(7, 24, 39, .09) !important;
}

.gb-ai-place-card-lightbox:hover {
    background: inherit;
    color: inherit;
}

.gb-ai-place-card-lightbox:focus {
    outline: none;
}

.gb-ai-place-card-lightbox:focus-visible {
    outline: 2px solid #24B34B;
    outline-offset: 3px;
}

.gb-ai-entity-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.gb-ai-entity-modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gb-ai-entity-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 26, 32, 0.72);
    backdrop-filter: blur(8px);
}

.gb-ai-entity-modal__box {
    position: relative;
    width: min(920px, calc(100% - 32px));
    max-height: 90vh;
    overflow: hidden;
    background: #fff;
    border-radius: 28px;
    z-index: 2;
}

.gb-ai-entity-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border: 0;
    border-radius: 50%;
    background: rgba(2, 26, 32, 0.4) !important;
    color: #FFF !important;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    font-weight: 400 !important;
}

.gb-ai-entity-modal__image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.gb-ai-entity-modal__content {
    padding: 20px 25px 30px 25px;
}

.gb-ai-entity-modal__content h3 {
    margin: 0 0 12px;
    font-size: 26px;
}

.gb-ai-entity-modal__content p {
    margin: 0 0 24px;
    color: rgba(7, 24, 39, .7);
    line-height: 1.5;
    font-size: 15px;
}

.gb-ai-entity-modal__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #24B34B 0%, #AFC426 100%) !important;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

body.gb-ai-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .gb-ai-entity-modal__image {
        height: 240px;
    }

    .gb-ai-entity-modal__content {
        padding: 22px;
    }

    .gb-ai-entity-modal__content h3 {
        font-size: 24px;
    }
}