/* ==========================================
   McCormick Realty Services LLC - Custom Styles
   ========================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c5a54c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a2744;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(197, 165, 76, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(197, 165, 76, 0); }
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Property card hover effects */
.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-card:hover {
    transform: translateY(-4px);
}

/* Hero slider transitions */
.hero-slide {
    transition: opacity 1s ease-in-out;
}

/* Slider dot active state */
.slider-dot.active {
    width: 32px;
    border-radius: 999px;
    background-color: #c5a54c;
}

/* Navigation link hover effect */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #c5a54c;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 60%;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #c5a54c;
    box-shadow: 0 0 0 3px rgba(197, 165, 76, 0.2);
}

/* Compare table styles */
.compare-row:nth-child(even) {
    background-color: #f9fafb;
}

/* Pulse animation for CTA */
.pulse-cta {
    animation: pulse-gold 2s infinite;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.toast.success { background-color: #16a34a; }
.toast.error { background-color: #dc2626; }
.toast.info { background-color: #1a2744; }

/* Sticky header shadow on scroll */
#main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Gallery hover overlay */
.gallery-overlay {
    background: linear-gradient(to top, rgba(26, 39, 68, 0.8), transparent);
}

/* Property image zoom */
.property-image-zoom {
    overflow: hidden;
}
.property-image-zoom img {
    transition: transform 0.6s ease;
}
.property-image-zoom:hover img {
    transform: scale(1.08);
}

/* Loading spinner */
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top-color: #c5a54c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive table scroll */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Modal overlay */
.modal-overlay {
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

/* Print styles */
@media print {
    header, footer, .no-print { display: none !important; }
    body { font-size: 12pt; }
}