/*
Theme Name: Dorman Tour
Theme URI: 
Author: Honestly
Author URI: 
Description: A custom theme for the Dorman Tour Site
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.6.26
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dorman-tour
Tags: 
*/

@font-face {
    font-family: icomoon;
    src: url('./assets/fonts/icomoon/icomoon.woff');
}

body>div {
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.menu-panel-left {
    z-index: 9999;
    position: fixed;
    width: 60%;
    height: 100%;
    transform: translateX(-100%);
    transition: all .8s ease-in-out;
    background-color: #111;
}

.menu-panel-right {
    z-index: 9999;
    line-height: 1.42857143;
    position: fixed;
    right: 0;
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #111;
    transform: translateX(100%);
    transition: all .8s ease-in-out;
}

.menu-panel-left.is-open,
.menu-panel-right.is-open {
    transform: translateX(0);
}

/* only show left panel on mobile */
/* smaller font size on mobile */
@media only screen and (max-width: 768px) {
    .menu-panel-right {
        width: 100%;
    }

    .menu-panel-right .nav-heading {
        font-size: 20px !important;
    }

    .menu-panel-left {
        width: 0%
    }
}

.menu-panel-right .nav-heading {
    color: #FFF;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 20px;
}

.menu-panel-right .nav-subheading {
    width: 100%;
    margin: 0;
    padding: 0;
    height: 2px;
}

.menu-panel-right .nav-subheading::after {
    position: relative;
    display: block;
    content: "";
    height: 2px;
    margin: 20px auto 20px;
    width: 115px;
    background: #7a7a7a;
}

.nav-container {
    width: 100%;
    margin-top: 50px;
}

.nav-container ul {
    margin: 40px 20px 70px;
    padding-left: 0;
    display: block;
    box-sizing: border-box;
}

.menu-panel-right li {
    font-size: 18px;
    padding: 10px 15px;
    list-style: none;
    text-align: center;
    transition: 0.8s
}

.menu-panel-right li a {
    color: #D5D5D6;
    text-decoration: none;
    width: 100%;
    display: block;
}

.menu-panel-right li:hover {
    background: #FB6317;
    cursor: pointer;
}

.menu-panel-right li a:hover {
    color: #FFF;
}

.menu-close {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
    padding-right: 30px;
    margin-bottom: 50px;
}

.menu-close a {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
    float: right;
    transition: all;
}

.nav-logo-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.nav-logo-container a img {
    max-width: 175px;
}

.dot-bkg:after,
#menu-img:after {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    z-index: 1;
    background-image: url("./assets/img/dot-pattern.png");
    background-repeat: repeat;
}

#menu-img {
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 100vh;
    transition: all 0.3s ease-in-out;
}

.menu-btn .icon {
    transition-delay: 0.2s;
    transition-property: color;
    transition: .2s cubic-bezier(0.25, .46, .45, .94);
}

.menu-btn .icon:hover {
    color: #FFF;
}

#menu-trigger {
    cursor: pointer;
}

#menu-trigger:hover,
#menu-trigger:hover * {
    color: var(--wp--preset--color--custom-dorman-orange);
}

.hidden {
    display: none;
}

.site-footer {
    display: block;
}

.site-footer .site-info {
    background-color: #1c1c1c;
    padding-top: 22px;
    padding-bottom: 20px;
    padding-left: 90px;
    padding-right: 90px;
}

.flex-basis-0 {
    flex-basis: 0% !important;
}

.garage-container {
    height: 80vh;
}

/* interactive map styles */

#interactive-map-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
}

.map-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    background: transparent;
}

.map-sidebar h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.map-sidebar p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.map-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-filter button {
    background: #2D3137;
    color: #fff;
    padding: 12px 20px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: left;
    text-transform: uppercase;
}

.map-filter button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.map-filter button.active {
    background: #fff;
    color: #F26522;
}

.clear-filter {
    margin-top: 30px;
    color: #fff;
    font-size: 13px;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

#interactive-map {
    flex: 1;
    height: 100%;
    width: 100%;
}

.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    z-index: 9999;
    animation: zoomIn 0.3s ease;
    font-family: sans-serif;
    color: white;
}

.map-modal .left {
    flex: 2;
}

@media only screen and (max-width: 768px) {
    .map-modal .left {
        display: none;
    }
}

.map-modal .right {
    flex: 1;
    background: #fff;
    padding: 40px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    color: #2D3137;
    /* margin-top: 30px; */
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.map-modal .right {
    animation: slideInRight 0.5s ease forwards;
}

.map-modal h2 {
    margin-top: 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 24px;
}

.map-modal .right div {
    font-size: 14px;
    margin-top: 10px;
}

.modal-category {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #F26522;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 70px;
    margin-left: -10px;
}

.modal-category .modal-category-header {
    font-size: 18px;
    padding-right: 70px;
    line-height: 24px;
}

.modal-category-header:before {
    content: "\e900";
    font-family: 'icomoon' !important;
    color: #FB6317;
    position: absolute;
    top: 5px;
    left: -10px;
}

.modal-category {
    display: inline-block;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 90px;
    right: 50px;
    font-size: 28px;
    background: transparent;
    color: #F26522;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.gm-ui-hover-effect,
.gm-style-iw,
.gm-style-iw-c,
.gm-style-iw-ch,
.gm-style-iw-d {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .map-sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
        top: 50%;
    }

    #interactive-map-wrapper {
        flex-direction: column;
    }
}

/* Reverse Engineering Section Slider */

.reverse-engineering-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-image: url('./assets/img/dp-product-1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.reverse-engineering-slider-wrapper {
    z-index: 2;
    position: relative;
    width: 100%;
}

.reverse-engineering-slides {
    position: relative;
    width: 100%;
    height: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.reverse-engineering-slides:active {
    cursor: grabbing;
}

.reverse-engineering-slide {
    width: 100%;
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 60px;
    padding-bottom: 0px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    touch-action: pan-y;
}

.reverse-engineering-slide * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.reverse-engineering-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.reverse-engineering-slide.prev {
    transform: translateX(-100%);
}

.reverse-engineering-slide-inner {
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: row;
    min-height: 400px;
    max-width: 80%;
}

.reverse-engineering-slide-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
    margin-bottom: 22px;
    color: #FFF;
    position: relative;
    text-transform: uppercase;
    line-height: 1 !important;
}

.reverse-engineering-slide-description {
    margin-top: 120px;
    padding-left: 15px;
    padding-right: 40px;
    width: 50%;
}

.reverse-engineering-product-description {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #FFF;
}

.reverse-engineering-product-name {
    color: #d3d3d3;
    line-height: 1.8;
    text-align: right;
    margin-top: 50px;
    margin-bottom: 10px;
    font-style: italic;
}

.reverse-engineering-slide-title:before {
    content: "\e900";
    font-family: 'icomoon' !important;
    color: #FB6317;
    position: absolute;
    margin-left: -20px;
    margin-top: -20px;
}

.reverse-engineering-slide-image-wrapper {
    width: 50%;
    position: relative;
}

.reverse-engineering-slide-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.reverse-engineering-slide .slider-arrow {
    pointer-events: none;
}

.reverse-engineering-slide.active .slider-arrow {
    pointer-events: auto;
}

@media screen and (max-width: 768px) {
    .reverse-engineering-slide-title {
        font-size: 20px I !important;
    }
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #FB6317;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
    animation: pulse 2s infinite;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.play-button i {
    margin-left: 3px;
    /* Slight offset to center the play icon visually */
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Also apply to all images to prevent dragging */
.reverse-engineering-slide img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* But allow pointer events on the slide container itself for dragging */
.reverse-engineering-slide {
    pointer-events: auto;
}

/* And allow pointer events on interactive elements like buttons */
.slider-arrow {
    pointer-events: auto;
}

.play-button {
    pointer-events: auto;
}

.dot {
    pointer-events: auto;
}

.reverse-engineering-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 3;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s ease;
    background: #BBB;
    border-color: #BBB;
    border-width: 0px;
    padding: 0px;
    position: static;
    transform: none;
    animation: none;
}

.slider-dots .dot.active {
    background: transparent;
    border: 2px solid #f0f0f0;
}

.slider-arrow {
    background: transparent;
    color: #FFF;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 35px;
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.slider-arrow-left {
    left: 20px;
}

.slider-arrow-right {
    right: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reverse-engineering-slide-inner {
        flex-direction: column;
        /* text-align: center; */
    }

    .reverse-engineering-slide-description,
    .reverse-engineering-slide-image-wrapper {
        width: 100%;
    }

    .reverse-engineering-slider-nav {
        padding: 15px 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-arrow-left {
        left: 10px;
    }

    .slider-arrow-right {
        right: 10px;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Video Lightbox */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #FB6317;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        font-size: 24px;
    }

    .lightbox-overlay {
        padding: 10px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 16px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: #FB6317;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #FFF;
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 0;
    transform: translateY(100px);
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.back-to-top:hover {
    background: #000;
    transform: translateY(-2px);
}

.back-to-top.visible:hover {
    transform: translateY(-2px);
}

/* preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 99999999;
}

#preloader .loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: -25px;
    margin-left: 0px;
}

@media (max-width: 450px) {
    #preloader .loader {
        margin-left: 0px;
    }
}

#preloader .spinner {
    width: 125px;
    height: 125px;

    border: 2px solid #f3f3f3;
    border-top: 3px solid #fb6317;
    border-radius: 100%;

    position: absolute;
    top: 0%;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;

    animation: spin 1s infinite linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#preloader .icon {
    width: 75px;
    height: 75px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: block;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

#preloader p {
    position: absolute;
    text-align: center;
    display: block;
    width: 300px;
    top: 60%;
    left: 0;
    right: 0;
    margin: auto;
}
