/* home-feedback-tail.css - уведомления о проблемах адреса и общие сообщения */

/* ==================== 29. СТИЛИ ДЛЯ ПРОМЕЖУТОЧНЫХ АДРЕСОВ И УВЕДОМЛЕНИЙ ==================== */
.address-limit-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.address-limit-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    color: #2563eb;
    font-size: 20px;
    margin-top: 2px;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.notification-message {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    margin: -4px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #6b7280;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* ==================== 30. Стили для уведомлений о проблемах с адресом ==================== */
.address-validation-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 320px;
    width: 90%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.address-validation-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.address-validation-content {
    padding: 14px;
}

.validation-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.validation-header i {
    color: #2563eb;
    font-size: 14px;
    margin-right: 8px;
}

.validation-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    flex: 1;
}

.validation-message {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* ==================== 31. УВЕДОМЛЕНИЯ И СООБЩЕНИЯ ==================== */
.address-selection-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-large);
    padding: 14px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 280px;
    width: 100%;
    border-left: 4px solid transparent;
}

.address-selection-notification.show {
    animation: notificationSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.address-selection-notification.loading-type {
    border-left-color: var(--primary-blue);
}

.address-selection-notification.unloading-type {
    border-left-color: #EF4444;
}

.address-selection-notification.intermediate-type {
    border-left-color: #10B981;
}

.address-selection-notification .notification-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.address-selection-notification .notification-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.address-selection-notification.loading-type .notification-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(29, 78, 216, 0.15) 100%);
    color: var(--primary-blue);
}

.address-selection-notification.unloading-type .notification-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #EF4444;
}

.address-selection-notification.intermediate-type .notification-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #10B981;
}

.address-selection-notification .notification-text {
    flex: 1;
    min-width: 0;
}

.address-selection-notification .notification-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.address-selection-notification.loading-type .notification-title {
    color: var(--primary-blue);
}

.address-selection-notification.unloading-type .notification-title {
    color: #EF4444;
}

.address-selection-notification.intermediate-type .notification-title {
    color: #10B981;
}

.address-selection-notification .notification-address {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.3;
    word-break: break-word;
    max-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.map-error-message {
    padding: 14px;
    text-align: center;
    min-width: 180px;
    font-family: 'Inter', sans-serif;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #EF4444;
    max-width: 240px;
}

.map-error-message i {
    color: #EF4444;
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

.map-error-message span {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.3;
}

.map-address-limit-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    border-left: 4px solid #ef4444;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.map-address-limit-warning.show {
    opacity: 1;
    transform: translateY(0);
    animation: mapShake 0.5s ease-in-out;
}

.limit-warning-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-icon {
    color: #ef4444;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.warning-text strong {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.warning-text span {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.limit-warning-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.limit-warning-close:hover {
    color: #4b5563;
    background: #f3f4f6;
}

.limit-warning-close i {
    font-size: 14px;
}

.temp-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: pulseCircle 1.5s ease-out infinite;
    pointer-events: none;
    opacity: 0.7;
}


/* ===== v4/v5 unified notice system ===== */
.address-limit-notification,
.address-validation-notification,
.address-selection-notification {
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-left: 4px solid var(--notice-border-strong);
    border-radius: 14px;
    box-shadow: var(--notice-shadow);
}

.address-limit-notification .notification-icon,
.address-validation-notification .validation-header i,
.address-selection-notification .notification-icon,
.notification-icon {
    color: var(--notice-icon-color);
}

.address-limit-notification .notification-title,
.address-validation-notification .validation-title,
.address-selection-notification .notification-title {
    color: var(--notice-title);
}

.address-limit-notification .notification-message,
.address-validation-notification .validation-message,
.address-selection-notification .notification-address,
.address-selection-notification.loading-type,
.address-selection-notification.unloading-type,
.address-selection-notification.intermediate-type {
    border-left-color: var(--notice-border-strong);
}

.address-selection-notification.loading-type .notification-icon,
.address-selection-notification.unloading-type .notification-icon,
.address-selection-notification.intermediate-type .notification-icon {
    background: var(--notice-icon-bg);
    color: var(--notice-icon-color);
}

.address-selection-notification.loading-type .notification-title,
.address-selection-notification.unloading-type .notification-title,
.address-selection-notification.intermediate-type .notification-title {
    color: var(--notice-title);
}

.validation-header {
    border-bottom-color: rgba(37, 99, 235, 0.08);
}

.address-validation-notification .validation-header--compact {
    border-bottom: none;
    margin-bottom: 6px;
}

/* Красивое уведомление только для короткого/неполного адреса */
.short-address-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
    z-index: 10050;
    width: min(420px, calc(100vw - 24px));
    max-width: min(420px, calc(100vw - 24px));
    background: var(--notice-bg, linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%));
    border: 1px solid var(--notice-border, rgba(37, 99, 235, 0.2));
    border-left: 4px solid var(--notice-border-strong, #2563eb);
    border-radius: 16px;
    box-shadow: var(--notice-shadow, 0 16px 34px rgba(37, 99, 235, 0.16));
    color: var(--notice-text, #475569);
    opacity: 0;
    overflow: hidden;
    transform: translateX(24px);
    transform-origin: top right;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.short-address-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.short-address-notification__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 18px;
}

.short-address-notification__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--notice-icon-bg, linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(29, 78, 216, 0.16) 100%));
    color: var(--notice-icon-color, #2563eb);
    font-size: 17px;
}

.short-address-notification__text {
    flex: 1 1 auto;
    min-width: 0;
}

.short-address-notification__title {
    margin-bottom: 4px;
    color: var(--notice-title, #1d4ed8);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.short-address-notification__message {
    color: var(--notice-text, #475569);
    font-size: 13px;
    line-height: 1.45;
}

.short-address-notification__close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: -4px;
    margin-right: -4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.short-address-notification__close:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--notice-title, #1d4ed8);
}

.short-address-notification__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
    transform-origin: left center;
    animation: shortAddressToastProgress var(--toast-duration, 6500ms) linear forwards;
}

@keyframes shortAddressToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 768px) {
    .short-address-notification {
        top: 12px;
        right: 12px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }
}

