﻿.btn-next:hover, .btn-prev:hover, .drag-drop-area.dragover, .drag-drop-area:hover, .editor-toolbar button:hover {
    background-color: #04506e !important
}

.btn-next:hover, .btn-prev:hover {
    border-color: #04506e !important
}

.amenities-container {
    display: flex;
    flex-wrap: wrap
}

.amenity-group {
    width: 50%;
    padding: 10px
}

.form-check {
    margin-bottom: 10px
}

.drag-drop-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    font-size: small;
    background-color: #f2f0ec;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color .3s
}

    .drag-drop-area.dragover, .drag-drop-area:hover {
        background-color: #335374;
        color: #fff
    }

.file-input {
    display: none
}

#imagePreviewContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    min-height: 60px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6
}

.image-preview {
    position: relative;
    width: 150px;
    transition: .2s
}

.drag-handle, .remove-image-btn {
    position: absolute;
    top: 5px;
    display: flex
}

.image-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px
}

.remove-image-btn {
    right: 5px;
    background-color: rgba(255,255,255,.7);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.drag-handle {
    left: 5px;
    background-color: rgba(0,0,0,.7);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    cursor: grab;
    opacity: .8;
    transition: opacity .2s
}

    .drag-handle:hover {
        opacity: 1;
        cursor: grab
    }

    .drag-handle:active {
        cursor: grabbing
    }

.image-preview.dragging {
    opacity: .5;
    transform: scale(1.05);
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0,0,0,.3)
}

.image-preview:not(.dragging):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.2)
}

#imagePreviewContainer .image-preview {
    border: 2px solid transparent;
    transition: border-color .2s
}

    #imagePreviewContainer .image-preview:hover:not(.dragging) {
        border-color: #335374
    }

@media screen and (max-width:768px) {
    .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: .1rem;
        border: none;
        padding: .1rem
    }

        .nav-tabs .nav-item {
            flex: 1 1 auto;
            min-width: 150px;
            margin: 0
        }

        .nav-tabs .nav-link {
            border-radius: 8px;
            border: 1px solid #e9ecef;
            margin: 0;
            text-align: center;
            padding: .75rem .5rem;
            white-space: nowrap;
            font-size: .9rem;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,.05)
        }

            .nav-tabs .nav-link.active {
                background-color: #3085d6;
                color: #fff;
                border: none;
                box-shadow: 0 4px 6px rgba(253,6,98,.2)
            }

            .nav-tabs .nav-link i {
                display: block;
                margin: 0 auto .25rem;
                text-align: center
            }

    .image-preview {
        width: 120px
    }

        .image-preview img {
            height: 120px
        }

    .drag-handle {
        width: 20px;
        height: 20px;
        font-size: 10px
    }

    .remove-image-btn {
        width: 26px;
        height: 26px;
        font-size: 16px
    }
}

@media (hover:none) and (pointer:coarse) {
    .drag-handle {
        opacity: 1;
        background-color: rgba(0,0,0,.8)
    }

    .image-preview {
        margin-bottom: 10px
    }
}

.swal-confirm-button, .swal-confirm-button:hover {
    background-color: #335374
}

.swal-wide {
    width: 50%;
    border-radius: 10px
}

.swal-title {
    font-family: Arial,sans-serif;
    font-size: 24px;
    color: #333
}

.swal-content {
    padding: 20px
}

.swal-confirm-button {
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color .3s
}
/* Arabic editor */
.easyMDE-rtl + .EasyMDEContainer .CodeMirror {
    direction: rtl;
    text-align: right;
}

    .easyMDE-rtl + .EasyMDEContainer .CodeMirror pre {
        direction: rtl;
        unicode-bidi: plaintext;
    }

/* English editor */
.easyMDE-ltr + .EasyMDEContainer .CodeMirror {
    direction: ltr;
    text-align: left;
}
