/* ============================================
   CABIN DISPLAY STYLES
   ============================================ */

.st-cabin-packages {
    margin-bottom: 40px;
    font-family: 'Heebo', sans-serif;
}

.st-cabins-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.st-cabin-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: white;
    border-color: rgb(222, 222, 222);
    border-radius: 20px;
    border-style: solid;
    border-width: 1px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px 0px, rgba(0, 0, 0, 0.05) 0px 4px 12px 0px;
}

.st-cabin-item:hover {
    box-shadow: rgba(0, 0, 0, 0.12) 0px 2px 4px 0px, rgba(0, 0, 0, 0.08) 0px 6px 16px 0px;
    transform: translateY(-2px);
}

.st-cabin-image-wrapper {
    width: 40%;
    min-width: 300px;
    flex-shrink: 0;
    transition: width 0.3s ease-in-out, min-width 0.3s ease-in-out;
}

/* Photo 30% smaller when expanded */
.st-cabin-item[data-expanded="true"] .st-cabin-image-wrapper {
    width: 28%;
    min-width: 200px;
}

.st-cabin-item[data-expanded="true"] .st-cabin-content {
    width: 72%;
}

.st-cabin-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-cabin-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-color, #f5f5f5);
    color: #999;
    font-size: 14px;
}

.st-cabin-content {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.st-cabin-header {
    margin-bottom: 8px;
}

.st-cabin-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--heading-color, #1a1a1a);
    line-height: 1.3;
}

.st-cabin-capacity {
    font-size: 12px;
    color: var(--grey-color, #666);
    display: block;
}

.st-cabin-description {
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.st-cabin-equipment {
    margin-bottom: 8px;
}

.st-cabin-equipment h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading-color, #1a1a1a);
}

.st-cabin-equipment ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}

.st-cabin-equipment li {
    margin-bottom: 1px;
    line-height: 1.3;
}

.st-cabin-price-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--grey-color, #f0f0f0);
}

.st-cabin-price-label {
    font-size: 13px;
    color: var(--grey-color, #666);
}

.st-cabin-price-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--main-color, #0066cc);
}

.btn-cabin-devis {
    padding: 12px 24px;
    background: var(--main-color, #0066cc);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    align-self: flex-start;
}

.btn-cabin-devis:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-cabin-devis:active {
    transform: translateY(0);
}

/* ============================================
   QUOTE POPUP STYLES
   ============================================ */

/* Overlay */
.quote-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99998;
}

/* Hidden state */
.mfp-hide {
    display: none !important;
}

/* Popup container - fixed centered modal */
.quote-popup-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-color: rgb(222, 222, 222);
    border-radius: 25px;
    border-style: solid;
    border-width: 1px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 99999;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px 0px, rgba(0, 0, 0, 0.05) 0px 4px 12px 0px;
    font-family: 'Heebo', sans-serif;
    transition: max-width 0.2s ease;
}

/* Close button (X) */
.quote-popup-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.quote-popup-close-btn:hover {
    color: #333;
    background: #f5f5f5;
}

.quote-popup-content {
    position: relative;
    padding: 30px;
}

.quote-header {
    margin-bottom: 25px;
    padding-right: 40px; /* Space for the close button */
}

.quote-header h2 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}

.quote-subtitle {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.quote-empty {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* Quote items */
.quote-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.quote-item {
    padding: 18px;
    border-color: rgb(222, 222, 222);
    border-radius: 20px;
    border-style: solid;
    border-width: 1px;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px 0px, rgba(0, 0, 0, 0.05) 0px 4px 12px 0px;
}

.quote-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.quote-item-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.quote-item-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--heading-color, #1a1a1a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-change-cabin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 102, 204, 0.06);
    color: var(--main-color, #0066cc);
    border: 1px solid rgba(0, 102, 204, 0.18);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    line-height: 1;
    white-space: nowrap;
}

.btn-change-cabin:hover {
    background: rgba(0, 102, 204, 0.12);
    border-color: var(--main-color, #0066cc);
    transform: translateY(-1px);
}

.btn-change-cabin svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* Overflow info banner (auto-repartition) */
.dc-overflow-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeeee 100%);
    border: 1px solid rgba(220, 53, 69, 0.22);
    color: #8a1f2b;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.08);
    animation: dcOverflowFadeIn 0.3s ease;
}

@keyframes dcOverflowFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dc-overflow-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.dc-overflow-body {
    flex: 1;
    min-width: 0;
}

.dc-overflow-headline {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #b71c2d;
    line-height: 1.35;
}

.dc-overflow-sub {
    margin: 0 0 8px 0;
    font-size: 12.5px;
    color: #8a1f2b;
    line-height: 1.4;
    opacity: 0.92;
}

.dc-overflow-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dc-overflow-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
}

.dc-overflow-cabin {
    font-weight: 600;
    color: #8a1f2b;
}

.dc-overflow-pax {
    color: #6b1a24;
    font-weight: 500;
}

/* RTL tweaks */
body.rtl .quote-item-header,
body.dc-lang-he .quote-item-header,
body.dc-force-he .quote-item-header {
    flex-direction: row-reverse;
}

body.rtl .dc-overflow-notice,
body.dc-lang-he .dc-overflow-notice,
body.dc-force-he .dc-overflow-notice {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .dc-overflow-list li,
body.dc-lang-he .dc-overflow-list li,
body.dc-force-he .dc-overflow-list li {
    flex-direction: row-reverse;
}

/* ============================================
   SUCCESS MODAL (quote / callback submitted)
   ============================================ */

.dc-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dc-success-modal {
    position: relative;
    background: white;
    border-radius: 22px;
    padding: 36px 28px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(10, 20, 40, 0.25), 0 4px 14px rgba(10, 20, 40, 0.10);
    animation: dcSuccessPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Heebo', sans-serif;
}

@keyframes dcSuccessPop {
    0%   { opacity: 0; transform: scale(0.88) translateY(8px); }
    100% { opacity: 1; transform: scale(1)    translateY(0);   }
}

.dc-success-x {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.dc-success-x:hover {
    color: #333;
}

.dc-success-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1db954 0%, #17a348 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(29, 185, 84, 0.35);
    animation: dcSuccessCheck 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s backwards;
}

@keyframes dcSuccessCheck {
    0%   { transform: scale(0.2); opacity: 0; }
    70%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}

.dc-success-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--heading-color, #1a1a1a);
    letter-spacing: -0.2px;
}

.dc-success-body {
    margin: 0 0 24px 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #555;
}

.dc-success-ok {
    display: inline-block;
    padding: 12px 36px;
    background: var(--main-color, #0066cc);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.18s ease;
    font-family: inherit;
}

.dc-success-ok:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

body.rtl .dc-success-x,
body.dc-lang-he .dc-success-x,
body.dc-force-he .dc-success-x {
    right: auto;
    left: 14px;
}

.btn-remove-cabin {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #bbb;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-remove-cabin:hover {
    color: #e74c3c;
}

/* Occupancy inputs */
.quote-item-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.quote-item-inputs .input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quote-item-inputs .input-group label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
}

.quote-item-inputs .input-group input {
    padding: 10px 12px;
    border: 1px solid rgb(222, 222, 222);
    border-radius: 12px !important;
    font-size: 14px;
    font-weight: 500;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-item-inputs .input-group input:focus {
    outline: none;
    border-color: var(--main-color, #0066cc) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
    background: white;
    border-radius: 12px !important;
}

/* Price display in quote item */
.quote-item-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgb(222, 222, 222);
}

.price-label {
    font-size: 13px;
    color: #666;
}

.price-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color, #0066cc);
}

/* Add another cabin button */
.btn-add-another-cabin {
    width: 100%;
    padding: 14px;
    background: white;
    border: 2px dashed rgb(222, 222, 222);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color, #0066cc);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-add-another-cabin:hover {
    border-color: var(--main-color, #0066cc);
    background: rgba(0, 102, 204, 0.03);
}

/* Quote summary / total */
.quote-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgb(222, 222, 222);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color, #1a1a1a);
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-color, #0066cc);
}

/* Action buttons */
.quote-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.quote-actions .btn {
    padding: 14px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border: none;
    flex: 1;
    text-align: center;
    transition: all 0.2s ease;
}

.quote-actions .btn-secondary {
    background: white;
    color: #666;
    border: 1px solid rgb(222, 222, 222);
}

.quote-actions .btn-secondary:hover {
    background: #f9f9f9;
}

.quote-actions .btn-primary {
    background: var(--main-color, #0066cc);
    color: white;
}

.quote-actions .btn-primary:hover {
    opacity: 0.9;
}

/* ============================================
   STAGE 2 - Guest Details Form
   ============================================ */

.quote-guest-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quote-guest-form .form-row-half {
    display: flex;
    gap: 12px;
}

/* ── Bouton "Appelez moi" (flow Quote rapide) ──────────────── */
#callMeSection {
    margin-bottom: 18px;
}

.btn-call-me {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, #1db954 0%, #17a348 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Heebo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.18s;
    text-align: left;
    box-shadow: 0 3px 12px rgba(29, 185, 84, 0.30);
}

.btn-call-me:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-call-me svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.btn-call-me-sub {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    white-space: nowrap;
}

/* ── Champs en erreur ──────────────────────────────────────── */
.quote-guest-form .form-control.field-error {
    border-color: #e53e3e !important;
    background-color: #fff5f5;
    animation: shake 0.25s ease;
}

.quote-guest-form .form-group.field-error-group > label {
    color: #e53e3e;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-4px); }
    75%       { transform: translateX(4px); }
}

/* Section Passagers (mode Épuisée) */
#quotePassengersSection {
    background: #f5f7ff;
    border: 1px solid #dde4ff;
    border-radius: 10px;
    padding: 14px 16px 10px;
    margin-bottom: 18px;
}
.quote-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #3b71fe;
    margin: 0 0 10px;
}

.quote-guest-form .form-row-half .form-group {
    flex: 1;
}

.quote-guest-form .form-group {
    display: flex;
    flex-direction: column;
}

.quote-guest-form .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--heading-color, #1a1a1a);
    margin-bottom: 6px;
}

.quote-guest-form .form-group input,
.quote-guest-form .form-group select,
.quote-guest-form .form-group textarea {
    padding: 12px 14px;
    border: 1px solid rgb(222, 222, 222);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Heebo', sans-serif;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-guest-form .form-group input:focus,
.quote-guest-form .form-group select:focus,
.quote-guest-form .form-group textarea:focus {
    outline: none;
    border-color: var(--main-color, #0066cc);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: white;
}

/* Summary items in Stage 2 */
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid var(--heading-color, #1a1a1a);
    margin-top: 10px;
    padding-top: 12px;
    font-size: 16px;
}

/* ============================================
   CABIN SELECTOR MODAL (add another cabin)
   ============================================ */

.cabin-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cabin-selector-popup {
    background: white;
    border-color: rgb(222, 222, 222);
    border-radius: 20px;
    border-style: solid;
    border-width: 1px;
    padding: 25px;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px 0px, rgba(0, 0, 0, 0.05) 0px 4px 12px 0px;
}

.cabin-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.cabin-selector-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.cabin-selector-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.cabin-selector-close:hover {
    color: #333;
}

.cabin-selector-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cabin-selector-item {
    padding: 14px 16px;
    border: 1px solid rgb(222, 222, 222);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cabin-selector-item:hover {
    border-color: var(--main-color, #0066cc);
    background: rgba(0, 102, 204, 0.03);
}

.cabin-selector-item.in-quote {
    background: #f0f8ff;
    border-color: var(--main-color, #0066cc);
}

.cabin-selector-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--heading-color, #1a1a1a);
}

.cabin-selector-price {
    font-size: 12px;
    color: #666;
}

.cabin-selector-badge {
    font-size: 11px;
    color: var(--main-color, #0066cc);
    font-weight: 600;
}

/* ============================================
   DESCRIPTION PREVIEW + ACTIONS
   ============================================ */

/* Description preview on card */
.st-cabin-description-preview {
    position: relative;
    max-height: 85px;
    overflow: hidden;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    flex: 1;
}

.st-cabin-gradient-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

/* Actions row */
.st-cabin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}

/* "Voir plus d'infos" link */
.st-cabin-info-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--main-color, #0066cc);
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.st-cabin-info-btn .toggle-icon {
    font-size: 16px;
    line-height: 1;
}

.st-cabin-info-btn:hover {
    opacity: 0.7;
}

/* ============================================
   CABIN INFO POPUP
   ============================================ */

.st-cabin-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.cabin-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.cabin-info-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px 0px, rgba(0, 0, 0, 0.05) 0px 4px 12px 0px;
}

.cabin-info-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.2s ease;
}

.cabin-info-close:hover {
    color: #333;
    background: #f5f5f5;
}

/* Scrollable content */
.cabin-info-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 28px 28px 20px;
}

/* ── Galerie images dans le popup ──────────────────────────── */
.cabin-info-gallery {
    margin: -28px -28px 20px;  /* déborde sur le padding du scroll pour pleine largeur */
}

.cabin-info-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    overflow: hidden;
}

.cabin-info-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.cabin-gallery-prev,
.cabin-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.cabin-gallery-prev { left: 10px; }
.cabin-gallery-next { right: 10px; }

.cabin-gallery-prev:hover,
.cabin-gallery-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.cabin-info-gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #f7f7f7;
    overflow-x: auto;
    scrollbar-width: thin;
}

.cabin-gallery-thumb {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.15s, border-color 0.15s;
}

.cabin-gallery-thumb:hover {
    opacity: 0.85;
}

.cabin-gallery-thumb.active {
    opacity: 1;
    border-color: var(--main-color, #3b71fe);
}

.cabin-info-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
    padding-right: 30px;
}

.cabin-info-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.cabin-info-price strong {
    font-size: 16px;
    color: var(--main-color, #0066cc);
}

.cabin-info-section {
    margin-bottom: 14px;
}

.cabin-info-description {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.cabin-info-section h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color, #1a1a1a);
}

.cabin-info-section ul {
    margin: 0;
    padding-left: 0;
    font-size: 13px;
    color: #666;
    list-style: none;
}

.cabin-info-section li {
    margin-bottom: 2px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cabin-info-section .check-mark {
    font-weight: bold;
}

.cabin-info-included .check-mark {
    color: #4caf50;
}

.cabin-info-excluded .check-mark {
    color: #f44336;
}

/* Fixed footer with Devis button */
.cabin-info-footer {
    position: relative;
    padding: 16px 28px 28px;
    background: white;
    border-top: none;
    flex-shrink: 0;
}

.cabin-info-footer::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.cabin-info-devis-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .st-cabin-item {
        flex-direction: column;
    }

    .st-cabin-image-wrapper {
        width: 100%;
        min-width: auto;
        height: 250px;
    }

    .st-cabin-content {
        width: 100%;
        padding: 20px;
    }

    .quote-popup-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .quote-popup-content {
        padding: 20px;
    }

    .quote-item-inputs {
        flex-direction: column;
    }

    .quote-actions {
        flex-direction: column;
    }

    .cabin-info-container {
        width: 95%;
        max-height: 90vh;
    }

    .cabin-info-scroll {
        padding: 20px;
    }

    .cabin-info-footer {
        padding: 14px 20px;
    }
}

/* Tour sidebar */
.dc-cart-info-sidebar .cart-info {
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.72);
}

.dc-cart-info-sidebar .cart-info .service-section .service-right img {
    border-radius: 15px;
}

.dc-open-quote-btn {
    border-radius: 25px !important;
    background-color: #3b71fe !important;
    border-color: #3b71fe !important;
    color: #fff !important;
}

.dc-open-quote-btn:hover,
.dc-open-quote-btn:focus {
    background-color: #2a5fe0 !important;
    border-color: #2a5fe0 !important;
    color: #fff !important;
}

/* ── Barre d'infos tour (st-service-feature) ── */
.st-service-feature .item {
    display: flex !important;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}

/* Icône : boîte carrée avec bordure arrondie, fond blanc */
.st-service-feature .item .icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #DEDEDE;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-right: 12px;
}

.st-service-feature .item .icon i {
    font-size: 21px;
    color: var(--grey-color, #5E6D77);
    line-height: 1;
}

/* Texte : label en gras, valeur en gris */
.st-service-feature .item .info .name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: var(--heading-color, #1A2B48);
    margin: 0 0 2px;
}

.st-service-feature .item .info .value {
    font-size: 13px;
    line-height: 1.3;
    color: var(--grey-color, #5E6D77);
    margin: 0;
}
/* Image itinéraire */
.dc-itinerary-image {
    margin-bottom: 24px;
}
.dc-itinerary-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* ── Itinéraire : image gauche + escales droite ── */
.dc-itinerary-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.dc-itinerary-img-col {
    flex: 0 0 220px;
    max-width: 220px;
}

.dc-itinerary-img-col img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.dc-itinerary-stops-col {
    flex: 1;
}

.dc-escales-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dc-escales-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.dc-escales-list li:first-child {
    padding-top: 0;
}

.dc-escales-list li:last-child {
    border-bottom: none;
}

.dc-itinerary-detail-title {
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    .dc-itinerary-header {
        flex-direction: column;
    }
    .dc-itinerary-img-col {
        flex: none;
        max-width: 100%;
    }
}

/* ─── Stage 0: Cruise Selection ─────────────────────────────── */

.quote-cruise-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding: 4px 2px;
}

.cruise-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    background: #fff;
}

.cruise-option:hover {
    background: #f5f9ff;
    border-color: #4a90d9;
}

.cruise-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.cruise-option-arrow {
    font-size: 18px;
    color: #4a90d9;
    flex-shrink: 0;
    margin-left: 12px;
}

.quote-loading {
    text-align: center;
    color: #888;
    padding: 24px 0;
    font-size: 14px;
}

/* Spinner sur les boutons de soumission */
@keyframes dc-spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: dc-spin 0.7s linear infinite;
    vertical-align: middle;
}

/* ─── Stage 0: Cruise options with image ──────────────────────── */

.cruise-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
}

.cruise-option-img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cruise-option-img-placeholder {
    width: 72px;
    height: 54px;
    background: #e8edf2;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ─── Stage 1: Two-column layout ──────────────────────────────── */

/* ── Layout principal popup : stages (gauche) + carte croisière (droite) ── */
.quote-popup-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.quote-popup-stages {
    flex: 1 1 0;
    min-width: 0;
}

#quoteCruiseCard {
    flex: 0 0 260px;
    width: 260px;
    position: sticky;
    top: 0;
}

/* Popup élargi quand la carte croisière est visible */
#st-cabin-quote-popup.dc-popup-wide {
    max-width: 940px;
    width: 94vw;
    overflow-x: hidden;
}

/* Cart-info card in popup (mirrors the sidebar style) */
.dc-quote-cart-info {
    border: 1px solid #d7dce3;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    padding: 0;
    font-size: 13px;
}

.dc-quote-cart-info .service-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 16px 12px;
    gap: 10px;
}

.dc-quote-cart-info .service-left {
    flex: 1;
    min-width: 0;
}

.dc-quote-cart-info .service-left .title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.dc-quote-cart-info .service-left .address {
    font-size: 12px;
    color: #777;
    margin: 0;
}

.dc-quote-cart-info .service-right {
    flex-shrink: 0;
}

.dc-quote-cart-info .info-section {
    padding: 0 16px 12px;
    border-top: 1px solid #f0f0f0;
}

.dc-quote-cart-info .info-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dc-quote-cart-info .info-section li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 12px;
}

.dc-quote-cart-info .info-section li:last-child {
    border-bottom: none;
}

.dc-quote-cart-info .info-section .label {
    color: #888;
}

.dc-quote-cart-info .info-section .value {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
}

.dc-quote-cart-info .total-section {
    padding: 0 16px 14px;
    border-top: 1px solid #f0f0f0;
}

.dc-quote-cart-info .total-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dc-quote-cart-info .total-section li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.dc-quote-cart-info .total-section li:last-child {
    border-bottom: none;
}

.dc-quote-cart-info .total-section .label {
    color: #888;
}

.dc-quote-cart-info .total-section .value {
    font-weight: 600;
    color: #2c3e50;
}

.dc-quote-cart-info .total-section li.payment-amount .label,
.dc-quote-cart-info .total-section li.payment-amount .value {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ── Sidebar : couleur prix ──────────────────────────────────── */
#dc-sidebar-cabin-summary .value,
#dc-sidebar-base-price .value {
    color: #3b71fe !important;
    font-weight: 700;
}

/* ── Responsive: empiler sur petits écrans ──────────────── */
@media (max-width: 700px) {
    .quote-popup-body {
        display: block;
    }
    #quoteCruiseCard {
        width: 100%;
        flex: none;
        position: static;
    }
}

/* ─── Hover preview carte croisière (Stage 0) ─────────────────── */

#dc-cruise-hover-preview {
    position: fixed;
    z-index: 999999;
    width: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
    pointer-events: none;
    transform: translateY(-50%);
    display: none;
    background: #fff;
    border: 1px solid #e0e5ec;
    font-family: 'Heebo', sans-serif;
}

#dc-cruise-hover-preview .dc-hover-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

#dc-cruise-hover-preview .dc-hover-body {
    padding: 18px 20px 20px;
}

#dc-cruise-hover-preview .dc-hover-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    line-height: 1.3;
}

#dc-cruise-hover-preview .dc-hover-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

#dc-cruise-hover-preview .dc-hover-info li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid #f2f2f2;
}

#dc-cruise-hover-preview .dc-hover-info li:last-child {
    border-bottom: none;
}

#dc-cruise-hover-preview .dc-hover-info .label {
    color: #888;
    flex-shrink: 0;
}

#dc-cruise-hover-preview .dc-hover-info .value {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
}

/* ── st-service-feature : 2 colonnes sur mobile (col-xs-6 BS3 non supporté en BS4/5) ── */
@media (max-width: 767px) {
    .st-service-feature .col-xs-6 {
        width: 50%;
        float: left;
    }
    .st-service-feature .row::after {
        content: "";
        display: table;
        clear: both;
    }
}

/* ── Tour single page : .right (video/share/wishlist) beside review on mobile ── */
@media (max-width: 767px) {
    .single-st_tours .st-service-header2 {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
    }
    .single-st_tours .st-service-header2 > .left {
        flex: 1 !important;
        min-width: 0;
    }
    .single-st_tours .st-service-header2 > .right {
        flex-shrink: 0;
        align-self: flex-end;
        margin-top: 0 !important;
    }
}
