/* =========================================================
   Kerala Tour Itinerary Popup
   Works with Bootstrap 5 + Bootstrap Icons
   ========================================================= */

:root {
  --it-green: #198754;
  --it-green-dark: #146c43;
  --it-green-soft: #eef8f2;
  --it-text: #222;
  --it-muted: #626b73;
  --it-border: #e8ece9;
  --it-white: #fff;
}

/* Modal */
 .itineraryModal4N5D .modal-dialog {
  max-width: 1050px !important;
}

 .itinerary-modal {
  position: relative;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--it-white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.modal-body {
  padding: 0;
}

/* ==========================================
   CLOSE BUTTON
========================================== */

 .custom-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1000;

    width: 42px;
    height: 42px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

     background: #198754;

    border: 2px solid #fa0404;
    border-radius: 50%;

    color: #111;

    opacity: 1;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .18);

    cursor: pointer;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}


/* X icon */

 .custom-close i {
    font-size: 22px;
    line-height: 1;
    color: #fff;

    transition:
        color .25s ease,
        transform .25s ease;
}


/* ==========================================
   DESKTOP HOVER
========================================== 

@media (hover: hover) and (pointer: fine) {

     .custom-close:hover {
        background: #198754;
        border-color: #198754;
    }

     .custom-close:hover i {
        color: #fff;
        transform: rotate(90deg);
    }

}*/


/* ==========================================
   MOBILE / TOUCH
========================================== 

@media (hover: none) and (pointer: coarse) {

     .custom-close:active {
        background: #198754;
        border-color: #198754;

        transform: scale(.92);
    }

     .custom-close:active i {
        color: #fff;
        transform: rotate(90deg);
    }

}*/


/* ==========================================
   FOCUS
========================================== */

 .custom-close:focus-visible {
    outline: 2px solid #198754;
    outline-offset: 3px;
}


/* ==========================================
   MOBILE SIZE
========================================== */

@media (max-width: 767.98px) {

     .custom-close {
        top: 8px;
        right: 10px;
        background: #198754 !important;
        border: 2px solid #fa0404 !important;
        width: 38px;
        height: 38px;
    }

     .custom-close i {
        font-size: 19px;
            line-height: 1;
            color: #fff;

        transition:
        color .25s ease,
        transform .25s ease;
    }
    

}

/* Hero */
 .hero-section {
  padding: 26px 70px 26px 28px;
  background:
    linear-gradient(90deg, rgba(238,248,242,.98), rgba(255,255,255,.96));
  border-bottom: 1px solid var(--it-border);
}

 .hero-section img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

 .hero-section .badge {
  padding: 8px 14px;
  border-radius: 7px;
  font-weight: 600;
}

 .hero-section h3 {
  margin-bottom: 8px;
  color: var(--it-text);
  font-size: clamp(1.55rem, 3vw, 1.55rem);
  line-height: 1.15;
  font-weight: 750;
}

 .hero-section p {
  margin-bottom: 0;
  color: var(--it-muted);
  font-size: 1rem;
}

/* Horizontal Day navigation */
 .day-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start !important;
  gap: 9px;
  margin: 0;
  padding: 15px 24px !important;
  overflow-x: auto;
  white-space: nowrap;
  background: #fff;
  border-bottom: 1px solid var(--it-border);
  scrollbar-width: thin;
  scrollbar-color: var(--it-green) #f1f1f1;
}

 .day-nav::-webkit-scrollbar {
  height: 5px;
}

 .day-nav::-webkit-scrollbar-thumb {
  background: var(--it-green);
  border-radius: 20px;
}

 .day-nav .nav-item {
  flex: 0 0 auto;
}

 .day-nav .nav-link {
  min-width: 92px;
  padding: 9px 17px;
  border: 1px solid #dce2de;
  border-radius: 8px;
  background: #fff;
  color: #3e4842;
  font-size: .95rem;
  font-weight: 650;
  transition: all .2s ease;
}

 .day-nav .nav-link:hover {
  color: var(--it-green);
  border-color: var(--it-green);
  background: var(--it-green-soft);
}

 .day-nav .nav-link.active {
  color: #fff;
  background: var(--it-green);
  border-color: var(--it-green);
  box-shadow: 0 5px 13px rgba(25,135,84,.20);
}

/* Tab content */
 .tab-content {
  padding: 28px !important;
  background: #fff;
}

 .tab-pane > .row {
  min-height: 330px;
}

 .tab-pane img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 15px !important;
}

 .tab-pane .badge {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: .85rem;
}

 .tab-pane h3 {
  margin: 2px 0 13px;
  color: var(--it-text);
  font-size: clamp(1.2rem, 1.2rem, 1.2rem);
  line-height: 1.25;
  font-weight: 750;
}

 .tab-pane p {
  margin-bottom: 17px;
  color: var(--it-muted);
  font-size: .98rem;
  line-height: 1.72;
}

 .tab-pane h5 {
  margin-bottom: 10px;
  color: var(--it-green-dark);
  font-size: 1.05rem;
  font-weight: 700;
}

 .tab-pane ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  columns: 2;
  column-gap: 24px;
}

 .tab-pane li {
  position: relative;
  break-inside: avoid;
  margin-bottom: 8px;
  padding-left: 23px;
  color: #3e4541;
  font-size: .94rem;
}

 .tab-pane li::before {
  content: "\F26A";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--it-green);
  font-family: "bootstrap-icons";
  font-weight: normal;
}

/* Footer */
 .modal-footer {
  padding: 15px 28px;
  border-top: 1px solid var(--it-border);
  background: #fafcfb;
  color: var(--it-green-dark);
  font-size: .95rem;
  font-weight: 600;
  display: block;
  text-align: right;
}

 .modal-footer .btn-success {
  padding: 9px 22px;
  border-radius: 7px;
  font-weight: 650;
  box-shadow: 0 5px 13px rgba(25,135,84,.18);
}

/* Backdrop */
.modal-backdrop.show {
  opacity: .72;
}

/* Tablet */
@media (max-width: 991.98px) {
   .itineraryModal4N5D .modal-dialog {
    max-width: calc(100% - 30px);
  }

   .hero-section {
    padding: 16px 65px 16px 22px;
  }

   .hero-section img {
    height: 120px;
  }

   .tab-pane img {
    height: 280px;
    margin-bottom: 22px;
  }

   .tab-pane ul {
    columns: 1;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
     .hero-section {
        display: none !important;
    }

   .itineraryModal4N5D .modal-dialog {
    margin: 10px;
    max-width: none;
  }

   .itinerary-modal {
    border-radius: 15px;
  }

   .custom-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

   .hero-section {
    padding: 18px 55px 18px 18px;
  }

   .hero-section img {
    height: 120px;
    margin-bottom: 16px;
  }

   .day-nav {
    padding: 55px 9px !important;
    gap: 7px;
  }

   .day-nav .nav-link {
    min-width: 65px;
    padding: 8px 13px;
    font-size: .87rem;
  }

   .tab-content {
    padding: 18px !important;
  }

   .tab-pane img {
    height: 220px;
    margin-bottom: 18px;
  }

   .modal-footer {
    gap: 10px;
    padding: 14px 18px;
    text-align: center;
    justify-content: center !important;
  }

   .modal-footer .btn {
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 420px) {
   .hero-section img {
    height: 120px;
  }

   .tab-pane img {
    height: 190px;
  }
}

/* ==========================================
   DAY NAVIGATION WITH SCROLL ARROWS
========================================== */

 .day-nav-wrapper {
    position: relative;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--it-border);
}


/* Scroll container */

 .day-nav-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: none;

    padding: 15px 55px;
}

 .day-nav-scroll::-webkit-scrollbar {
    display: none;
}


/* Day navigation */

 .day-nav {
    display: flex;
    flex-wrap: nowrap;

    justify-content: flex-start !important;

    gap: 9px;

    width: max-content;
    min-width: 100%;

    margin: 0;
    padding: 0 !important;
}


/* Day item */

 .day-nav .nav-item {
    flex: 0 0 auto;
}


/* ==========================================
   ARROW BUTTON
========================================== */

 .day-nav-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 36px;
    height: 36px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce2de;

    border-radius: 50%;

    background: #fff;

    color: var(--it-green);

    box-shadow: 0 3px 12px rgba(0,0,0,.15);

    cursor: pointer;

    transition: all .2s ease;
}


/* Left arrow */

 .day-nav-arrow-left {
    left: 8px;
}


/* Right arrow */

 .day-nav-arrow-right {
    right: 8px;
}


/* Hover */

 .day-nav-arrow:hover {
    background: var(--it-green);
    color: #fff;
    border-color: var(--it-green);
}


/* Icon */

 .day-nav-arrow i {
    font-size: 17px;
}


/* Disabled arrow */

 .day-nav-arrow.disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767.98px) {

    /* Close button */
     .custom-close {
        position: absolute;
        top: 8px;
        right: 10px;
        z-index: 1000;

        width: 38px;
        height: 38px;

        border-radius: 50%;

        box-shadow: 0 2px 10px rgba(0,0,0,.15);
    }


    /* Space above day navigation */
     .day-nav-wrapper {
        padding-top: 50px;
    }


    /* Navigation */
     .day-nav-scroll {
        padding: 12px 48px;
    }


    /* Arrows */
     .day-nav-arrow {
        top: calc(50% + 25px);
    }


     .day-nav-arrow-left {
        left: 7px;
    }


     .day-nav-arrow-right {
        right: 7px;
    }

}
/* ==========================================
   DESKTOP DAY NAVIGATION ARROWS
   Show only when days overflow
========================================== */

@media (min-width: 768px) {

    .day-nav-arrow {
        display: none;
    }

    .day-nav-wrapper.has-overflow .day-nav-arrow {
        display: flex;
    }


}
@media (min-width: 320px) {
  .tab-pane .badge {
    font-size: .85rem;
}
}
@media (min-width: 576px) {
    
    .custom_pop_up_button{
      display: block !important;
    }
    .book_button{
          padding: 8px !important;
    border-radius: 5px !important;
    }
}
.custom_pop_up_itenary {
        max-width: 1050px !important;
        margin: 1.75rem auto;
        height: auto !important;
    }

/* ==========================================
   MOBILE POPUP - 80% SCREEN HEIGHT
   ========================================== */
@media (max-width: 767.98px) {

    .tab-pane .badge {
        display: block !important;
        width: 100%;
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
        line-height: 1.5;
        text-align: left;
        box-sizing: border-box;
    }

}
@media (max-width: 767.98px) {

    /* Popup height = 60% of mobile screen */
    .modal-dialog {
        height: 80vh !important;
        max-height: 80vh !important;
        margin: auto 10px !important;
    }

    .itinerary-modal {
        height: 80vh !important;
        max-height: 80vh !important;

        display: flex;
        flex-direction: column;

        overflow: hidden !important;
        border-radius: 15px;
    }

    /* Close button */
    .custom-close {
        position: absolute;
        top: 8px;
        right: 10px;
        z-index: 1000;

        width: 38px;
        height: 38px;
    }

    /* Day navigation stays fixed */
    .day-nav-wrapper {
        flex-shrink: 0;
    }

    /* Day navigation horizontal scrolling */
    .day-nav-scroll {
        padding: 12px 48px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    /* IMPORTANT:
       Only itinerary content scrolls vertically */
    .tab-content {
        flex: 1 1 auto;
        min-height: 0;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        padding: 18px !important;

        -webkit-overflow-scrolling: touch;
    }

    /* Images */
    .tab-pane img {
        height: 190px;
        margin-bottom: 18px;
        object-fit: cover;
    }

    /* Highlights */
    .tab-pane ul {
        columns: 1;
    }

    /* Footer stays visible */
    .modal-footer {
        flex-shrink: 0;

        padding: 12px 18px;
        text-align: center;
    }

    .modal-footer .btn {
        width: 100%;
    }
}