: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;
}

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: 28px;
  text-align: right;
  margin-bottom: 4px;
}
.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: 36px; }
  .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: 28px; }
  .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;
}
