/* ========== ENHANCED SHARE BUTTON - BOLD & PROMINENT ========== */
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF385C 0%, #E61E4D 50%, #D70466 100%);
    border: 3px solid white;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.45), 0 0 0 0 rgba(255, 56, 92, 0.4);
    animation: pulse-ring 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-button:hover {
    background: linear-gradient(135deg, #E61E4D 0%, #D01346 50%, #BD0359 100%);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 30px rgba(255, 56, 92, 0.6), 0 0 0 0 rgba(255, 56, 92, 0.4);
}

.share-button:active {
    transform: translateY(-2px) scale(1.05);
}

.share-button i {
    color: white;
    font-size: 20px;
    animation: share-bounce 2s ease-in-out infinite;
}

.share-button span {
    font-weight: 900;
}

/* Ring pulse animation */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 6px 20px rgba(255, 56, 92, 0.45), 0 0 0 0 rgba(255, 56, 92, 0.7);
    }
    70% {
        box-shadow: 0 6px 20px rgba(255, 56, 92, 0.45), 0 0 0 15px rgba(255, 56, 92, 0);
    }
    100% {
        box-shadow: 0 6px 20px rgba(255, 56, 92, 0.45), 0 0 0 0 rgba(255, 56, 92, 0);
    }
}

/* Bounce animation for icon */
@keyframes share-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-8deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-4px) rotate(8deg); }
}

/* ========== SHARE MODAL ========== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.share-modal.active {
    display: flex;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== MODAL HEADER ========== */
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #EBEBEB;
}

.share-modal-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-modal-header h3 i {
    color: #FF385C;
}

.share-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F7F7F7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.share-modal-close:hover {
    background: #EBEBEB;
    transform: rotate(90deg);
}

/* ========== MODAL BODY ========== */
.share-modal-body {
    padding: 28px;
}

/* Property Preview */
.share-property-preview {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #EBEBEB;
}

.share-property-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.share-property-info {
    flex: 1;
    min-width: 0;
}

.share-property-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-property-info p {
    font-size: 0.875rem;
    color: #717171;
    margin-bottom: 8px;
}

.share-property-info .share-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FF385C;
    margin: 0;
}

/* Share Options Grid */
.share-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: white;
    border: 1.5px solid #EBEBEB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-option:hover {
    border-color: #FF385C;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.share-option span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: white;
    transition: transform 0.2s;
}

.share-option:hover .share-icon {
    transform: scale(1.1);
}

.share-icon.whatsapp { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.share-icon.facebook { background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%); }
.share-icon.twitter { background: linear-gradient(135deg, #1DA1F2 0%, #0D8BD9 100%); }
.share-icon.copy { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.share-icon.email { background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%); }
.share-icon.qrcode { background: linear-gradient(135deg, #000000 0%, #434343 100%); }
.share-icon.pdf { background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%); }
.share-icon.more { background: linear-gradient(135deg, #95A5A6 0%, #7F8C8D 100%); }

/* Copy Link Section */
.share-copy-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.share-copy-section input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #EBEBEB;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #717171;
    background: #F7F7F7;
}

.share-copy-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #FF385C 0%, #E61E4D 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 56, 92, 0.3);
}

/* QR Code Container */
.share-qr-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-top: 24px;
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.qr-header h4 {
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qr-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

#qrCodeImage {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 16px;
}

.qr-download-btn {
    background: white;
    color: #667eea;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qr-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modal Footer */
.share-modal-footer {
    padding: 20px 28px;
    background: #F7F7F7;
    border-top: 1px solid #EBEBEB;
    border-radius: 0 0 16px 16px;
}

.share-modal-footer p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #717171;
    margin: 0;
    justify-content: center;
}

.share-modal-footer i {
    color: #FF385C;
}

/* Notification */
.share-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.share-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.share-notification.success {
    border-left: 4px solid #10B981;
}

.share-notification.info {
    border-left: 4px solid #3B82F6;
}

.share-notification i {
    font-size: 1.25rem;
}

.share-notification.success i {
    color: #10B981;
}

.share-notification.info i {
    color: #3B82F6;
}

.share-notification span {
    font-weight: 600;
    color: #222;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    /* Enhanced mobile share button */
    .share-button {
        padding: 16px 28px;
        font-size: 17px;
        font-weight: 800;
        box-shadow: 0 6px 20px rgba(255, 56, 92, 0.5);
    }
    
    .share-button i {
        font-size: 19px;
    }
    
    .share-modal-content {
        max-height: 95vh;
        margin: 0;
    }
    
    .share-options-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .share-option {
        padding: 12px 6px;
    }
    
    .share-icon {
        width: 42px;
        height: 42px;
        font-size: 1.125rem;
    }
    
    .share-option span {
        font-size: 0.75rem;
    }
    
    .share-property-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .share-property-preview img {
        width: 100%;
        height: 180px;
    }
    
    .share-copy-section {
        flex-direction: column;
    }
    
    .share-notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .share-options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .share-modal-header {
        padding: 20px;
    }
    
    .share-modal-body {
        padding: 20px;
    }
}

/* Print styles for PDF */
@media print {
    .share-button,
    .share-modal,
    header,
    footer,
    .mobile-booking-bar,
    .booking-sticky {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .property-title {
        color: black;
    }
}