/* GLOBAL */
:root {
    --primary: #00a8e8; --accent: #d4af37; --text-dark: #1a1a1a;
    --text-light: #ffffff; --bg-off: #f9f9f9;
    --font-head: 'Playfair Display', serif; --font-body: 'Montserrat', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--text-light); overflow-x: hidden; }

/* HEADER & NAV */
#main-header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0.5rem 5%; height: 100px;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.shanti-logo-img { height: 90px; width: auto; display: block; animation: logoIn 1s forwards; }
@keyframes logoIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

nav ul { display: flex; list-style: none; gap: 1rem; }
.nav-btn {
    text-decoration: none; color: var(--text-dark); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
    padding: 0.8rem 1.5rem; border-radius: 30px; border: 1px solid transparent;
    transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem;
    position: relative; overflow: hidden;
}
.nav-btn .icon { width: 0; overflow: hidden; transition: width 0.3s ease; opacity: 0; }
.nav-btn:hover { padding-right: 1.5rem; border-color: var(--primary); }
.nav-btn:hover .icon { width: 20px; opacity: 1; }

/* HERO */
#hero { height: 100vh; position: relative; display: flex; align-items: flex-end; overflow: hidden; }
#hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -1; transform: translate(-50%, -50%); object-fit: cover; }
.hero-overlay { width: 100%; padding: 5rem 5%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%); }
.hero-content h1 { font-family: var(--font-head); font-size: 5rem; color: white; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* ACCORDION */
#accordion-services { padding: 5rem 5%; background: #111; color: white; min-height: 800px; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-family: var(--font-head); font-size: 3rem; margin-bottom: 0.5rem; color: inherit; }

.accordion-grid-wrapper { display: flex; width: 100%; height: 600px; border-radius: 20px; overflow: hidden; background: #222; }
.acc-grid-item {
    flex: 1; background-size: cover; background-position: center;
    position: relative; overflow: hidden; cursor: pointer;
    transition: flex 0.5s ease-out; border-right: 1px solid rgba(255,255,255,0.1); min-width: 50px;
}
.acc-grid-item:last-child { border-right: none; }
.acc-grid-item.active { flex: 10; }

.acc-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.9)); pointer-events: none; }
.acc-content { position: absolute; bottom: 30px; left: 30px; opacity: 0; width: 80%; pointer-events: none; transition: opacity 0.3s ease 0.2s; z-index: 2; }
.acc-grid-item.active .acc-content { opacity: 1; pointer-events: auto; }
.acc-content h3 { font-size: 3rem; font-family: var(--font-head); margin-bottom: 0; text-shadow: 0 2px 10px black; }
.acc-label {
    position: absolute; bottom: 30px; left: 20px; font-size: 1.5rem; font-weight: 700; 
    transform: rotate(-90deg); transform-origin: left bottom; white-space: nowrap; 
    transition: 0.2s; z-index: 2; pointer-events: none;
}
.acc-grid-item.active .acc-label { opacity: 0; }
.ghost-btn { padding: 0.8rem 2rem; border: 1px solid white; background: rgba(255,255,255,0.2); color: white; font-weight: 700; cursor: pointer; margin-top: 10px; pointer-events: auto; }
.ghost-btn:hover { background: white; color: black; }

/* MAP SECTION */
#world-map-section { padding: 5rem 5%; background: #f0f4f8; position: relative; z-index: 5; }
.map-interface { display: flex; justify-content: center; margin-bottom: 3rem; }
.map-container-layer { 
    position: relative; width: 100%; max-width: 1200px;
    border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
    background: #aadaff;
}
.base-map-img { width: 100%; display: block; opacity: 0.9; }
.smart-grid-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; }

/* LIFT EFFECT */
.grid-region {
    fill: transparent; stroke: transparent;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
}
/* This performs the visual lift */
.grid-region:hover {
    fill: rgba(255, 255, 255, 0.15); 
    stroke: var(--primary); stroke-width: 2px;
    transform: scale(1.02); /* Lifts up */
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5)); /* Adds shadow underneath */
    backdrop-filter: brightness(1.2); /* Brightens content */
}

/* TOOLTIP STYLING */
#region-tooltip { 
    position: absolute; top: 0; left: 0; 
    background: rgba(0,0,0,0.85); color: white; 
    padding: 8px 15px; border-radius: 5px; 
    font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    opacity: 0; pointer-events: none; 
    transition: opacity 0.1s; 
    z-index: 50; 
    transform: translate(15px, -15px); /* Offset from cursor */
}

/* CARDS */
.empty-state-msg { text-align: center; width: 100%; color: #888; font-style: italic; padding: 2rem; grid-column: 1 / -1; }
.destination-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; width: 100%; }
.dest-card { background: white; border-radius: 4px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); animation: fadeUp 0.5s ease forwards; position: relative; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.card-image-container { position: relative; height: 200px; width: 100%; }
.card-image { height: 100%; width: 100%; background-size: cover; background-position: center; }

.glass-tag-wrapper { position: absolute; bottom: 15px; left: 0; width: 100%; display: flex; justify-content: center; z-index: 10; pointer-events: none; }
.glass-tag {
    background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.6);
    padding: 0.5rem 1.5rem; border-radius: 30px; color: white; font-weight: 700; text-transform: uppercase; font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem;
    pointer-events: auto;
}
.glass-tag:hover { transform: scale(1.1); padding-right: 2rem; }
.glass-tag i { opacity: 0; width: 0; transition: 0.3s; }
.glass-tag:hover i { opacity: 1; width: 15px; }
.tag-tropical:hover { background: linear-gradient(135deg, #f1c40f, #e67e22); border-color: #f1c40f; box-shadow: 0 0 15px rgba(241, 196, 15, 0.6); }
.tag-luxury:hover { background: #9b59b6; }
.tag-trending:hover { background: #e74c3c; }

.card-content { padding: 1.5rem; text-align: center; }
.glass-book-btn { background: linear-gradient(135deg, var(--primary), #00d2ff); border: none; color: white; padding: 0.5rem 1.5rem; border-radius: 20px; font-weight: 700; cursor: pointer; margin-top: 10px; }

/* AVIA, ROBOT & FOOTER */
#avia-intro { padding: 6rem 5%; background: white; position: relative; z-index: 5; }
.avia-content-wrapper { display: flex; align-items: center; gap: 5rem; justify-content: space-between; }
.avia-text { flex: 1; text-align: left; }
.avia-text h2 { font-family: var(--font-head); font-size: 3.5rem; margin-bottom: 1.5rem; }
.gold-button { padding: 1rem 2.5rem; border: none; background: var(--accent); color: white; font-weight: 700; text-transform: uppercase; border-radius: 50px; cursor: pointer; transition: transform 0.3s; }
.gold-button:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4); }

#avia-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; }
#avia-trigger { cursor: pointer; position: relative; width: 100px; height: 120px; display: flex; justify-content: center; align-items: center; }
.robot-body-container { width: 80px; height: 100px; position: relative; animation: hoverFloat 4s ease-in-out infinite; transform-style: preserve-3d; perspective: 500px; }
@keyframes hoverFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.robot-head { width: 50px; height: 45px; background: linear-gradient(135deg, #fff, #e0e0e0); border-radius: 20px; position: absolute; top: 0; left: 15px; z-index: 3; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: transform 0.1s; }
.robot-face { width: 36px; height: 20px; background: #111; border-radius: 10px; position: absolute; top: 12px; left: 7px; display: flex; justify-content: space-around; align-items: center; }
.robot-eye { width: 8px; height: 4px; background: #00a8e8; border-radius: 2px; box-shadow: 0 0 5px #00a8e8; animation: blink 4s infinite; }
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } }
.robot-ear { width: 8px; height: 20px; background: #00a8e8; position: absolute; top: 12px; border-radius: 4px; }
.ear-left { left: -4px; } .ear-right { right: -4px; }
.robot-neck { width: 10px; height: 10px; background: #333; position: absolute; top: 40px; left: 35px; z-index: 1; }
.robot-torso { width: 40px; height: 35px; background: linear-gradient(135deg, #fff, #ccc); border-radius: 10px 10px 20px 20px; position: absolute; top: 48px; left: 20px; z-index: 2; box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
.torso-light { width: 10px; height: 10px; background: #00a8e8; border-radius: 50%; position: absolute; top: 10px; left: 15px; box-shadow: 0 0 10px #00a8e8; animation: heartbeat 2s infinite; }
.robot-shoulder { width: 15px; height: 25px; background: #fff; border-radius: 8px; position: absolute; top: 50px; z-index: 1; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.shoulder-left { left: 0px; animation: floatShoulder 3s infinite alternate; }
.shoulder-right { right: 0px; animation: floatShoulder 3s infinite alternate-reverse; }
@keyframes floatShoulder { 0% { transform: translateY(0); } 100% { transform: translateY(-3px); } }
.trigger-label { position: absolute; bottom: -20px; left: 10px; background: var(--text-dark); color: white; padding: 3px 10px; border-radius: 10px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }

#avia-chat-window { width: 350px; height: 500px; background: white; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); display: flex; flex-direction: column; overflow: hidden; margin-bottom: 20px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all 0.4s; }
#avia-chat-window.active { opacity: 1; transform: translateY(0); pointer-events: all; }
.avia-header { background: var(--text-dark); color: white; padding: 1.2rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); }
#close-avia { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
#chat-messages { flex: 1; padding: 1.5rem; overflow-y: auto; background: #f4f4f4; }
.message { padding: 1rem; margin-bottom: 1rem; border-radius: 8px; font-size: 0.9rem; }
.message.avia { background: white; align-self: flex-start; border: 1px solid #ddd; }
.message.user { background: var(--text-dark); color: white; align-self: flex-end; text-align: right; }
#chat-input-area { padding: 1.5rem; background: white; border-top: 1px solid #eee; }
.chat-option-btn { display: block; width: 100%; padding: 0.8rem; margin-bottom: 0.5rem; background: white; border: 1px solid var(--text-dark); color: var(--text-dark); border-radius: 4px; cursor: pointer; font-weight: 600; text-transform: uppercase; font-size: 0.8rem; }

#contact { padding: 5rem 5%; background: var(--bg-off); }
.contact-layout { display: flex; gap: 5rem; }
.map-container { flex: 1; height: 400px; border-radius: 4px; overflow: hidden; }
footer { background: var(--text-dark); color: white; text-align: center; padding: 3rem; }

@media (max-width: 768px) {
    .avia-content-wrapper, .contact-layout { flex-direction: column; }
    .accordion-grid-wrapper { flex-direction: column; height: 800px; }
    .acc-grid-item.active { flex: 2; }
    .acc-label { transform: rotate(0); bottom: 10px; left: 10px; opacity: 1 !important; }
    #avia-chat-window { width: 90vw; }
    nav { display: none; }
}