/* Global Styles for Google Maps Info Windows */

/* Info Window Container */
.google-map-info-window {
    max-width: 400px;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.google-map-info-window .info-window-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.google-map-info-window .info-window-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

.google-map-info-window .info-window-body {
    margin-bottom: 16px;
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
}

.google-map-info-window .info-window-body p {
    margin: 0;
}

/* Info Window Actions */
.google-map-info-window .info-window-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}

.google-map-info-window .info-window-actions button {
    flex: 0 1 auto;
    transition: all 0.3s ease;
}

/* Ant Design Button Styles */
.ant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 15px;
    font-size: 14px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    outline: none;
}

.ant-btn:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}

.ant-btn:active {
    color: #096dd9;
    border-color: #096dd9;
}

.ant-btn:disabled {
    color: rgba(0, 0, 0, 0.25);
    background: #f5f5f5;
    border-color: #d9d9d9;
    cursor: not-allowed;
}

/* Button Types */
.ant-btn-primary {
    background: #1890ff;
    border-color: #1890ff;
    color: #ffffff;
}

.ant-btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    color: #ffffff;
}

.ant-btn-primary:active {
    background: #096dd9;
    border-color: #096dd9;
}

.ant-btn-danger {
    background: #ff4d4f;
    border-color: #ff4d4f;
    color: #ffffff;
}

.ant-btn-danger:hover {
    background: #ff7875;
    border-color: #ff7875;
    color: #ffffff;
}

.ant-btn-danger:active {
    background: #d9363e;
    border-color: #d9363e;
}

.ant-btn-dashed {
    border-style: dashed;
}

.ant-btn-link {
    border-color: transparent;
    background: transparent;
    color: #1890ff;
}

.ant-btn-link:hover {
    color: #40a9ff;
    border-color: transparent;
    background: transparent;
}

/* Button Sizes */
.ant-btn-small {
    height: 24px;
    padding: 0px 7px;
    font-size: 12px;
}

.ant-btn-large {
    height: 40px;
    padding: 6px 15px;
    font-size: 16px;
}

/* Icon in Button */
.ant-btn .anticon {
    display: inline-flex;
    align-items: center;
}

/* Google Maps Custom Controls */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
    max-height: 400px;
}

.gm-style-iw-chr {
    display: flex !important;
    align-items: center !important;
}

/* Cluster Marker Styles */
.cluster-marker {
    background: #1890ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* RTL Support */
[dir="rtl"] .google-map-info-window {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .google-map-info-window .info-window-actions {
    flex-direction: row-reverse;
}

/* Responsive Styles */
@media (max-width: 576px) {
    .google-map-info-window {
        max-width: 280px;
        padding: 12px;
    }

    .google-map-info-window .info-window-header h4 {
        font-size: 16px;
    }

    .google-map-info-window .info-window-body {
        font-size: 13px;
    }

    .google-map-info-window .info-window-actions {
        flex-direction: column;
    }

    .google-map-info-window .info-window-actions button {
        width: 100%;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.google-map-loading .ant-spin {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Print Styles */
@media print {
    .google-map-search-bar,
    .google-map-footer {
        display: none;
    }

    .google-map-wrapper {
        page-break-inside: avoid;
    }
}

