/**
 * Land360 New Theme - Main Styles
 * Additional custom styles beyond TailwindCSS
 */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hide scrollbar for specific elements */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Material Icons Settings */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Custom Font Face */
@font-face {
    font-family: 'SVN BioSans';
    src: url('../SVN-BioSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Base Typography */
body {
    font-family: 'SVN BioSans', 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

/* Property Card Hover Effects */
.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image Zoom on Hover */
.image-zoom {
    overflow: hidden;
}

.image-zoom img,
.image-zoom .bg-cover {
    transition: transform 0.5s ease;
}

.image-zoom:hover img,
.image-zoom:hover .bg-cover {
    transform: scale(1.1);
}

/* Button Styles */
.btn-primary {
    background-color: #000F9F;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #000b7a;
    box-shadow: 0 10px 15px -3px rgba(0, 15, 159, 0.2);
}

.btn-accent {
    background-color: #FF8300;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #e67600;
    box-shadow: 0 10px 15px -3px rgba(255, 131, 0, 0.2);
}

/* Form Input Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #000F9F;
    box-shadow: 0 0 0 3px rgba(0, 15, 159, 0.1);
}

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* WordPress Pagination Styles */
.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-numbers a {
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.page-numbers a:hover {
    background-color: #f3f4f6;
    border-color: #000F9F;
    color: #000F9F;
}

.page-numbers span.current {
    background-color: #000F9F;
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 15, 159, 0.2);
}

.page-numbers .prev,
.page-numbers .next {
    width: auto;
    padding: 0.5rem;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: opacity 0.3s ease;
}

#mobile-menu > div:last-child {
    transition: transform 0.3s ease;
}

#mobile-menu.hidden > div:last-child {
    transform: translateX(100%);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.75rem 0 0 -0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Dark Mode Enhancements */
.dark body {
    background-color: #0f1623;
}

.dark .property-card {
    background-color: #1f2937;
    border-color: #374151;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
}
