.jm-dropzone {
    position: relative;
    border: 1.5px dashed #c9d4e4;
    border-radius: 14px;
    background: #f8fafc;
    padding: 1.1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.jm-dropzone.is-dragging {
    border-color: var(--jm-blue, #1b6ef3);
    background: #eef4ff;
}

.jm-dropzone-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.jm-dropzone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    cursor: pointer;
    padding: 1rem 0.5rem;
}

.jm-dropzone-label strong {
    font-size: 0.95rem;
}

.jm-dropzone-label span,
.jm-dropzone-label em {
    font-size: 0.78rem;
    color: #6b7280;
    font-style: normal;
}

.jm-dropzone-label em {
    color: var(--jm-blue, #1b6ef3);
    font-weight: 600;
}

.jm-dropzone-loading {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #6b7280;
    text-align: center;
}

.jm-dropzone-preview,
.jm-dropzone-preview-grid {
    margin-top: 0.85rem;
}

.jm-dropzone-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.jm-dropzone-preview img {
    width: 100%;
    max-width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.jm-dropzone-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.65rem;
}

.jm-dropzone-preview-grid .jm-dropzone-preview img {
    max-width: none;
    height: 100px;
}

/* Mobile booking bar */
.mobile-booking-bar {
    display: none;
}

@media (max-width: 1023px) {
    .detail-aside .booking-card {
        display: none;
    }

    .mobile-booking-bar {
        display: flex;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 40;
        gap: 0.75rem;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #e8ecf1;
        box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.08);
        backdrop-filter: blur(10px);
    }

    .mobile-booking-bar .price {
        font-size: 1rem;
        font-weight: 750;
        line-height: 1.3;
    }

    .mobile-booking-bar .price span {
        display: block;
        font-size: 0.72rem;
        font-weight: 500;
        color: #6b7280;
    }

    .mobile-booking-bar .cta {
        border: 0;
        border-radius: 12px;
        background: #1b6ef3;
        color: #fff;
        font-weight: 700;
        padding: 0.8rem 1.1rem;
        opacity: 1;
        cursor: pointer;
        white-space: nowrap;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    a.mobile-booking-bar .cta,
    .mobile-booking-bar a.cta:hover {
        color: #fff;
        background: #0f4fc4;
    }

    .tour-detail {
        padding-bottom: 5.5rem;
    }
}

.jm-search-jalali .kt-form-label {
    display: none;
}

.jm-search-jalali .kt-input,
.jm-search-field .kt-input {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Jalali datepicker above sticky headers / modals */
.jdp-container,
#jdp {
    z-index: 9999 !important;
}

/* Avatar upload + crop */
.avatar-upload__row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.avatar-upload__actions {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avatar-dropzone {
    min-height: 7rem;
}

.avatar-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.avatar-crop-dialog {
    width: min(100%, 520px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--background, #fff);
    border-radius: 12px;
    border: 1px solid var(--border, #e8ecf1);
    box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
    overflow: hidden;
}

.avatar-crop-header,
.avatar-crop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border, #e8ecf1);
}

.avatar-crop-footer {
    border-bottom: 0;
    border-top: 1px solid var(--border, #e8ecf1);
    justify-content: flex-end;
}

.avatar-crop-body {
    padding: 1rem;
    background: #f8fafc;
    max-height: min(60vh, 480px);
    overflow: hidden;
}

.avatar-crop-image {
    display: block;
    max-width: 100%;
    max-height: min(55vh, 440px);
}

.avatar-crop-body .cropper-container {
    max-height: min(55vh, 440px);
}
