/* ==========================================================
   itinerary-modal.css
   Itinerary/DBD styles for use when itineraryincjohn.php 
   is included OUTSIDE the webquote (e.g. testimonial modals).
   ALL rules scoped to .modal-body to prevent bleeding.
   ========================================================== */

/* --- Hide legacy table layout --- */
.modal-body .itinerary_tbl{display:none}

/* --- DBD base --- */
.modal-body .daybyday-contents{color:#fff;line-height:1.6}
.modal-body .daybyday-contents p:nth-child(1){color:white!important}
.modal-body .daybyday-contents p:nth-child(1):not(:has(a[name])){text-align:left!important}
.modal-body .daybyday-contents p{color:white!important;text-align:left!important}

/* --- Section heading --- */
.modal-body .section-heading{text-align:center;font-size:32px;margin-bottom:40px;color:gold;font-weight:600}

/* --- Destination headers --- */
.modal-body .destination-header-gold{background:rgb(255 255 255 / .07);border-top:3px solid #dbb166;padding:15px;margin-top:15px;border-radius:8px 8px 0 0;box-shadow:0 4px 12px rgb(0 0 0 / .3);text-align:left}
.modal-body .destination-header-silver{background:rgb(255 255 255 / .07);border-top:3px solid #cae4fd;padding:15px;margin-top:15px;border-radius:8px 8px 0 0;box-shadow:0 4px 12px rgb(0 0 0 / .3);text-align:left}
.modal-body h3.destination-header-h3-gold{color:#dbb166;font-size:19px!important;font-weight:600;margin-bottom:8px}
.modal-body h3.destination-header-h3-silver{color:#cae4fd;font-size:19px!important;margin-bottom:8px}
.modal-body p.destination-header-p-gold{color:#dbb166!important;font-size:17px;font-weight:500;margin:0}
.modal-body p.destination-header-p-silver{color:#cae4fd!important;font-size:17px;font-weight:500;margin:0}

/* --- Day cards --- */
.modal-body .day-card{background:rgb(255 255 255 / .07);overflow:hidden;border:1px solid rgb(255 255 255 / .1);box-shadow:0 2px 8px rgb(0 0 0 / .2)}
.modal-body .day-header{background:rgb(77 184 255 / .12);padding:15px;border-bottom:1px solid rgb(255 255 255 / .1);text-align:left}
.modal-body .day-header h4{color:#fff;font-size:18px!important;font-weight:600;margin-bottom:0}
.modal-body .day-content{padding:15px}

/* --- Activity items --- */
.modal-body .activity-item{padding-bottom:25px;margin-bottom:25px;border-bottom:1px solid rgb(255 255 255 / .08)}
.modal-body .activity-item::after{content:"";display:table;clear:both}
.modal-body .activity-item:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.modal-body .activity-item:last-of-type{border-bottom:none;margin-bottom:0;padding-bottom:0}
.modal-body .day-content .activity-item.tour-options-activity:last-child{border-bottom:none!important;margin-bottom:0!important;padding-bottom:0!important}
.modal-body .activity-title{font-size:17px;font-weight:600;margin-bottom:12px;text-align:left}
.modal-body .activity-title a{color:#4db8ff;text-decoration:none;transition:color 0.2s ease}
.modal-body .activity-title a:hover{color:#6dc8ff;text-decoration:underline}
.modal-body .activity-description{color:rgb(255 255 255 / .9);font-size:15px;line-height:1.7}
.modal-body .activity-description p{margin-bottom:12px;text-align:left}
.modal-body .activity-description strong{color:#fff}

/* --- Transfers & free days --- */
.modal-body .transfer-item{text-align:left!important;font-size:16px;color:#fff;margin-bottom:20px}
.modal-body .transfer-item:last-child{margin-bottom:0}
.modal-body .transfer-item strong{color:#fff}
.modal-body .free-day-item{text-align:left;font-size:16px;color:#fff;padding:15px 0}

/* --- EJ Media Slider (DBD tour/hotel image sliders) --- */
.modal-body .ej-slider-wrapper{float:right;margin-left:23px}
.modal-body .ej-media-slider{position:relative;width:384px;background:#000;border-radius:4px;overflow:hidden}
.modal-body .ej-slider-track{position:relative;width:100%;height:216px;overflow:hidden}
.modal-body .ej-slide{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;transition:opacity 0.5s ease;display:flex;align-items:center;justify-content:center}
.modal-body .ej-slide.active{opacity:1;z-index:1}
.modal-body .ej-slide img,
.modal-body .ej-slide video{width:100%;height:100%;object-fit:cover}
.modal-body .ej-slider-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgb(0 0 0 / .6);color:#fff;border:none;width:36px;height:36px;border-radius:50%;cursor:pointer;z-index:10;display:flex;align-items:center;justify-content:center;transition:all 0.3s;font-size:16px}
.modal-body .ej-slider-nav:hover{background:rgb(77 184 255 / .8)}
.modal-body .ej-slider-nav-left{left:10px}
.modal-body .ej-slider-nav-right{right:10px}
.modal-body .ej-slider-counter{position:absolute;bottom:10px;right:10px;background:rgb(0 0 0 / .7);color:#fff;padding:5px 10px;border-radius:4px;font-size:12px;z-index:10}
.modal-body .ej-slider-buttons{display:block;margin-top:10px;text-align:right}

/* --- Important notice --- */
.modal-body .important-notice{margin-top:30px;color:#fff}
.modal-body .important-notice strong{color:gold}

/* --- Tour options carousel --- */
.modal-body .tour-options-carousel{position:relative;margin-bottom:0}
.modal-body .tour-option-card{display:none;margin:0;min-height:206px}
.modal-body .tour-option-card.active{display:block}
.modal-body .tour-option-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid rgb(255 255 255 / .1)}
.modal-body .tour-option-title{font-size:16px;color:#dbb166;font-weight:600}
.modal-body .tour-option-counter{font-size:14px;color:rgb(255 255 255 / .7)}
.modal-body .tour-option-content{position:relative}
.modal-body .tour-option-price{color:#90EE90;margin:0 0;font-weight:400;margin-top:15px}
.modal-body .carousel-nav{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:0;margin-bottom:20px}
.modal-body .carousel-buttons-wrapper{display:flex}
.modal-body .carousel-counter{text-align:center;font-size:14px;color:rgb(255 255 255 / .7)}
.modal-body .carousel-nav button{background:rgb(77 184 255 / .2);border:1px solid rgb(77 184 255 / .4);color:#4db8ff;padding:7px 20px;border-radius:5px;cursor:pointer;font-size:16px;font-weight:600;transition:all 0.0s ease}
.modal-body .carousel-nav button:hover{background:rgb(77 184 255 / .3);border-color:rgb(77 184 255 / .6)}
.modal-body .carousel-nav .carousel-prev{border-radius:5px 0 0 5px;border-right:none}
.modal-body .carousel-nav .carousel-next{border-radius:0 5px 5px 0;border-left:none}
.modal-body .daybyday-contents .carousel-counter{min-width:50px;text-align:center;background:rgb(77 184 255 / .2);border:1px solid rgb(77 184 255 / .4);border-left:none;border-right:none;color:#4db8ff;padding:7px 20px;width:150;border-radius:0;cursor:pointer;font-size:16px;font-weight:600;transition:all 0.0s ease}
.modal-body .daybyday-contents p.choose-p-tag-gold{color:#dbb166!important;font-weight:500;font-size:17px}
.modal-body .daybyday-contents p.choose-p-tag-silver{color:#cae4fd!important;font-weight:500;font-size:17px}
.modal-body .daybyday-contents .carousel-counter{color:#4db8ff!important;font-weight:600}
.modal-body .daybyday-contents .carousel-counter .current-slide{color:#4db8ff!important}

/* --- DBD tour slider (WowSlider) styles --- */
.modal-body .dbdtoursslider{border-radius:4px!important;background:none!important;padding:0!important}
.modal-body .dbdtoursslider .ws_images{border:1px solid rgb(255 255 255 / .2)!important;border-radius:4px!important;background:none!important;padding:0!important}
.modal-body .dbdtoursslider .ws_images img{border-radius:4px!important}
.modal-body .dbdtoursslider .ws_shadow{background:none!important;border:none!important;box-shadow:none!important}

/* --- DBD flight info --- */
.modal-body .dbd-flight-icon-row{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.modal-body .dbd-flight-label{text-decoration:none}
.modal-body .dbd-flight-label-text{text-decoration:underline}
.modal-body .dbd-flight-details{display:flex;flex-direction:column;gap:6px}
.modal-body .dbd-flight-route{display:flex;align-items:flex-start;gap:20px}
.modal-body .dbd-flight-arrow{align-self:center;letter-spacing:2px}
.modal-body .dbd-flight-endpoint{display:flex;flex-direction:column;align-items:center}
.modal-body .dbd-flight-time{font-weight:600;color:#fff}
.modal-body .dbd-flight-city{text-align:center}
.modal-body .dbd-flight-number{font-weight:400;display:inline-block}
.modal-body .dbd-flight-legs{display:flex;gap:0}
.modal-body .dbd-flight-leg{flex:1;padding:12px;border-right:2px solid rgb(255 255 255 / .2)}
.modal-body .dbd-flight-leg:last-child{border-right:none}
.modal-body .dbd-flight-leg .dbd-flight-details{align-items:center}
.modal-body .dbd-flight-leg .dbd-flight-route{justify-content:center}
.modal-body .dbd-flight-leg-header{display:flex;flex-direction:column;align-items:center;margin-bottom:12px;padding-bottom:10px;border-bottom:2px solid rgb(255 255 255 / .2)}
.modal-body .dbd-flight-leg-label{font-weight:600;margin-bottom:2px}
.modal-body .dbd-flight-leg-number{font-weight:400}
.modal-body .dbd-flight-desktop{display:block}
.modal-body .dbd-flight-mobile{display:none}
.modal-body .dbd-flight-mobile ul{padding-left:20px;margin:0}
.modal-body .dbd-flight-mobile li{margin-bottom:4px}
.modal-body .dbd-flight-mobile-leg-label{margin-top:12px;margin-bottom:4px}
.modal-body .dbd-flight-mobile-leg-label:first-child{margin-top:0}

/* --- Misc DBD helpers --- */
.modal-body .day-by-day-bold{font-weight:600}
.modal-body .day-by-day-picture{width:100%;height:100%}
.modal-body .trip-overview-heading{font-weight:600}
.modal-body .trip-overview-details{font-weight:400}

/* --- DBD tour/hotel buttons --- */
.modal-body .dbdtourbtn-gold,
.modal-body .dbdtourbtn-silver{width:100%;box-sizing:border-box;text-align:center}
.modal-body .dbdtourbtn-gold{background-color:transparent!important;background:transparent!important;border:2px solid white!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:7px 24px!important;border-radius:8px!important;color:white!important;font-size:16px!important;font-weight:600!important;cursor:pointer!important;transition:all 0.0s ease!important;text-decoration:none!important;height:auto!important;margin-top:10px!important}
.modal-body .dbdtourbtn-gold:hover{background:rgb(219 177 102 / .2)!important;color:#dbb166!important}
.modal-body .dbdtourbtn-silver{background-color:transparent!important;background:transparent!important;border:2px solid white!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:7px 24px!important;border-radius:8px!important;color:white!important;font-size:16px!important;font-weight:600!important;cursor:pointer!important;transition:all 0.0s ease!important;text-decoration:none!important;height:auto!important;margin-top:10px!important}
.modal-body .dbdtourbtn-silver:hover{background:rgb(202 228 253 / .2)!important;color:#cae4fd!important}

/* --- Link color scoped to modal --- */
.modal-body a:not(.dbdtourbtn-gold):not(.dbdtourbtn-silver):not(.gold-light-btn):not(.silver-light-btn){color:#00b6ff!important}

/* --- Responsive --- */
@media (max-width:768px){
  .modal-body .dbd-flight-desktop{display:none}
  .modal-body .dbd-flight-mobile{display:block}
  .modal-body .dbd-flight-label .dbd-flight-number{display:none}
  .modal-body .ej-slider-wrapper{float:none;margin:0 0 15px 0;width:100%}
  .modal-body .ej-media-slider{width:100%;max-width:100%}
  .modal-body .ej-slider-track{height:auto;padding-bottom:56.25%;position:relative}
  .modal-body .ej-slide{position:absolute;top:0;left:0}
  .modal-body .day-content{padding:20px 15px}
  .modal-body .section-heading{font-size:26px}
  .modal-body .first_img{float:none!important;text-align:center}
  .modal-body .centerinmobiledbd{text-align:center!important;padding-top:0px!important}
  .modal-body .smallermargin{margin-top:10px!important}
  .modal-body .day-by-day-picture{width:100%;height:100%}
}

@media (max-width:769px){
  .modal-body .daybyday-contents p.choose-p-tag-gold,
  .modal-body .daybyday-contents p.choose-p-tag-silver,
  .modal-body p.destination-header-p-gold,
  .modal-body p.destination-header-p-silver{font-size:18px}
}

@media (min-width:769px){
  .modal-body .choose-p-tag-gold{display:inline-block;margin-bottom:0!important;margin-right:20px;vertical-align:middle}
  .modal-body .choose-p-tag-silver{display:inline-block;margin-bottom:0!important;margin-right:20px;vertical-align:middle}
  .modal-body .carousel-nav{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:15px;margin-bottom:0!important;vertical-align:middle}
  .modal-body .daybyday-contents .carousel-counter{margin:0}
  .modal-body .tour-options-carousel{display:block;clear:both;margin-top:15px}
}

@media (max-width:767px){
  .modal-body .centerinmobile{float:none!important}
}