/**
 * CTTCRS Modern AI Layer
 * Typography, atmosphere, motion, chatbot, legal pages
 */

:root {
    --font-display: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Sora', 'Segoe UI', sans-serif;
    --ai-orange: #ff6b35;
    --ai-orange-deep: #e55a2b;
    --ai-amber: #ff9f43;
    --ai-ink: #1a2332;
    --ai-mist: rgba(255, 107, 53, 0.12);
    --ai-glow: 0 0 40px rgba(255, 107, 53, 0.35);
}

body {
    font-family: var(--font-body);
    color: var(--ai-ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 107, 53, 0.08), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(255, 159, 67, 0.07), transparent 50%),
        linear-gradient(180deg, #fffaf6 0%, #f7f3ee 45%, #faf8f3 100%);
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* Keep interactive UI above atmosphere */
.header,
.footer,
.hero,
.hero-slider-simple,
.section,
.page-loader,
.mobile-menu,
.mobile-menu-backdrop,
.cookie-consent,
.back-to-top,
.ai-chatbot,
.notification {
    z-index: 1;
}

.header { z-index: 1000; }
.mobile-menu-backdrop { z-index: 1001; }
.mobile-menu { z-index: 1002; }
.page-loader { z-index: 9999; }
.home-intro { z-index: 9000; }
.cookie-consent { z-index: 10050; }
.back-to-top { z-index: 998; }
.ai-chatbot { z-index: 1100; }
.footer { z-index: 2; position: relative; }
.hero,
.hero-slider-simple,
.section {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, .logo-text h1, .section-title h2, .hero-content h1, .hero-slide-content h1 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* â€”â€”â€” Ambient atmosphere â€”â€”â€” */
.ai-atmosphere {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    contain: strict;
}

.ai-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    animation: aiBlobFloat 22s ease-in-out infinite;
    will-change: transform;
}

/* Home: cheaper blobs + pause while intro is up */
body.home-page .ai-blob {
    filter: blur(28px);
    opacity: 0.22;
    will-change: auto;
}

body.home-page.intro-locked .ai-atmosphere {
    display: none !important;
}

.ai-blob-1 {
    width: 420px;
    height: 420px;
    background: rgba(255, 107, 53, 0.22);
    top: -80px;
    left: -100px;
}

.ai-blob-2 {
    width: 360px;
    height: 360px;
    background: rgba(255, 159, 67, 0.18);
    top: 40%;
    right: -120px;
    animation-delay: -6s;
}

.ai-blob-3 {
    width: 280px;
    height: 280px;
    background: rgba(229, 90, 43, 0.14);
    bottom: -60px;
    left: 35%;
    animation-delay: -11s;
}

.ai-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

@keyframes aiBlobFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(30px, 40px, 0) scale(1.08); }
    66% { transform: translate3d(-25px, 20px, 0) scale(0.95); }
}

/* â€”â€”â€” AI Orb (shared) â€”â€”â€” */
.ai-orb-core {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff6ef 0%, #ff8c5a 40%, #ff6b35 70%, #e55a2b 100%);
    box-shadow: var(--ai-glow), inset 0 -6px 16px rgba(0, 0, 0, 0.15);
    animation: aiOrbPulse 2.4s ease-in-out infinite;
}

.ai-orb-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 53, 0.45);
    animation: aiRingSpin 6s linear infinite;
}

.ai-orb-ring-2 {
    inset: -12px;
    border-color: rgba(255, 159, 67, 0.28);
    animation-duration: 9s;
    animation-direction: reverse;
}

@keyframes aiOrbPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.06); filter: brightness(1.12); }
}

@keyframes aiRingSpin {
    to { transform: rotate(360deg); }
}

/* â€”â€”â€” Loader â€”â€”â€” */
.loader-ai-orb {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
}

.loader-ai-orb .ai-orb-core { width: 72px; height: 72px; }

.page-loader .loader-text p {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

/* â€”â€”â€” Modern header glass â€”â€”â€” */
.header {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.92);
}

.header.scrolled {
    box-shadow: 0 10px 32px rgba(229, 90, 43, 0.35);
}

.main-nav ul li a {
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.main-nav ul li a:hover {
    transform: none;
}

.btn {
    font-family: var(--font-display);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.38);
}

/* â€”â€”â€” Section polish â€”â€”â€” */
.section-title h2 {
    position: relative;
}

.section-title .ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ai-orange-deep);
    background: var(--ai-mist);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.section-title .ai-badge i {
    animation: aiSpark 1.6s ease-in-out infinite;
}

@keyframes aiSpark {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.carousel-item,
.service-card,
.gallery-item,
.cinfo-card,
.testimonial-item {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.carousel-item:hover,
.service-card:hover,
.gallery-item:hover,
.cinfo-card:hover {
    transform: translateY(-6px);
}

/* Reveal motion */
.reveal-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > *.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *.reveal-up:nth-child(2) { transition-delay: 0.12s; }
.stagger-children > *.reveal-up:nth-child(3) { transition-delay: 0.19s; }
.stagger-children > *.reveal-up:nth-child(4) { transition-delay: 0.26s; }
.stagger-children > *.reveal-up:nth-child(5) { transition-delay: 0.33s; }

/* Hero AI overlay shimmer */
.hero-slider-simple .hero-slide::after,
.hero .hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 62%);
    background-size: 200% 100%;
    animation: aiShimmerSweep 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hero-slide-content,
.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes aiShimmerSweep {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

.hero-slide-content h1,
.hero-content h1 {
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    animation: heroTitleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Homepage AI highlight strip */
.ai-highlight-strip {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 45%, #ff9f43 100%);
    color: #fff;
    padding: 2.75rem 0;
    margin: 0;
}

.ai-highlight-strip::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    top: -100px;
    right: 8%;
    animation: aiBlobFloat 12s ease-in-out infinite;
}

.ai-highlight-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ai-highlight-orb {
    position: relative;
    width: 64px;
    height: 64px;
}

.ai-highlight-orb .ai-orb-core { width: 64px; height: 64px; }

.ai-highlight-copy h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
    color: #fff;
}

.ai-highlight-copy p {
    margin: 0;
    opacity: 0.95;
    max-width: 40rem;
}

.ai-highlight-strip .btn {
    background: #fff;
    color: var(--ai-orange-deep);
    border: none;
}

.ai-highlight-strip .btn:hover {
    background: #fff7f2;
    color: var(--ai-ink);
}

/* Magnetic hover for cards on home */
.magnetic-card {
    will-change: transform;
}

/* â€”â€”â€” Legal pages â€”â€”â€” */
.legal-page .legal-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(26, 35, 50, 0.06);
}

.legal-updated {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--ai-orange-deep);
    background: var(--ai-mist);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.legal-content h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    color: var(--ai-ink);
    border-left: 3px solid var(--ai-orange);
    padding-left: 0.75rem;
}

.legal-content p,
.legal-content li {
    color: #3d4f63;
    line-height: 1.75;
}

.legal-content ul {
    margin: 0.75rem 0 1rem 1.25rem;
}

.legal-contact-list {
    list-style: none;
    margin-left: 0 !important;
    padding: 1rem 1.25rem;
    background: #fff7f2;
    border-radius: 12px;
}

.legal-contact-list li { margin-bottom: 0.35rem; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.4rem;
    border: 2px solid var(--ai-orange);
    color: var(--ai-orange-deep);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
}

.btn-outline:hover {
    background: var(--ai-orange);
    color: #fff;
}

/* â€”â€”â€” AI Chatbot â€”â€”â€” */
.ai-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    font-family: var(--font-body);
}

.ai-chat-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a 55%, #ff9f43);
    color: #fff;
    box-shadow: 0 14px 36px rgba(255, 107, 53, 0.48);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        padding 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        gap 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: visible;
    max-width: 4.85rem;
}

.ai-chat-fab:hover,
.ai-chat-fab:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(255, 107, 53, 0.58);
    padding: 0.4rem 1.15rem 0.4rem 0.4rem;
    gap: 0.7rem;
    max-width: 18rem;
}

.ai-chat-fab:focus-visible {
    outline: 2px solid #ffb07a;
    outline-offset: 3px;
}

.ai-chat-fab.is-open {
    background: linear-gradient(135deg, #e55a2b, #ff6b35);
    padding: 0.4rem;
    gap: 0;
    max-width: 4.85rem;
    border-radius: 999px;
}

.ai-chat-fab.is-open:hover,
.ai-chat-fab.is-open:focus-visible {
    padding: 0.4rem;
    gap: 0;
    max-width: 4.85rem;
}

.ai-fab-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 999px;
    border: 2px solid rgba(255, 107, 53, 0.5);
    animation: fabPulseRing 2s ease-out infinite;
    pointer-events: none;
}

.ai-fab-pulse-2 {
    animation-delay: 1s;
    border-color: rgba(255, 159, 67, 0.45);
}

@keyframes fabPulseRing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Animated Travel Assistant buddy (custom robot image) */
.ai-buddy {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ai-buddy-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    animation: aiBuddyRing 2.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aiBuddyRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.ai-buddy-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 12%;
    display: block;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.22),
        0 0 0 3px rgba(255, 107, 53, 0.25);
    animation: aiBuddyFloat 2.6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes aiBuddyFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    40% { transform: translateY(-3px) rotate(-2deg); }
    70% { transform: translateY(-1px) rotate(2deg); }
}

.ai-buddy-header {
    width: 46px;
    height: 46px;
}

.ai-buddy-header .ai-buddy-img {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ai-chat-fab.is-open .ai-buddy-img {
    animation: none;
    transform: scale(1.04);
}

/* Hide old icon styles */
.ai-buddy-face,
.ai-buddy-spark,
.ai-robo,
.ai-fab-orb,
.ai-header-orb,
.ai-header-robo,
.ai-msg-avatar,
.ai-mini-orb {
    display: none !important;
}

/* Label: hidden by default, slides out to the right on hover */
.ai-fab-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-6px);
    transition:
        max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-chat-fab:hover .ai-fab-label,
.ai-chat-fab:focus-visible .ai-fab-label {
    max-width: 11rem;
    opacity: 1;
    transform: translateX(0);
}

.ai-chat-fab.is-open .ai-fab-label,
.ai-chat-fab.is-open:hover .ai-fab-label,
.ai-chat-fab.is-open:focus-visible .ai-fab-label {
    max-width: 0;
    opacity: 0;
    transform: translateX(-6px);
}

.ai-msg-bot {
    max-width: 92%;
}

.ai-msg-bot .ai-bubble-wrap {
    width: 100%;
}

.ai-chat-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 120px));
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(26, 35, 50, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.94);
    transform-origin: bottom right;
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.ai-chat-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 55%, #ff9f43 100%);
    color: #fff;
}

.ai-chat-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-header-orb {
    position: relative;
    width: 44px;
    height: 44px;
}

.ai-header-orb .ai-orb-core {
    width: 44px;
    height: 44px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

.ai-chat-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ai-chat-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.ai-chat-subtitle {
    font-size: 0.78rem;
    opacity: 0.92;
}

.ai-chat-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.ai-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background:
        radial-gradient(400px 200px at 0% 0%, rgba(255, 107, 53, 0.06), transparent 60%),
        #fbf8f5;
}

/* Fresh-open TAT-AI welcome intro */
.ai-chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1rem 0.5rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease, margin 0.45s ease, padding 0.45s ease;
    max-height: 280px;
}

.ai-chat-welcome.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-chat-welcome.is-hidden {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.ai-welcome-robo {
    position: relative;
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.ai-welcome-glow {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.35) 0%, transparent 70%);
    animation: aiWelcomeGlow 2s ease-in-out infinite;
}

@keyframes aiWelcomeGlow {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}

.ai-welcome-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.28), 0 0 0 4px rgba(255, 107, 53, 0.12);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(0.4) translateY(40px) rotate(-12deg);
}

.ai-chat-welcome.is-visible .ai-welcome-img {
    animation: aiWelcomeRoboIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards,
               aiWelcomeBob 2.4s ease-in-out 1s infinite;
}

@keyframes aiWelcomeRoboIn {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(40px) rotate(-12deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.06) translateY(-4px) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0);
    }
}

@keyframes aiWelcomeBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.ai-welcome-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #2c3e50;
    font-family: var(--font-display);
    opacity: 0;
    transform: translateY(12px);
}

.ai-welcome-text strong {
    color: #e55a2b;
}

.ai-chat-welcome.is-visible .ai-welcome-text {
    animation: aiWelcomeTextIn 0.55s ease 0.55s forwards;
}

@keyframes aiWelcomeTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ai-msg {
    display: flex;
    gap: 0.5rem;
    max-width: 92%;
    animation: aiMsgIn 0.35s ease both;
}

@keyframes aiMsgIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-msg-bot {
    align-self: flex-start;
}

.ai-msg-avatar {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.ai-mini-orb {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #ff8c5a 45%, #ff6b35 100%);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
    animation: aiOrbPulse 2s ease-in-out infinite;
}

.ai-bubble {
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ai-ink);
}

.ai-msg-bot .ai-bubble {
    background: #fff;
    border: 1px solid rgba(255, 107, 53, 0.12);
    border-bottom-left-radius: 5px;
    box-shadow: 0 4px 14px rgba(26, 35, 50, 0.05);
}

.ai-msg-user .ai-bubble {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #fff;
    border-bottom-right-radius: 5px;
}

.ai-bubble-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ai-msg-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-self: stretch;
    margin-top: 0.15rem;
}

.ai-msg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ai-orange-deep);
    text-decoration: none;
    padding: 0.42rem 0.78rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.28);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    line-height: 1.25;
    max-width: 100%;
    text-align: center;
}

.ai-msg-link:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.45);
    transform: translateY(-1px);
}

.ai-typing {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-width: 52px;
}

.ai-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ai-orange);
    animation: typingDot 1.2s ease-in-out infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-5px); opacity: 1; }
}

.ai-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 1rem 0.75rem;
}

.ai-chip {
    border: 1px solid rgba(255, 107, 53, 0.3);
    background: #fff;
    color: var(--ai-orange-deep);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: var(--font-body);
}

.ai-chip:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.ai-chat-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 107, 53, 0.12);
    background: #fff;
}

.ai-chat-form input {
    flex: 1;
    border: 1px solid #e8ddd4;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-form input:focus {
    border-color: var(--ai-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.ai-chat-send {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-send:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.ai-chat-footer-note {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.45rem 0.75rem 0.7rem;
    background: #fff;
    border-top: 1px solid #f0e8e1;
}

.ai-chat-footer-note a {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5a6c7d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ai-chat-footer-note a:hover {
    color: var(--ai-orange-deep);
}

.ai-chat-footer-note .fa-whatsapp { color: #25d366; }

/* Hide old FAB if any residual markup */
.quick-inquiry-fab { display: none !important; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .ai-blob,
    .ai-orb-core,
    .ai-orb-ring,
    .ai-fab-pulse,
    .ai-buddy-img,
    .ai-buddy-ring,
    .ai-welcome-img,
    .ai-welcome-glow,
    .hero-slider-simple .hero-slide::after,
    .hero .hero-slide::after {
        animation: none !important;
    }
    .ai-chat-welcome.is-visible .ai-welcome-img,
    .ai-chat-welcome.is-visible .ai-welcome-text {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 640px) {
    .ai-chatbot {
        right: 14px;
        bottom: 14px;
    }

    .ai-buddy {
        width: 60px;
        height: 60px;
    }

    .ai-buddy-img {
        width: 56px;
        height: 56px;
    }

    .ai-chat-fab,
    .ai-chat-fab:hover,
    .ai-chat-fab:focus-visible {
        padding: 0.35rem;
        gap: 0;
        max-width: 4.4rem;
        border-radius: 999px;
    }

    .ai-fab-label,
    .ai-chat-fab:hover .ai-fab-label,
    .ai-chat-fab:focus-visible .ai-fab-label {
        max-width: 0;
        opacity: 0;
    }

    .ai-chat-panel {
        position: fixed;
        right: 10px;
        left: 10px;
        bottom: 90px;
        width: auto;
        height: min(70vh, 520px);
    }

    .ai-highlight-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .legal-page .legal-content {
        padding: 1.5rem;
    }
}


/* ——— Hotel Booking (tabs + location + property modal) ——— */
.hb-tabs-section { padding-top: 2.5rem; }

.hb-tabs {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hb-tab {
    border: 1.5px solid rgba(255, 107, 53, 0.3);
    background: #fff;
    color: #2c3e50;
    font-family: var(--font-display, inherit);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hb-tab i { margin-right: 0.4rem; color: var(--primary-color); }

.hb-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.hb-tab.is-active {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.hb-tab.is-active i { color: #fff; }

.hb-tab-panel[hidden] { display: none !important; }

.hb-location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.hb-location-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.1);
    box-shadow: 0 10px 28px rgba(26, 35, 50, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hb-location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(255, 107, 53, 0.16);
}

.hb-location-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #eee;
}

.hb-location-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hb-location-card:hover .hb-location-thumb img { transform: scale(1.06); }

.hb-location-count {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    background: rgba(26, 35, 50, 0.78);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.hb-location-info { padding: 1.1rem 1.2rem 1.25rem; }

.hb-location-info h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display, inherit);
    font-size: 1.15rem;
}

.hb-location-info p {
    margin: 0 0 0.75rem;
    color: #5a6c7d;
    font-size: 0.88rem;
    line-height: 1.5;
}

.hb-location-cta {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.88rem;
}

.hb-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.hb-featured-card {
    text-align: left;
    border: 1px solid rgba(255, 107, 53, 0.1);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(26, 35, 50, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.hb-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(255, 107, 53, 0.16);
}

.hb-featured-thumb {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #eee;
}

.hb-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hb-badge-stars,
.hb-badge-type {
    position: absolute;
    top: 0.75rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.hb-badge-stars { right: 0.75rem; background: var(--primary-color, #ff6b35); }
.hb-badge-type { left: 0.75rem; background: rgba(26, 35, 50, 0.72); }

.hb-featured-body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hb-featured-body h3 {
    margin: 0 0 0.3rem;
    font-size: 1.08rem;
    font-family: var(--font-display, inherit);
}

.hb-card-loc {
    margin: 0 0 0.55rem;
    color: #5a6c7d;
    font-size: 0.86rem;
}

.hb-card-loc i { color: var(--primary-color, #ff6b35); }

.hb-card-desc {
    margin: 0 0 0.9rem;
    color: #5a6c7d;
    font-size: 0.88rem;
    line-height: 1.5;
    flex: 1;
}

.hb-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid #f0e8e1;
    padding-top: 0.85rem;
}

.hb-price strong {
    font-size: 1.15rem;
    color: #1a2332;
    font-family: var(--font-display, inherit);
}

.hb-price-label,
.hb-price-unit {
    font-size: 0.72rem;
    color: #5a6c7d;
}

.hb-view-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-dark, #e55a2b);
}

/* Location detail hero */
.hb-loc-hero {
    position: relative;
    margin-top: 90px;
    min-height: 360px;
    overflow: hidden;
}

.hb-loc-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hb-loc-hero-overlay {
    position: relative;
    z-index: 1;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem 0;
    background: linear-gradient(180deg, rgba(26,35,50,0.15) 0%, rgba(26,35,50,0.72) 100%);
    color: #fff;
}

.hb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.hb-loc-hero h1 {
    margin: 0 0 0.4rem;
    font-family: var(--font-display, inherit);
    font-size: 2.4rem;
    color: #fff;
}

.hb-loc-tagline {
    margin: 0;
    opacity: 0.95;
    max-width: 40rem;
}

.hb-loc-about {
    background: #fff;
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(255, 107, 53, 0.1);
    box-shadow: 0 8px 24px rgba(26, 35, 50, 0.05);
}

.hb-loc-about p {
    margin: 0;
    color: #3d4f63;
    line-height: 1.7;
}

.hb-results-head h2 {
    margin: 0 0 0.25rem;
    font-family: var(--font-display, inherit);
}

.hb-results-head p { margin: 0; color: #5a6c7d; }

.hb-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #5a6c7d;
}

.hb-empty i {
    font-size: 2.5rem;
    color: var(--primary-color, #ff6b35);
    margin-bottom: 0.75rem;
}

/* Modals */
.hb-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hb-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hb-modal[hidden] {
    display: flex !important;
}

.hb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 35, 50, 0.55);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hb-modal.is-open .hb-modal-overlay {
    opacity: 1;
}

.hb-modal-dialog {
    position: relative;
    background: #fff;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
    max-height: 92vh;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.hb-modal.is-open .hb-modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hb-modal-wide { max-width: 920px; }

.hb-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0e8e1;
}

.hb-modal-head h3 {
    margin: 0;
    font-family: var(--font-display, inherit);
}

.hb-modal-close {
    border: none;
    background: #f5f0eb;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #5a6c7d;
}

.hb-modal-close-abs {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
}

.hb-modal-body { padding: 1.25rem; }

.hb-modal-hotel {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-dark, #e55a2b);
    font-weight: 600;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.hb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.hb-modal-body .form-group { margin-bottom: 0.9rem; }

.hb-modal-body label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.hb-modal-body input,
.hb-modal-body select,
.hb-modal-body textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid #e8ddd4;
    border-radius: 10px;
    font-family: inherit;
}

.hb-form-msg { margin-top: 0.75rem; font-size: 0.88rem; }
.hb-form-msg.ok { color: #2f9e44; }
.hb-form-msg.error { color: #e03131; }

.hb-prop-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 420px;
}

.hb-prop-slider {
    position: relative;
    background: #1a2332;
    min-height: 420px;
}

.hb-slider-track { position: absolute; inset: 0; }

.hb-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hb-slide.is-active { opacity: 1; }

.hb-slide img,
.hb-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #111;
}

.hb-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #1a2332;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hb-slider-btn.prev { left: 0.75rem; }
.hb-slider-btn.next { right: 0.75rem; }

.hb-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 2;
}

.hb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
}

.hb-dot.is-active { background: #ff6b35; }

.hb-prop-content {
    padding: 1.5rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
}

.hb-prop-meta {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark, #e55a2b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hb-prop-content h3 {
    margin: 0 0 0.4rem;
    font-family: var(--font-display, inherit);
    font-size: 1.35rem;
}

.hb-prop-loc {
    margin: 0 0 0.85rem;
    color: #5a6c7d;
    font-size: 0.9rem;
}

.hb-prop-loc i { color: var(--primary-color, #ff6b35); }

.hb-prop-desc {
    margin: 0 0 1rem;
    color: #3d4f63;
    line-height: 1.65;
    font-size: 0.92rem;
    flex: 1;
}

.hb-amenities {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.1rem;
    padding: 0;
}

.hb-amenities li {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-dark, #e55a2b);
    background: rgba(255, 107, 53, 0.1);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.hb-prop-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #f0e8e1;
    padding-top: 1rem;
}

@media (max-width: 1024px) {
    .hb-location-grid,
    .hb-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hb-prop-layout { grid-template-columns: 1fr; }
    .hb-prop-slider { min-height: 260px; }
}

@media (max-width: 640px) {
    .hb-location-grid,
    .hb-featured-grid {
        grid-template-columns: 1fr;
    }
    .hb-form-row { grid-template-columns: 1fr; }
    .hb-modal {
        align-items: flex-end;
        padding: 0;
    }
    .hb-modal-dialog {
        border-radius: 16px 16px 0 0;
        max-height: 94vh;
        max-width: 100%;
    }
    .hb-modal.is-open .hb-modal-dialog {
        transform: translateY(0) scale(1);
    }
    .hb-loc-hero,
    .hb-loc-hero-overlay { min-height: 280px; }
    .hb-loc-hero h1 { font-size: 1.8rem; }
}

/* Location page: split gallery + text */
.hb-loc-intro-section { padding-top: 2.5rem; }

.hb-loc-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.hb-loc-gallery {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 420px;
    background: #1a2332;
    box-shadow: 0 14px 36px rgba(26, 35, 50, 0.12);
}

.hb-loc-slider { position: absolute; inset: 0; }

.hb-loc-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.hb-loc-slide.is-active { opacity: 1; }

.hb-loc-slide img,
.hb-loc-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #111;
}

.hb-loc-gallery .hb-slider-btn { z-index: 3; }

.hb-loc-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 3;
}

.hb-loc-copy {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem 1.6rem;
    border: 1px solid rgba(255, 107, 53, 0.12);
    box-shadow: 0 10px 28px rgba(26, 35, 50, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hb-loc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-dark, #e55a2b);
    margin-bottom: 0.6rem;
}

.hb-loc-copy h2 {
    margin: 0 0 0.55rem;
    font-family: var(--font-display, inherit);
    font-size: 1.7rem;
    color: #1a2332;
}

.hb-loc-lead {
    margin: 0 0 0.85rem;
    color: var(--primary-dark, #e55a2b);
    font-weight: 600;
}

.hb-loc-copy > p,
.hb-loc-desc {
    margin: 0 0 1.1rem;
    color: #3d4f63;
    line-height: 1.7;
}

.hb-loc-desc p {
    margin: 0 0 0.85rem;
    color: #3d4f63;
    line-height: 1.7;
}

.hb-loc-desc p:last-child {
    margin-bottom: 0;
}

.hb-loc-desc b,
.hb-loc-desc strong { font-weight: 700; color: #2c3e50; }

.hb-loc-desc i,
.hb-loc-desc em { font-style: italic; }

.hb-loc-desc u { text-decoration: underline; }

.hb-loc-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.hb-loc-highlights li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.92rem;
}

.hb-loc-highlights i { color: var(--primary-color, #ff6b35); }

.hb-loc-props-section { background: rgba(255, 107, 53, 0.04); }

.hb-prop-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.hb-prop-thumb {
    border: 1px solid rgba(255, 107, 53, 0.12);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    box-shadow: 0 8px 22px rgba(26, 35, 50, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    max-width: 260px;
    flex: 0 1 260px;
}

.hb-prop-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(255, 107, 53, 0.16);
}

.hb-prop-thumb-img {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: #eee;
}

.hb-prop-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hb-prop-thumb-info { padding: 0.85rem 0.95rem 1rem; }

.hb-prop-thumb-info h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-family: var(--font-display, inherit);
}

.hb-prop-thumb-info p {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    color: #5a6c7d;
}

.hb-prop-thumb-info strong {
    font-size: 1.05rem;
    color: #1a2332;
}

.hb-prop-thumb-info span {
    font-size: 0.75rem;
    color: #5a6c7d;
    margin-left: 0.15rem;
}

/* Stacked property modal: images on top, text + Book Now below */
.hb-prop-layout.is-stacked {
    grid-template-columns: 1fr;
}

.hb-modal-stacked { max-width: 720px; }

.hb-prop-layout.is-stacked .hb-prop-slider {
    min-height: 300px;
    height: 320px;
}

.hb-prop-layout.is-stacked .hb-prop-content {
    padding: 1.25rem 1.35rem 1.4rem;
}

.hb-prop-layout.is-stacked .hb-prop-price-row {
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .hb-loc-split { grid-template-columns: 1fr; }
    .hb-loc-gallery { min-height: 300px; }
    .hb-prop-thumb {
        max-width: 240px;
        flex: 0 1 240px;
    }
}

@media (max-width: 640px) {
    .hb-prop-thumbs {
        gap: 0.85rem;
    }
    .hb-prop-thumb {
        max-width: calc(50% - 0.45rem);
        flex: 0 1 calc(50% - 0.45rem);
    }
    .hb-prop-layout.is-stacked .hb-prop-slider {
        min-height: 220px;
        height: 240px;
    }
}

/* ——— Home Discover intro (full-page slide-up gate) ——— */
html.intro-locked,
body.intro-locked {
    overflow: hidden !important;
    height: 100%;
    overscroll-behavior: none;
}

/* Skip painting heavy home sections while intro covers them */
body.home-page.intro-locked #homeHero,
body.home-page.intro-locked #homeHero ~ section,
body.home-page.intro-locked #homeHero ~ .section,
body.home-page.intro-locked footer {
    visibility: hidden;
    pointer-events: none;
}

body.intro-locked .header,
body.intro-locked .ai-chatbot,
body.intro-locked .back-to-top,
body.intro-locked .cookie-consent {
    visibility: hidden !important;
    pointer-events: none !important;
}

.home-intro {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: opacity;
}

.home-intro.is-armed {
    opacity: 1;
}

.home-intro.is-sliding {
    pointer-events: none;
}

.home-intro.is-gone {
    opacity: 0;
    transition: opacity 0.28s ease;
}

.home-intro__wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        165deg,
        rgba(255, 196, 153, 0.92) 0%,
        rgba(255, 176, 122, 0.88) 45%,
        rgba(255, 155, 90, 0.9) 100%
    );
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.home-intro.is-sliding .home-intro__wash {
    opacity: 1;
}

.home-intro.is-gone .home-intro__wash {
    opacity: 0;
    transition-duration: 0.35s;
}

.home-intro__panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate3d(0, 0, 0);
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

.home-intro.is-sliding .home-intro__panel {
    transform: translate3d(0, -105%, 0);
}

.home-intro__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 62% center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.home-intro.is-sliding .home-intro__media {
    transform: scale(1.12);
}

.home-intro__dim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(26, 35, 50, 0.42) 0%, rgba(26, 35, 50, 0.12) 38%, rgba(26, 35, 50, 0.45) 100%);
    pointer-events: none;
}

.home-intro__content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    color: #fff;
    padding: clamp(1.5rem, 4.5vh, 2.75rem) var(--page-gutter, 1.5rem) clamp(1.25rem, 3.5vh, 2.25rem);
    max-width: none;
    animation: none;
    opacity: 0;
}

.home-intro.is-armed .home-intro__content {
    animation: homeIntroIn 0.85s ease 0.05s both;
}

.home-intro__brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.85rem, 2vh, 1.35rem);
    margin-top: clamp(0.75rem, 3vh, 1.75rem);
}

.home-intro__logo {
    width: clamp(140px, 22vw, 220px);
    height: clamp(140px, 22vw, 220px);
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.4));
    animation: none;
    transform-origin: center center;
}

.home-intro.is-armed .home-intro__logo {
    animation: homeIntroLogoFloat 3.2s ease-in-out infinite;
}

@keyframes homeIntroLogoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.035); }
}

.home-intro__name {
    margin: 0;
    max-width: min(46rem, 94vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.home-intro__name-line {
    display: block;
    font-family: var(--font-display, Outfit, sans-serif);
    font-size: clamp(1.55rem, 4.4vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    animation: none;
}

.home-intro.is-armed .home-intro__name-line {
    animation: homeIntroNameIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-intro__name-line:nth-child(2) {
    font-size: clamp(1.2rem, 3.2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    animation-delay: 0.12s;
    opacity: 0.96;
}

@keyframes homeIntroNameIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-intro__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.35rem;
    animation: none;
}

.home-intro.is-armed .home-intro__cta {
    animation: homeIntroNameIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.home-intro__discover {
    margin: 0;
    font-family: var(--font-display, Outfit, sans-serif);
    font-size: clamp(2.1rem, 6.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: none;
    color: #fff;
    text-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
    animation: none;
}

.home-intro.is-armed .home-intro__discover {
    animation: homeIntroDiscover 2.4s ease-in-out infinite;
}

@keyframes homeIntroDiscover {
    0%, 100% {
        opacity: 0.88;
        transform: translateY(0) scale(1);
        text-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
    }
    50% {
        opacity: 1;
        transform: translateY(-6px) scale(1.03);
        text-shadow: 0 16px 44px rgba(255, 107, 53, 0.45), 0 8px 28px rgba(0, 0, 0, 0.4);
    }
}

.home-intro__scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    font-family: var(--font-body, Sora, sans-serif);
}

.home-intro__mouse {
    position: relative;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}

.home-intro__mouse-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 999px;
    background: #fff;
    animation: homeIntroMouseWheel 1.6s ease-in-out infinite;
}

@keyframes homeIntroMouseWheel {
    0% { transform: translateY(0); opacity: 1; }
    55% { transform: translateY(12px); opacity: 0.15; }
    100% { transform: translateY(0); opacity: 1; }
}

.home-intro__scroll-text {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.92;
    animation: homeIntroScrollPulse 1.8s ease-in-out infinite;
}

@keyframes homeIntroScrollPulse {
    0%, 100% { opacity: 0.45; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(4px); }
}

.home-intro__scroll:hover .home-intro__mouse,
.home-intro__scroll:focus-visible .home-intro__mouse {
    border-color: #ffb07a;
    background: rgba(255, 107, 53, 0.28);
}

.home-intro__scroll:focus-visible {
    outline: 2px solid #ffb07a;
    outline-offset: 4px;
}

.home-intro.is-sliding .home-intro__content {
    opacity: 0;
    transition: opacity 0.35s ease;
}

@keyframes homeIntroIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-intro {
        transition: none !important;
    }
    .home-intro.is-armed {
        opacity: 1 !important;
    }
    .home-intro__panel,
    .home-intro__media,
    .home-intro__wash,
    .home-intro__content,
    .home-intro__logo,
    .home-intro__name-line,
    .home-intro__cta,
    .home-intro__discover,
    .home-intro__mouse-wheel,
    .home-intro__scroll-text {
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
    .home-intro.is-armed .home-intro__content,
    .home-intro.is-armed .home-intro__name-line,
    .home-intro.is-armed .home-intro__cta {
        opacity: 1 !important;
        transform: none !important;
    }
}

