/* ==========================================================================
   VM RESIDENCY HOTEL - 100% VALIDATED CLEAN STYLESHEET
   Brand Colors: Sunset Orange Gradient & Royal Deep Purple
   ========================================================================== */

:root {
  --logo-orange-bright: #FF6A00;
  --logo-orange-gold: #FFA300;
  --logo-purple-dark: #250428;
  --logo-purple-royal: #490752;
  --logo-purple-vivid: #6D127B;

  --color-primary: #490752;
  --color-accent: #FF6A00;
  --color-accent-soft: #FFF4EC;
  --color-whatsapp: #25D366;
  --color-bg-light: #FAF8FB;
  --color-text-dark: #1E1722;
  --color-text-muted: #6C6274;
  --color-white: #FFFFFF;
  --color-border: #EADBEE;

  --font-heading: 'Inter', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 6px 20px rgba(37, 4, 40, 0.07);
  --shadow-md: 0 14px 32px rgba(37, 4, 40, 0.11);
  --shadow-lg: 0 24px 50px rgba(37, 4, 40, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
}

/* 1. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--logo-orange-bright);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* 3. HEADER & LOCATION SWITCHER */
.top-bar {
  background: var(--logo-purple-dark);
  color: #F1DDF5;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--logo-orange-bright);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-contacts {
  display: flex;
  gap: 16px;
}

.loc-contact-item {
  opacity: 0.6;
  transition: var(--transition);
}

.loc-contact-item.active,
.loc-contact-item:hover {
  opacity: 1;
  color: var(--logo-orange-gold);
  font-weight: 700;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 1.5px solid var(--color-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.logo-img-wrapper {
  display: flex;
  align-items: center;
}

.main-site-logo {
  height: 60px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo:hover .main-site-logo {
  transform: scale(1.03);
}

.header-location-switcher {
  display: flex;
  align-items: center;
  background: #F4ECF5;
  padding: 4px;
  border-radius: 50px;
  border: 1.5px solid var(--color-border);
  gap: 4px;
}

.loc-flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  background: transparent;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.loc-flip-btn i {
  font-size: 0.95rem;
  color: var(--logo-orange-bright);
}

.loc-flip-btn.active {
  background: var(--color-primary);
  color: #FFAE73;
  box-shadow: 0 4px 12px rgba(73, 7, 82, 0.28);
}

.loc-flip-btn.active i {
  color: var(--logo-orange-gold);
}

.loc-flip-btn:not(.active):hover {
  background: rgba(255, 106, 0, 0.12);
  color: var(--logo-orange-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--logo-orange-bright);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* 4. FLIP VIEW PANES */
.page-flip-container {
  position: relative;
  width: 100%;
}

.location-view-pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.location-view-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 5. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  font-family: var(--font-body);
}

.btn-gold {
  background: var(--logo-orange-bright);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.32);
}

.btn-gold:hover {
  background: #E85A00;
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.45);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--color-white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-outline-dark {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* 6. HERO SECTION */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  padding: 80px 0 60px;
}

.hero-yelagiri {
  background: url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero-tirupathur {
    background: url('images/tirupathur-hero.webp') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(37, 4, 40, 0.68);
}

.hero-tirupathur .hero-overlay {
  background: rgba(20, 4, 35, 0.68);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 106, 0, 0.22);
  border: 1px solid var(--logo-orange-bright);
  color: #FFAE73;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.6rem;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.08rem;
  color: #F6EAF9;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.hero-feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 163, 0, 0.35);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-card .card-icon {
  font-size: 1.6rem;
  color: var(--logo-orange-gold);
}

.feature-card h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 2px;
}

.feature-card p {
  font-size: 0.8rem;
  color: #E2D1E6;
  margin-bottom: 0;
}

/* 7. GENERAL SECTIONS */
.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* 8. ROOMS & TARIFF */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 950px;
  margin: 0 auto;
}

.room-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  transition: var(--transition);
  box-shadow: 0 8px 26px rgba(37, 4, 40, 0.06);
}

.room-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.featured-room {
  border: 2px solid var(--logo-orange-bright);
}

.room-highlight {
  display: inline-block;
  background: var(--logo-orange-bright);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.room-img {
  position: relative;
  height: 250px;
}

.room-img img {
  width: 100%;
  height: 100%;
}

.room-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(37, 4, 40, 0.9);
  color: var(--color-white);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
}

.gold-pill {
  background: var(--logo-orange-bright);
  color: var(--color-white);
  font-weight: 700;
}

.room-content {
  padding: 24px;
}

.room-content h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.room-sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}

.price-box .currency {
  font-size: 1.2rem;
  color: var(--logo-orange-bright);
  font-weight: 700;
}

.price-box .amount {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.price-box .duration {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.room-features {
  list-style: none;
  margin-bottom: 22px;
  border-top: 1px dashed var(--color-border);
  padding-top: 14px;
}

.room-features li {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #38303C;
}

.room-features li i {
  color: var(--logo-orange-bright);
  font-size: 0.85rem;
}

/* 9. GALLERY SLIDER */
.gallery-slider-wrap {
  position: relative;
}

.gallery-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0 20px;
}

.gallery-card {
  min-width: 320px;
  max-width: 340px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.gallery-card img {
  height: 240px;
  width: 100%;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(37, 4, 40, 0.95));
  color: var(--color-white);
  padding: 24px 14px 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.slider-btn {
  width: 38px;
  height: 38px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--logo-orange-bright);
}

/* 10. AMENITIES */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.amenity-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
}

.amenity-item:hover {
  border-color: var(--logo-orange-bright);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.amenity-icon {
  width: 62px;
  height: 62px;
  background: var(--color-accent-soft);
  color: var(--logo-orange-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  border: 1px solid #FFE0CA;
}

.amenity-item h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.amenity-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* 11. CONTACT */
.contact-single-card {
  max-width: 600px;
  margin: 0 auto;
}

.contact-box {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-box .box-icon {
  width: 56px;
  height: 56px;
  background: var(--color-accent-soft);
  color: var(--logo-orange-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.contact-box h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.contact-box p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.contact-box-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* 12. FAQ ACCORDION */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  font-family: var(--font-body);
}

.faq-question i {
  color: var(--logo-orange-bright);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 20px;
  background: #FCF9FD;
}

.faq-answer p {
  padding-bottom: 16px;
  color: #554A5A;
  font-size: 0.92rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 320px;
}

/* 13. FOOTER */
.footer {
  background: var(--logo-purple-dark);
  color: #D3C4D7;
  padding: 70px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-wrap {
  background: #ffffff;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.footer-site-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--logo-orange-gold);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9C88A2;
}

/* 14. MOBILE BAR */
.floating-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.12);
  z-index: 998;
  padding: 10px 16px;
  gap: 10px;
}

.bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.call-bar-btn {
  background: var(--color-primary);
  color: var(--color-white);
}

.whatsapp-bar-btn {
  background: var(--color-whatsapp);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .floating-mobile-bar {
    display: flex;
  }
}

/* 15. MODAL */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(37, 4, 40, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: var(--color-white);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--logo-orange-bright);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-logo-wrap {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.modal-site-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.modal-header h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.form-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.step-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-indicator span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.step-indicator.active {
  color: var(--logo-orange-bright);
}

.step-indicator.active span {
  background: var(--logo-orange-bright);
  color: var(--color-white);
  font-weight: 700;
}

.step-line {
  flex: 0 0 40px;
  height: 2px;
  background: var(--color-border);
}

.form-step-pane {
  display: none;
}

.form-step-pane.active {
  display: block;
}

.branch-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 24px;
}

.branch-card-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.branch-card-option input {
  position: absolute;
  opacity: 0;
}

.branch-card-content {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--transition);
}

.branch-card-option input:checked + .branch-card-content {
  border-color: var(--logo-orange-bright);
  background: var(--color-accent-soft);
}

.branch-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.branch-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.branch-badge {
  display: inline-block;
  font-size: 0.72rem;
  background: var(--color-primary);
  color: #FFAE73;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label,
.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--logo-orange-bright);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.2);
}

.id-disclaimer-box {
  background: #FFF7ED;
  border: 1px solid #FFD8A8;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.82rem;
  color: #9A3412;
  margin-bottom: 18px;
}

.id-disclaimer-box p {
  margin: 4px 0 10px;
}

.custom-file-upload {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-white);
  border: 1px dashed var(--logo-orange-bright);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  color: #C2410C;
}

.custom-file-upload input[type="file"] {
  display: none;
}

.file-hint {
  display: block;
  font-size: 0.74rem;
  color: #9A3412;
  margin-top: 4px;
}

.form-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

/* 16. CHATBOT */
.bot-launcher {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #FFAE73;
  border: 2px solid var(--logo-orange-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
}

.bot-launcher:hover {
  transform: scale(1.08);
}

.bot-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background: #10B981;
  border-radius: 50%;
  border: 2px solid var(--logo-purple-dark);
}

.chatbot-window {
  display: none;
  position: fixed;
  bottom: 150px;
  right: 20px;
  width: 360px;
  height: 480px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  z-index: 1000;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.25s ease;
}

.chatbot-window.open {
  display: flex;
}

.chatbot-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2.5px solid var(--logo-orange-bright);
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-logo-badge {
  width: 34px;
  height: 34px;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.bot-icon-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.chatbot-title h4 {
  font-size: 0.92rem;
  color: var(--color-white);
}

.online-status {
  font-size: 0.7rem;
  color: #F1DDF5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.online-status .dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
}

.chat-close-btn {
  background: none;
  border: none;
  color: #D3C4D7;
  font-size: 1.4rem;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FAF8FB;
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-msg.bot {
  background: var(--color-white);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  background: var(--color-primary);
  color: var(--color-white);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-quick-actions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.chat-quick-actions button {
  background: var(--color-accent-soft);
  border: 1px solid rgba(255, 85, 0, 0.35);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
  cursor: pointer;
}

.chatbot-input-area {
  display: flex;
  padding: 10px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.chatbot-input-area input {
  flex: 1;
  border: 1.5px solid var(--color-border);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
}

.chatbot-input-area button {
  background: var(--logo-orange-bright);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-left: 8px;
  color: var(--color-white);
  cursor: pointer;
}

/* 17. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .nav-container {
    flex-wrap: wrap;
  }
  .header-location-switcher {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .main-site-logo {
    height: 48px;
    max-width: 200px;
  }

  .loc-flip-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: auto;
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-window {
    width: 90%;
    right: 5%;
    bottom: 90px;
    height: 420px;
  }
}

/* ==========================================================================
   VM RESIDENCY HOTEL - PREMIUM DESIGN POLISH
   Typography: Inter + Open Sans
   Functional classes/IDs intentionally preserved for script.js compatibility.
   ========================================================================== */

:root {
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
.room-content h3,
.section-header h2,
.modal-header h3,
.chatbot-title h4 {
  font-family: var(--font-heading);
}

.nav-links a,
.loc-flip-btn,
.btn,
.faq-question,
.form-group label,
.input-label {
  font-family: var(--font-body);
}

/* Cleaner section rhythm */
.section {
  padding: 92px 0;
}

.section-header h2 {
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* Premium navigation */
.header {
  box-shadow: 0 4px 22px rgba(37, 4, 40, 0.06);
}

.nav-links {
  gap: 24px;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--logo-orange-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Refined hero */
.hero-overlay {
  background: rgba(37, 4, 40, 0.64);
}

.hero-tirupathur .hero-overlay {
  background: rgba(20, 4, 35, 0.64);
}

.hero h1 {
  max-width: 820px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 720px;
  line-height: 1.75;
}

.badge-pill {
  background: rgba(255, 106, 0, 0.16);
  backdrop-filter: blur(6px);
}

/* Feature cards */
.feature-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

/* Room cards */
.room-card {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(37, 4, 40, 0.07);
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(37, 4, 40, 0.13);
}

.room-img {
  height: 250px;
}

.room-content h3 {
  font-weight: 750;
  letter-spacing: -0.025em;
}

.price-box .amount {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Buttons */
.btn {
  border-radius: 8px;
  letter-spacing: -0.01em;
}

.btn-gold {
  background: var(--logo-orange-bright);
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.24);
}

.btn-gold:hover {
  background: #E85A00;
}

/* Gallery */
.gallery-card {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(37, 4, 40, 0.09);
}

.gallery-card img {
  transition: transform 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

/* Amenities */
.amenity-item {
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: 0 5px 20px rgba(37, 4, 40, 0.035);
}

.amenity-item:hover {
  transform: translateY(-4px);
}

/* FAQ */
.faq-item {
  border-radius: 12px;
}

.faq-question {
  font-weight: 700;
}

/* Contact */
.contact-box {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(37, 4, 40, 0.07);
}

/* Booking modal */
.modal-card {
  border-radius: 18px;
}

.form-group input,
.form-group select {
  border-radius: 8px;
  font-family: var(--font-body);
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    min-height: 72vh;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.12;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-feature-cards {
    grid-template-columns: 1fr;
  }

  .room-img {
    height: 220px;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .btn-lg {
    width: 100%;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-width: 285px;
  }
}

/* ==========================================================================\n   MOBILE OPTIMIZATION PASS\n   Keeps the existing desktop design and page structure unchanged.\n   ========================================================================== */

@media (max-width: 1024px) {
  .nav-container {
    flex-wrap: nowrap;
  }

  .header-location-switcher {
    order: initial;
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
  }

  .nav-links {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }

  .container {
    width: min(92%, 680px);
  }

  .nav-container {
    min-height: 64px;
    padding: 8px 0;
    gap: 8px;
  }

  .main-site-logo {
    height: 46px;
    max-width: 180px;
  }

  .header-location-switcher {
    padding: 3px;
    gap: 2px;
    margin-left: auto;
    margin-right: 4px;
  }

  .loc-flip-btn {
    gap: 5px;
    padding: 6px 9px;
    font-size: 0.74rem;
  }

  .loc-flip-btn i {
    font-size: 0.8rem;
  }

  .mobile-menu-toggle {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    top: 65px;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    padding: 24px 20px 30px;
    gap: 18px;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-links a::after {
    bottom: -4px;
  }

  .hero {
    min-height: 0;
    padding: 72px 0 42px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.35rem);
    line-height: 1.12;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .hero-ctas {
    gap: 10px;
    margin-bottom: 30px;
  }

  .hero-ctas .btn {
    width: auto;
    min-height: 46px;
  }

  .hero-feature-cards {
    gap: 10px;
    margin-top: 10px;
  }

  .feature-card {
    padding: 13px 15px;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 34px;
  }

  .section-header h2 {
    font-size: clamp(1.8rem, 7vw, 2rem);
    line-height: 1.15;
  }

  .section-header p {
    font-size: 0.94rem;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .room-img {
    height: 215px;
  }

  .room-content {
    padding: 20px;
  }

  .price-box .amount {
    font-size: 2rem;
  }

  .gallery-slider {
    gap: 14px;
    padding-bottom: 14px;
    scroll-snap-type: x proximity;
  }

  .gallery-card {
    min-width: 86vw;
    max-width: 86vw;
    scroll-snap-align: start;
  }

  .gallery-card img {
    height: 220px;
  }

  .slider-controls {
    justify-content: space-between;
  }

  .slider-btn {
    width: 42px;
    height: 42px;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .amenity-item {
    padding: 22px 14px;
  }

  .amenity-item h4 {
    font-size: 1rem;
  }

  .amenity-item p {
    font-size: 0.82rem;
  }

  .contact-box {
    padding: 28px 20px;
  }

  .faq-question {
    padding: 16px;
    font-size: 0.96rem;
    gap: 12px;
  }

  .faq-answer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer {
    padding-top: 54px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 35px;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal-card {
    max-height: calc(100vh - 24px);
    margin: 0 auto;
    padding: 24px 18px;
  }

  .chatbot-window {
    width: calc(100vw - 24px);
    max-width: 420px;
    right: 12px;
    bottom: 84px;
    height: min(420px, calc(100vh - 110px));
  }

  .bot-launcher {
    right: 14px;
    bottom: 82px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .nav-container {
    min-height: 60px;
  }

  .main-site-logo {
    height: 42px;
    max-width: 150px;
  }

  .header-location-switcher {
    max-width: 150px;
  }

  .loc-flip-btn {
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .loc-flip-btn i {
    display: none;
  }

  .nav-links {
    top: 61px;
  }

  .hero {
    padding: 62px 0 34px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.05rem);
  }

  .hero p {
    font-size: 0.92rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn,
  .btn-lg {
    width: 100%;
  }

  .feature-card {
    padding: 12px 13px;
  }

  .feature-card .card-icon {
    font-size: 1.4rem;
  }

  .feature-card h4 {
    font-size: 0.92rem;
  }

  .feature-card p {
    font-size: 0.76rem;
  }

  .room-img {
    height: 205px;
  }

  .room-content {
    padding: 18px;
  }

  .room-content h3 {
    font-size: 1.2rem;
  }

  .price-box .amount {
    font-size: 1.9rem;
  }

  .gallery-card {
    min-width: 86vw;
    max-width: 86vw;
  }

  .gallery-card img {
    height: 205px;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .amenity-item {
    padding: 20px 16px;
  }

  .contact-box-btns {
    flex-direction: column;
  }

  .contact-box-btns .btn {
    width: 100%;
  }

  .floating-mobile-bar {
    padding: 8px 10px;
    gap: 8px;
  }

  .bar-btn {
    min-height: 48px;
    padding: 10px 8px;
    font-size: 0.84rem;
  }

  .chatbot-window {
    right: 8px;
    width: calc(100vw - 16px);
    bottom: 78px;
    height: min(400px, calc(100vh - 100px));
  }

  .bot-launcher {
    right: 10px;
    bottom: 76px;
  }
}

@media (max-width: 360px) {
  .header-location-switcher {
    max-width: 132px;
  }

  .loc-flip-btn {
    font-size: 0.62rem;
    padding-left: 5px;
    padding-right: 5px;
  }

  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .main-site-logo {
    height: 38px;
    max-width: 132px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .gallery-card {
    min-width: 88vw;
    max-width: 88vw;
  }

  .bar-btn {
    font-size: 0.78rem;
  }
}
