﻿h1 {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 50px;
}


input, textarea {
    padding: 5px;
}


textarea {
    resize: none;
}


.listing-view {
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 10px;
}


.listing-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex: 1;
}


.carousel-wrapper {
    width: 100%;
}


.listing-description {
    width: 90%;
}


.listing-description p {
    /* text-indent: 2em; */
    margin-bottom: 5px;
}


.carousel {
    width: min(640px, 100%);
    aspect-ratio: 4/3;
    margin: 0 auto 5px auto;
}


.carousel img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}


.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


.listing-data {
    width: min(300px, 30%);
    border-left: 1px solid #e0e0e0;
    padding: 10px;
}


.listing-data p {
    margin-bottom: 10px;
}


.spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}


.spec-row .value {
    text-align: end;
}


.label {
    display: block;
}


.value {
    font-weight: 600;
}


dl {
    white-space: wrap;
}


.listing-info {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}


.listing-info .value {
    margin-bottom: 10px;
}


.listing-info .value:last-of-type {
    margin-bottom: 0;
}


.listing-info a {
    text-decoration: underline;
    transition: all .5s ease;
}


.listing-info a:hover {
    text-decoration: underline;
    text-shadow: 1px 1px 1px rgba(74, 74, 74, .5);
}


.listing-price {
    text-align: center;
    font-size: 2rem;
    color: #bf1313;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}


.original-price {
    font-size: 1rem;
    color: #4a4a4a;
    display: block;
}


.social-share-header {
    font-size: 1.5rem;
    margin-bottom: 0;
}


.social-share-header + div {
    margin-bottom: 20px;
}


.confirmed-user {
    display: block;
}


.listing-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}


.hidden {
    display: none;
}


.message-form label {
    margin-bottom: 5px;
}


.message-form input, .message-form textarea {
    display: block;
    margin-bottom: 5px;
    width: 100%;
}


.message-form .btn {
    display: block;
    margin: 0 auto;
}


#phone-number {
    align-items: center;
}


#page-overlay, #big-image-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: 15;
    width: 100%;
    height: 100%;
}


#page-overlay.active, #big-image-wrapper.active {
    display: block;
}


#big-image-wrapper {
    z-index: 16;
    justify-content: center;
    align-items: center;
}


#big-image-wrapper.active {
    display: flex;
}


#big-carousel {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.big-carousel-controls, .big-carousel-close {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 1.25rem;
    text-wrap: nowrap;
}

.big-carousel-controls button, .big-carousel-close button {
    border: none;
    background-color: #000;
    color: #fff;
}


.big-carousel-controls button:hover, .big-carousel-controls button:focus, .big-carousel-close button:hover, .big-carousel-close button:focus {
    background-color: #000;
}


.big-carousel-close {
    bottom: unset;
    left: unset;
    top: 0;
    right: 0;
    transform: translateX(0);
    padding: 5px;
    z-index: 20;
}


#carousel-image {
    cursor: zoom-in;
}


#big-carousel-image {
    cursor: zoom-out;
    touch-action: manipulation;
    transition: all .5s ease;
}


#contact-form-wrapper form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


#contact-form-wrapper form div {
    width: 100%;
}


.g-recaptcha {
    display: flex;
    align-items: center;
    justify-content: center;
}


#map {
    height: 200px;
    width: 100%;
    border: 1px solid #e0e0e0;
    z-index: 0;
    margin-bottom: 10px;
}


@media (max-width: 800px) {
    h1 {
        font-size: 2.5rem;
        padding-bottom: 20px;
    }


    .listing-view {
        flex-direction: column;
        align-items: center;
    }


    .listing-section {
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 20px;
    }


    .listing-data {
        border-left: none;
        width: min(100%, 300px);
    }


    .carousel-controls, .listing-description, .listing-data {
        font-size: 1.25rem;
    }


    .listing-data {
        width: 90%;
        padding: 0;
    }

}



