/* ============================
   UPLOAD PORTFOLIO IMAGES STYLES
   ============================ */

/* Main Container */
#content.site-content {
    background: #f8f9fa;
    /* padding: 40px 0; */
    padding-top: 45px;
}

.realestate-listing-submission {
    width: 100%;
}

.realestate-listing-submission-content-form {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.realestate-listing-submission-content {
    padding: 0;
}

.realestate-listing-submission-form {
    padding: 40px;
    background: white;
}

.realestate-listing-submission-form.active {
    display: block;
}

/* Title Section */
.realestate-listing-submission-titile {
    margin-bottom: 30px;
    text-align: center;
}

.realestate-listing-submission-titile h2 {
    color: #333;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 10px;
}

.realestate-listing-submission-titile p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* Upload Container */
.realestate-listing-submission-form-group-mian {
    margin-bottom: 30px;
}

.realestate-gallery-upload-container {
    border: 2px dashed #d0d8ff;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4ff 100%);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.realestate-gallery-upload-container:hover {
    border-color: #0c3d34;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
}

.realestate-gallery-upload-container.drag-over {
    border-color: #0c3d34;
    background: linear-gradient(135deg, #e8f0fe 0%, #d0e0ff 100%);
}

.realestate-gallery-upload-container-input {
    padding: 40px;
    text-align: center;
    cursor: pointer;
}

.realestate-gallery-upload-container-input svg {
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
}

.realestate-gallery-upload-container-input h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 18px;
}

.realestate-gallery-upload-container-input h4 span {
    color: #0c3d34;
    font-weight: 700;
}

.realestate-gallery-upload-container-input p {
    color: #999;
    font-size: 13px;
    margin: 0;
}

/* File Input */
.realestate-hide {
    display: none;
}

/* Gallery Previews */
.realestate-gallery-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 20px;
    background: white;
}

.gallery-preview-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-preview-item:hover {
    border-color: #0c3d34;
    box-shadow: 0 4px 12px rgba(12, 61, 52, 0.15);
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview-item .primary-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #0c3d34;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0;
}

.gallery-preview-item:hover .remove-image-btn {
    opacity: 1;
}

.remove-image-btn:hover {
    background: #bd2130;
    transform: scale(1.1);
}

.set-primary-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #0c3d34;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 1;
    width: 25px;
    height: 25px;
}

.set-primary-btn:hover {
    background: #0a2f28;
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .set-primary-btn {
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: #0c3d34;
        color: white;
        border: none;
        padding: 15px 15px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        opacity: 1;
        width: 50px;
        height: 25px;
    }
}

/* Action Buttons */
#continue-btn,
#skip-btn {
    font-size: 15px;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#continue-btn {
    background: #0c3d34;
    color: white;
    border: none;
}

#continue-btn:hover {
    background: #0a2f28;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 61, 52, 0.3);
}

#skip-btn {
    color: #666;
    border: 2px solid #ddd;
    background: white;
}

#skip-btn:hover {
    border-color: #0c3d34;
    color: #0c3d34;
}

/* Cropper Modal */
.modal-content {
    border: none;
    border-radius: 8px;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.modal-title {
    color: #333;
    font-weight: 600;
}

.cropper-container {
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cropper-container img {
    max-width: 100%;
    max-height: 100%;
}

.modal-footer {
    border-top: 1px solid #e8e8e8;
    background: #f8f9fa;
}

.modal-footer .btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.modal-footer .btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.modal-footer .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #999;
}

.modal-footer .btn-primary {
    background: #0c3d34;
    border-color: #0c3d34;
}

.modal-footer .btn-primary:hover {
    background: #0a2f28;
    border-color: #0a2f28;
}

/* Alert Messages */
.alert {
    border-radius: 6px;
    border: none;
    margin-bottom: 20px;
    padding: 12px 16px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .realestate-listing-submission-form {
        padding: 20px;
    }

    .realestate-listing-submission-titile h2 {
        font-size: 22px;
    }

    .realestate-gallery-upload-container-input {
        padding: 30px 20px;
    }

    .realestate-gallery-previews {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 15px;
    }

    #continue-btn,
    #skip-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .modal-dialog {
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .realestate-listing-submission-form {
        padding: 15px;
    }

    .realestate-listing-submission-titile {
        margin-bottom: 20px;
    }

    .realestate-listing-submission-titile h2 {
        font-size: 18px;
    }

    .realestate-gallery-upload-container-input {
        padding: 20px;
    }

    .realestate-gallery-upload-container-input h4 {
        font-size: 16px;
    }

    .realestate-gallery-previews {
        grid-template-columns: repeat(2, 1fr);
    }
}
