/* RE/MAX Lotus — Custom Styles */

/* === Fonts === */
body { font-family: 'Inter', sans-serif; }
.font-display { font-family: 'Playfair Display', serif; }

/* === 3D Card Tilt === */
.listing-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.3s ease;
}
.listing-card:hover {
    box-shadow: 0 20px 40px rgba(26,39,68,0.15);
}

/* === Hero glassmorphism inputs === */
.search-glass select option { color: #1a2744; background: #fff; }

/* === Search tabs === */
.search-tab { transition: all 0.2s ease; }

/* === Responsive Nav === */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .search-glass { padding: 1rem; }
}

/* === Listing card line-clamp === */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* === Admin table row hover === */
.admin-table tr:hover td { background: #fafafa; }

/* === Smooth page transitions === */
main { animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === WhatsApp float button === */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 52px;
    height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s;
    text-decoration: none;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* === Pagination === */
.pagination a.active {
    background: #e8394d;
    color: #fff;
    border-color: #e8394d;
}

/* === Toggle switch === */
.toggle-checkbox:checked { right: 0; border-color: #22c55e; }
.toggle-checkbox:checked + .toggle-label { background: #22c55e; }

/* === Print styles === */
@media print {
    nav, footer, .wa-float, .no-print { display: none !important; }
}

/* ═══════════════════════════════════════════
   LISTING CARD — Enhanced 2026
══════════════════════════════════════════════ */
.listing-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.listing-card:hover {
    box-shadow: 0 20px 40px rgba(26,39,68,0.15);
}
.listing-card .fav-btn {
    transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), background 0.2s;
}

/* Section headers */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.section-eyebrow::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #e8394d, transparent);
}

/* Featured section gradient bg */
.featured-section {
    background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
}

/* Recent section */
.recent-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}
.recent-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, #1a2744, #e8394d, #e8b04b);
}

/* Category pills */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    font-size: 13px;
    color: #4b5563;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
    background: #fff;
}
.cat-pill:hover {
    border-color: #e8394d;
    color: #e8394d;
    background: #fff5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232,57,77,0.12);
}

/* Hero slider */
#hero-section .slide-img {
    transition: transform 8s ease;
}

/* WhatsApp float */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 100;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
    text-decoration: none;
    animation: wa-pulse 2s infinite;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
    animation: none;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
    50%       { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* Scrollbar hide for category strip */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

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

/* Print */
@media print {
    nav, footer, .wa-float, .no-print { display: none !important; }
}

/* Admin flash message fade */
.flash-msg {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 640px) {
    .listing-card .fav-btn { width: 36px; height: 36px; }
}
