/**
 * Track Check - Custom Styles
 * Minimal overrides for Tailwind CSS
 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus outlines */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Remove spinner from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Better select styling */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Listing card hover effect */
.listing-card {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.listing-card:hover {
    transform: translateY(-2px);
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}
#mobile-menu.hidden {
    max-height: 0;
}
#mobile-menu:not(.hidden) {
    max-height: 300px;
}

/* Loading state for buttons */
button[disabled],
button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
    .listing-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

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