/* ============================================================
   NOVEXA — Custom styles supplementing Tailwind CDN
   ============================================================ */

/* ---- Form elements ---- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #0f2d5e;
    background: #fff;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}
textarea.form-input {
    resize: vertical;
    min-height: 6rem;
}
select.form-input {
    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.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* ---- Bottom nav ---- */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.5rem 0.25rem;
    font-size: 0.65rem;
    color: #9ca3af;
    gap: 0.2rem;
    transition: color 0.15s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg {
    width: 1.4rem;
    height: 1.4rem;
}
.bottom-nav-item.active,
.bottom-nav-item:active {
    color: #0f2d5e;
}

/* ---- Scrollbar helpers ---- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- 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; }
.line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Safe area for iOS notch ---- */
.safe-area-pb {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- Property card image lazy-load placeholder ---- */
.img-placeholder {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Splash screen ---- */
#splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: #0f2d5e;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease;
}
#splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ---- Countdown chips ---- */
.countdown-chip {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}
