/* ============================================================
   KUMARU LANKA — Component Styles
   ============================================================ */

/* ── NAVBAR ──────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  display: flex; align-items: center;
  padding: 0 48px;
  background: rgba(10,30,20,.88);
  backdrop-filter: blur(10px);
  transition: background var(--transition);
}
#navbar.scrolled { background: var(--green-deep); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--max-width); margin: 0 auto; }
.nav-logo  { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta   { background: var(--primary); color: #fff; border: none; padding: 9px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--transition); }
.nav-cta:hover { background: var(--primary-dark); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition); }
.nav-mobile { display: none; flex-direction: column; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--green-deep); padding: 20px 24px; z-index: 999; border-top: 1px solid rgba(255,255,255,.1); }
.nav-mobile.open { display: flex; }
.nav-mobile a    { color: rgba(255,255,255,.85); font-size: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }

/* ── FOOTER ─────────────────────────────────────────────── */
#footer { background: var(--green-deep); color: rgba(255,255,255,.75); padding: 64px 0 32px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--primary); }
.footer-brand p  { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-col h4   { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .6px; }
.footer-col li   { margin-bottom: 10px; font-size: 14px; cursor: pointer; transition: color var(--transition); }
.footer-col li:hover { color: var(--primary); }
.social-links    { display: flex; gap: 10px; margin-top: 4px; }
.social-btn      { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: background var(--transition); color: #fff; font-weight: 600; }
.social-btn:hover { background: var(--primary); }
.footer-bottom   { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: 13px; }

/* ── TOUR CARDS ──────────────────────────────────────────── */
.tours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.tour-card  { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.tour-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.tour-card-img  { width: 100%; height: 200px; object-fit: cover; }
.tour-card-body { padding: 20px; }
.tour-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tour-card h3   { font-size: 17px; margin-bottom: 6px; color: var(--green-dark); }
.tour-card-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.tour-card-meta span { display: flex; align-items: center; gap: 3px; }
.tour-card p    { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.tour-card-footer { display: flex; align-items: center; justify-content: space-between; }
.tour-price     { font-size: 22px; font-weight: 800; color: var(--primary); }
.tour-price span { font-size: 12px; color: var(--text-light); font-weight: 400; }
.tour-rating    { font-size: 12px; color: var(--text-muted); }

/* ── DESTINATION CARDS ───────────────────────────────────── */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.dest-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: pointer; }
.dest-card-img  { width: 100%; height: 200px; object-fit: cover; transition: transform .35s; }
.dest-card:hover .dest-card-img { transform: scale(1.04); }
.dest-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,.78), transparent); padding: 28px 16px 16px; }
.dest-card-name { color: #fff; font-size: 17px; font-weight: 700; }
.dest-card-sub  { color: rgba(255,255,255,.75); font-size: 13px; }
.dest-card-badge { position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }

/* ── VEHICLE CARDS ───────────────────────────────────────── */
.vehicles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.vehicle-card  { background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; cursor: pointer; transition: all var(--transition); }
.vehicle-card:hover  { border-color: var(--primary); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.vehicle-card.selected { border-color: var(--primary); background: var(--primary-light); }
.vehicle-icon  { font-size: 42px; margin-bottom: 12px; }
.vehicle-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.vehicle-card p  { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; }
.vehicle-price   { font-size: 20px; font-weight: 800; color: var(--primary); }
.vehicle-price span { font-size: 12px; color: var(--text-light); font-weight: 400; }
.vehicle-seats   { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── REVIEW CARDS ────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.review-card  { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.review-top   { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar       { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0; }
.review-name  { font-weight: 700; font-size: 15px; }
.review-from  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.review-text  { font-size: 14px; color: #555; line-height: 1.65; margin: 10px 0 12px; }
.review-tour  { font-size: 12px; font-weight: 600; color: var(--primary); }
.review-date  { font-size: 11px; color: var(--text-light); float: right; margin-top: 2px; }

/* ── BOOKING MODAL ───────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.52); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal         { background: var(--bg-white); border-radius: 20px; padding: 36px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; position: relative; animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close   { position: absolute; top: 18px; right: 20px; background: none; border: none; font-size: 22px; color: var(--text-muted); cursor: pointer; line-height: 1; }
.modal h2      { font-size: 22px; font-weight: 800; margin-bottom: 4px; color: var(--green-dark); }
.modal-sub     { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.modal-success { display: none; text-align: center; padding: 24px 0; }
.modal-success .icon { font-size: 52px; margin-bottom: 14px; }
.modal-success h3    { font-size: 22px; font-weight: 800; color: #1a7a3a; margin-bottom: 8px; }
.modal-success p     { color: var(--text-muted); font-size: 14px; }

/* ── AI CHAT WIDGET ──────────────────────────────────────── */
#ai-chat-btn {
  position: fixed; bottom: 100px; right: 24px; z-index: 1500;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-mid);
  border: 2px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: all var(--transition); font-size: 22px;
}
#ai-chat-btn:hover { background: var(--primary); transform: scale(1.08); }
#ai-chat-window {
  display: none; position: fixed; bottom: 170px; right: 24px; z-index: 1500;
  width: 360px; max-height: 500px; border-radius: 20px;
  background: var(--bg-white); box-shadow: 0 8px 40px rgba(0,0,0,.2);
  overflow: hidden; flex-direction: column;
  animation: chatIn .2s ease;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
#ai-chat-window.open { display: flex; }
.chat-header { background: var(--green-mid); color: #fff; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.chat-header h4 { font-size: 15px; font-weight: 700; }
.chat-header p  { font-size: 11px; opacity: .75; }
.chat-close-btn { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; opacity: .8; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; font-size: 13px; line-height: 1.5; padding: 10px 14px; border-radius: 14px; }
.msg-bot  { background: var(--bg-light); color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-typing { display: flex; gap: 5px; align-items: center; padding: 12px 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: bounce .9s infinite; }
.dot:nth-child(2) { animation-delay: .15s; }
.dot:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
.chat-input-area { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-input-area input { flex: 1; padding: 9px 14px; border: 1px solid #ddd; border-radius: 20px; font-size: 13px; outline: none; }
.chat-input-area input:focus { border-color: var(--primary); }
.chat-send { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; border: none; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.chat-send:hover { background: var(--primary-dark); }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chip { padding: 5px 12px; border-radius: 20px; background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 600; cursor: pointer; transition: all var(--transition); border: 1px solid transparent; }
.chip:hover { background: var(--primary); color: #fff; }

/* ── WHATSAPP BUTTON ─────────────────────────────────────── */
#whatsapp-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 1500;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 4px 16px rgba(37,211,102,.45);
  cursor: pointer; transition: all var(--transition);
}
#whatsapp-btn:hover { background: #1fb858; transform: scale(1.1); }
.whatsapp-tooltip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: var(--green-deep); color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
#whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

/* ── TABS ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.tab  { padding: 9px 22px; border-radius: 30px; border: 1.5px solid #ddd; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--transition); color: #555; }
.tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  #navbar { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #ai-chat-window { width: calc(100vw - 32px); right: 16px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .tours-grid  { grid-template-columns: 1fr; }
  .dest-grid   { grid-template-columns: repeat(2, 1fr); }
  .modal       { padding: 24px; }
}