:root {
  --primary-dark: #1e5470;
  --primary-light: #5ec1d1;
  --primary-lighter: #8ec1d1;
  --background-light: #d3f0f7;
  --white: #ffffff;
  --text-dark: #1e5470;
  --text-light: #5ec1d1;
  --text-muted: rgba(30, 84, 112, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
  font-size: 15px;
}

.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

section {
  margin-bottom: 18px;
}

.bundle-gallery {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.bundle-gallery-hero {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
}

.gallery-hero-frame {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(30, 84, 112, 0.14);
}

.gallery-main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
  cursor: zoom-in;
}

.gallery-main-image.gallery-fade {
  opacity: 0.28;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(30, 84, 112, 0.82);
  color: #ffffff;
  font-size: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.gallery-nav:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(30, 84, 112, 0.95);
}

.gallery-nav-prev {
  right: 18px;
}

.gallery-nav-next {
  left: 18px;
}

.gallery-counter {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.gallery-counter-separator {
  opacity: 0.6;
}

.bundle-gallery-thumbs {
  display: grid;
  gap: 18px;
}

.gallery-thumb-section {
  display: grid;
  gap: 12px;
}

.gallery-section-title {
  font-size: 18px;
  color: #1e5470;
  margin: 0;
  font-weight: 700;
}

.gallery-thumb-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumb-button {
  scroll-snap-align: start;
}

.gallery-thumb-row::-webkit-scrollbar {
  height: 8px;
}

.gallery-thumb-row::-webkit-scrollbar-track {
  background: rgba(30, 84, 112, 0.08);
  border-radius: 999px;
}

.gallery-thumb-row::-webkit-scrollbar-thumb {
  background: rgba(30, 84, 112, 0.32);
  border-radius: 999px;
}

.gallery-thumb-button {
  flex: 0 0 120px;
  min-width: 120px;
  border: 2px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(30, 84, 112, 0.08);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.gallery-thumb-button:hover,
.gallery-thumb-button.active {
  transform: translateY(-2px);
  border-color: #1e5470;
}

.gallery-thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bundle-gallery-actions {
  display: flex;
  justify-content: flex-end;
}

.gallery-lightbox-toggle {
  background: #1e5470;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.gallery-lightbox-toggle:hover {
  transform: translateY(-1px);
  background: #163f5d;
}

.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.76);
  z-index: 9999;
  padding: 24px;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.gallery-lightbox-content {
  position: relative;
  width: min(100%, 1040px);
  max-height: 96vh;
  padding: 24px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 18px;
  align-items: center;
}

.gallery-lightbox-image {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 20px;
  background: #f8fafc;
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 84, 112, 0.92);
  color: white;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  border-radius: 50%;
  color: #1e5470;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.gallery-lightbox-prev {
  left: 18px;
}

.gallery-lightbox-next {
  right: 18px;
}

.gallery-lightbox-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 992px) {
  .gallery-nav {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .gallery-thumb-button {
    min-width: 100px;
    flex: 0 0 100px;
  }
}

@media (max-width: 768px) {
  .bundle-gallery {
    gap: 14px;
  }

  .gallery-counter {
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .gallery-thumb-row {
    gap: 10px;
  }

  .gallery-thumb-button {
    min-width: 86px;
    flex: 0 0 86px;
    border-radius: 16px;
  }

  .gallery-lightbox-content {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
  }

  .gallery-lightbox-nav {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 520px) {
  .gallery-thumb-row {
    gap: 8px;
  }

  .gallery-thumb-button {
    min-width: 72px;
    flex: 0 0 72px;
  }
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  background-color: var(--primary-light);
  color: var(--white);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: 8px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #4ab5c5;
}

@media (max-width: 992px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* CSS from section:header */
.site-header {
  background: linear-gradient(180deg, #1e5470 13.55%, #245975 33.87%, #295e78 50.49%, #42738b 72.66%, #6c97aa 88.67%, #d3f0f7 101.43%);
  padding-top: 32px;
  padding-bottom: 10px;
  border-radius: 0 0 8px 8px;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.logo {
  font-family: 'Kufam', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--primary-light);
  text-shadow: 0px 17px 25px rgba(0, 0, 0, 0.25);
}
.main-nav ul {
  display: flex;
  gap: 18px;
}
.main-nav a {
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--primary-light);
  text-shadow: 0px 10px 25px rgba(0, 0, 0, 0.25);
}
.main-nav a[href="#"] { /* Example for active/different style */
  color: rgba(255, 255, 255, 0.8);
}
.login-btn {
  font-size: 17px;
  padding: 14px 28px;
}

@media (max-width: 1200px) {
  .header-container {
    gap: 30px;
  }
  .main-nav ul {
    gap: 20px;
  }
  .main-nav a {
    font-size: 20px;
  }
  .login-btn {
    font-size: 20px;
    padding: 20px 30px;
  }
}

@media (max-width: 992px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 20px;
  }
  .main-nav ul {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

/* CSS from section:package-details */
.package-details-section {
  margin-top: 5px;
}
.content-card {
  background-color: var(--white);
  border-radius: 14px;
  padding: 24px 28px;
  padding-bottom: 0; /* remove extra space at the bottom if any */
}
.package-title {
  color: var(--text-dark);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  text-align: right;
  margin-bottom: 4px;
  line-height: 1.25;
}
.title-divider {
  border: none;
  height: 1px;
  background-color: var(--text-dark);
  width: 320px;
  margin: 0 auto 8px;
}
.gallery {
  display: flex;
  flex-direction: row;  
  align-items: flex-start; /* ensures items align at the top */
  margin-bottom: 0;        /* remove any extra margin below */
  /* Remove any height or min-height if present */
  height: 40vh !important ;
}
@media (max-width: 768px) {
  .gallery {
    height: 80vh !important;
  }
}
.main-image {
  width: 80%;
  height: 50% !important;
  object-fit: contain !important;
  background: none;
  display: block;
  margin-bottom: 0 !important; /* remove any bottom margin */
}

.main-image{
  width: 100%;
  height: 100%;
}


.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 27px;
}
.thumbnail-image {
  width: 100%;
  object-fit: contain !important;
  border-radius: 10px;
}
.package-info-wrapper {
  background-color: var(--white);
  margin-top: 12px;
  padding: 16px;
  border-radius: 8px;
}
.package-info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: 2px 8px;
  margin-bottom: 6px;
  margin-top: 0 !important;
}
.info-item {
  font-size: 10px;
  flex-direction: row;
  align-items: flex-start;
  gap: 2px;
}
.info-label {
  font-size: 14px;
}
.info-value {
  font-size: 14px;
}
.package-price {
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #000000;
  text-align: right;
  margin-bottom: 4px;
}
.price-amount {
  color: var(--text-dark);
}

@media (max-width: 992px) {
  .package-title { font-size: clamp(1.3rem, 2.4vw, 1.55rem); }
  .title-divider { width: 80%; }
  .thumbnail-grid { grid-template-columns: repeat(2, 1fr); }
  .package-info-list {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2px;
  }
  .info-item {
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }
}

@media (max-width: 768px) {
  .content-card { padding: 20px; }
  .package-title { font-size: clamp(1.25rem, 2.2vw, 1.45rem); }
  .thumbnail-grid { grid-template-columns: 1fr; }
  .package-price { font-size: 28px; }
}

/* CSS from section:offer-details */
.offer-details-section .details-card {
  background-color: var(--background-light);
  border-radius: 10px;
  padding: 40px 50px;
}
.details-title {
  color: var(--text-dark);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 26px;
  text-align: center;
  margin-bottom: 10px;
}
.details-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  max-width: 600px;
  text-align: right;
}
.detail-item h3 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.detail-item ul {
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-item li {
  font-family: 'Tajawal', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .offer-details-section .details-card { padding: 20px; }
  .details-title { font-size: 32px; }
  .detail-item h3 { font-size: 24px; }
  .detail-item li { font-size: 20px; }
}
@media (max-width: 700px) {
  .details-content {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* CSS from section:itinerary-pricing */
.title-bar {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 22px 0;
  margin-bottom: 18px;
}
.title-bar h2 {
  color: var(--text-dark);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 26px;
}
.itinerary-card {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 28px 18px;
}
.section-subtitle {
  color: var(--text-dark);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  margin-bottom: 6px;
}
.plan-details h4, .plan-details h5 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 4px;
}
.stay-info-box {
  background-color: var(--primary-light);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}
.stay-item {
  background-color: var(--primary-dark);
  border-radius: 8px;
  padding: 18px;
}
.stay-item:not(:last-child) {
  margin-bottom: 4px;
}
.stay-item p {
  color: var(--text-light);
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: 17px;
  text-align: center;
  margin-bottom: 2px;
}
.date-range {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 4px;
}
.price-table-box {
  background-color: var(--primary-light);
  border-radius: 8px;
  padding: 12px;
}
.price-table-header {
  background-color: var(--primary-dark);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 4px;
}
.price-table-header p {
  color: var(--text-light);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-dark);
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}
.price-row:not(:last-child) {
  margin-bottom: 4px;
}
.price-row span {
  color: var(--text-light);
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: 17px;
}

@media (max-width: 992px) {
  .title-bar h2, .section-subtitle { font-size: 36px; }
  .stay-item p, .price-row span, .date-range, .plan-details h4, .plan-details h5 { font-size: 28px; }
  .package-info-list { gap: 4px; }
  .info-item { gap: 2px; }
}

@media (max-width: 768px) {
  .itinerary-card, .title-bar { padding: 20px; }
  .title-bar h2, .section-subtitle { font-size: 28px; }
  .stay-item p, .price-row span, .date-range, .plan-details h4, .plan-details h5 { font-size: 20px; }
  .detail-item ul { gap: 2px; }
  .details-content { gap: 8px; }
  .package-info-list { gap: 2px; }
  .info-item { gap: 1px; }
  .price-row { gap: 4px; }
}

/* CSS from section:booking */
.booking-card {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 28px 10px;
}
.booking-form {
  background-color: var(--primary-dark);
  border-radius: 8px;
  padding: 14px;
  max-width: 600px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.form-group-full {
  grid-column: 1 / -1;
}
.form-group input, .form-group textarea {
  width: 100%;
  background-color: var(--white);
  border: none;
  box-shadow: 0px 15px 15px 0px rgba(0, 0, 0, 0.25);
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-dark);
  text-align: right;
  padding: 10px;
}
.form-group input {
  height: 32px;
  border-radius: 4px;
}
.form-group textarea {
  height: 90px;
  border-radius: 6px;
  resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  font-size: 13px;
}
.submit-btn {
  background-color: var(--primary-dark);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  margin: 0 auto;
  border: none;
  cursor: pointer;
}

@media (max-width: 992px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .booking-card { padding: 30px 15px; }
  .form-group input::placeholder, .form-group textarea::placeholder { font-size: 20px; }
  .submit-btn { font-size: 22px; padding: 20px 40px; }
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content-wrapper, .container {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}
.main-content-wrapper, .container {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}
