/**
 * FaceMap - Стили маркеров и попапов (красивый дизайн)
 */

/* ==========================================
   МАРКЕРЫ ОБЪЕКТОВ - КРУГЛЫЕ С ФОТО
   ========================================== */

.prop-marker {
    background: transparent !important;
    border: none !important;
}

.prop-marker-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.prop-marker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prop-marker-noimg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

/* Кластеры */
.property-cluster {
    background: transparent !important;
}

.cluster-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ==========================================
   ПОПАП ОБЪЕКТА (на карте)
   ========================================== */

.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 340px !important;
}

.popup-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 340px;
}

.popup-photo {
    width: 340px;
    height: 180px;
    overflow: hidden;
    background: #1e293b;
}

.popup-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-body {
    padding: 14px;
}

.popup-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.popup-address {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.popup-comment {
    background: #fef3c7;
    color: #92400e;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 500;
}

.popup-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.popup-agents {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
}

.popup-agents-title {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.popup-agent-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.popup-agent-item:hover {
    border-color: #667eea;
}

.popup-agent-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.popup-agent-name {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
}

.popup-agent-badge {
    font-size: 11px;
    color: #64748b;
}

.popup-btn-badge {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.popup-badge-placed {
    padding: 10px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px;
}

.popup-buttons {
    display: flex;
    gap: 6px;
}

.popup-btn {
    flex: 1;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.popup-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.popup-btn-fav {
    width: 38px;
    padding: 9px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.popup-btn-fav.active {
    background: #fee2e2;
    color: #dc2626;
}

.popup-btn-fav.is-favorite {
    color: #dc2626;
}

/* ==========================================
   МОДАЛЬНОЕ ОКНО ОБЪЕКТА - КРАСИВЫЙ ДИЗАЙН
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 560px;
    max-width: calc(100vw - 40px);
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.property-modal {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* Карусель */
.property-carousel {
    position: relative;
    width: 100%;
    height: 320px;
    background: #0f172a;
    flex-shrink: 0;
}

.property-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.05);
}

/* Миниатюры */
.property-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    overflow-x: auto;
}

.property-thumbnail {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.property-thumbnail:hover {
    opacity: 0.9;
}

.property-thumbnail.active {
    opacity: 1;
    border-color: #667eea;
}

/* Контент модала */
.property-modal-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.property-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.property-modal-address {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.property-modal-price {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.property-modal-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.property-spec {
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-weight: 500;
}

.property-modal-description {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
}

/* Секция агентов */
.property-agents-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.property-agents-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
}

.property-agent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.property-agent-card:last-child {
    margin-bottom: 0;
}

.property-agent-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.property-agent-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    flex-shrink: 0;
}

.property-agent-info {
    flex: 1;
    min-width: 0;
}

.property-agent-name {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
}

.property-agent-company {
    font-size: 12px;
    color: #64748b;
}

.property-agent-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

/* Секция создания бейджа */
.create-badge-section {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.create-badge-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: #166534;
    margin: 0 0 6px 0;
}

.create-badge-section p {
    font-size: 13px;
    color: #15803d;
    margin: 0 0 12px 0;
}

.create-badge-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.create-badge-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Кнопки внизу */
.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* ==========================================
   МОДАЛЬНОЕ ОКНО БЕЙДЖА
   ========================================== */

.full-badge-modal {
    background: white;
    border-radius: 24px;
    width: 480px;
    max-width: calc(100vw - 40px);
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.badge-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-modal-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    flex-shrink: 0;
}

.badge-modal-name {
    font-size: 20px;
    font-weight: 700;
}

.badge-modal-company {
    font-size: 14px;
    opacity: 0.9;
}

.badge-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.badge-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.badge-modal-address {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.badge-modal-why {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.badge-modal-why-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.badge-modal-why-text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.badge-modal-contacts {
    display: grid;
    gap: 10px;
}

.badge-modal-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.badge-modal-contact-btn:hover {
    transform: translateY(-1px);
}

/* ==========================================
   АДАПТИВ
   ========================================== */

@media (max-width: 600px) {
    .leaflet-popup-content {
        width: 300px !important;
    }
    
    .popup-content,
    .popup-photo {
        width: 300px;
    }
    
    .popup-photo {
        height: 160px;
    }
    
    .modal-overlay {
        padding: 0;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    .property-modal {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: none;
    }
    
    .property-carousel {
        height: 280px;
        flex-shrink: 0;
    }
    
    .property-modal-content {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
        padding-bottom: 30px;
    }
    
    .property-modal-title {
        font-size: 20px;
    }
    
    .full-badge-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* ==========================================
   МОДАЛКА СОЗДАНИЯ БЕЙДЖА
   ========================================== */

.badge-creation-modal {
    background: white;
    border-radius: 24px;
    width: 500px;
    max-width: calc(100vw - 40px);
    max-height: min(90vh, calc(100dvh - 16px));
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    overflow: hidden;
}

.badge-creation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-creation-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.badge-creation-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.badge-creation-property {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 14px;
    margin-bottom: 16px;
}

.property-icon {
    font-size: 32px;
}

.property-name {
    font-weight: 700;
    font-size: 16px;
    color: #166534;
}

.property-addr {
    font-size: 13px;
    color: #15803d;
}

.badge-creation-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #eff6ff;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #1e40af;
}

.badge-funds-warning {
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
}

.badge-funds-warning.show {
    display: inline-flex;
}

.btn-inline-topup {
    border: 1px solid #93c5fd;
    background: #ffffff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-inline-topup:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}

.info-icon {
    font-size: 24px;
}

/* Секция ссылок - как на скриншоте */
.badge-creation-section {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: #1e293b;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.section-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.section-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.section-desc {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.badge-links-list {
    margin-bottom: 12px;
}

.badge-links-list .link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.badge-links-list .link-row input {
    min-width: 0;
    padding: 12px 14px;
    border: 2px solid #334155;
    border-radius: 10px;
    background: #0f172a;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
}

.badge-links-list .link-row input::placeholder {
    color: #64748b;
}

.badge-links-list .link-row input:focus {
    outline: none;
    border-color: #10b981;
}

.badge-links-list .link-name { 
    flex: 1;
    max-width: 120px;
}

.badge-links-list .link-url { 
    flex: 2;
}

.badge-links-list .btn-x {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.badge-links-list .btn-x:hover {
    background: #ef4444;
    color: white;
}

.btn-add-link {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px dashed #475569;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-link:hover {
    border-color: #10b981;
    color: #10b981;
}

/* Превью профиля */
.badge-creation-profile {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
}

.profile-preview-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.profile-preview-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

.profile-preview-item.why-me {
    font-style: italic;
    color: #64748b;
}

.profile-preview-item.warning {
    color: #f59e0b;
    font-weight: 500;
}

.profile-mini-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.badge-creation-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.badge-creation-footer .btn {
    flex: 1;
    padding: 14px 20px;
}

/* ==========================================
   МОДАЛКА ВСЕХ БЕЙДЖЕЙ АГЕНТА
   ========================================== */

.agent-badges-modal {
    background: white;
    border-radius: 24px;
    width: 500px;
    max-width: calc(100vw - 40px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    overflow: hidden;
}

.agent-badges-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.agent-badges-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
}

.agent-badges-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
}

.agent-badges-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.agent-badges-list {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.agent-badge-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.agent-badge-item:hover {
    background: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.agent-offer-photo {
    width: 72px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
}

.badge-item-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.badge-item-info {
    flex: 1;
    min-width: 0;
}

.badge-item-title {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-item-address {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-item-stats {
    font-size: 12px;
    color: #94a3b8;
}

.badge-item-arrow {
    font-size: 20px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* ==========================================
   МОДАЛКА БЕЙДЖА - КРАСИВЫЙ ДИЗАЙН
   ========================================== */

.full-badge-modal {
    background: white;
    border-radius: 24px;
    width: 480px;
    max-width: calc(100vw - 40px);
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

.badge-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    flex-shrink: 0;
}

.badge-modal-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.badge-modal-info h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
}

.badge-modal-info .company {
    font-size: 14px;
    opacity: 0.9;
}

.badge-modal-info .company a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.badge-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.badge-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.badge-modal-address {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-modal-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.badge-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.badge-modal-section {
    background: #f8fafc;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.badge-modal-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
}

.badge-modal-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.badge-modal-contacts {
    display: grid;
    gap: 10px;
}

.badge-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: white;
    transition: all 0.2s;
}

.badge-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.badge-contact-btn.phone {
    background: linear-gradient(135deg, #10b981, #059669);
}

.badge-contact-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.badge-contact-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #0077b5);
}

.badge-modal-links {
    margin-top: 16px;
}

.badge-link-item {
    display: block;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    transition: all 0.2s;
}

.badge-link-item:hover {
    border-color: #667eea;
    color: #667eea;
}

.badge-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.badge-modal-footer .btn {
    flex: 1;
}

@media (max-width: 600px) {
    #badgeCreationModal.modal-overlay {
        align-items: center;
        padding: 8px;
    }

    .badge-creation-modal,
    .full-badge-modal {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 16px);
    }

    .badge-creation-modal {
        border-radius: 16px;
        display: block;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .badge-creation-body {
        padding: 16px;
        overflow: visible;
        flex: none;
    }

    .badge-modal-body {
        padding: 16px;
    }

    .badge-creation-footer {
        gap: 8px;
        position: static;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }

    .badge-creation-footer .btn {
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* Секция - бейдж уже размещён */
.create-badge-section.badge-placed {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 1px solid #34d399;
}

.create-badge-section.badge-placed h4 {
    color: #047857;
}

.create-badge-section.badge-placed p {
    color: #059669;
}

/* ==========================================
   ЦЕНА С ВАЛЮТОЙ
   ========================================== */

.popup-price {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    text-align: center;
}

.property-modal-price {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
}
