/* ============================================
   China Royale Travels & Tours - Custom Styles
   Color Scheme: Sea Blue & Sky Blue
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #006994;
  --primary-dark: #004E71;
  --secondary: #87CEEB;
  --accent-light: #B0E0E6;
  --bg-light: #f0f8ff;
  --white: #ffffff;
  --dark: #1a1a2e;
  --gray-600: #6c757d;
  --gray-200: #e9ecef;
  --gradient: linear-gradient(135deg, #006994 0%, #87CEEB 100%);
  --gradient-dark: linear-gradient(135deg, #004E71 0%, #006994 100%);
  --shadow: 0 4px 15px rgba(0, 105, 148, 0.15);
  --shadow-hover: 0 8px 30px rgba(0, 105, 148, 0.25);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ---------- Global Resets ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
section { padding: 80px 0; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Utility Classes ---------- */
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 50px;
}

.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-light-custom { background-color: var(--bg-light) !important; }
.bg-gradient-custom { background: var(--gradient) !important; }

.btn-primary-custom {
  background: var(--gradient);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--white);
  background: var(--gradient-dark);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px; height: 50px;
  border: 4px solid var(--accent-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Navbar ---------- */
.navbar-custom {
  padding: 15px 0;
  transition: var(--transition);
  z-index: 1050;
}

.navbar-custom.transparent {
  background: transparent !important;
}

.navbar-custom.scrolled {
  background: var(--white) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 8px 0;
}

.navbar-custom .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
}

.navbar-custom.scrolled .navbar-brand {
  color: var(--primary);
}

.navbar-custom .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  padding: 8px 18px !important;
  font-size: 0.95rem;
  transition: var(--transition);
}

.navbar-custom.scrolled .nav-link {
  color: var(--dark);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--secondary) !important;
}

.navbar-custom.scrolled .nav-link:hover,
.navbar-custom.scrolled .nav-link.active {
  color: var(--primary) !important;
}

.navbar-custom .btn-book {
  background: var(--white);
  color: var(--primary);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
}

.navbar-custom.scrolled .btn-book {
  background: var(--gradient);
  color: var(--white);
}

.navbar-custom .btn-book:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Hamburger icon color */
.navbar-custom .navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-custom.scrolled .navbar-toggler {
  border-color: rgba(0,0,0,0.2);
}
.navbar-custom.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.6%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Solid navbar for inner pages */
.navbar-solid {
  background: var(--white) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 8px 0;
}

.navbar-solid .navbar-brand { color: var(--primary); }
.navbar-solid .nav-link { color: var(--dark); }
.navbar-solid .nav-link:hover,
.navbar-solid .nav-link.active { color: var(--primary) !important; }
.navbar-solid .btn-book {
  background: var(--gradient);
  color: var(--white);
}
.navbar-solid .navbar-toggler {
  border-color: rgba(0,0,0,0.2);
}
.navbar-solid .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.6%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,78,113,0.85) 0%, rgba(0,105,148,0.65) 50%, rgba(135,206,235,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search Box */
.hero-search-box {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 25px 30px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-search-box .form-control,
.hero-search-box .form-select {
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  background: var(--white);
}

.hero-search-box .btn {
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- Page Banner (Inner Pages) ---------- */
.page-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  color: var(--white);
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,78,113,0.88) 0%, rgba(0,105,148,0.7) 100%);
}

.page-banner * { position: relative; z-index: 2; }

.page-banner h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.breadcrumb-custom {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.breadcrumb-custom a { color: var(--secondary); }
.breadcrumb-custom a:hover { color: var(--white); }
.breadcrumb-custom .active { opacity: 0.8; }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--gradient);
  padding: 40px 0;
  color: var(--white);
}

.stat-item {
  text-align: center;
  padding: 15px;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 5px;
}

/* ---------- Service / Feature Cards ---------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.service-card .icon-wrap {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .icon-wrap {
  background: var(--gradient);
  color: var(--white);
}

.service-card h5 {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.92rem;
}

/* ---------- Destination Cards ---------- */
.dest-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.dest-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dest-card:hover img {
  transform: scale(1.1);
}

.dest-card .dest-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
}

.dest-card .dest-overlay h5 {
  font-weight: 700;
  margin-bottom: 3px;
}

.dest-card .dest-overlay span {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ---------- Tour Package Cards ---------- */
.tour-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.tour-card .tour-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.tour-card .tour-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tour-card:hover .tour-img img {
  transform: scale(1.08);
}

.tour-card .tour-badge {
  position: absolute;
  top: 15px; left: 15px;
  background: var(--gradient);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tour-card .tour-price {
  position: absolute;
  bottom: 15px; right: 15px;
  background: var(--white);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.tour-card .tour-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tour-card .tour-body h5 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.tour-card .tour-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tour-card .tour-meta span i {
  color: var(--primary);
  margin-right: 4px;
}

.tour-card .tour-route {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 15px;
}

.tour-card .tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--gray-200);
}

.tour-card .tour-rating {
  color: #f5a623;
  font-size: 0.9rem;
}

.tour-card .tour-rating span {
  color: var(--gray-600);
  margin-left: 4px;
}

.tour-card .btn-details {
  background: var(--bg-light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  transition: var(--transition);
}

.tour-card .btn-details:hover {
  background: var(--gradient);
  color: var(--white);
}

/* ---------- Why Choose Us ---------- */
.why-card {
  text-align: center;
  padding: 30px 20px;
}

.why-card .icon-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.8rem;
}

.why-card h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--gray-600);
  font-size: 0.92rem;
}

/* ---------- Testimonial Section ---------- */
.testimonial-section { background: var(--bg-light); }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  text-align: center;
  margin: 15px;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
}

.testimonial-card .stars {
  color: #f5a623;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.testimonial-card .client-img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid var(--secondary);
}

.testimonial-card .client-name {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.testimonial-card .client-location {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ---------- Blog Cards ---------- */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-card .blog-img {
  height: 200px;
  overflow: hidden;
}

.blog-card .blog-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.08);
}

.blog-card .blog-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .blog-category {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
  width: fit-content;
}

.blog-card .blog-body h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.blog-card .blog-body p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.blog-card .blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.blog-card .blog-meta i {
  margin-right: 4px;
  color: var(--primary);
}

/* Blog Detail Page */
.blog-detail-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}

.blog-detail-content h2,
.blog-detail-content h3 {
  color: var(--dark);
  margin-top: 30px;
  margin-bottom: 15px;
}

.blog-detail-content p { margin-bottom: 18px; }

.blog-detail-content img {
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.author-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-card img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary);
}

/* Blog Sidebar */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.sidebar-widget h5 {
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  color: var(--dark);
}

.sidebar-widget .category-list {
  list-style: none;
  padding: 0;
}

.sidebar-widget .category-list li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.92rem;
}

.sidebar-widget .category-list li a:hover {
  color: var(--primary);
}

.sidebar-widget .popular-post {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-widget .popular-post img {
  width: 70px; height: 55px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sidebar-widget .popular-post h6 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.4;
}

.sidebar-widget .popular-post span {
  font-size: 0.78rem;
  color: var(--gray-600);
}

/* ---------- Newsletter Section ---------- */
.newsletter-section {
  background: var(--gradient);
  padding: 60px 0;
  color: var(--white);
}

.newsletter-section h3 {
  font-weight: 800;
  margin-bottom: 10px;
}

.newsletter-section p {
  opacity: 0.9;
  margin-bottom: 25px;
}

.newsletter-section .input-group {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-section .form-control {
  border: none;
  border-radius: 50px 0 0 50px;
  padding: 14px 24px;
}

.newsletter-section .btn {
  border-radius: 0 50px 50px 0;
  padding: 14px 30px;
  font-weight: 600;
  background: var(--primary-dark);
  color: var(--white);
  border: none;
}

.newsletter-section .btn:hover {
  background: var(--dark);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer p, .footer li {
  font-size: 0.92rem;
  line-height: 2;
}

.footer a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer .footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
  display: block;
}

.footer .footer-logo span { color: var(--secondary); }

.footer .social-icons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer .social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.footer .social-icons a:hover {
  background: var(--gradient);
  transform: translateY(-3px);
  padding-left: 0;
}

.footer .footer-links {
  list-style: none;
  padding: 0;
}

.footer .footer-links li { margin-bottom: 2px; }

.footer .footer-contact i {
  color: var(--secondary);
  margin-right: 8px;
  width: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.88rem;
}

/* ---------- Contact Page ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-info-card .icon-wrap {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--white);
  font-size: 1.3rem;
}

.contact-info-card h5 {
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info-card p {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,105,148,0.15);
}

.contact-form textarea.form-control { min-height: 130px; }

.faq-section .accordion-button {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.98rem;
}

.faq-section .accordion-button:not(.collapsed) {
  background: var(--bg-light);
  color: var(--primary);
}

.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: var(--secondary);
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px 30px;
  box-shadow: var(--shadow);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.filter-bar .form-select {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.92rem;
}

/* ---------- Reviews Section ---------- */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.review-card .review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.review-card .review-header img {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card .review-header .stars {
  color: #f5a623;
  font-size: 0.85rem;
}

.review-card .review-text {
  color: var(--gray-600);
  font-size: 0.92rem;
  font-style: italic;
}

.review-card .review-tour {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 10px;
}

/* ---------- Team Cards ---------- */
.team-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-card img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid var(--secondary);
}

.team-card h5 { font-weight: 700; margin-bottom: 3px; }
.team-card .role { color: var(--primary); font-size: 0.9rem; font-weight: 500; margin-bottom: 10px; }
.team-card p { color: var(--gray-600); font-size: 0.88rem; }

/* ---------- Country Cards ---------- */
.country-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.country-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.country-card img {
  width: 50px; height: 35px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.country-card h6 { font-weight: 600; font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Chat Widget ---------- */
.chat-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

.chat-toggle-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,105,148,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  animation: pulse-chat 2s infinite;
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
}

.chat-toggle-btn .chat-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: #e74c3c;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

@keyframes pulse-chat {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,105,148,0.4); }
  50% { box-shadow: 0 4px 30px rgba(0,105,148,0.7); }
}

.chat-panel {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 370px;
  max-height: 500px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel.active { display: flex; }

.chat-header {
  background: var(--gradient);
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h6 {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-header .status {
  font-size: 0.78rem;
  opacity: 0.9;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--bg-light);
  color: var(--dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--gradient);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Typing indicator (three bouncing dots) */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: chatBounce 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%            { transform: translateY(-6px); opacity: 1; }
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 10px;
}

.chat-quick-btn {
  background: var(--bg-light);
  border: 1px solid var(--secondary);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.chat-quick-btn:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: var(--primary);
}

.chat-input-area {
  display: flex;
  padding: 12px 15px;
  border-top: 1px solid var(--gray-200);
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.88rem;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.chat-input-area input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  background: var(--gradient);
  border: none;
  color: var(--white);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 95px;
  right: 32px;
  width: 42px; height: 42px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.back-to-top.show { display: flex; }
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Pagination ---------- */
.pagination .page-link {
  color: var(--primary);
  border: 1px solid var(--gray-200);
  padding: 8px 16px;
  border-radius: 8px;
  margin: 0 3px;
  font-weight: 500;
}

.pagination .page-item.active .page-link {
  background: var(--gradient);
  border-color: var(--primary);
  color: var(--white);
}

.pagination .page-link:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.5rem; }
  .section-title { font-size: 1.8rem; }
  .stat-item .stat-number { font-size: 2rem; }
  .navbar-custom .navbar-collapse {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    margin-top: 10px;
    box-shadow: var(--shadow);
  }
  .navbar-custom .navbar-collapse .nav-link {
    color: var(--dark) !important;
  }
  .navbar-custom .navbar-collapse .btn-book {
    background: var(--gradient);
    color: var(--white);
    display: inline-block;
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  section { padding: 50px 0; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .hero-search-box { padding: 15px; }
  .page-banner { padding: 120px 0 60px; }
  .page-banner h1 { font-size: 2rem; }
  .chat-panel { width: 310px; right: -5px; }
  .filter-bar { margin-top: -30px; padding: 15px; }
  .newsletter-section .input-group { max-width: 100%; }
}

@media (max-width: 575px) {
  .hero-content h1 { font-size: 1.7rem; }
  .stat-item .stat-number { font-size: 1.7rem; }
  .chat-panel { width: 290px; }
}

/* ---------- Misc ---------- */
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
::selection { background: var(--secondary); color: var(--dark); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
