/* ==============================
   Card Section Styles
   ============================== */

/* Wrapper for the whole section */
.itinerary-cards {
  background: var(--bs-primary-ultralight);
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 0; /* 🚫 remove fat padding from wrapper */
}

/* Reset Bootstrap card defaults */
.card {
    border: 1px solid var(--bs-primary-light);
    margin: 0;         /* no extra spacing */
    background: none;  /* let .itinerary-cards control bg */
}

/* Card body baseline (Bootstrap default is 1.25rem) */
.card-body {
  padding: 0.75rem; /* global baseline padding */
}

/* Full width cards (mobile first) */
.cardmain {
  margin-bottom: 20px;
  flex: 0 0 100%;
  max-width: 100%;
}

/* 2 cards per row on tablets (≥600px) */
@media (min-width: 600px) and (max-width: 1199px) {
    .cardmain {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* 3 cards per row on desktops (≥1200px) */
@media (min-width: 1200px) {
  .cardmain {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

/* Tighter padding on small screens */
@media (max-width: 600px) {
  .card-body {
    padding: 0.5rem !important; /* override bootstrap */    
  }
}

/* ==============================
   Thumbnails
   ============================== */
.thumbnail-img img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--bs-primary-light);
  padding: 5px; /* 👈 adjust/remove if you want edge-to-edge */
}

.thumbnail-link {
  text-decoration: none;
}
.thumbnail-link:hover .btn-more {
  right: -15px;
  background: var(--bs-link-color);
}

/* ==============================
   Buttons
   ============================== */
.btn-more {
  position: absolute;
  top: 70%;
  right: -30px;
  padding: 5px 15px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: normal;
  text-decoration: none;
  transition: all 0.5s ease;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--bs-primary-ultradark);
  background: var(--bs-primary-dark);
  color: #fff;
}
.btn-more:hover {
  right: -15px;
  background: var(--bs-link-color);
}
@media (min-width: 992px) {
  .btn-more {
    top: 70%;
  }
}
@media (max-width: 480px) {
  .btn-more {
    right: -3px;
  }
}

/* ==============================
   Typography
   ============================== */
h3 {
  font-size: clamp(16px, calc(16px + (4 * ((100vw - 320px) / 680))), 1.2em);
}
h3 a {
  text-decoration: none;
}

p {
  margin-top: 10px;
}

/* Tighter padding on small screens */
@media (max-width: 600px) {
  h3 {
    font-size: 1.4em;
  }
}
/* Small screens: tweak fonts */
@media (max-width: 480px) {

}

/* ==============================
   Checklists
   ============================== */
.checklist {
  padding-top: 5px;
}

/* ==============================
   Shadows
   ============================== */
.custom-shadow {
  transition: box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(156, 156, 156, 0.15);
}
.custom-shadow:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* ==============================
   Images
   ============================== */
.img-responsive,
.img-fluid {
  width: 100%;
  height: auto;
  max-width: none;
}

/* ==============================
   Detail Buttons
   ============================== */
.details-button a {
  display: inline-block;
  margin: 20px 0;
  padding: 8px 15px;
  font-size: 1.2em;
  width: 30%;
  border: 1px solid var(--bs-primary-ultradark);
  background: var(--bs-primary-dark);
  color: #fff;
}
