body {
    font-family: "General-regular", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    letter-spacing: -0.4px;
    min-height: 75vh;
}
/*********Loader **********/
/* Full-page loader wrapper */
.page-loader {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    inset: 0;
    z-index: 11;
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    pointer-events: none; /* allow clicks through when hidden; toggled when visible via JS */
}

/* Backdrop: semi-transparent white with blur of page behind */
.page-loader__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 1); /* light overlay for B/W look */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Safari */
    mix-blend-mode: normal;
    overflow: hidden;
}

.page-loader__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: blur(2px);
}

/* Content centered on top of backdrop */
.page-loader__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    user-select: none;
}

/* SVG spinner styling - black & white */
.loader-spinner {
    width: 72px;
    height: 72px;
    display: block;
}

/* background ring (thin light) */
.loader-spinner .spinner-bg {
    stroke: #222; /* dark stroke for contrast */
    opacity: 0.12;
}

/* animated segment (alternates black/white using stroke and animation) */
.loader-spinner .spinner-seg {
    stroke: #000;
    stroke-dasharray: 80;
    stroke-dashoffset: 60;
    transform-origin: 50% 50%;
    animation:
        spin 1.1s linear infinite,
        segFade 2.2s linear infinite;
}

/* loader text (B/W) */
.loader-text {
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial;
    color: #111;
    background: rgba(255, 255, 255, 0.65);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* show state helper (used by JS) */
.page-loader.is-visible {
    display: flex;
    pointer-events: auto;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes segFade {
    0% {
        stroke: #000;
        opacity: 1;
    }
    50% {
        stroke: #fff;
        opacity: 0.85;
    }
    100% {
        stroke: #000;
        opacity: 1;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .loader-spinner .spinner-seg {
        animation: none;
    }
    .loader-spinner {
        transform: none;
    }
}

/* Responsive tweak */
@media (max-width: 420px) {
    .loader-spinner {
        width: 56px;
        height: 56px;
    }
    .loader-text {
        font-size: 13px;
        padding: 5px 8px;
    }
}
.site-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    width: 100%;
}
.metalic-paint {
    background-image: url("../img/texture/metallic_paint.png");
}
/* GS60 Bleached Flexiteek variants — no real texture yet; reuse Natural teak images
   with a bleached/washed filter until client provides real textures. */
.bleached-variant {
    filter: brightness(1.15) saturate(0.5);
}
/* GS60 Cuscineria fabric swatches — exact HEX confirmed by client.
   Real PNG previews still pending; HEX tints the shared .fabric (FABRIC.png) base. */
.mat_fabric_ardoise {
    background-color: #555550;
} /* Ardoise 3737 */
.mat_fabric_black {
    background-color: #151614;
} /* Black 5408 */
.mat_fabric_blazer {
    background-color: #1c2024;
} /* Blazer 3991 */
.mat_fabric_cadet_grey {
    background-color: #908e81;
} /* Cadet Grey 5530 */
.mat_fabric_canvas {
    background-color: #bfc1b2;
} /* Canvas 5453 */
.mat_fabric_natural {
    background-color: #ced2ca;
} /* Natural 5404 */
.mat_fabric_silver_grey {
    background-color: #b4b6aa;
} /* Silver Grey 3741 */
.mat_fabric_sooty {
    background-color: #30312d;
} /* Sooty 3758 */
.mat_fabric_taupe {
    background-color: #757163;
} /* Taupe 3729 */

/* GS60 Rivestimenti Divani — exact HEX confirmed by client (Cotone 11 + Pelle 12 + Microfibra 12 = 35).
   Real PNG previews still pending; HEX tints the shared .fabric (FABRIC.png) base. */

/* Cotone (11) */
.mat_divani_cotton_0094 {
    background-color: #36342f;
}
.mat_divani_cotton_0081 {
    background-color: #9a6a46;
}
.mat_divani_cotton_0060 {
    background-color: #c6b89c;
}
.mat_divani_cotton_0032 {
    background-color: #666560;
}
.mat_divani_cotton_0025 {
    background-color: #cdcdb6;
}
.mat_divani_cotton_0024 {
    background-color: #76765e;
}
.mat_divani_cotton_0020 {
    background-color: #a0754a;
}
.mat_divani_cotton_0015 {
    background-color: #2a3d4b;
}
.mat_divani_cotton_0014 {
    background-color: #5d7197;
}
.mat_divani_cotton_0007 {
    background-color: #9b8f79;
}
.mat_divani_cotton_0002 {
    background-color: #edeee0;
}

/* Pelle (12) — leather colours */
.mat_divani_vaniglia {
    background-color: #d3c8ae;
} /* Vaniglia 633 */
.mat_divani_prussia {
    background-color: #28383d;
} /* Prussia 609 */
.mat_divani_ottico {
    background-color: #cfd0c8;
} /* Ottico 617 */
.mat_divani_oasi {
    background-color: #a99f8c;
} /* Oasi 634 */
.mat_divani_muschio {
    background-color: #394239;
} /* Muschio 664 */
.mat_divani_melograno {
    background-color: #613839;
} /* Melograno 610 */
.mat_divani_lino {
    background-color: #c0baa7;
} /* Lino 679 */
.mat_divani_creta {
    background-color: #585249;
} /* Creta 606 */
.mat_divani_cipria_pelle {
    background-color: #d3b893;
} /* Cipria 667 */
.mat_divani_capri {
    background-color: #265b5f;
} /* Capri 608 */
.mat_divani_camoscio_pelle {
    background-color: #817a6e;
} /* Camoscio 627 */
.mat_divani_avana {
    background-color: #d3bd93;
} /* Avana 621 */

/* Microfibra (12) */
.mat_divani_tortora {
    background-color: #dcd5cb;
} /* Tortora 0101 */
.mat_divani_panna {
    background-color: #dcd5b4;
} /* Panna 0060 */
.mat_divani_moca {
    background-color: #b89e82;
} /* Moca 0076 */
.mat_divani_grigio_mf {
    background-color: #848276;
} /* Grigio 0032 */
.mat_divani_grafite {
    background-color: #6b716a;
} /* Grafite 0074 */
.mat_divani_ecru {
    background-color: #e7d6ae;
} /* Ecru 0007 */
.mat_divani_crema {
    background-color: #eaead3;
} /* Crema 0025 */
.mat_divani_corallo {
    background-color: #c8605a;
} /* Corallo 0043 */
.mat_divani_cipria_mf {
    background-color: #beb3a5;
} /* Cipria 0050 */
.mat_divani_cielo {
    background-color: #929a8f;
} /* Cielo 0053 */
.mat_divani_camoscio_mf {
    background-color: #8f8272;
} /* Camoscio 0561 */
.mat_divani_bianco_mf {
    background-color: #d1cec7;
} /* Bianco 0002 */
.concrete {
    background-image: url("../img/texture/Concrete.png");
}
.fabric {
    background-image: url("../img/texture/FABRIC.png");
}
.leather {
    background-image: url("../img/texture/Leather.png");
}
.moquette {
    background-image: url("../img/texture/Moquette.png");
}
.teak {
    background-image: url("../img/texture/teak.png");
}
.mat001 {
    background-color: #fffff0;
}
.mat002 {
    background-color: #878581;
}
.mat003 {
    background-color: #e8e2d8;
}
.mat004 {
    background-color: #c6c8ca;
}
.mat005 {
    background-color: #f3f3f3;
}
.mat006 {
    background-color: #aa7330;
}
.mat007 {
    background-color: #5e3f1c;
}
.mat008 {
    background-color: #a4a6b3; /* Seafoam */
}
.mat009 {
    background-color: #dbe1e4; /* Grey */
}
.mat010 {
    background-color: #ece4dc; /* Light grey */
}
.mat011 {
    background-color: #9e9c96; /* Taupe */
}
.mat012 {
    background-color: #ddded6; /* Linen */
}
.mat013 {
    background-color: #763d3c; /* Terracotta */
}
.mat014 {
    background-color: #8083a0; /* Navy */
}
.mat015 {
    background-color: #646970; /* Dark grey */
}
.mat016 {
    background-color: #e2d8d2; /* Sand */
}
.mat017 {
    background-color: #9299b3; /* Blue */
}
.mat018 {
    background-color: #bfbdbc;
}
.mat019 {
    background-color: #4f5b65; /* Steel Blue */
}
.mat020 {
    background-color: #ffffff;
}
.mat021 {
    background-color: #000000;
}
.mat022 {
    background-color: #707070;
}
.mat023 {
    background-color: #89cff0;
}
.mat024 {
    background-color: #76b5c5;
}
.mat025 {
    background-color: #a7a7a7;
}
/* GS60 hull paint colors — exact HEX confirmed by client. The .mat_*
   classes are still used by the swatch DOM (kept for backwards compat);
   the .gs60-swatches [data-mat=…] overrides below are what really
   matters in GS60 — Pardo's mat023/024/025 utilities give different
   tones than what GS60 needs. */
.mat_116M {
    background-color: #959595;
} /* 116M Grey Stone */
.mat_203P {
    background-color: #505350;
} /* 203P Nardo Grey */
.mat_207P {
    background-color: #131727;
} /* 207P Deep Blue */

.gs60-swatches [data-mat="116M Grey Stone"] .texture {
    background-color: #959595;
}
.gs60-swatches [data-mat="203P Nardo Grey"] .texture {
    background-color: #505350;
}
.gs60-swatches [data-mat="207P Deep Blue"] .texture {
    background-color: #131727;
}
.gs60-swatches [data-mat="mat023_Baby Blue"] .texture {
    background-color: #82939c;
}
.gs60-swatches [data-mat="mat024_Byron Blue"] .texture {
    background-color: #45555b;
}
.gs60-swatches [data-mat="mat025_Floretti Silver"].texture {
    background-color: #8c9292;
}
.mat026 {
    background-color: #a67c52;
}
.mat027 {
    background-color: #b58e65;
}
.mat028 {
    background-color: #c9b29c;
}
.mat029 {
    background-color: #e2c9aa;
}
.mat030 {
    background-color: #b7936b;
}
.mat031 {
    background-color: #b68655;
}
.mat032 {
    background-color: #c79a63;
}
.mat033 {
    background-color: #a97447;
}
.mat034 {
    background-color: #d5d2cf; /* ICE */
}
.mat035 {
    background-color: #a49e93; /* Cream */
}
.mat036 {
    background-color: #c2b69e;
}
.mat037 {
    background-color: #2c2625; /* Champagne */
}
.mat038 {
    background-color: #90857c; /* Macadamia */
}
.mat039 {
    background-color: #867355; /* Taupe */
}
.mat040 {
    background-color: #373130; /* Meteor */
}
.mat041 {
    background-color: #752924; /* Sunkist */
}
.mat042 {
    background-color: #354b5a; /* Jet */
}
.mat043 {
    background-color: #3b3e49; /* Storm */
}
.mat044 {
    background-color: #575652; /* Sterling */
}
.mat045 {
    background-color: #95a9c1; /* Carbon Sky */
}
.mat046 {
    background-color: #dcdcd4;
}
.mat047 {
    background-color: #dadbd7; /* Mirage */
}
.mat048 {
    background-color: #6d7175; /* Charcoal Chiné */
}
.mat049 {
    background-color: #91a3b0;
}
.mat050 {
    background-color: #262940; /* Bluestone */
}
.mat051 {
    background-color: #aba39f; /* Carbon Beige */
}
.mat052 {
    background-color: #edd7bd;
}
.mat053 {
    background-color: #d6d6c8; /* Antique */
}
.mat054 {
    background-color: #e98923; /* Mango */
}
.mat055 {
    background-color: #878581; /* Mango */
}
.mat056 {
    background-color: #e8e2d8; /* Mango */
}

/* GT65 swatch colors — exact HEX from client doc (GT 65 Configuratore.pdf).
   Scoped overrides like .gs60-swatches above, so shared mat018/024/025
   utilities keep serving P43/GS60 with their own tones while GT65 gets its
   own exact HEX per swatch (same wrapper/.texture markup, just a different
   data-mat value). */
.gt65-swatches [data-mat="mat018_Artic grey"] .texture {
    background-color: #b5b4ac;
}
.gt65-swatches [data-mat="mat057_Nardo Grey"] .texture {
    background-color: #676b6b;
}
.gt65-swatches [data-mat="mat058_Batumi gold"] .texture {
    background-color: #b1a48f;
}
.gt65-swatches [data-mat="mat024_Byron Blue"] .texture {
    background-color: #4a6078;
}
.gt65-swatches [data-mat="mat059_LC6R PORSCHE AVENTURINE GREEN METALLIC"] .texture {
    background-color: #4a4e44;
}
.gt65-swatches [data-mat="mat025_Floretti Silver"] .texture {
    background-color: #abb2ba;
}
.gt65-swatches [data-mat="mat012_Linen Chalk"] .texture {
    background-color: #c1b8ad;
}
.gt65-swatches [data-mat="mat045_Carbon Sky"] .texture {
    background-color: #859ca3;
}
.gt65-swatches [data-mat="mat046_Graumel Chalk"] .texture {
    background-color: #a6a49e;
}
.gt65-swatches [data-mat="mat053_Antique"] .texture {
    background-color: #d7d5c8;
}
.gt65-swatches [data-mat="mat051_Carbon Beige 1"] .texture {
    background-color: #6c6660;
}
.gt65-swatches [data-mat="mat061_Perla"] .texture {
    background-color: #a8a7a2;
}
.gt65-swatches [data-mat="mat062_Duna"] .texture {
    background-color: #beaf98;
}
.gt65-swatches [data-mat="mat063_Ecume"] .texture {
    background-color: #cbc4b5;
}
.gt65-swatches [data-mat="mat064_Conchiglia"] .texture {
    background-color: #dcd4c9;
}
/* Client confirmed: Celadon keeps the original doc HEX, Zagora is the
   darker/distinct one (#7A8A8A) — the two were duplicated in the first
   version of the doc. */
.gt65-swatches [data-mat="mat065_Celadon"] .texture {
    background-color: #b7bfb0;
}
.gt65-swatches [data-mat="mat066_Zagora"] .texture {
    background-color: #7a8a8a;
}

#buttonCluster {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    max-width: 90%;
    pointer-events: auto;
}
.stream-container {
    display: flex;
    width: 100%;
    padding: 0 20px;
    padding-top: 0px;
    gap: 20px;
    height: 86vh;
    overflow: hidden;
    margin-bottom: 10px;
}
.background-container {
    position: fixed;
    top: 0;

    left: 0;
    right: 0;
    background: white;
    z-index: 25;
    height: 114px;
}

.stream-view-container {
    flex: 0 0 80%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    background-color: white;
}
#streamContainer {
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}
.sidebar {
    /* overflow-x: hidden clips wide mobile content (long option labels,
       swatch grids) so it can't push the page wider than the viewport and
       trigger horizontal scroll. This used to live on html/body, but any
       non-"visible" overflow-x forces the SAME element's overflow-y to
       "auto" per the CSS Overflow spec — on html/body that turned them into
       a scroll container, which broke `position: sticky` on
       .stream-view-container (the video + camera strip that's supposed to
       stay pinned while this sidebar scrolls under it on mobile, see
       @media (max-width: 1100px)) in every browser. .sidebar is a SIBLING
       of .stream-view-container, not an ancestor, so clipping here has the
       same effect without breaking sticky. */
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}
/* Boat model sections - hidden by default, shown via JS */
.boat-config {
    display: none;
}
.boat-config.active {
    display: block;
}
.yacht-title-container {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 16px;
}
.yacht-model {
    font-family: "tt-commons-pro", sans-serif;
    font-weight: 400;
    font-size: 3rem;
    line-height: 3rem;
}
.yacht-year {
    background-color: #eeeff2;
    padding: 1px 6px;
    border-radius: 4px;
}
.tech-link {
    margin-bottom: 15px;
    text-decoration: underline;
    font-size: 15px;
}
.cameras {
    display: flex;
    padding: 12px 0;
    width: 100%;
    height: 82px;
    gap: 20px;
    background-color: white;
    /* Used by GS60's .camera-list to stay in sync with P43 thumbnail
       size on every breakpoint. 58 = 82 (strip height) - 24 (padding). */
    --thumb-h: 58px;
    --thumb-gap: 20px;
}
.img-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    border-radius: 6px;
    border: 2px solid transparent;
}
.img-wrapper:hover,
.img-wrapper.active,
.texture-wrapper.active,
.texture-wrapper:hover {
    border-color: black;
    cursor: pointer;
}
.img {
    height: 100%;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.scenes {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.interior-scenes,
.exterior-scenes {
    width: 100%;
    height: auto;
    min-height: 200px;
}
.scene-type {
    font-weight: 700;
    font-size: 23px;
    margin-bottom: 20px;
}

.scene-label {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
}
.interior-scenes-container,
.exterior-scenes-container {
    display: flex;
    width: 100%;
    height: auto;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.exterior-scenes,
.interior-scenes {
    box-shadow: 0px 4px 16px #00000029;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eeeff2;
    box-sizing: border-box;
    border-radius: 12px;
}

.scene.img-wrapper,
.essenza-scene.img-wrapper {
    width: 132px;
    height: 70px;
    overflow: hidden;
    background-color: hsl(0, 0%, 100%);
    background-blend-mode: multiply;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid transparent;
}
.texture-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
    border: 2px solid transparent;
    overflow: hidden;
    border-radius: 6px;
}
.texture {
    box-shadow: 0px 4px 16px #00000029;
    width: 62px;
    height: 62px;

    background-blend-mode: multiply;
    border-radius: 6px;
    background-repeat: no-repeat;
    background-position: 0 0; /* acts like "padding" */
    background-size: 100% 100%;
}

/* GS60 material swatches — same size as P43, without the outer card/shadow */
.gs60-swatches {
    padding: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    gap: 10px;
    margin: 4px 0 8px;
}
.gs60-swatches .scene-container.hidden {
    display: none !important;
}

/* Dynamic material-name label above GS60 swatches — match pdf-option-list body style
   (same size/weight/colour as the Flexiteek checkbox labels). */
.boat-config[data-boat="GS60"] .scene-label.normal {
    font-weight: 400;
    font-size: 0.85rem;
    color: #333;
    margin: 4px 0 8px;
}

/* Rivestimenti Divani — per-group dynamic label reserves vertical space so the
   swatch grid doesn't jump when switching between Cotone / Pelle / Microfibra. */
.boat-config[data-boat="GS60"] .divani-group-label {
    min-height: 1.4em;
}

/* Rivestimenti Divani — subsection category headings (Cotone / Pelle / Microfibra)
   are smaller than the main "Rivestimenti Divani" scene-type so they feel
   subordinate rather than competing with the section title. */
.boat-config[data-boat="GS60"] .divani-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 4px;
}

.cockpit-selector {
    display: flex;
    gap: 1rem;
}

.radio-option {
    position: relative;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: black;
}

.radio-option input {
    display: none;
}

.radio-option span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid black;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.radio-option input:checked + span {
    background: black;
    color: white;
}

/* ===== GS60 config sections (radio/checkbox lists) ===== */
.pdf-config-sections {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Section group card (matches .exterior-scenes / .interior-scenes style) */
.config-group {
    box-shadow: 0px 4px 16px #00000029;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eeeff2;
    box-sizing: border-box;
    border-radius: 12px;
}

.config-group-title {
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #000;
}

.pdf-section {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.6rem;
}

.pdf-section:last-child {
    border-bottom: none;
}

.pdf-section .scene-type {
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.pdf-option-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pdf-option-list label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #333;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.pdf-option-list label:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Highlight selected radio/checkbox labels */
.pdf-option-list input[type="radio"]:checked ~ span,
.pdf-option-list input[type="checkbox"]:checked ~ span {
    font-weight: 600;
    color: #000;
}

.pdf-option-list input[type="radio"],
.pdf-option-list input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: black;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pdf-option-list .option-code {
    font-weight: 600;
    white-space: nowrap;
    margin-right: 0.2rem;
    color: #666;
    font-size: 0.78rem;
}

.pdf-option-list input:checked ~ span .option-code {
    color: #000;
}

/* GS60 conditionally-locked options (e.g. Bimini requires specific Rollbar) */
.pdf-option-list input:disabled ~ span {
    opacity: 0.35;
}
.pdf-option-list label.locked {
    cursor: not-allowed;
}

.pdf-option-list .always-active {
    opacity: 0.55;
    pointer-events: none;
}

.pdf-option-list .always-active input {
    pointer-events: none;
}

/* 3D-configurable sections subtle indicator */
.pdf-section[data-3d="true"] .scene-type::after {
    content: " 3D";
    font-size: 8px;
    color: #e91e63;
    vertical-align: super;
}

.scene.img-wrapper:hover,
.scene.img-wrapper.active,
.essenza-scene.img-wrapper:hover,
.essenza-scene.img-wrapper.active {
    border-color: black;
    cursor: pointer;
}
.camera-name,
.scene-name {
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}
.scene-tmp {
    background: url("../img/Leather.png");

    width: 100px;
    height: 100px;
    overflow: hidden;
    background-color: hsl(206, 27%, 38%);
    background-blend-mode: multiply;
    border-radius: 0;
}
.streamButton {
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    background: #222;
    color: #fff;
    cursor: pointer;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}
.streamButton:hover {
    background: #444;
}
.streamButton:disabled {
    background: #888;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}
.normal {
    font-weight: 400;
}

/* Configuration Action Buttons */
.config-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-bottom: 20px;
}

.config-button {
    padding: 13px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    border: 2px solid #262322;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.dealer-button {
    background-color: #262322;
    color: white;
}

.dealer-button:hover {
    background-color: #3a3533;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.email-config-button {
    background-color: white;
    color: #262322;
}

.email-config-button:hover:not(:disabled) {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.email-config-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e5e5e5;
    color: #999;
    border-color: #ccc;
    transform: none;
    box-shadow: none;
}

.email-config-button:disabled:hover {
    background-color: #e5e5e5;
    transform: none;
    box-shadow: none;
}
@media (max-width: 1240px) {
    .yacht-title-container {
        gap: 20px;
    }
}
@media (max-width: 1100px) {
    .stream-container {
        flex-direction: column;
        position: relative;
        height: auto;
        overflow: visible;
        padding-left: 40px;
        padding-right: 40px;
    }
    .stream-view-container {
        position: sticky;
        top: 125px;
        z-index: 20;
    }
    .background-container {
        height: 125px;
    }

    .sidebar {
        overflow-y: visible;
        overflow-x: hidden;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .stream-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .cameras {
        gap: 5px;
        --thumb-gap: 5px;
    }
    .stream-view-container {
        top: 104px;
    }
    .background-container {
        height: 104px;
    }
}

@media (max-width: 700px) {
    .cameras {
        gap: 5px;
        --thumb-gap: 5px;
    }
}

@media (max-width: 600px) {
    .cameras {
        height: 72px;
        --thumb-h: 48px;
    }
}

@media (max-width: 540px) {
    .cameras {
        height: 70px;
        --thumb-h: 46px;
    }
}

@media (max-width: 505px) {
    .cameras {
        height: 66px;
        --thumb-h: 42px;
    }
}

@media (max-width: 480px) {
    .cameras {
        height: 64px;
        --thumb-h: 40px;
    }
}

@media (max-width: 450px) {
    .cameras {
        height: 60px;
        --thumb-h: 36px;
    }
}
@media (max-width: 410px) {
    .cameras {
        height: 57px;
        gap: 3px;
        --thumb-h: 33px;
        --thumb-gap: 3px;
    }
    .stream-container {
        padding: 0 5px;
    }
}

@media (max-width: 380px) {
    .cameras {
        height: 55px;
        --thumb-h: 31px;
    }
}

@media (max-width: 355px) {
    .cameras {
        height: 52px;
        --thumb-h: 28px;
    }
}

/* ==================== Camera tabs (GS60: Main Deck / Lower Deck; ====================
   ==================== GT65: Exterior / Main Deck / Lower Deck) ==================== */
/* When the model has tabs (currently GS60 and GT65), .cameras becomes a
   vertical stack: tabs bar on top, active list below. The thumbnail
   strip itself reuses --thumb-h from .cameras, so it scales identically
   to P43 on every breakpoint. */
.cameras:has(.camera-tabs) {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.camera-tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 4px;
    margin: 0;
}

/* GS60-only "Vele" sails toggle sitting on the right end of the tabs row. */
.vele-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-family: "TT-Norms-Pro-Regular", "Helvetica Neue", Arial, sans-serif;
}
.vele-toggle__label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}
.vele-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.vele-toggle__switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: #c9c9c9;
    border-radius: 999px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.vele-toggle__switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}
.vele-toggle input:checked + .vele-toggle__switch {
    background: #4caf50;
}
.vele-toggle input:checked + .vele-toggle__switch::after {
    transform: translateX(16px);
}
.vele-toggle input:focus-visible + .vele-toggle__switch {
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.35);
}
.camera-tab {
    background: none;
    border: 0;
    cursor: pointer;
    font-family: "TT-Norms-Pro-Regular", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #6b6b6b;
    padding: 4px 0;
    font-weight: 500;
    line-height: 1;
    transition: color 0.15s;
}
.camera-tab:hover {
    color: #000;
}
.camera-tab.active {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}
.camera-list {
    display: none;
    width: 100%;
    /* Stays in sync with P43 thumbnails — values defined on .cameras and
       updated for each breakpoint above. */
    height: var(--thumb-h, 58px);
    gap: var(--thumb-gap, 20px);
}
.camera-list.active {
    display: flex;
}
.camera-container {
    position: relative;
}
.camera-list .camera-container {
    height: 100%;
}

/* Per-camera name — hidden bubble shown on hover/focus above the thumbnail,
   rendered for every camera that declares a nameKey (P43/GS60/GT65 all do).
   Kept out of layout flow (position:absolute) so it doesn't disturb the
   fixed --thumb-h strip height. Default is above the thumbnail; P43 flips
   it to below (see override underneath). */
.camera-name-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 5;
}
/* P43 — tooltip below the thumbnail instead of above (client request). */
html[data-model="p43"] .camera-name-tooltip {
    bottom: auto;
    top: 100%;
    transform: translateX(-50%) translateY(6px);
}
.camera-container:hover .camera-name-tooltip,
.camera:focus-visible ~ .camera-name-tooltip {
    opacity: 1;
    visibility: visible;
}
