/* ============================================================
   B5 OFFERS / PROMOTIONS PAGE STYLESHEET
   Based directly on Adobe Illustrator layout: Doc/design/4 Offers.ai
   ============================================================ */

/* Base Page Wrapper */
.offers-page-wrapper {
  background-color: #FAF8F5;
  color: #2D3142;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   HERO BANNER SECTION
   Chef garnishing Thai dish with centered brand emblem
   ============================================================ */
.offers-hero-section {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: #1A1F36;
  background-image: url("/images/promotions/offers-hero.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark Vignette Overlay for Dramatic Fine Dining Ambiance */
.offers-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16, 20, 44, 0.15) 0%, rgba(16, 20, 44, 0.55) 100%);
  pointer-events: none;
}

.offers-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  padding: 0 20px;
  margin-top: 10px;
}

/* Visually Hidden Hero Title for Accessibility & SEO (since text is rendered in hero image) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   MAIN CONTENT & SECTION HEADER
   ============================================================ */
.offers-content-section {
  position: relative;
  padding: 60px 0 90px;
}

.offers-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Full-width floral background pattern underneath BlueFlower (From 4 Offers.ai) */
.offers-bg-pattern-full {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.offers-bg-pattern-img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-top: 450px;
}

/* BlueFlower Watermark Ornament (Floating on the right side as in 4 Offers.ai) */
.offers-watermark-bg {
  position: absolute;
  top: 320px;
  right: -50px;
  width: 150px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  filter: grayscale(1) brightness(2.5);
}

.offers-watermark-bg svg,
.offers-watermark-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Header Block */
.offers-header-block {
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}

.offers-title-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.offers-title-main {
  font-family: "EB Garamond", "Cinzel", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #272B64;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Thai language font adjustment */


/* Blue Flower Ornament next to Title */
.title-ornament-svg {
  width: 50px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.offers-subtitle {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: #4A5162;
  max-width: 620px;
  margin: 0 0 20px 0;
}

:lang(th) .offers-subtitle {
  font-family: "Sarabun", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* Centered miniBlueFlower flourish underneath subtitle */
.subtitle-ornament-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 620px;
  margin: 0 0 10px 0;
  text-align: center;
}

.subtitle-ornament-svg {
  width: 130px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ============================================================
   CAMPAIGN CARD FEED
   ============================================================ */
.offers-feed-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.offers-card-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 520px;
  transition: opacity 0.25s ease;
}

.offers-card-list.is-changing {
  opacity: 0.15;
}

/* Individual Promotional Card */
.offer-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 44px;
  background: transparent;
  position: relative;
  width: 100%;
  border:none !important;
  box-shadow: none !important;
  padding:8px;
}

/* Page visibility controlled by JS Pagination */
.offer-card.is-hidden {
  display: none !important;
}

/* Card Thumbnail Container - Placed at the left of layout in desktop view */
.offer-card-thumb-wrap {
  flex: 0 0 340px;
  width: 340px;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ECE9E4;
  box-shadow: 0 10px 30px rgba(39, 43, 100, 0.08);
  position: relative;
  margin: 0;
  align-self: flex-start;
  box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.25) !important;
}

.offer-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-card:hover .offer-card-thumb-wrap img {
  transform: scale(1.04);
}

/* Card Information Body */
.offer-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
}

/* Meta Bar: Date | Category Badge */
.offer-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.offer-meta-date {
  color: #6C7588;
  font-weight: 500;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 15px;
}

:lang(th) .offer-meta-date {
  font-family: "Sarabun", sans-serif;
  font-size: 14px;
}

.offer-meta-divider {
  color: #B0B8C6;
  font-weight: 300;
}

.offer-meta-badge {
  color: #272B64;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 12px;
  background-color: rgba(39, 43, 100, 0.07);
  padding: 3px 10px;
  border-radius: 4px;
}

/* Card Heading Title */
.offer-card-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: #272B64;
  margin: 0 0 14px 0;
  letter-spacing: 0.2px;
}

:lang(th) .offer-card-title {
  font-family: "Prompt", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

/* Card Excerpt Description */
.offer-card-excerpt {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  color: #4A5162;
  margin: 0 0 24px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:lang(th) .offer-card-excerpt {
  font-family: "Sarabun", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

/* MORE INFO Button (Outlined pill button matching Doc/design/4 Offers.ai) */
.btn-more-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 30px;
  border: 1.5px solid #272B64;
  border-radius: 9999px;
  background-color: transparent;
  color: #272B64;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

:lang(th) .btn-more-info {
  font-family: "Prompt", sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 24px;
}

.btn-more-info:hover,
.btn-more-info:focus-visible {
  background-color: #272B64;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(39, 43, 100, 0.25);
  transform: translateY(-1px);
}

.btn-more-info:active {
  transform: translateY(0);
}

/* ============================================================
   INTERACTIVE PAGINATION CONTROLS
   Arrows + Dots: < ● ○ ○ ○ >
   ============================================================ */
.offers-pagination-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 60px;
  padding-top: 20px;
}

.pagination-arrow-btn {
  background: transparent;
  border: none;
  color: #272B64;
  font-size: 22px;
  font-weight: 700;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.pagination-arrow-btn:hover:not(:disabled) {
  background-color: rgba(39, 43, 100, 0.08);
  color: #171A40;
}

.pagination-arrow-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.pagination-dots-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #BCC5D6;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  position: relative;
}

.pagination-dot:hover {
  background-color: #8C99B2;
}

.pagination-dot.is-active {
  background-color: #272B64;
  transform: scale(1.25);
}

.pagination-dot:focus-visible {
  outline: 2px solid #272B64;
  outline-offset: 3px;
}

/* ============================================================
   "MORE INFO" DETAIL POPUP MODAL
   Direct Reservation CTA, Terms Badge, Contact Info
   ============================================================ */
.offer-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(14, 18, 38, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.offer-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scrolling when modal is open */
body.modal-open {
  overflow: hidden !important;
}

.offer-modal-dialog {
  background-color: #FFFFFF;
  border-radius: 12px;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(10, 14, 35, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-modal-overlay.is-open .offer-modal-dialog {
  transform: translateY(0) scale(1);
}

/* Modal Close Button */
.offer-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #272B64;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.offer-modal-close-btn:hover {
  background-color: #272B64;
  color: #FFFFFF;
}

.offer-modal-close-btn svg {
  width: 20px;
  height: 20px;
}

/* Modal Body Content Area */
.offer-modal-inner {
  padding: 36px 40px 40px;
}

/* Modal Top Hero Visual (Optional inside modal if image exists) */
.modal-visual-wrap {
  width: 100%;
  max-height: 380px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  background-color: #F0EEE9;
}

.modal-visual-wrap img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.modal-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #272B64;
  line-height: 1.25;
  margin: 0 0 20px 0;
}

:lang(th) .modal-title {
  font-family: "Prompt", sans-serif;
  font-size: 26px;
  font-weight: 600;
}

.modal-description-body {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3B4254;
  margin-bottom: 28px;
}

:lang(th) .modal-description-body {
  font-family: "Sarabun", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

.modal-description-body p {
  margin: 0 0 14px 0;
}

.modal-description-body ul {
  padding-left: 20px;
  margin: 12px 0 18px 0;
}

.modal-description-body li {
  margin-bottom: 6px;
}

/* Terms & Conditions Box */
.modal-terms-box {
  background-color: #F8F7F4;
  border-left: 3.5px solid #272B64;
  border-radius: 4px;
  padding: 18px 22px;
  margin-bottom: 28px;
}

.modal-terms-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #272B64;
  margin-bottom: 10px;
}

.modal-terms-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #555D70;
}

.modal-terms-list li {
  margin-bottom: 4px;
}

/* Contact & Helpline Bar */
.modal-contact-bar {
  background-color: #FAF9F7;
  border: 1px dashed #D5D8E2;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 30px;
}

.modal-contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.modal-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #272B64;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.modal-contact-link:hover {
  color: #D4AF37;
  text-decoration: underline;
}

.modal-contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Direct Reservation CTA Section in Modal */
.modal-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #ECEAE4;
  gap: 16px;
}

.btn-modal-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #272B64;
  color: #FFFFFF;
  padding: 13px 32px;
  border-radius: 6px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(39, 43, 100, 0.25);
  transition: all 0.25s ease;
}

:lang(th) .btn-modal-reserve {
  font-family: "Prompt", sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 12px 28px;
}

.btn-modal-reserve:hover {
  background-color: #171A40;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(39, 43, 100, 0.35);
}

.btn-modal-reserve svg {
  width: 18px;
  height: 18px;
}

.btn-modal-close-text {
  background: transparent;
  border: none;
  color: #6C7588;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.btn-modal-close-text:hover {
  color: #272B64;
}

/* ============================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ============================================================ */
@media (max-width: 991px) {
  .offers-hero-section {
    height: 380px;
  }

  .offers-title-main {
    font-size: 34px;
  }

  :lang(th) .offers-title-main {
    font-size: 30px;
  }

  .offer-card {
    gap: 32px;
    padding :5px;
  }

  .offer-card-thumb-wrap {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    margin: 0;
    align-self: flex-start;
    box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.25) !important;
  }

  .offer-card-title {
    font-size: 25px;
  }

  .offers-watermark-bg {
    width: 100px;
    right: 0px;
    filter: grayscale(1) brightness(4);
  }
}

@media (max-width: 768px) {
  .offers-hero-section {
    height: 300px;
  }

  .offers-content-section {
    padding: 40px 0 60px;
  }

  .offers-header-block {
    margin-bottom: 35px;
  }

  .offers-title-main {
    font-size: 28px;
  }

  :lang(th) .offers-title-main {
    font-size: 26px;
  }

  .title-ornament-svg {
    width: 38px;
    height: auto;
  }

  .subtitle-ornament-svg {
    width: 100px;
    height: auto;
  }

  /* When on mobile: card stacks vertically with offer image placed at the center of layout */
  .offer-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding-bottom: 36px;
    border-bottom: 1px solid #ECE7DE;
    width: 100%;
  }

  /* Offer image placed at the center of layout */
  .offer-card-thumb-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: 380px;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    display: block;
  }

  .offer-card-body {
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
    text-align: left;
  }

  .offer-card-title {
    font-size: 22px;
  }

  :lang(th) .offer-card-title {
    font-size: 20px;
  }

  .offers-watermark-bg {
    display: none;
  }

  .offer-modal-inner {
    padding: 24px 20px;
  }

  .modal-title {
    font-size: 22px;
  }

  :lang(th) .modal-title {
    font-size: 20px;
  }

  .modal-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-modal-reserve {
    width: 100%;
  }

  .btn-modal-close-text {
    text-align: center;
  }
}
