/* Custom styles for HomeMood */

/* Base typography smoothing */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Container consistent padding */
.container { padding-left: 1rem; padding-right: 1rem; }

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

/* Image lazy loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Print styles for QR cards */
@media print {
    .no-print {
        display: none !important;
    }
    
    .qr-card {
        page-break-inside: avoid;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Non-Tailwind button helpers for legacy areas */
.btn { display: inline-block; padding: 0.75rem 1.25rem; border-radius: 0.5rem; font-weight: 600; }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #1f2937; }

/* Prose improvements */
.prose { line-height: 1.7; }

/* Luxury site enhancements */
/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal-visible { opacity: 1; transform: none; }

/* Subtle hover raise for cards */
.hover-raise { transition: transform .25s ease, box-shadow .25s ease; }
.hover-raise:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }

/* Glassmorphism card */
.glass-card { background: rgba(255,255,255,0.7); backdrop-filter: saturate(180%) blur(12px); border: 1px solid rgba(255,255,255,0.35); }

/* Hero gradient and blobs */
.hero-gradient { position: relative; background: radial-gradient(1200px 600px at 10% 10%, rgba(32, 244, 155, .10), transparent 50%), radial-gradient(800px 400px at 90% 10%, rgba(56, 189, 248, .10), transparent 50%), linear-gradient(180deg, #fafafa 0%, #ffffff 100%); }
/* Optional dark overlay that fades out from black to normal */
.hero-gradient::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0b0b 0%, #111213 100%); opacity: 0; pointer-events: none; }
.hero-gradient.fade-from-black::before { opacity: 1; animation: heroFadeOut 1s ease forwards; }
@keyframes heroFadeOut { to { opacity: 0; } }
.hero-gradient .container { position: relative; z-index: 1; }

/* Split hero: darker on the left, normal image to the right */
.hero-split { position: relative; }
.hero-split .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; display: block; }
.hero-split::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 25%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.10) 70%, rgba(0,0,0,0.0) 90%); }
.hero-split .hero-content { position: relative; z-index: 2; }
.hero-blob { position: absolute; filter: blur(40px); opacity: .25; }
.hero-blob--left { left: -100px; top: -60px; width: 320px; height: 320px; background: radial-gradient(circle at center, #22c55e, transparent 60%); }
.hero-blob--right { right: -120px; top: -40px; width: 360px; height: 360px; background: radial-gradient(circle at center, #38bdf8, transparent 60%); }

/* Float animation */
@keyframes floatSlow { 0% { transform: translateY(0) } 50% { transform: translateY(-6px) } 100% { transform: translateY(0) } }
.float-slow { animation: floatSlow 8s ease-in-out infinite; }

/* Modern Select */
.select-wrapper { position: relative; }
.select-modern { appearance: none; -webkit-appearance: none; -moz-appearance: none; background: #fff; border: 1px solid #D1D5DB; border-radius: 0.5rem; padding: 0.5rem 2.25rem 0.5rem 0.75rem; font-size: 0.875rem; line-height: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); cursor: pointer; transition: box-shadow .2s ease, border-color .2s ease; }
.select-modern:focus { outline: none; border-color: #111827; box-shadow: 0 0 0 2px rgba(17,24,39,0.2); }
.select-wrapper::after { content: ""; position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; pointer-events: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"1.5\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M6 9l6 6 6-6\"/></svg>'); background-size: 1rem 1rem; color: #111827; opacity: 0.6; }

/* Modern animated nav links */
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0; background-color: currentColor; transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.nav-link { position: relative; display: inline-block; padding: .25rem .5rem; border-radius: .375rem; font-weight: 600; letter-spacing: .015em; color: #111827; transition: color .25s ease, transform .25s ease; }
.nav-link:hover { transform: translateY(-1px); }
.nav-link:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(17,24,39,0.25); border-radius: .375rem; }

/* Hover underline removed per request */

/* Subtle glow on hover */
.nav-link--glow:hover { filter: drop-shadow(0 4px 14px rgba(96,165,250,0.25)); }

/* Pill variant for mobile menu */
.nav-link--pill { padding: .5rem .75rem; border-radius: .5rem; background: rgba(255,255,255,0.65); border: 1px solid rgba(17,24,39,0.10); backdrop-filter: saturate(180%) blur(8px); transition: box-shadow .25s ease, background .25s ease; }
.nav-link--pill:hover { background: rgba(255,255,255,0.85); box-shadow: 0 10px 24px rgba(17,24,39,0.15); }

/* navLinkShine animation removed */

/* Emoji accent for nav links */
.nav-emoji { display: inline-block; margin-right: .35rem; transform-origin: 50% 50%; transition: transform .25s ease, filter .25s ease; width: 20px; height: 20px; vertical-align: middle; color: #111827; }
.nav-link:hover .nav-emoji { transform: rotate(-10deg) scale(1.08); filter: drop-shadow(0 2px 6px rgba(251,113,133,0.35)); }
@keyframes emojiWave { 0% { transform: rotate(0deg) } 50% { transform: rotate(-12deg) } 100% { transform: rotate(0deg) } }
.nav-link:hover .nav-emoji { animation: emojiWave .6s ease; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
.nav-link, .nav-emoji { transition: none; animation: none; }

/* Floating navbar */
.floating-nav { position: sticky; top: 12px; z-index: 50; margin: 0 auto; max-width: 1100px; border-radius: 14px; border: 1px solid rgba(17,24,39,0.10); background: rgba(255,255,255,0.70); backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 18px 40px rgba(17,24,39,0.08); transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.floating-nav.nav--scrolled { background: rgba(255,255,255,0.92); border-color: rgba(17,24,39,0.12); box-shadow: 0 22px 48px rgba(17,24,39,0.12); }
.floating-nav .nav-link { padding: .5rem .75rem; border-radius: .5rem; }

/* Mobile panel under floating nav */
.mobile-panel { background: rgba(255,255,255,0.85); border: 1px solid rgba(17,24,39,0.12); border-radius: 12px; box-shadow: 0 14px 34px rgba(17,24,39,0.10); backdrop-filter: saturate(180%) blur(10px); }
}

/* Modern listing cards */
.card { background: #fff; border: 1px solid rgba(17,24,39,0.08); border-radius: .75rem; overflow: hidden; box-shadow: 0 10px 24px rgba(17,24,39,0.06); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(17,24,39,0.12); }
.card-media { background: #f8fafc; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1.25rem; }

/* Modern buttons */
.btn { display: inline-block; font-weight: 600; border-radius: .5rem; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.btn-primary { background: #111827; color: #fff; padding: .5rem .9rem; }
.btn-primary:hover { background: #374151; }
.btn-outline { border: 1px solid #D1D5DB; color: #111827; padding: .4rem .75rem; background: #fff; }
.btn-outline:hover { background: #f9fafb; }

/* Badges for meta info */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .5rem; font-size: .75rem; line-height: 1rem; color: #374151; background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%); border: 1px solid #E5E7EB; border-radius: 9999px; }
.badge + .badge { margin-left: .5rem; }

/* Icon buttons (emoji-compatible) */
.btn-icon { display: inline-flex; align-items: center; gap: .35rem; }

/* Brand icon image size */
.icon-brand { width: 18px; height: 18px; display: inline-block; }

/* Brand color accents */
.btn-airbnb { border-color: #FF5A5F; color: #FF5A5F; }
.btn-airbnb:hover { background: rgba(255, 90, 95, 0.08); }
.btn-booking { border-color: #003580; color: #003580; }
.btn-booking:hover { background: rgba(0, 53, 128, 0.06); }

/* Global Loading Overlay */
.loading-overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(800px circle at 10% 20%, rgba(32, 244, 155, 0.10), transparent 55%),
    radial-gradient(800px circle at 90% 0%, rgba(56, 189, 248, 0.10), transparent 55%),
    rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
}

.loading-panel {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 26px 30px; border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 40px rgba(17,24,39,0.12);
  border: 1px solid rgba(17,24,39,0.08);
}

.loader { display: none !important; }
.loading-text { font-weight: 600; color: #374151; font-size: 0.95rem; }

.loading-brand { display: flex; align-items: center; gap: 10px; }
.loading-logo { width: 48px; height: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.10)); animation: breathe 1.8s ease-in-out infinite; }
.brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; color: #111827; }

.loading-bar { width: 160px; height: 4px; border-radius: 9999px; background: #E5E7EB; overflow: hidden; }
.loading-bar__inner { display: block; width: 40%; height: 100%; background: #111827; border-radius: 9999px; animation: barProgress 1.2s ease-in-out infinite; }

@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes barProgress { 0% { transform: translateX(-100%); } 50% { transform: translateX(30%); } 100% { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) { .loader { animation: none; } .loading-logo { animation: none; } .loading-bar__inner { animation: none; } }

/* --- Home page local fallback styles (work without Tailwind) --- */
.home-hero { padding: 6rem 1rem; margin: 1rem; border-radius: 0.75rem; }
@media (min-width: 768px) { .home-hero { padding: 8rem 1.25rem; margin: 2rem; } }
.home-hero .container { max-width: 1100px; margin: 0 auto; }
.home-hero h1 { font-weight: 800; letter-spacing: -0.01em; margin-bottom: 1rem; font-size: clamp(2rem, 6vw, 3.5rem); color: #111827; }
.home-hero__subtitle { font-size: clamp(1rem, 2.6vw, 1.25rem); color: #374151; margin: 0 auto 2rem; max-width: 42ch; }
.home-hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.home-hero__actions a.inline-flex { display: inline-flex; align-items: center; padding: 0.75rem 1.5rem; border-radius: 0.5rem; background: #ffffff; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.06); transition: background .2s ease, transform .2s ease; }
.home-hero__actions a.inline-flex:hover { background: #f3f4f6; }

.home-categories { padding: 4rem 0; }
.home-categories .container { max-width: 1100px; margin: 0 auto; }
.home-categories .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
@media (min-width: 768px) { .home-categories .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.category-card { background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);  border-radius: 1rem; padding: 1.5rem; box-shadow: 0 10px 24px rgba(17,24,39,0.06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.category-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 18px 36px rgba(17,24,39,0.12); border-color: rgba(17,24,39,0.12); }
.category-card .icon-circle { width: 56px; height: 56px; border-radius: 9999px; background: #ffffff; box-shadow: 0 6px 16px rgba(17,24,39,0.08); transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease; }
.category-card:hover .icon-circle { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17,24,39,0.12); }
.category-card .icon-circle { position: relative; }
.category-card .icon-circle::after { content: ""; position: absolute; inset: -4px; border-radius: 9999px; background: radial-gradient(circle at 50% 50%, rgba(17,24,39,0.06), rgba(17,24,39,0.02)); z-index: -1; }
.category-card svg { transition: transform .25s ease, color .25s ease, opacity .25s ease; }
.category-card:hover svg { transform: translateY(-1px) scale(1.06); }
.category-card h3 { font-weight: 600; transition: color .25s ease; }
.category-card:hover h3 { color: #111827; }

.cat-aromas svg { color: #16a34a; }
.cat-coffee-tea svg { color: #8b5e3c; }
.cat-spa svg { color: #0ea5e9; }
.cat-textiles svg { color: #6366f1; }
.cat-ambient-lights svg { color: #f59e0b; }

.cat-aromas .icon-circle { background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%); }
.cat-coffee-tea .icon-circle { background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%); }
.cat-spa .icon-circle { background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%); }
.cat-textiles .icon-circle { background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%); }
.cat-ambient-lights .icon-circle { background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%); }

.home-products { padding: 4rem 0; background: #f9fafb; }
.home-products .container { max-width: 1100px; margin: 0 auto; }
.home-products .grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .home-products .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-card { box-shadow: 0 10px 24px rgba(17,24,39,0.06); border: 1px solid rgba(17,24,39,0.08); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(17,24,39,0.12); }
.product-card .p-6 { padding: 1.5rem; }

.home-trust { padding: 4rem 0; background: linear-gradient(90deg, #f9fafb 0%, #ffffff 100%); }
.home-trust .container { max-width: 1100px; margin: 0 auto; }
.home-trust .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 768px) { .home-trust .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.home-partners { padding: 4rem 0; background: #ffffff; }
.home-partners .container { max-width: 1100px; margin: 0 auto; }
.home-partners .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 768px) { .home-partners .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


/* Animation Utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

.btn-success { background: #16a34a; color: #fff; padding: 0.5rem 0.9rem; }
.btn-success:hover { background: #15803d; }

