/* Model Page Styles - Идентичные оригинальному сайту */

/* Header Slider Styles */
.header.slider {
    height: 100vh;
    overflow: hidden;
}

.header.slider .owl-carousel .owl-item {
    height: 100vh;
    position: relative;
}

.header.slider .item {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.header.slider .item .caption {
    z-index: 9;
}

.header.slider .v-middle {
    position: absolute;
    width: 100%;
    top: 50%;
    -webkit-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
    z-index: 9;
}

.header.slider .caption h2 {
    position: relative;
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 0;
    color: #fff;
    line-height: 1.25em;
    display: inline-grid;
}

.header.slider .model-title {
    font-size: 2.5rem !important;
}

/* Scroll indicator */
.header.slider .field {
    display: none;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.header.slider .field .scroll {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
}

.header.slider .field .scroll::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* Owl Carousel Dots for Slider */
.header.slider .owl-theme .owl-dots {
    position: absolute;
    width: 100%;
    bottom: 5%;
    left: 0;
}

.header.slider .owl-theme .owl-dots .owl-dot span {
    width: 15px;
    height: 15px;
    margin: 0 3px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #999;
}

.header.slider .owl-theme .owl-dots .owl-dot.active span,
.header.slider .owl-theme .owl-dots .owl-dot:hover span {
    background: var(--theme-color);
    border: 1px solid var(--theme-color);
}

/* Model Details Section */
.car-details {
    padding: 40px 0;
}

.section-padding-phone {
    padding-top: 40px;
}

.model-title {
    font-size: 2.5rem !important;
    font-weight: 700;
    color: #1b1b1b;
    margin-bottom: 20px;
}

/* Gallery Styles */
#image-gallery h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1b1b1b;
    margin-bottom: 20px;
}

#image-gallery h3 i {
    color: var(--theme-color);
    margin-right: 10px;
}

.gallery-items {
    margin-bottom: 60px;
}

.gallery-masonry-wrapper {
    margin-bottom: 15px;
}

.gallery-box {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: all 0.3s ease;
}

.gallery-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    position: relative;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-masonry-item-img-link:hover .gallery-img img {
    transform: scale(1.1);
}

.gallery-masonry-item-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-masonry-item-img-link:hover .gallery-masonry-item-img {
    opacity: 1;
}

/* Sidebar Sticky */
.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 1;
}

.car-booking-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.car-booking-form h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme-color);
    margin-bottom: 20px;
}

.car-booking-form p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

/* Description Section */
.description-container {
    margin-bottom: 30px;
}

.description {
    font-size: 15px;
    line-height: 1.8em;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Add a transition for smooth expand/collapse */
.description.expanded {
    -webkit-line-clamp: unset;
}

.read-more {
    color: var(--theme-color);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    color: #1b1b1b;
}

/* List Styles */
.list {
    position: relative;
    display: block;
}

.list li {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.list-icon {
    display: grid;
}

.list-icon span {
    font-size: 11px;
    color: #1b1b1b;
    background-color: #f2f2f2;
    text-align: center;
    padding: 15px;
    border-radius: 100%;
}

.list-text {
    margin-left: 15px;
}

.list-text p {
    font-size: 14px;
    margin: 0;
    color: #555;
}

/* Responsive Styles */
@media screen and (max-width: 600px) {
    .section-padding-phone {
        padding-top: 0px;
    }

    .model-title {
        font-size: 1.7rem !important;
    }

    .header.slider .caption h2 {
        font-size: 40px;
    }

    .sticky {
        position: relative;
        top: 0;
    }

    .gallery-masonry-wrapper {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 991px) {
    .header.slider .owl-theme .owl-nav {
        display: none;
    }
}

/* Overlay Dark Effect */
[data-overlay-dark]:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

[data-overlay-dark="1"]:before {
    background: rgba(0, 0, 0, 0.1);
}

[data-overlay-dark="2"]:before {
    background: rgba(0, 0, 0, 0.2);
}

[data-overlay-dark="3"]:before {
    background: rgba(0, 0, 0, 0.3);
}

[data-overlay-dark="4"]:before {
    background: rgba(0, 0, 0, 0.4);
}

[data-overlay-dark="5"]:before {
    background: rgba(0, 0, 0, 0.5);
}

[data-overlay-dark="6"]:before {
    background: rgba(0, 0, 0, 0.6);
}

[data-overlay-dark="7"]:before {
    background: rgba(0, 0, 0, 0.7);
}

[data-overlay-dark="8"]:before {
    background: rgba(0, 0, 0, 0.8);
}

[data-overlay-dark="9"]:before {
    background: rgba(0, 0, 0, 0.9);
}

/* Background Image */
.bg-img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Magnific Popup Animation Styles */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}

/* Убираем увеличенную картинку при закрытии */
.mfp-removing {
    opacity: 0 !important;
    transition: opacity 0.3s ease-out !important;
}
