:root {
    --primary-color: #28ABD8;
    --text-dark: #1E1E1E;
    --white: #FFFFFF;
    --telegram-color: #2AABEE;
    --whatsapp-color: #25D366;
    --shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.25);
}

/* Share Button */
.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.share-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

/* Share Modal Overlay */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.share-modal-overlay.active {
    display: flex;
}

/* Share Modal */
.share-modal {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 226px;
    height: 136px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.share-modal.inline {
    position: static;
    margin: 20px 0;
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.modal-close-btn:hover {
    opacity: 0.7;
}

.modal-close-btn svg {
    width: 28px;
    height: 28px;
}

/* Modal Content */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 163px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5.5px;
}

.share-modal.inline .modal-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 20px auto;
}

/* Share Option Button */
.share-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 0;
    transition: opacity 0.3s ease;
}

.share-option:hover {
    opacity: 0.8;
}

/* Option Content */
.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Social Icons */
.social-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

/* Option Label */
.option-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

/* Share Arrow */
.share-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-arrow svg {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .share-modal {
        width: 90%;
        max-width: 226px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .share-modal-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Hover Effects */
.share-option {
    position: relative;
}

.share-option::after {
    content: '';
    position: absolute;
    left: -8px;
    right: -8px;
    top: -4px;
    bottom: -4px;
    background: rgba(40, 171, 216, 0.05);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-option:hover::after {
    opacity: 1;
}

/* Accessibility */
.share-option:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.modal-close-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading State */
.share-option.loading {
    opacity: 0.5;
    pointer-events: none;
}

.share-option.loading .share-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Property Card Action Button Override */
.property-actions .action-btn.share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    transform: scale(1);
    width: auto;
    height: auto;
}

.property-actions .action-btn.share-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.property-actions .action-btn.share-btn svg {
    width: 20px;
    height: 20px;
}

/* Notification Styles */
.share-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28ABD8;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 20000;
    animation: slideUp 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-notification.show {
    opacity: 1;
}