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, 0.4); /* light overlay for B/W look */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Safari */
    mix-blend-mode: normal;
}

/* 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");
}
.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;
}
.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 */
}

#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: 150px;
    gap: 20px;
    height: 99vh;
    overflow: hidden;
}
.background-container {
    position: fixed;
    top: 0;

    left: 0;
    right: 0;
    background: white;
    z-index: 25;
    height: 150px;
}

.stream-view-container {
    flex: 0 0 70%;
    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 {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding-right: 10px;
}
.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: 17px;
}
.cameras {
    display: flex;
    padding: 12px 0;
    width: 100%;
    height: 82px;
    gap: 20px;
    background-color: white;
}
.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%;
}

.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;
}

.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;
}

@media (max-width: 1000px) {
    .stream-container {
        flex-direction: column;
        padding-top: 150px;
        position: relative;
        height: auto;
        overflow: visible;
    }
    .stream-view-container {
        position: sticky;
        top: 125px;
        z-index: 20;
    }
    .background-container {
        height: 125px;
    }

    .sidebar {
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .cameras {
        gap: 5px;
    }
    .stream-view-container {
        top: 104px;
    }
    .background-container {
        height: 104px;
    }
}

@media (max-width: 700px) {
    .cameras {
        gap: 5px;
    }
}

@media (max-width: 600px) {
    .cameras {
        height: 72px;
    }
}

@media (max-width: 540px) {
    .cameras {
        height: 70px;
    }
}

@media (max-width: 505px) {
    .cameras {
        height: 66px;
    }
}

@media (max-width: 480px) {
    .cameras {
        height: 64px;
    }
}

@media (max-width: 450px) {
    .cameras {
        height: 60px;
    }
}
@media (max-width: 410px) {
    .cameras {
        height: 57px;
        gap: 3px;
    }
    .stream-container {
        padding: 0 5px;
        padding-top: 120px;
    }
}

@media (max-width: 380px) {
    .cameras {
        height: 55px;
    }
}

@media (max-width: 355px) {
    .cameras {
        height: 52px;
    }
}
