/* trip detail banner gallery */
.banner-gallery {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.banner-gallery__grid {
  max-height: 100%;
  position: relative;
  grid-template-columns: 1;
  overflow: hidden;
  height: 400px;
  display: grid;
  border-radius: 0;
}

.banner__image {
  display: block;
  cursor: pointer;
  margin: 0;
  background: #161b1e;
  height: 300px;
  position: relative;
}

.banner__image:first-child {
  height: 300px;
}

.trip-images {
  background: #000000;
  margin: 0;
  height: 300px;
  display: block;
  position: relative;
  z-index: 1;
}

.trip-images__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: all 0.2s ease-in;
}

.trip-images__video-play .icon {
  width: 50px;
  height: 50px;
  color: #ffffff;
  transition: all 0.2s ease-in;
}

.banner__image img,
.trip-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.view-gallery-btn {
  position: absolute;
  z-index: 3;
  right: 6%;
  line-height: 1;
  padding: 12.5px 25px 14.5px;
  bottom: 30px;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s ease-in;
  color: #000000;
  font-weight: 700;
  border-radius: 10px;
  text-align: center;
  transition: all 0.2s ease-in;
  display: flex;
  gap: 3px;
  align-items: center;
}

.view-gallery-btn .icon {
  width: 17px;
  height: 17px;
  position: relative;
  fill: #000000;
  transition: all 0.2s ease-in;
}

.view-gallery-btn:hover {
  color: #fff;
  background: #1f439c;
}

.view-gallery-btn:hover .icon {
  color: #fff;
  fill: #fff;
}

@media screen and (min-width: 640px) {
  .banner-gallery__grid {
    grid-gap: 5px;
    grid-template-columns: repeat(12, 1fr);
  }
  .trip-images,
  .banner__image:first-child,
  .banner-gallery--double .banner__image {
    height: 400px;
  }
}

@media screen and (min-width: 768px) {
  .banner__image:first-child {
    grid-column: span 6;
    grid-row: span 2;
  }
  .trip-images {
    grid-column: span 6;
    grid-row: span 2;
  }
  .banner__image {
    height: 197.5px;
    grid-column: span 3;
  }
  .row.photogallery {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .banner-gallery__grid {
    height: 495px;
  }
  .banner__image:first-child,
  .banner-gallery--double .banner__image {
    height: 495px;
  }
  .trip-images {
    height: 495px;
  }
  .banner__image {
    height: 245px;
  }
}

@media screen and (max-width: 768px) {
  .banner-gallery {
    display: none;
  }
}

/* for four banner img */
.banner-gallery--quad .banner__image:nth-child(2) {
  grid-column: span 6;
}

/* for three banner img */
.banner-gallery--triple .banner__image {
  grid-column: span 6;
}
/* for double banner img */
.banner-gallery--double .banner__image {
  grid-column: span 6;
  grid-row: span 2;
}

/* for single banner img */
.banner-gallery--single .banner__image:first-child, 
.banner-gallery--single .trip-images:first-child {
    grid-column: span 4;
}

/* Call to Action Buttons */
.trip-cta-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
}

@media (min-width: 769px) {
    .trip-cta-buttons {
        gap: 20px;
    }
}

/* TripAdvisor Widget Styling */
.tripadvisor-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tripadvisor-widget .TA_selfserveprop {
    width: 100% !important;
}

.tripadvisor-widget .TA_links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tripadvisor-widget img {
    max-width: 100%;
    height: auto;
}

/* Mobile responsiveness for TripAdvisor widget */
@media (max-width: 768px) {
    .tripadvisor-widget {
        padding: 10px;
        margin-top: 15px;
    }
}

.cta-btn {
    padding: 15px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 160px;
    min-height: 50px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.2;
    flex: 1;
}

.cta-btn--book {
    background-color: #1a7b89;
    color: white;
}

.cta-btn--book:hover {
    background-color: #155f6a;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 123, 137, 0.3);
}

.cta-btn--enquiry {
    background-color: #0f5b91;
    color: white;
}

.cta-btn--enquiry:hover {
    background-color: #0c4a75;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 91, 145, 0.3);
}

.cta-btn--customize {
    background-color: #000;
    color: white;
}

.cta-btn--customize:hover {
    background-color: #333;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .trip-cta-buttons {
        flex-direction: row;
        gap: 8px;
        margin: 20px 0;
        align-items: stretch;
        flex-wrap: nowrap;
    }
    
    .cta-btn {
        flex: 1;
        min-width: auto;
        padding: 12px 8px;
        font-size: 12px;
        min-height: 50px;
        white-space: nowrap;
        letter-spacing: 0.2px;
    }
    
    /* Hide Customize My Trip button on mobile */
    .cta-btn--customize {
        display: none;
    }
}

@media (max-width: 480px) {
    .trip-cta-buttons {
        gap: 6px;
        margin: 15px 0;
    }
    
    .cta-btn {
        padding: 10px 6px;
        font-size: 11px;
        min-height: 45px;
        letter-spacing: 0.1px;
    }
    
    /* Hide Customize My Trip button on mobile */
    .cta-btn--customize {
        display: none;
    }
}


/* Homepage hero overlap fixes */
body.home .hero {
  margin-top: 0;
}

/* Ensure hero content clears header on all screens - use margin on inner to avoid layout jump */
body.home .hero .hero__content {
  padding-top: 0;
  z-index: 5;
}
body.home .hero .hero__content-inner { margin-top: 30px; }

@media (max-width: 960px) {
  body.home .hero .hero__content { padding-top: 0; }
  body.home .hero .hero__content-inner { margin-top: 40px; }
}

@media (max-width: 600px) {
  body.home .hero .hero__content { padding-top: 0; }
  body.home .hero .hero__content-inner { margin-top: 50px; }
}

/* Keep search dropdown above header/nav */
.hero__search .search-results-dropdown {
  z-index: 1000;
}

/* Header contact info - consolidated from multiple files */
.author-contact__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.author-contact__contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  margin: 12px 0;
  flex-direction: row;
}

.author-contact__whatsapp-contact,
.author-contact__email-contact {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  min-width: 206px;
  justify-content: flex-start;
  margin-bottom: 0;
}

.author-contact__email-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #333;
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .author-contact__contact-row {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .author-contact__contact-row {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .author-contact__whatsapp-contact,
  .author-contact__email-contact {
    gap: 6px;
  }
}

/* Trip content bullets (Highlights/Overview sections) */
.content-section .trip-highlights ul,
.content-section .entry-content ul {
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
}

/* WordPress block editor list inside Overview/Highlights */
#overview ul.wp-block-list,
.trip-highlights ul.wp-block-list,
.entry-content ul.wp-block-list {
  margin: 0 0 20px 0;
  padding-left: 0 !important;
  list-style: none !important;
}

.content-section .trip-highlights ul li,
.content-section .entry-content ul li,
#overview ul.wp-block-list li,
.trip-highlights ul.wp-block-list li,
.entry-content ul.wp-block-list li {
  position: relative;
  padding-left: 36px;
  margin: 14px 0;
  line-height: 1.7;
}

/* circular blue icon background */
.content-section .trip-highlights ul li::before,
.content-section .entry-content ul li::before,
#overview ul.wp-block-list li::before,
.trip-highlights ul.wp-block-list li::before,
.entry-content ul.wp-block-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eaf4ff;
  border: 1px solid #c5dcff;
  transform: translateY(-50%);
}

/* arrow icon inside circle (uses Font Awesome already loaded) */
.content-section .trip-highlights ul li::after,
.content-section .entry-content ul li::after,
#overview ul.wp-block-list li::after,
.trip-highlights ul.wp-block-list li::after,
.entry-content ul.wp-block-list li::after {
  content: "\f061"; /* fa-arrow-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 11px; /* half of 22px circle */
  top: 50%;
  font-size: 12px;
  color: #0f5b91;
  transform: translate(-50%, -50%);
}

/* nested lists fall back to default discs */
.content-section .trip-highlights ul ul,
.content-section .entry-content ul ul,
#overview ul.wp-block-list ul {
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
}

@media (max-width: 768px) {
  .content-section .trip-highlights ul li,
  .content-section .entry-content ul li,
  #overview ul.wp-block-list li,
  .trip-highlights ul.wp-block-list li,
  .entry-content ul.wp-block-list li {
    padding-left: 32px;
    margin: 12px 0;
  }
  .content-section .trip-highlights ul li::before,
  .content-section .entry-content ul li::before,
  #overview ul.wp-block-list li::before,
  .trip-highlights ul.wp-block-list li::before,
  .entry-content ul.wp-block-list li::before {
    width: 20px;
    height: 20px;
  }
  .content-section .trip-highlights ul li::after,
  .content-section .entry-content ul li::after,
  #overview ul.wp-block-list li::after,
  .trip-highlights ul.wp-block-list li::after,
  .entry-content ul.wp-block-list li::after {
    left: 10px; /* half of 20px circle on mobile */
    font-size: 11px;
  }
}
