/**
 * Dream to Rinjani - Custom Premium CSS Style Sheet
 * Defines primary variable properties, visual alignments, hover actions, and custom overlays.
 */

:root {
  --primary-color: #1e5e34; /* Premium Green */
  --secondary-color: #ffb238; /* Warm Amber Gold */
  --bg-color: #f6f7f9; /* Premium light background */
  --text-color: #22262a; /* Deep charcoal */
  --text-shadow-color: rgba(0, 0, 0, 0.25);
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(30, 94, 52, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 178, 56, 0.04) 0%,
      transparent 50%
    );
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
/* Hero specific styles */
.hero-section {
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  color: #fff;
  position: relative;
  overflow: visible;
  min-height: 70vh;
}
.site-logo {
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.logo-container {
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-container .site-logo {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Navbar base - always row layout, never wraps to column */
.navbar {
  min-height: 70px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.navbar .container {
  flex-wrap: nowrap !important;
  align-items: center !important;
}
.navbar-brand {
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .navbar .navbar-brand {
    align-items: center !important;
    gap: 0.4rem !important;
    flex-shrink: 0 !important;
  }

  .navbar .logo-container {
    width: auto !important;
    height: 40px !important;
    max-height: 40px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .navbar .site-logo {
    max-height: 40px !important;
    height: 40px !important;
    width: auto !important;
    max-width: 100px !important;
    display: block !important;
    object-fit: contain !important;
  }

  /* Prevent the navbar brand from pushing content into a narrow column */
  .navbar .container {
    flex-wrap: nowrap !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  /* Ensure hero and content have normal flow beneath navbar */
  body > main {
    margin-top: 0 !important;
  }
}
.logo-container.border-accent {
  background: transparent;
  border: 2px solid rgba(30, 94, 52, 0.08);
}
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 94, 52, 0.35) 0%,
    rgba(0, 0, 0, 0.48) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-section .display-3 {
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}
.hero-overlay-bottom {
  pointer-events: none;
  z-index: -1;
}
/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.25px;
}

.bg-light-gray {
  background:
    linear-gradient(135deg, #f3f5f7 0%, #eef1f5 100%),
    radial-gradient(
      circle at 15% 30%,
      rgba(30, 94, 52, 0.03) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 70%,
      rgba(255, 178, 56, 0.02) 0%,
      transparent 45%
    );
  position: relative;
}

/* Premium Card hover micro-animations */
.card-hover {
  transition:
    transform 0.28s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.28s ease;
  border-radius: 12px;
  overflow: hidden;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(34, 38, 42, 0.14) !important;
}

.transition-img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-hover:hover .transition-img {
  transform: scale(1.05);
}

.dest-card {
  cursor: pointer;
  border-radius: 12px;
}
.dest-card .transition-img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.dest-card:hover .transition-img {
  transform: scale(1.08);
}

/* Buttons style overrides */
.btn-success {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 94, 52, 0.15);
  border-radius: 10px;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: #164827 !important;
  border-color: #164827 !important;
  box-shadow: 0 10px 26px rgba(22, 72, 39, 0.2) !important;
}

.btn-warning {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #222;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(255, 178, 56, 0.15);
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: #ff9b2e !important;
  border-color: #ff9b2e !important;
  box-shadow: 0 8px 22px rgba(255, 155, 46, 0.22) !important;
}

.btn-outline-success {
  color: var(--primary-color);
  border-color: rgba(30, 94, 52, 0.18);
  background-color: transparent;
}
.btn-outline-success:hover {
  background-color: rgba(30, 94, 52, 0.06);
  border-color: rgba(30, 94, 52, 0.28);
}

/* Mobile-specific adjustments to prevent the logo from becoming oversized
   and to keep navbar/content spacing consistent on small screens */
@media (max-width: 767.98px) {
  .logo-container {
    height: 36px;
    max-height: 36px;
    width: auto;
    max-width: 80px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
  }

  .site-logo {
    max-height: 36px;
    max-width: 80px;
    width: auto;
    height: 36px;
    border-radius: 0;
    display: block;
    object-fit: contain;
  }

  .navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .navbar .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  /* Reduce hero height on small screens so content doesn't get pushed down */
  .hero-section {
    min-height: 55vh;
  }

  /* Ensure main content uses full width underneath the navbar */
  main {
    width: 100%;
  }
}

/* Underlines on section titles */
.title-underline {
  border-radius: 20px;
  height: 4px;
}

/* Nav Links Styling */
.navbar-nav .nav-link {
  color: #495057;
  padding: 0.5rem 1rem !important;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.dropdown-menu {
  border-radius: 10px;
  animation: fadeInDropdown 0.22s ease;
}
.dropdown-menu-item:hover {
  background-color: rgba(30, 94, 52, 0.05);
  color: var(--primary-color) !important;
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sticky top overrides */
.sticky-top {
  z-index: 1040;
}

/* Text Shadows */
.text-shadow {
  text-shadow: 0 8px 30px var(--text-shadow-color);
}

/* Max Width Helpers */
.max-w-600 {
  max-width: 600px;
}
.max-w-500 {
  max-width: 500px;
}
.max-w-800 {
  max-width: 900px;
}

/* Sidebar unread chat badge pulsing effect */
.animate-pulse {
  animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Custom scroll bars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #f3f5f7;
}
::-webkit-scrollbar-thumb {
  background: #c5ccd3;
  border-radius: 6px;
  border: 2px solid #f3f5f7;
}
::-webkit-scrollbar-thumb:hover {
  background: #aab2bb;
}

/* Small detail size text helper */
.small-9 {
  font-size: 0.88rem;
}
.ls-1 {
  letter-spacing: 1px;
}
.ls-2 {
  letter-spacing: 2px;
}

/* Section Premium Backgrounds */
section.bg-white {
  background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

section.bg-success {
  background: linear-gradient(135deg, #1e5e34 0%, #164827 100%);
}

/* Footer Premium Styling */
footer {
  background: linear-gradient(135deg, #1a1f24 0%, #13171c 100%);
  border-top: 3px solid var(--primary-color);
}
footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.18s ease;
}
footer a:hover {
  color: var(--secondary-color);
}
footer h5 {
  color: var(--secondary-color);
  font-weight: 700;
}

/* Premium CTA Section */
.bg-success {
  background: linear-gradient(135deg, #1e5e34 0%, #164827 100%) !important;
  position: relative;
  overflow: hidden;
}
.bg-success::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.bg-success::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 178, 56, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.bg-success > * {
  position: relative;
  z-index: 2;
}

/* Testimonials Section Background */
section:has(.rating-stars) {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f3f5f7 100%);
}

/* Card Spacing & Premium Look */
.card {
  border: none;
  border-radius: 12px;
}
.card.shadow-sm {
  box-shadow: 0 2px 12px rgba(34, 38, 42, 0.08);
}
.card .card-body {
  padding: 1.25rem;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ============================================ */

/* All mobile breakpoints */
@media (max-width: 768px) {
  /* ----- NAVBAR FIXES ----- */
  .navbar {
    min-height: 60px !important;
    height: 60px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    z-index: 1045 !important;
    overflow: visible !important;
  }

  .navbar .container {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Hamburger button - RIGHT side of navbar (Bootstrap default) */
  .navbar-toggler {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    position: relative !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    z-index: 1050 !important;
    cursor: pointer;
    flex-shrink: 0 !important;
  }

  .navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
  }

  .navbar-toggler .navbar-toggler-icon {
    width: 22px;
    height: 18px;
    transition: transform 0.25s ease;
  }

  .navbar .navbar-brand {
    order: 1 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 0.4rem !important;
    max-width: calc(100% - 52px) !important;
  }

  /* Logo & Brand text on mobile */
  .navbar .logo-container {
    width: auto !important;
    height: 36px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 80px !important;
    max-height: 36px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .navbar .site-logo {
    max-width: 80px !important;
    max-height: 36px !important;
    width: auto !important;
    height: 36px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    display: block !important;
    image-rendering: -webkit-optimize-contrast;
  }

  .fallback-logo {
    display: none;
  }

  .navbar .brand-text {
    display: block !important;
    margin-left: 0.35rem !important;
  }

  /* Collapse menu - smooth full width slide animation */
  .navbar-collapse {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    background: #ffffff !important;
    z-index: 1040 !important;
    padding: 1.25rem 1.5rem 2rem !important;
    overflow-y: auto !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transform: translateX(-100%);
    transition:
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
  }

  .navbar-collapse.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.5rem !important;
  }

  .navbar-collapse .nav-item {
    width: 100%;
    border-bottom: 1px solid #f2f4f7;
  }

  .navbar-collapse .nav-link {
    padding: 0.85rem 0 !important;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1d20 !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition:
      background 0.15s ease,
      color 0.15s ease;
  }

  .navbar-collapse .nav-link:active {
    background: #f8f9fa;
    color: var(--primary-color) !important;
  }

  .navbar-collapse .dropdown-menu {
    display: none;
    position: static !important;
    float: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 1rem !important;
    background: #f8f9fa !important;
    animation: none !important;
    border-radius: 8px !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  .navbar-collapse .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .navbar-collapse .dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 6px;
  }

  /* Hide default header buttons outside menu on mobile */
  .navbar .d-flex.align-items-center.gap-2 > .btn {
    display: none !important;
  }

  /* In-menu action buttons */
  .navbar-collapse .d-flex.flex-column.flex-lg-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eef1f5;
  }

  .navbar-collapse .d-flex.flex-column.flex-lg-row .btn {
    width: 100%;
    min-height: 46px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }

  /* Body scroll lock when menu open */
  body.nav-open {
    overflow: hidden !important;
    touch-action: none;
    /* avoid position:fixed which can cause layout/scroll shifts on some mobile browsers */
    position: static;
  }

  /* ----- HERO FIXES ----- */
  .hero-section {
    min-height: auto !important;
    background-attachment: scroll !important;
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-section .container {
    padding-top: 0.5rem !important;
    padding-bottom: 0 !important;
  }

  .hero-section .display-3 {
    font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px;
    margin-bottom: 0.75rem !important;
    max-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .hero-section .lead {
    font-size: 0.92rem !important;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    opacity: 0.95;
  }

  .hero-section .badge {
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem !important;
    white-space: normal;
    word-break: break-word;
    display: inline-block !important;
    margin: 0 auto 0.75rem auto !important;
    text-align: center !important;
  }

  .hero-section .btn-lg {
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem !important;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
  }

  .hero-section .d-flex.flex-column.flex-sm-row {
    gap: 0.65rem;
    width: 100%;
  }

  .hero-section .d-flex.flex-column.flex-sm-row .btn {
    width: 100% !important;
  }

  /* ----- SECTION & SPACING FIXES ----- */
  .py-5 {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .section-title,
  h2.fw-bold {
    font-size: 1.3rem !important;
    line-height: 1.3;
  }

  /* ----- CARD FIXES ----- */
  .card {
    border-radius: 12px !important;
  }

  .card .card-body {
    padding: 1.1rem !important;
  }

  .ratio {
    max-height: 220px;
  }

  .ratio img {
    object-fit: cover;
  }

  .card-hover {
    margin-bottom: 0.75rem;
  }

  .card .card-title {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .card .card-text {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .card .fs-4 {
    font-size: 1.25rem !important;
  }

  .card .btn {
    min-height: 44px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Package cards fix */
  .card .d-flex.justify-content-between.align-items-center {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .card .d-flex.justify-content-between.align-items-center > div {
    width: 100%;
  }

  .card .d-flex.justify-content-between.align-items-center > div .fs-4 {
    display: inline-block;
  }

  .card .btn-outline-success,
  .card .btn-success {
    width: 100%;
  }

  /* ----- GALLERY FIXES ----- */
  .gallery-grid .row.g-2 > [class*="col-"] {
    padding: 0.25rem;
  }

  .gallery-grid .position-relative.rounded-4 {
    height: 240px !important;
  }

  .gallery-grid .gallery-thumb {
    height: 70px !important;
  }

  /* ----- REVIEW FIXES ----- */
  .review-card .card-body {
    padding: 1.1rem !important;
  }

  .review-card .customer-avatar {
    width: 44px !important;
    height: 44px !important;
  }

  /* ----- FOOTER FIXES ----- */
  footer .row > [class*="col-"] {
    margin-bottom: 1.25rem;
  }

  footer h5 {
    font-size: 0.98rem;
  }

  footer ul li {
    font-size: 0.88rem;
  }

  /* ----- TRIPS LIST FIXES ----- */
  .container .btn-group,
  .container .d-flex.flex-wrap.justify-content-center.gap-2 {
    flex-wrap: wrap;
    justify-content: center;
  }

  .container .d-flex.flex-wrap.justify-content-center.gap-2 .btn {
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
    min-height: 40px;
  }

  /* ----- PRICE SUMMARY (booking page) ----- */
  .summary-row {
    font-size: 0.82rem !important;
    padding: 0.4rem 0 !important;
  }

  .bg-light.rounded-3.p-3.mb-4 {
    padding: 0.85rem !important;
  }

  /* ----- BADGE FIXES ----- */
  .badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }

  /* ----- TIMELINE FIXES (package detail) ----- */
  .timeline-marker {
    min-width: 40px !important;
  }

  .timeline-dot {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
  }

  /* ----- COMPARISON TABLE FIXES ----- */
  .table-responsive table th,
  .table-responsive table td {
    font-size: 0.78rem;
    padding: 0.45rem !important;
  }

  /* ----- INSURANCE SECTION FIXES ----- */
  .bg-light.rounded-3.p-3.mb-4 .form-check-inline {
    display: block;
    margin-bottom: 0.35rem;
  }

  /* ----- BUTTON FIXES ----- */
  .btn {
    white-space: normal;
    word-break: break-word;
  }

  /* ----- STICKY BOOKING CARD DISABLED ON MOBILE ----- */
  .sticky-booking-card {
    display: none !important;
  }

  /* ----- Portal timeline fix ----- */
  .tracking-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tracking-content {
    width: 100%;
  }

  /* ----- FORM FIXES & PREVENT IOS FOCUS ZOOM ----- */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .form-control-lg {
    font-size: 0.98rem !important;
    padding: 0.6rem 0.85rem !important;
  }

  /* ----- TABLE FIXES ----- */
  .table {
    font-size: 0.82rem;
  }

  /* ----- PREMIUM DETAIL SECTIONS ----- */
  .premium-hero {
    min-height: 48vh !important;
  }

  .premium-hero .hero-title {
    font-size: 1.6rem !important;
  }

  .premium-hero .hero-subtitle {
    font-size: 0.82rem !important;
    gap: 0.4rem !important;
  }

  .premium-hero .hero-badges .badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.65rem !important;
  }

  /* Info cards */
  .info-card {
    padding: 0.85rem !important;
  }

  .info-card i {
    font-size: 1.25rem !important;
  }

  /* Lightbox styles are handled in gallery.php to avoid conflicts */

  .info-card h6 {
    font-size: 0.72rem !important;
  }

  .info-card p {
    font-size: 0.88rem !important;
  }
}

/* 576px and below */
@media (max-width: 576px) {
  .hero-section .display-3 {
    font-size: 1.45rem !important;
  }

  .card .d-flex.justify-content-between.align-items-center > div .fs-4 {
    font-size: 1.15rem !important;
  }

  .col-6 {
    padding: 0 0.35rem;
  }

  .g-4 {
    gap: 0.85rem !important;
  }

  .pricing-section .col-md-6 {
    margin-bottom: 0.85rem;
  }
}

/* 390px and below (iPhone 12/13/14/15) */
@media (max-width: 390px) {
  .hero-section .display-3 {
    font-size: 1.3rem !important;
  }

  .navbar .logo-container {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
  }

  .navbar .site-logo {
    max-height: 38px !important;
    height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .navbar .site-logo.fallback-logo {
    width: 38px !important;
    height: 38px !important;
  }

  .btn-lg {
    font-size: 0.9rem !important;
    padding: 0.55rem 0.85rem !important;
  }
}

/* 320px minimum breakpoint */
@media (max-width: 320px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .hero-section .display-3 {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
  }

  .hero-section .lead {
    font-size: 0.85rem !important;
  }

  .btn {
    font-size: 0.85rem !important;
    padding: 0.45rem 0.65rem !important;
  }

  .card-body {
    padding: 0.85rem !important;
  }

  .fs-4 {
    font-size: 1.05rem !important;
  }

  .navbar .logo-container {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
  }

  .navbar .site-logo {
    max-height: 36px !important;
    height: 36px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .navbar .site-logo.fallback-logo {
    width: 36px !important;
    height: 36px !important;
  }
}

/* Desktop reset (ensure nothing changed) */
@media (min-width: 769px) {
  .navbar-collapse {
    display: flex !important;
  }
}

/* Mobile adjustments - preserve existing */
@media (max-width: 575.98px) {
  .display-3.fs-1-mobile {
    font-size: 2.1rem !important;
  }
}

@media (min-width: 992px) {
  .display-3 {
    font-size: 3.8rem;
  }
}

/* Decorative Elements & Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Badge Premium Style */
.badge {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInLeft 0.6s ease-out;
}

/* Section Title Styling */
.section-title {
  color: var(--primary-color);
  animation: fadeInUp 0.8s ease-out;
}

/* Travel Insurance - Read Detail link */
.read-detail-link {
  color: #2e7d32;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.read-detail-link:hover,
.read-detail-link:focus {
  color: #1b5e20;
  text-decoration: underline;
}

/* Insurance modal readable spacing */
.insurance-modal-body h6 {
  scroll-margin-top: 1rem;
}

.insurance-modal-body .table th,
.insurance-modal-body .table td {
  font-size: 0.85rem;
}

/* Trip tracking timeline (portal) */
.tracking-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tracking-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tracking-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.tracking-item.is-active .tracking-marker {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.tracking-item.is-pending .tracking-marker {
  background: #f1f3f5;
  color: #6c757d;
}

.tracking-content {
  flex: 1;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
}
