/* ===== BASE ===== */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; overflow-x: hidden; }

/* ===== SPLASH ===== */
.splash-glow { animation: pulseGlow 2s ease-in-out infinite; }
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}
.splash-title { animation: fadeUp 1s ease-out 0.3s both; }
.splash-sub { animation: fadeUp 1s ease-out 0.6s both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
#splash.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

/* ===== GLASSMORPHISM ===== */
.glass {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.35);
}
.glass-dark {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
}
.glass-strong {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.5);
}

/* ===== CARDS ===== */
.property-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.property-card:hover, .property-card:active {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
}

/* ===== GOLD GRADIENT TEXT ===== */
.gold-text {
    background: linear-gradient(135deg, #d4a533, #f5d060, #d4a533);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GOLD GRADIENT BG ===== */
.gold-gradient {
    background: linear-gradient(135deg, #d4a533 0%, #f5d060 50%, #d4a533 100%);
}
.gold-gradient-soft {
    background: linear-gradient(135deg, rgba(212,165,51,0.08) 0%, rgba(245,208,96,0.08) 50%, rgba(212,165,51,0.08) 100%);
}

/* ===== IMAGE CAROUSEL ===== */
.carousel-container { overflow: hidden; border-radius: 12px; position: relative; }
.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-track img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.carousel-dot {
    width: 6px; height: 6px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.carousel-dot.active {
    background: white;
    width: 16px;
}

/* ===== BADGE ===== */
.badge-utility {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
    transition: all 0.2s;
}
.nav-item.active svg, .nav-item.active span {
    color: #111;
}
.nav-item:not(.active) svg, .nav-item:not(.active) span {
    color: #999;
}
.nav-item.active span {
    font-weight: 600;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.search-bar:focus-within {
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    transform: scale(1.01);
}

/* ===== CATEGORY CHIPS ===== */
.cat-chip {
    transition: all 0.25s;
    white-space: nowrap;
}
.cat-chip.active {
    background: #111;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cat-chip:not(.active):hover {
    background: #f5f5f5;
}

/* ===== HEART BUTTON ===== */
.heart-btn {
    transition: all 0.25s;
}
.heart-btn.liked {
    color: #ef4444;
    fill: #ef4444;
    transform: scale(1.15);
}
.heart-btn:not(.liked):hover {
    transform: scale(1.1);
}

/* ===== MODAL ===== */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}
.modal-content {
    animation: slideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FILTER SECTIONS ===== */
.filter-section { border-bottom: 1px solid #f0f0f0; }
.filter-chip {
    transition: all 0.2s;
    cursor: pointer;
}
.filter-chip.active {
    background: #111 !important;
    color: white !important;
}
.filter-chip:not(.active):hover {
    background: #f5f5f5;
}

/* ===== SCROLLBAR HIDE ===== */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== INPUT STYLING ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}

/* ===== TOAST ===== */
.toast {
    animation: toastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1), toastOut 0.3s ease-in 2.7s forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* ===== ZINO STATUS ===== */
.zino-green { background: linear-gradient(135deg, #10b981, #34d399); }
.zino-amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.zino-red { background: linear-gradient(135deg, #ef4444, #f87171); }

/* ===== WHATSAPP BUTTON ===== */
.wa-btn {
    background: #25D366;
    transition: all 0.25s;
}
.wa-btn:hover {
    background: #1da851;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

/* ===== PRINT VOUCHER ===== */
@media print {
    .no-print { display: none !important; }
    body { background: white !important; }
}

/* ===== LEAFLET FIX ===== */
.leaflet-container { border-radius: 16px; z-index: 1; }

/* ===== LEAFLET MAP DARK ===== */
.leaflet-tile-pane { filter: saturate(0.85) brightness(1.02); }

/* ===== IMAGE UPLOAD ===== */
.img-upload-slot {
    border: 2px dashed #ddd;
    border-radius: 12px;
    transition: all 0.25s;
    cursor: pointer;
    overflow: hidden;
}
.img-upload-slot:hover {
    border-color: #999;
    background: #fafafa;
}
.img-upload-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SMOOTH TRANSITIONS ===== */
.screen-transition {
    animation: screenFade 0.35s ease-out;
}
@keyframes screenFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== VOUCHER ===== */
.voucher-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid #e5e5e5;
}

/* ===== AMENITY ICON ===== */
.amenity-item {
    transition: all 0.2s;
}
.amenity-item:hover {
    transform: translateY(-2px);
}