/* ─────────────────────────────────────────────
   Gastineau Booking Modal
   ───────────────────────────────────────────── */

/* Overlay */
#gastineau-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: background 0.5s ease;
}
#gastineau-modal-overlay.is-open {
    display: flex;
}
#gastineau-modal-overlay.is-visible {
    background: rgba(0, 0, 0, 0.5);
}
body.gastineau-modal-open {
    overflow: hidden;
}

/* Modal container */
#gastineau-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#gastineau-modal-overlay.is-visible #gastineau-modal {
    opacity: 1;
    transform: translateY(0);
}

/* ── Header ── */
.gb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #ebebeb;
}
.gb-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gb-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.gb-optional {
    font-weight: 400;
    color: #888;
    font-size: 14px;
}

/* Back arrow inside header (general mode) */
.gb-header-back {
    background: none;
    border: none;
    padding: 4px 6px 4px 0;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}
.gb-header-back:hover {
    color: #1a1a1a;
}

.gb-compass-icon {
    width: 32px;
    height: 32px;
    background: #f2f2f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../assets/Compass.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    flex-shrink: 0;
}
.gb-check-icon {
    width: 32px;
    height: 32px;
    background: #e8f5ef;
    border-radius: 8px;
    display: inline-flex;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232d7a50' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.gb-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.15s;
}
.gb-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* ── Breadcrumb strip (general mode, above cruise grid) ── */
.gb-breadcrumb {
    padding: 0.5rem 1.5rem;
    background: #f8f8f6;
    border-bottom: 1px solid #ebebeb;
    font-size: 13px;
    color: #666;
}
.gb-breadcrumb strong {
    color: #1a1a1a;
}

/* ── Body ── */
.gb-body {
    padding: 1.25rem 1.5rem;
}
.gb-body--centered {
    text-align: center;
}
.gb-body--confirmation {
    padding: 2rem 1.5rem;
}
.gb-body--loading {
    padding: 3rem 1.5rem;
}

/* ── Why info box ── */
.gb-why-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0f5f2;
    border-left: 3px solid #3d6b51;
    border-radius: 0 8px 8px 0;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}
.gb-why-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%236c7a6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}
.gb-why-box p {
    font-size: 1.1rem;
    line-height: 1.6em;
    margin: 0;
}

/* ── Cruise line grid ── */
.gb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 1rem;
}

.gb-cruise-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: .5rem 0.45rem 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.gb-cruise-card:hover {
    border-color: #3d6b51;
    box-shadow: 0 0 0 1px #3d6b51;
}
.gb-cruise-card:hover .gb-cruise-logo {
    filter: none;
}
.gb-cruise-logo {
    width: 120px;
    height: 55px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.45);
    transition: filter 0.2s ease;
}
.gb-cruise-label {
    font-size: 11px;
    color: #666;
    text-align: center;
    line-height: 1.3;
    display: none;
}
.gb-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    background: #e8f5ef;
    color: #2d7a50;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Divider + direct booking row ── */
.gb-divider {
    border: none;
    border-top: 1px solid #ebebeb;
    margin: 0.5rem 0 1rem;
}
.gb-direct-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}
.gb-direct-label {
    font-size: 1rem;
    color: #777;
}
.gb-direct-btn {
    font-size: 1rem;
    color: #3d6b51;
    border: 1px solid #3d6b51;
    padding: 7px 14px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.gb-direct-btn:hover {
    background: #d2d6d3;
    text-decoration: none;
}

/* ── Footer ── */
.gb-footer {
    padding: 0.875rem 1.5rem;
    background: #f8f8f6;
    border-top: 1px solid #ebebeb;
    border-radius: 0 0 16px 16px;
}
.gb-footer p {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* ── Booking summary card (Step 2) ── */
.gb-booking-summary {
    background: #f0f5f2;
    border: 1px solid #c8ddd1;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}
.gb-summary-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #5a8a6a;
    margin: 0 0 0.75rem;
}
.gb-summary-cols {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.gb-summary-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0.25rem 0;
}
.gb-summary-divider {
    width: 1px;
    background: #c8ddd1;
    margin: 0 1.25rem;
    flex-shrink: 0;
}
.gb-summary-label {
    font-size: 11px;
    font-weight: 700;
    color: #5a8a6a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gb-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* ── Inline name + email fields ── */
.gb-fields-row {
    display: flex;
    gap: 12px;
    text-align: left;
}
.gb-fields-row .gb-field {
    flex: 1;
    min-width: 0;
}


.gb-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.gb-field {
    text-align: left;
    margin-bottom: 1rem;
}
.gb-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.gb-input-wrap {
    position: relative;
}
.gb-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.45;
}
.gb-icon-person {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.gb-icon-email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}
.gb-input-wrap input {
    width: 100%;
    padding: 10px 12px 10px 40px !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #f8f8f6;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.gb-input-wrap input:focus {
    outline: none;
    border-color: #3d6b51;
    background: #fff;
}

/* ── Actions / buttons ── */
.gb-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}
.gb-btn-back {
    flex: 1;
    padding: 12px;
    background: #f2f2f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: background 0.15s;
}
.gb-btn-back:hover {
    background: #e8e8e5;
}
.gb-btn-primary {
    flex: 1.5;
    padding: 12px;
    background: #3d6b51;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.15s;
}
.gb-btn-primary:hover {
    background: #2d5540;
    color: #fff;
    text-decoration: none;
}

/* ── Confirmation screen ── */
.gb-confirm-text {
    font-size: 15px;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.gb-reopen-link {
    display: inline-block;
}

/* ══════════════════════════════════════════════
   Step 0 — Tour picker
   ══════════════════════════════════════════════ */

.gb-tour-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gb-tour-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gb-tour-card:hover {
    border-color: #3d6b51;
    box-shadow: 0 0 0 1px #3d6b51;
}

.gb-tour-thumb {
    width: 100px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.gb-tour-thumb--placeholder {
    background: #e8ede9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23a0b0a5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px;
}

.gb-tour-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 10px 0;
    min-width: 0;
}
.gb-tour-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}
.gb-tour-excerpt {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gb-no-tours {
    font-size: 14px;
    color: #888;
    text-align: center;
    padding: 2rem 0;
}

/* ── Loading spinner ── */
.gb-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e5e5;
    border-top-color: #3d6b51;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: gb-spin 0.7s linear infinite;
}

.gb-no-cruise-lines {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gg-color-text-secondary, #666);
    font-size: 0.95rem;
    line-height: 1.6;
}

.gb-no-cruise-lines a {
    color: var(--gg-color-accent-500, inherit);
    font-weight: 600;
    text-decoration: underline;
}

@keyframes gb-spin {
    to { transform: rotate(360deg); }
}
.gb-loading-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .gb-tour-grid {
        grid-template-columns: 1fr;
    }
    .gb-tour-thumb {
        width: 80px;
        height: 68px;
    }
}

@media (max-width: 480px) {
    #gastineau-modal-overlay {
        align-items: flex-start;
        padding: 0.5rem;
    }
    #gastineau-modal {
        max-height: 95vh;
        margin-top: 0.5rem;
    }
    .gb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gb-cruise-label {
        display: none;
    }
    .gb-cruise-card {
        padding: 0.875rem 0.5rem;
    }
    .gb-direct-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .gb-actions {
        flex-direction: column;
    }
    .gb-fields-row {
        flex-direction: column;
    }
    .gb-why-box p {
    font-size: 0.85rem;
}
}