/* Custom styles beyond Tailwind */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Property card hover effects */
.property-card {
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Image gallery */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gallery-thumbnails img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.gallery-thumbnails img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-thumbnails img.active {
    border: 3px solid #3b82f6;
}

/* Modal animations */
.modal-enter {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Form focus effects */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
}

/* Price range slider */
.price-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Blog Styles */
.prose {
    max-width: 65ch;
    color: #374151;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    font-style: italic;
    color: #4b5563;
    margin: 1.5rem 0;
}

.prose img {
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.prose a {
    color: #3b82f6;
    text-decoration: underline;
}

.prose a:hover {
    color: #2563eb;
}

/* Comment section */
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s;
}

/* Table of contents */
.toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.toc a:hover {
    background: #e5e7eb;
    color: #3b82f6;
}

.toc .active {
    color: #3b82f6;
    font-weight: 600;
    background: #e5e7eb;
}

/* ===== HERO CAROUSEL STYLES (Consolidated) ===== */
.hero-slide {
    transition: opacity 1s ease-in-out;
}

.hero-slide .animate__animated {
    animation-duration: 1s;
}

.animate__delay-1s {
    animation-delay: 0.5s;
}

.animate__delay-2s {
    animation-delay: 1s;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

/* ===== MAP CONTAINER STYLES ===== */
.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== SLIDE INDICATORS ===== */
.slide-indicator {
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide-indicator:hover {
    transform: scale(1.2);
}

/* ===== PROPERTY CARD ANIMATIONS ===== */
.transform {
    transition: all 0.3s ease;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* ===== PROPROCK BRANDING STYLES ===== */
.proprock-logo {
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 1px;
}

.proprock-tagline {
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Custom Blue Shades for PROPROCK */
.bg-proprock {
    background-color: #2563eb;
}

.text-proprock {
    color: #2563eb;
}

.border-proprock {
    border-color: #2563eb;
}

/* Hover effects for PROPROCK elements */
.hover\:text-proprock:hover {
    color: #2563eb;
}

.hover\:bg-proprock:hover {
    background-color: #2563eb;
}

/* ===== RESPONSIVE STYLES (Consolidated) ===== */
/* Mobile devices (up to 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    h2 {
        font-size: 2rem !important;
    }
    .hero-content {
        padding: 0 20px;
    }
    .map-container {
        padding-bottom: 75%; /* 4:3 Aspect Ratio for mobile */
    }
    .hero-slide h2 {
        font-size: 1.8rem;
    }
    .hero-slide p {
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
}