﻿.side-panel {
    border-right: 1px solid #e0e0e0;
    padding: 10px;
    width: 300px;
    flex-shrink: 0;
}


.listing-list {
    padding: 10px;
    flex-grow: 1;
}


.listing {
    margin-bottom: 5px;
    border: 1px solid #e0e0e0;
    transition: all .5s ease;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    padding: 5px;
}


.listing:hover {
    background: #f0f0f0;
    box-shadow: 1px 1px 2px #4a4a4a;
}


.listing:hover a {
    text-decoration: underline;
}


.listing:nth-child(odd) {
    background-color: #f9f9f9;
}


.highlight {
    border: 5px solid gold;
}


.listing-image-wrapper {
    position: relative;
}


.listing-image {
    position: relative;
    border: 1px solid #e0e0e0;
    width: 160px;
    aspect-ratio: 4/3;
    overflow: hidden;
    flex-shrink: 0;
}


.confirmed-user {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}


.thumbnail-image, .logo-thumbnail {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.thumbnail-background, .logo-thumbnail-background {
    z-index: 1;
    width: 100%;
    height: 100%;
    position: absolute;
    filter: blur(8px);
    object-fit: cover;
}


.listing-text {
    display: flex;
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 5px;
    flex-grow: 1;
}


.listing-header {
    font-weight: 600;
    text-align: start;
}


.listing-description {
    flex-grow: 1;
}


.listing-info {
    font-style: italic;
}


.listing-price {
    flex-shrink: 0;
    color: #bf1313;
    font-weight: 600;
    font-size: 1.2rem;
}


@media (max-width: 1000px) {
    .listing {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }


    .listing-text {
        align-items: center;
        text-align: center;
    }


    .listing-header {
        text-align: center;
    }


    .listing-list {
        width: 100%;
    }


    a {
        text-decoration: underline;
    }

}

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


textarea {
    resize: none;
}


.profile-info {
    white-space: nowrap;
    text-align: center;
}


.profile-info p {
    margin-bottom: 10px;
}


.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;
}


#contact-form-wrapper form {
    margin: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


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


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


#username-form-wrapper, #password-form-wrapper {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #e0e0e0;
}


#username-form-wrapper form, #password-form-wrapper form {
    display: flex;
    flex-direction: column;
    align-items: center;
}


#username-form-wrapper label, #password-form-wrapper label {
    margin-bottom: 5px;
}


#username-form-wrapper input, #password-form-wrapper input {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}


.btn {
    display: block;
    margin: 0 auto 5px auto;
}


#rating-section {
    text-align: center;
}


#rating-section h3 {
    margin-bottom: 10px;
}


.btn.selected {
    border-color: #000;
    background-color: #c24e4e;
}


#rating-form-wrapper {
    padding: 10px 0;
}


#rating-form textarea {
    display: block;
    width: 90%;
    margin: 10px auto;
    padding: 10px;
    resize: none;
}


#rating-success-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    color: #4caf50;
}


.review-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 100px;
}


.review-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 10px;
    text-align: center;
    opacity: 1;
    transform: translateX(0);
    transition: all .5s ease;
}


.hidden-form {
    display: none;
}


.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
}


.review-item.slide-out {
    transform: translateX(-100%);
    opacity: 0;
}


.break-word {
    white-space: normal;
}


.listing-header {
    text-align: center;
}


.no-listings {
    text-align: center;
}


@media (max-width: 1000px) {
    h1 {
        padding-bottom: 20px;
    }


    h2 {
        font-size: 2rem;
    }


    .profile-info p, .profile-info form, .profile-info input {
        font-size: 1.25rem;
    }


    .main-section {
        flex-direction: column;
        align-items: center;
        justify-content: start;
    }


    .side-panel {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
    }

}



