/* Service Points Shortcode Styles */

/* Common styles */
.service-point-shortcode {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
}

.service-point-not-selected,
.service-point-error {
    padding: 12px 16px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.service-point-not-selected {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.service-point-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Status badges */
.service-point-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid;
}

.service-point-status.status-active {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.service-point-status.status-inactive {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Compact Style */
.service-point-shortcode.style-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.service-point-compact {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.service-point-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.service-point-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.service-point-content {
    flex: 1;
    min-width: 0;
}

.service-point-name {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-point-address {
    font-size: 14px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-point-compact .service-point-status {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.service-point-actions {
    flex-shrink: 0;
}

.map-link-small {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    display: inline-block;
}

.map-link-small:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Full Style */
.service-point-shortcode.style-full {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-point-full {
    padding: 24px;
}

.service-point-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.service-point-full .service-point-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.service-point-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-point-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #374151;
}

.address-icon {
    font-size: 18px;
}

.service-point-description {
    padding: 12px;
    background: #f9fafb;
    border-left: 4px solid #6366f1;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #4b5563;
}

.service-point-notes {
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 14px;
    color: #92400e;
}

.service-point-meta {
    font-size: 12px;
    color: #6b7280;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.service-point-full .service-point-actions {
    margin-top: 16px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #94c431 ;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.4);
    color: white;
}

.change-point-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    margin-left: 10px;
}

.change-point-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.change-point-btn-small {
    color: white;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    margin-left: 8px;
}

.change-point-btn-small:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}

/* Minimal Style */
.service-point-shortcode.style-minimal {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 20px;
}

.service-point-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
}

.service-point-minimal .service-point-name {
    font-weight: 600;
}

.service-point-minimal .service-point-status {
    font-size: 11px;
    padding: 2px 6px;
}

/* Mini Map Styles */
.service-point-mini-map-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.mini-map-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-bottom: 1px solid #d1d5db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-map-title {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.mini-map-external-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mini-map-external-link:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.mini-map {
    position: relative;
    background: #f9fafb;
}

.mini-map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    gap: 10px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mini-map-error {
    padding: 20px;
    text-align: center;
    color: #dc2626;
    background: #fef2f2;
    font-size: 14px;
}

.mini-map-info {
    padding: 8px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-point-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .service-point-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .service-point-icon {
        align-self: flex-start;
    }
    
    .service-point-actions {
        align-self: center;
    }
    
    .service-point-full {
        padding: 16px;
    }
    
    .service-point-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .service-point-address {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .service-point-shortcode {
        margin: 10px 0;
    }
    
    .service-point-compact {
        padding: 12px 16px;
    }
    
    .service-point-name,
    .service-point-address {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    .mini-map-header {
        padding: 10px 12px;
    }
    
    .mini-map-info {
        padding: 6px 12px;
    }
}

/* Print Styles */
@media print {
    .service-point-shortcode {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .map-link,
    .map-link-small,
    .mini-map-external-link {
        display: none !important;
    }
    
    .mini-map {
        display: none !important;
    }
}