/* gallery.css - Custom styles for Gallery page (only header/footer if needed) */

/* You can add gallery-specific styles here if needed. For now, header/footer will use index.css */

body {
  background: var(--bg-light);
}

/* Example: highlight Gallery menu item if you want to override */
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 500;
}

/* Responsive tweaks if needed */
@media (max-width: 575.98px) {
  .navbar-brand img {
    max-height: 40px;
  }
}

/* Gallery Section Title */
.gallery-section h1 {
  font-family: 'Dancing Script', 'Satisfy', cursive;
  font-size: 3rem;
  color: #d4af37;
  text-align: center;
  margin: 60px 0 40px 0;
  letter-spacing: 2px;
}

/* Gallery Filter Buttons */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  background: #fff;
  color: #d4af37;
  border: 2px solid #d4af37;
  border-radius: 25px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}
.filter-btn.active,
.filter-btn:hover {
  background: #d4af37;
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,175,55,0.12);
}

/* Gallery Grid */
.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 60px;
}
.gallery-item {
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.gallery-item:hover {
  box-shadow: none !important;
}
/* .gallery-item:hover img {
  transform: scale(1.07);
} */

/* Gallery Caption (optional) */
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(44,44,44,0.7);
  color: #fff;
  padding: 12px 18px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
/* .gallery-item:hover .gallery-caption {
  opacity: 1;
} */

/* ===== HEADER & FOOTER: KHÔNG override, KHÔNG custom ở gallery.css ===== */
/* Chỉ custom gallery-section, filter, grid, item, caption. Không được override .header, .navbar, .footer, .footer-wrapper, .btn-booking, .navbar-nav, .navbar-brand, .footer-content, .footer-widget-area, .footer-links, .footer-copyright... */

/* ===== GALLERY SECTION (giữ lại, bổ sung nếu cần) ===== */
.gallery-section {
  padding: 80px 0 60px 0;
  background: #fff;
}
.gallery-section h1, .breadcrumb-title {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  color: #333;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 1px;
}
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  background: #fff;
  color: #d4af37;
  border: 2px solid #d4af37;
  border-radius: 25px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  box-shadow: 0 2px 8px rgba(212,175,55,0.06);
}
.filter-btn.active,
.filter-btn:hover {
  background: #d4af37;
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,175,55,0.12);
}
.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 60px;
}
.gallery-item {
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  position: relative;
}
.gallery-item:hover {
  box-shadow: none !important;
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
/* .gallery-item:hover img {
  transform: scale(1.07);
} */
.gallery-caption, .gallery-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(44,44,44,0.7);
  color: #fff;
  padding: 16px 22px;
  font-size: 1.08rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.gallery-item:hover .gallery-caption,
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Xóa nút Load More */
.load-more-section, .load-more-btn {
  display: none !important;
}

/* Pagination Styles */
.gallery-pagination {
  margin: 0 auto 40px auto;
  display: flex;
  justify-content: center;
}
.gallery-pagination .pagination {
  gap: 8px;
}
.gallery-pagination .page-item {
  border-radius: 50%;
  overflow: hidden;
}
.gallery-pagination .page-link {
  border-radius: 50% !important;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #d4af37;
  background: #fff;
  border: 2px solid #d4af37;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(212,175,55,0.06);
}
.gallery-pagination .page-item.active .page-link,
.gallery-pagination .page-link:hover {
  background: #d4af37;
  color: #fff;
  border-color: #d4af37;
  box-shadow: 0 4px 16px rgba(212,175,55,0.12);
}
@media (max-width: 575px) {
  .gallery-pagination .page-link {
    min-width: 34px;
    min-height: 34px;
    font-size: 0.98rem;
    padding: 0;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .gallery-section {
    padding: 60px 0 30px 0;
  }
  .gallery-section h1, .breadcrumb-title {
    font-size: 2.2rem;
  }
  .gallery-grid-full {
    gap: 14px;
  }
  .gallery-item img {
    height: 180px;
  }
}
@media (max-width: 575px) {
  .gallery-section {
    padding: 30px 0 10px 0;
  }
  .gallery-section h1, .breadcrumb-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .gallery-filter {
    gap: 8px;
  }
  .filter-btn {
    font-size: 0.95rem;
    padding: 7px 14px;
  }
  .gallery-grid-full {
    gap: 8px;
  }
  .gallery-item img {
    height: 120px;
  }
  .gallery-caption, .gallery-overlay {
    font-size: 0.95rem;
    padding: 10px 6px 6px 6px;
  }
}

/* Inner Border Effect for Gallery Images */
.gallery-image {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}
.gallery-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.4s;
}
.gallery-image:hover img {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.gallery-image::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 0.4rem;
  border: 3px solid rgba(255,255,255,0);
  pointer-events: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.gallery-image:hover::after {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
}

/* XÓA hoàn toàn border động tĩnh thừa và hiệu ứng SVG, chỉ giữ lại hiệu ứng động 4 cạnh bằng div */
/* XÓA pseudo-element border trắng tĩnh */
.gallery-img-wrap::after,
.gallery-img-wrap:hover::after,
.gallery-img-wrap:focus-within::after {
  display: none !important;
  border: none !important;
  content: none !important;
}
/* XÓA hiệu ứng SVG border animation */
.gallery-img-wrap .gallery-border-anim,
.gallery-img-wrap .gallery-border-anim svg,
.gallery-img-wrap .gallery-border-anim path,
.gallery-img-wrap .gallery-border-anim polyline,
.gallery-img-wrap:hover .gallery-border-anim path,
.gallery-img-wrap:focus-within .gallery-border-anim path,
.gallery-img-wrap:hover .gallery-border-anim polyline,
.gallery-img-wrap:focus-within .gallery-border-anim polyline {
  display: none !important;
}
/* XÓA hiệu ứng border tĩnh ở .gallery-image nếu không dùng */
.gallery-image,
.gallery-image::after,
.gallery-image:hover::after {
  display: none !important;
}

/* ================== FLOATING BUTTONS ================== */
/* Floating Action Buttons */
.freeze-footer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.freeze-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn_call_now,
.btn_make_appointment {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  background: gray;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn_call_now {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.btn_make_appointment {
  background: linear-gradient(135deg, #d9a679, #c9a480);
}

/* Icon styling with animation */
.btn_call_now img,
.btn_make_appointment img {
  width: 28px;
  height: 28px;
  animation: bounce 2s infinite ease-in-out;
}

/* Hover effect */
.btn_call_now:hover,
.btn_make_appointment:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn_call_now:hover img,
.btn_make_appointment:hover img {
  animation: pulse 0.6s ease;
}

/* Responsive */
@media (max-width: 480px) {
  .freeze-footer {
    bottom: 20px;
    right: 20px;
  }

  .btn_call_now,
  .btn_make_appointment {
    width: 70px;
    height: 70px;
  }

  .btn_call_now img,
  .btn_make_appointment img {
    width: 25px;
    height: 25px;
  }
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Pulse animation for hover */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}