/* ================= GLOBAL RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Arial', sans-serif;
  line-height:1.6;
  color:#333;
  background:#f8f9fb;
}

/* ================= HEADER ================= */
header{
  width:100%;
  position:absolute;
  top:0;
  left:0;
  background:rgba(255,255,255,0.25);
  border:1px solid rgba(255,255,255,0.1);
  border-bottom-left-radius:25px;
  border-bottom-right-radius:25px;
  box-shadow:0 6px 18px rgba(0,0,0,0.05);
  z-index:100;
}

.header-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:85px;
  padding:0 25px;
  flex-wrap:wrap;
}

.logo img{ height:58px; }

/* ================= NAVIGATION ================= */
nav{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
}

nav a{
  color:#255c64;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  position:relative;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:linear-gradient(90deg,#144a9a,#8b0000);
  transition:width 0.3s ease;
}

nav a:hover::after,
nav a.active::after{ width:100%; }

.btn-header{
  background:linear-gradient(135deg,#8b0000,#c62828);
  color:#fff;
  padding:12px 26px;
  border-radius:30px;
  font-size:15px;
  font-weight:600;
  box-shadow:0 6px 18px rgba(139,0,0,0.35);
  transition:0.3s ease;
  text-decoration:none;
}

.btn-header:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(139,0,0,0.45);
}

/* ================= MOBILE & TABLET HEADER FIX ================= */

.menu-toggle{
  display:none;
}

/* Mobile + Tablet */
@media (max-width:1024px){

  header{
    position:relative;
    background:#fff;
  }

  .header-flex{
    display:flex !important;
    flex-direction:row !important;
    justify-content:space-between !important;
    align-items:center !important;
    height:65px !important;
    padding:0 8px !important;   /* left right gap reduce */
  }

  /* Logo left */
  .logo{
    margin:0;
  }

  .logo img{
    height:45px;
  }

  /* Hide desktop menu */
  nav{
    display:none;
    position:absolute;
    top:65px;
    left:0;
    width:100%;
    background:#ffffff;
    flex-direction:column;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
  }

  nav a{
    padding:14px;
    border-bottom:1px solid #eee;
  }

  /* Show menu when toggle click */
  nav.show{
    display:flex;
  }

  /* Hide connect button */
  .btn-header{
    display:none;
  }

  /* Toggle right side */
  .menu-toggle{
    display:block;
    font-size:26px;
    color:#8b0000;
    cursor:pointer;
    margin:0;
  }

}

/* ================= BANNER ================= */
.banner-section{
  width:100%;
  height:800px;
  background:url('../images/Gallery Page banner img.png') center/cover no-repeat;
  position:relative;
}

/* ================= MOBILE & TABLET BANNER ================= */

@media (max-width: 992px){

  .banner-section{
    height: auto; /* allow image ratio */
    min-height: 520px;
    background: url('../images/Gallery banner mobile.png') center/cover no-repeat;
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .banner-content h1{
    font-size: 32px;
  }

  .banner-content p{
    font-size: 16px;
  }

  .btn-banner{
    font-size:14px;
    padding:10px 22px;
  }

}



/* ================= GALLERY SECTION ================= */
.gallery-section{
  padding:60px 20px;
  background:#f8f9fb;
  text-align:center;
}

.filter-buttons{ margin-bottom:40px; }

.filter-btn{
  padding:10px 20px;
  margin:5px;
  border:none;
  border-radius:25px;
  background:#ddd;
  cursor:pointer;
  transition:0.3s;
}

.filter-btn.active,
.filter-btn:hover{
  background:#8c0000;
  color:#fff;
}

.gallery-grid{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:20px;
}

.gallery-item img{
  width:100%;
  height:250px;
  object-fit:cover;
  border-radius:12px;
}

/* ================= POPUP OVERLAY ================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  z-index: 9999;
  overflow: hidden;
}

.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* ================= POPUP BOX ================= */
.popup-box {
  background: #fff;
  width: 360px;              /* before 400 */
  max-width: 92%;
  padding: 18px;             /* before 25 */
  border-radius: 12px;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  max-height: 88vh;          /* important */
  overflow-y: auto;          /* if content more */
}

.popup-box h2 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
}

.month-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.month-navigation h3 {
  font-size: 15px;
}

.month-navigation button {
  background: #d4af37;
  border: none;
  color: #fff;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}

/* ================= CALENDAR ================= */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;                  /* before 6 */
}

.calendar-grid div {
  padding: 6px 0;            /* before 10 */
  cursor: pointer;
  border-radius: 6px;
  font-size: 12px;           /* before 14 */
  text-align: center;
  transition: 0.2s;
}

.calendar-grid div:hover {
  background: #f0f0f0;
}

.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.selected {
  background: #d4af37;
  color: #fff;
}

.selected-info {
  margin-top: 8px;
  font-size: 13px;
  text-align: left;
  line-height: 1.5;
}

/* ================= FORM FIELDS ================= */
.input-field {
  width: 100%;
  padding: 8px 10px;         /* before 10 */
  margin-top: 8px;           /* before 12 */
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  box-sizing: border-box;
}

.book-btn {
  width: 100%;
  margin-top: 10px;          /* before 15 */
  padding: 10px;
  background: #d4af37;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

.book-btn:hover {
  background: #b8922e;
}

#formMessage {
  margin-top: 8px;
  font-size: 13px;
  min-height: 16px;
  text-align: center;
}

/* ================= TABLET / SMALL LAPTOP ================= */
@media (max-width: 992px) {
  .popup-box {
    width: 340px;
    padding: 16px;
    max-height: 86vh;
  }

  .popup-box h2 {
    font-size: 17px;
  }

  .calendar-grid div {
    padding: 5px 0;
    font-size: 11px;
  }

  .input-field {
    padding: 8px;
    font-size: 13px;
    margin-top: 7px;
  }

  .book-btn {
    padding: 9px;
    font-size: 14px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 576px) {
  .popup-box {
    width: 88%;
    padding: 10px;
    max-height: 82vh;        /* decrease height */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow-y: auto;
  }

  .popup-box h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .close-btn {
    top: 6px;
    right: 10px;
    font-size: 18px;
  }

  .month-navigation {
    margin-bottom: 8px;
  }

  .month-navigation h3 {
    font-size: 13px;
  }

  .month-navigation button {
    padding: 3px 7px;
    font-size: 12px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .calendar-grid div {
    padding: 3px 0;
    font-size: 10px;
  }

  .selected-info {
    font-size: 11px;
    margin-top: 6px;
  }

  .input-field {
    padding: 6px 8px;
    font-size: 12px;
    margin-top: 6px;
  }

  .book-btn {
    padding: 8px;
    font-size: 13px;
    margin-top: 8px;
  }

  #formMessage {
    font-size: 12px;
    margin-top: 6px;
  }
}



/* ================= FOOTER ================= */
.footer{
  background:#292929;
  color:#fff;
  padding-top:55px;
  margin-top:60px;
}

.footer-container{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  padding:0 20px 45px;
}

.footer-col h3{
  font-size:20px;
  margin-bottom:18px;
  color:#fff7c5;
}

.footer-col ul{
  list-style:none;
  padding:0;
}

.footer-col ul li{
  margin-bottom:10px;
  font-size:14px;
}

.footer-col ul li a{
  color:rgba(255,255,255,0.85);
  transition:0.3s;
  text-decoration:none;
}

.footer-col ul li a:hover{
  color:#fff7c5;
  padding-left:4px;
}

.footer-logo{
  width:140px;
  margin-bottom:15px;
}

.footer-about{
  font-size:16px;
  line-height:1.6;
  opacity:0.85;
}

.footer-info li{ opacity:0.9; }

.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.15);
  text-align:center;
  padding:18px 10px;
  font-size:13px;
  background:rgba(0,0,0,0.15);
}

/* Footer responsive */
@media (max-width: 992px){
  .footer-container{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 576px){
  .footer-container{
    grid-template-columns:1fr;
    text-align:center;
  }
  .footer-logo{ margin:0 auto 15px; }
}




/* ================= VELAVAN FLOATING BUTTONS + CHATBOT ================= */

/* Dialogflow host */
#vpDfMessenger {
  --df-messenger-button-titlebar-color: #8c0000;
  --df-messenger-chat-background-color: #ffffff;
  --df-messenger-font-color: #222;
  --df-messenger-send-icon: #8c0000;
  --df-messenger-chat-icon: none;

  position: fixed !important;
  right: 20px !important;
  bottom: 95px !important;
  z-index: 99999 !important;
}

/* COMPLETELY hide Dialogflow default launcher */
#vpDfMessenger::part(chat-button) {
  display: none !important;
}

df-messenger-chat-bubble {
  display: none !important;
}

df-messenger::part(chat-button) {
  display: none !important;
}

/* Desktop buttons */
.vp-desktop-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 100000;
}

.vp-action-btn {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  transition: transform 0.25s ease;
}

.vp-action-btn:hover {
  transform: scale(1.08);
}

.vp-whatsapp { 
  background: #25D366; 
}

.vp-call { 
  background: #0d6efd; 
}

.vp-chat { 
  background: #b30000; 
}

.vp-chat i,
.vp-mobile-bar-item i {
  pointer-events: none;
}

/* Mobile bottom bar hidden in desktop */
.vp-mobile-bottom-bar {
  display: none;
}

#vpChatToggleBtn,
#vpMobileChatToggleBtn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ================= MOBILE + TABLET ================= */

@media (max-width: 1024px) {

  /* Hide desktop floating buttons */
  .vp-desktop-actions {
    display: none !important;
  }

  /* Mobile bottom bar */
  .vp-mobile-bottom-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    width: calc(100% - 24px);
    max-width: 360px;
    background: #c61f26;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
    z-index: 100002;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    border-radius: 16px;
  }

  .vp-mobile-bar-item {
    width: 52px;
    height: 52px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
  }

  .vp-mobile-chat {
    background: #c61f26;
    
  }

  /* Dialogflow chat position in mobile */
  #vpDfMessenger {
    right: 10px !important;
    bottom: 125px !important;
    z-index: 99999 !important;
  }
}

/* Hide Dialogflow default launcher completely */
df-messenger::part(chat-button) {
  display: none !important;
}

df-messenger-chat-bubble {
  display: none !important;
}

df-messenger-button {
  display: none !important;
}

/* Prevent any default bubble appearing */
df-messenger {
  --df-messenger-chat-icon: none !important;
}
.mobile-only-social {
  display: none;
}

@media (max-width: 576px) {
  .mobile-only-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
  }

  .mobile-only-social a {
    width: 38px;
    height: 38px;
    background: #8c0001;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    transition: 0.3s ease;
  }

  .mobile-only-social a:hover {
    background: #c62828;
    transform: scale(1.08);
  }
}
