/**
 * Additional styles for Polidmex Theme
 *
 * @package Polidmex
 */

/* Logo text fallback */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Mobile nav animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Property card enhancements */
.property-card {
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    box-shadow: 0 0 0 0 var(--primary-color);
    transition: var(--transition);
    pointer-events: none;
}

.property-card:hover::before {
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Swiper adjustments */
.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-color) !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px !important;
}

.swiper-pagination-bullet {
    background: var(--text-muted);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Filter section enhancements */
.filters-section .filter-group select:hover,
.filters-section .filter-group input:hover {
    border-color: var(--primary-color);
}

/* Property specs icons */
.property-spec svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Breadcrumb styling */
.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Contact button hover effect */
.contact-btn {
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

/* No properties message */
.no-properties {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 60px 20px;
}

.no-properties p {
    color: var(--text-light);
}

/* Archive toolbar */
.archive-toolbar {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Gallery thumbnails scrollbar */
.property-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

/* Animation classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeIn 0.5s ease forwards;
}

.properties-grid .property-card:nth-child(1) { animation-delay: 0.1s; }
.properties-grid .property-card:nth-child(2) { animation-delay: 0.2s; }
.properties-grid .property-card:nth-child(3) { animation-delay: 0.3s; }
.properties-grid .property-card:nth-child(4) { animation-delay: 0.4s; }
.properties-grid .property-card:nth-child(5) { animation-delay: 0.5s; }
.properties-grid .property-card:nth-child(6) { animation-delay: 0.6s; }

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .filters-section,
    .hero-section,
    .contact-btn,
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    .property-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .single-property {
        margin-top: 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .property-badge {
        border: 2px solid currentColor;
    }

    .property-card {
        border: 2px solid var(--text-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    :root {
        --bg-white: #1a1a2e;
        --bg-light: #16213e;
        --text-color: #eaeaea;
        --text-light: #b0b0b0;
        --border-color: #333;
    }

    .property-card {
        background: var(--bg-light);
    }

    .site-header {
        background: var(--bg-white);
    }
    */
}
