/* ═══════════════════════════════════════════════════════════════════════════════
   Orgtree – Global Stylesheet
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Base ──────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Image fallback ────────────────────────────────────────────────────────── */
img {
    image-rendering: auto;
}

img[src=""],
img:not([src]) {
    visibility: hidden;
}

/* ── Form focus ring ───────────────────────────────────────────────────────── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(247, 99, 12, 0.35);
    border-color: transparent;
}

/* ── Password toggle button ────────────────────────────────────────────────── */
.password-toggle {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #94a3b8;
    transition: color 150ms;
}
.password-toggle:hover {
    color: #475569;
}

/* ── Property card hover ───────────────────────────────────────────────────── */
.property-card {
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ── Gallery thumbnail active state ────────────────────────────────────────── */
.gallery-thumb {
    transition: opacity 150ms, box-shadow 150ms;
    cursor: pointer;
}
.gallery-thumb:hover {
    opacity: 0.85;
}
.gallery-thumb.active {
    box-shadow: 0 0 0 2px #F7630C;
}

/* ── Badge shimmer animation ───────────────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.badge-shimmer {
    background: linear-gradient(90deg, transparent 33%, rgba(255,255,255,0.25) 50%, transparent 66%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* ── Password strength bar transition ──────────────────────────────────────── */
.strength-segment {
    transition: background-color 250ms ease;
}

/* ── Custom scrollbar (webkit) ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Hero gradient ─────────────────────────────────────────────────────────── */
.hero-gradient {
    background: linear-gradient(135deg, #166B2E 0%, #1A8F3B 40%, #22c55e 100%);
}

/* ── Skeleton loading placeholder ──────────────────────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1;   }
    50%      { opacity: 0.5; }
}
.skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background-color: #e2e8f0;
    border-radius: 0.5rem;
}

/* ── Footer social icon hover ──────────────────────────────────────────────── */
.social-icon {
    transition: color 150ms, transform 150ms;
}
.social-icon:hover {
    transform: scale(1.15);
}

/* ── Form card accent bar ──────────────────────────────────────────────────── */
.accent-bar {
    height: 6px;
    background: linear-gradient(90deg, #F7630C, #fb923c, #1A8F3B);
}

/* ── Select dropdown chevron ───────────────────────────────────────────────── */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ── Button press animation ────────────────────────────────────────────────── */
.btn-press:active {
    transform: scale(0.98);
}
