.outer-container {
    background: #0d0d0d;
    color: #ffffff;

    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background: #171717;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #333333;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.listing-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 25px;
}

.description {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

.location {
    color: #a3a3a3;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.price {
    color: #22c55e;
    font-size: 2rem;
    font-weight: 700;
}

.btn-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    display: inline-block;
    background-color: transparent;
    color: #cccccc;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 24px;
    border: 1px solid #555555;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:active {
    transform: translateY(0);
}

.edit:hover {
    background-color: #ff9d00;
    border-color: #ff9d00;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 157, 0, 0.2);
}

.delete:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Review Form Styles */
.pt-0 {
    padding-top: 0 !important;
}

.review-form-container {
    margin-top: 20px;
}

.review-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ff4d8d;
    border-bottom: 1px solid #333333;
    padding-bottom: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group label {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.input-group textarea {
    background: #222222;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 14px 16px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    resize: vertical;
}

.input-group textarea:focus {
    border-color: #ff4d8d;
    box-shadow: 0 0 10px rgba(255, 77, 141, 0.25);
}

.submit-btn {
    background: #ff4d8d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #ff6aa8;
    transform: translateY(-2px);
}

/* Invalid Submit Button State */
form.was-validated:invalid .submit-btn {
    background-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    border: 1px solid #dc2626;
}

form.was-validated:invalid .submit-btn:hover {
    background-color: #dc2626;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
}

.add-review-btn {
    background: #ff4d8d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.add-review-btn:hover {
    background: #ff6aa8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 141, 0.3);
}

/* Star Rating Widget (Row-Reverse Trick) */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #444444;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffd700; /* Gold/Yellow */
}

/* Validation Styles */
.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: -5px;
    padding-left: 5px;
    font-weight: 500;
}

.was-validated textarea:invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.was-validated textarea:invalid:focus {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.was-validated textarea:invalid ~ .invalid-feedback,
.was-validated .star-rating:has(input:invalid) ~ .invalid-feedback {
    display: block;
}

.was-validated .star-rating:has(input:invalid) label {
    color: rgba(239, 68, 68, 0.5); /* Faded Red */
}

/* Display Reviews Styles */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    background: #222222;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-rating-display {
    color: #333333;
    font-size: 1.1rem;
}

.gold-star {
    color: #ffd700;
}

.review-comment {
    color: #cccccc;
    line-height: 1.5;
    margin: 0;
}

.review-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.review-btn {
    background: transparent;
    border: 1px solid #555555;
    color: #a3a3a3;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-edit-btn:hover {
    background: #ff9d00;
    color: black;
    border-color: #ff9d00;
    transform: translateY(-2px);
}

.review-delete-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: translateY(-2px);
}

.d-inline {
    display: inline-block;
}