/* Elegant Resort Comparison with Pastel Colors - Content Area Only */

/* Content Area Styling */
#comparison div[data-role="content"] {
  /* background-color: #f9f6f2; */
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Page Title */
#comparison div[data-role="content"] h1 {
  color: #014b42;
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
  font-weight: 600;
  text-align: center;
  margin-top: var(--section-gap);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(210, 189, 134, 0.5);
  line-height: 1.2;
}

#comparison div[data-role="content"] h1 span {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  color: #477a7b;
  margin-top: 10px;
}

/* Resort Names */
#comparison div[data-role="content"] h2 {
  color: #014b42;
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 15px;
  padding: 10px 15px;
  background-color: rgba(0, 128, 128, 0.1);
  border-left: 5px solid #d2bd86;
  border-radius: 0 8px 8px 0;
}

/* Pros and Cons Headings */
#comparison div[data-role="content"] h3 {
  color: #477a7b;
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 15px;
  margin-left: 15px;
  margin-bottom: 10px;
}

/* Description Text */
#comparison div[data-role="content"] p {
  font-size: clamp(1rem, 1.1vw, 1.15rem) !important;
  line-height: 1.75;
  text-align: justify;
  color: #333;
  max-width: 70ch;
  margin-left: 30px;
  margin-right: 15px;
  margin-bottom: 1.5rem;
  padding-left: 15px;
  border-left: 2px solid rgba(210, 189, 134, 0.3);
}

/* Resort Card Layout */
#comparison div[data-role="content"] .resort-card {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: var(--section-gap);
  padding: 0 0 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#comparison div[data-role="content"] .resort-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Highlight Plantation Bay */
#comparison div[data-role="content"] .resort-card.plantation-bay {
  background-color: rgba(246, 243, 237, 0.5);
  position: relative;
  padding-top: 15px;
}

/* #comparison div[data-role="content"] .resort-card.plantation-bay:before {
  content: "Featured Resort";
  position: absolute;
  top: -12px;
  right: 20px;
  background: #014b42;
  color: #fff;
  padding: 5px 15px;
  font-size: 0.85rem;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} */

/* Resort Images */
#comparison div[data-role="content"] img {
  display: block;
  max-width: 100%;
  height: auto;
  /* margin: 0 auto 20px auto; */
  border-radius: 4px;
  /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); */
  /* padding: 5px; */
  background: #fff;
}

/* Pros Section */
#comparison div[data-role="content"] .pros-section {
  background-color: rgba(111, 172, 104, 0.1);
  padding: 5px 15px;
  margin: 10px 15px;
  border-radius: 6px;
}

/* Cons Section */
#comparison div[data-role="content"] .cons-section {
  background-color: rgba(240, 173, 160, 0.1);
  padding: 5px 15px;
  margin: 10px 15px;
  border-radius: 6px;
}

/* Responsive Typography */
@media only screen and (max-width: 768px) {
  #comparison div[data-role="content"] h1 {
    font-size: 1.8rem;
  }

  #comparison div[data-role="content"] h1 span {
    font-size: 1.2rem;
  }

  #comparison div[data-role="content"] h2 {
    font-size: 1.5rem;
  }

  #comparison div[data-role="content"] h3 {
    font-size: 1.2rem;
  }

  #comparison div[data-role="content"] p {
    margin-left: 15px;
  }
}

@media only screen and (max-width: 600px) {
  #comparison div[data-role="content"] p {
    text-align: left;
  }
}

@media only screen and (max-width: 480px) {
  #comparison div[data-role="content"] h1 {
    font-size: 1.5rem;
  }

  #comparison div[data-role="content"] h1 span {
    font-size: 1.1rem;
  }

  #comparison div[data-role="content"] h2 {
    font-size: 1.3rem;
  }

  #comparison div[data-role="content"] h3 {
    font-size: 1.1rem;
  }

  #comparison div[data-role="content"] p {
    margin-left: 10px;
    padding-left: 10px;
  }

  #comparison div[data-role="content"] {
    padding: 15px 10px;
  }

  #comparison div[data-role="content"] .pros-section,
  #comparison div[data-role="content"] .cons-section {
    margin: 10px 10px;
    padding: 5px 10px;
  }
}

/* Comparison Table Grid Styles */
.comparison-table-wrapper *,
.comparison-table-title {
  text-shadow: none !important;
}

.comparison-table-title {
  font-family: "Delphin No. 2 W01 Regular", "Delphin", "Times New Roman", serif !important;
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  text-align: center;
  color: #014b42 !important;
  margin: 40px 0 30px 0;
  padding-bottom: 20px;
  position: relative;
  background-color: transparent !important;
  border: none !important;
}

.comparison-table-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #d2bd86, transparent);
  margin: 15px auto 0;
  border-radius: 2px;
}

.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 0 auto 50px auto;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Scroll hint */
.scroll-hint {
  display: none;
  text-align: center;
  margin-bottom: 15px;
  animation: fadeInOut 3s ease-in-out infinite;
}

.scroll-hint-text {
  display: inline-block;
  color: #014b42;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Show scroll hint on smaller screens where table is wider than viewport */
@media only screen and (max-width: 1200px) {
  .scroll-hint {
    display: block;
  }
}

.comparison-table {
  display: grid;
  grid-template-columns: minmax(180px, 200px) repeat(6, minmax(140px, 1fr));
  gap: 1px;
  background-color: #d2bd86;
  border: 2px solid #d2bd86;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-width: min-content;
  width: 100%;
}

/* Table Headers */
.table-header {
  background: linear-gradient(135deg, #014b42 0%, #023832 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 20px 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
}

.category-header {
  background: linear-gradient(135deg, #477a7b 0%, #3a6465 100%);
  font-size: 1.05rem !important;
  color: #d2bd86 !important;
}

/* Plantation Bay star in cells */
.pb-star {
  position: relative;
}

.pb-star::before {
  content: "★";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.2rem;
  color: #ffd700;
  opacity: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Category Cells */
.category-cell {
  background-color: #f6f3ed;
  font-weight: 600;
  font-size: 0.9rem;
  color: #014b42;
  padding: 18px 15px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  border-left: 4px solid #d2bd86;
  line-height: 1.4;
}

/* Resort Cells */
.resort-cell {
  background-color: #ffffff;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 80px;
  transition: all 0.3s ease;
}

.resort-cell:hover {
  background-color: #f9f6f2;
  transform: scale(1.02);
  box-shadow: inset 0 0 10px rgba(210, 189, 134, 0.2);
}

/* Rating Text */
.rating {
  font-size: 2rem;
  font-weight: 900;
  color: #014b42;
  font-family: "Delphin No. 2 W01 Regular", "Delphin", "Times New Roman", serif;
  line-height: 1;
}

.rating-text {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
  font-weight: 500;
  max-width: 100%;
  word-wrap: break-word;
}

/* Checkmarks and X-marks */
.checkmarks {
  font-size: 1.5rem;
  color: #2e8b57;
  font-weight: bold;
  letter-spacing: 4px;
}

.x-marks {
  font-size: 1.3rem;
  color: #dc143c;
  font-weight: bold;
  letter-spacing: 3px;
}

/* Emoji Cell */
.emoji-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.emoji-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emoji-row .x-marks {
  font-size: 1.3rem;
  letter-spacing: 0;
}

.emoji {
  font-size: 1.8rem;
  display: inline-block;
}

/* Responsive Design for Tablets */
@media only screen and (max-width: 991px) {
  .comparison-table-title {
    font-size: 2rem !important;
  }

  .comparison-table {
    grid-template-columns: minmax(150px, 180px) repeat(6, minmax(120px, 1fr));
    min-width: min-content;
  }

  .table-header {
    font-size: 0.85rem;
    padding: 16px 10px;
  }

  .category-header {
    font-size: 0.95rem !important;
  }

  .category-cell {
    font-size: 0.8rem;
    padding: 14px 12px;
  }

  .resort-cell {
    padding: 10px 4px;
    min-height: 70px;
  }

  .rating {
    font-size: 1.7rem;
  }

  .rating-text {
    font-size: 0.85rem;
  }

  .checkmarks {
    font-size: 1.3rem;
  }

  .x-marks {
    font-size: 1.15rem;
  }

  .emoji {
    font-size: 1.5rem;
  }

  .emoji-row .x-marks {
    font-size: 1.15rem;
  }
}

/* Responsive Design for Mobile */
@media only screen and (max-width: 768px) {
  .comparison-table-title {
    font-size: 1.7rem !important;
    margin: 30px 0 20px 0;
  }

  .comparison-table-wrapper {
    padding: 15px 0;
    margin-bottom: 40px;
  }

  .scroll-hint-text {
    font-size: 0.8rem;
    padding: 7px 16px;
  }

  .comparison-table {
    grid-template-columns: minmax(130px, 160px) repeat(6, minmax(110px, 1fr));
    min-width: min-content;
    border-radius: 8px;
  }

  .table-header {
    font-size: 0.75rem;
    padding: 12px 8px;
    letter-spacing: 0.3px;
  }

  .category-header {
    font-size: 0.85rem !important;
  }

  .category-cell {
    font-size: 0.7rem;
    padding: 12px 10px;
    letter-spacing: 0.2px;
  }

  .resort-cell {
    padding: 12px 8px;
    min-height: 60px;
    gap: 6px;
  }

  .rating {
    font-size: 1.5rem;
  }

  .rating-text {
    font-size: 0.75rem;
  }

  .checkmarks {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .x-marks {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .emoji {
    font-size: 1.3rem;
  }

  .emoji-row .x-marks {
    font-size: 1rem;
  }

  .emoji-row {
    gap: 6px;
  }
}

/* Extra Small Mobile Devices */
@media only screen and (max-width: 480px) {
  .comparison-table-title {
    font-size: 1.4rem !important;
    margin: 20px 0 15px 0;
  }

  .comparison-table-wrapper {
    padding: 10px 0;
    margin-bottom: 30px;
  }

  .scroll-hint-text {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .comparison-table {
    grid-template-columns: minmax(110px, 140px) repeat(6, minmax(100px, 1fr));
    min-width: min-content;
    border-radius: 6px;
    border-width: 1px;
  }

  .table-header {
    font-size: 0.65rem;
    padding: 10px 6px;
  }

  .category-header {
    font-size: 0.75rem !important;
  }

  .category-cell {
    font-size: 0.65rem;
    padding: 10px 8px;
    border-left-width: 3px;
  }

  .resort-cell {
    padding: 10px 6px;
    min-height: 55px;
    gap: 4px;
  }

  .rating {
    font-size: 1.3rem;
  }

  .rating-text {
    font-size: 0.7rem;
  }

  .checkmarks {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .x-marks {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .emoji {
    font-size: 1.1rem;
  }

  .emoji-row .x-marks {
    font-size: 0.9rem;
  }

  .emoji-row {
    gap: 4px;
  }

  .pb-star::before {
    font-size: 1rem;
    top: 3px;
    right: 3px;
  }
}

/* Book Now Button Styles (from seniors/index.php) */
/* Bottom Booking Widget */
.bottom-booking-section {
  background: transparent !important;
  padding: 36px 20px 44px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

.bottom-booking-title {
  background: transparent !important;
  color: red !important;
  font-family: 'AaMgScript', 'AaMgScript-Regular', cursive !important;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem) !important;
  letter-spacing: 0.02em;
  margin: 0 0 24px 0;
  font-weight: normal !important;
  text-transform: none !important;
}

.bottom-booking-widget {
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .bottom-booking-section {
    display: none;
  }
  .comparison-mobile-book-wrap {
    display: flex;
    justify-content: center;
    padding: 28px 20px 36px;
  }
}

@media (min-width: 768px) {
  .comparison-mobile-book-wrap {
    display: none;
  }
}

/* Mobile book button */
.pkg-book-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  background: #C0392B !important;
  color: #f5ede8 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 2px !important;
  padding: 1.1rem 2rem !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  white-space: normal !important;
  text-shadow: none !important;
  box-shadow: 0 4px 24px rgba(192, 57, 43, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

.pkg-book-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.pkg-book-btn:hover::after { transform: translateX(100%); }

.pkg-book-btn:hover {
  background: #96281B !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px rgba(150, 40, 27, 0.45) !important;
  transform: translateY(-2px) !important;
}

.pkg-book-btn:active {
  transform: translateY(0) !important;
}

.pkg-book-btn-arrow {
  font-size: 1rem;
  transition: transform 0.25s ease;
  line-height: 1;
  flex-shrink: 0;
}

.pkg-book-btn:hover .pkg-book-btn-arrow {
  transform: translateX(4px);
}

.pkg-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: clamp(2px, 0.3vw, 3px) solid rgba(255, 255, 255, 0.3);
  border-radius: clamp(12px, 2vw, 20px);
  padding: clamp(14px, 2.2vw, 22px) clamp(15px, 2.5vw, 35px);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: white;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible;
  width: 100%;
  min-height: clamp(70px, 10vw, 90px);
  text-transform: uppercase;
  letter-spacing: clamp(0px, 0.08vw, 1px);
  box-sizing: border-box;
}

.button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  z-index: 10;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

.button-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
}

.button-text {
  flex: 1;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.main-text {
  display: block;
  font-size: clamp(11px, 1.8vw, 19px);
  font-weight: 900;
  margin-bottom: 4px;
  color: #ffffff;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(255, 255, 255, 0.4);
  letter-spacing: clamp(0px, 0.05vw, 0.5px);
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.sub-text {
  display: block;
  font-size: clamp(8px, 1.2vw, 13px);
  font-weight: 600;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(255, 255, 255, 0.3);
  letter-spacing: clamp(0px, 0.03vw, 0.3px);
  line-height: 1.3;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  padding: clamp(1px, 0.3vw, 2px) clamp(4px, 0.8vw, 6px);
  border-radius: clamp(6px, 1vw, 8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.pkg-cta-button:hover {
  transform: translateY(-6px) scale(1.03);
  letter-spacing: clamp(0px, 0.12vw, 2px);
}

.pkg-cta-button:hover .sub-text {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.15)
  );
  border-color: rgba(255, 255, 255, 0.3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 12px rgba(255, 255, 255, 0.5);
}

/* Default/Adventure Theme (Soft Coral/Peach) */
.default-button {
  background: linear-gradient(
    135deg,
    #ffe5d9 0%,
    #ffd7c4 30%,
    #ffdab9 70%,
    #ffebd8 100%
  );
  box-shadow: 0 15px 35px rgba(255, 218, 185, 0.4),
    inset 0 2px 10px rgba(255, 255, 255, 0.2),
    inset 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.default-button:hover {
  box-shadow: 0 25px 50px rgba(255, 218, 185, 0.6),
    inset 0 2px 15px rgba(255, 255, 255, 0.3),
    inset 0 -2px 15px rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    135deg,
    #fff0e5 0%,
    #ffe5d9 30%,
    #ffd7c4 70%,
    #fff5ee 100%
  );
}

/* Center Pros and Cons contents on desktop */
@media (min-width: 992px) {
  #comparison div[data-role="content"] .resort-card:not(.plantation-bay) .pros-section,
  #comparison div[data-role="content"] .resort-card:not(.plantation-bay) .cons-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #comparison div[data-role="content"] .resort-card:not(.plantation-bay) .pros-section h3,
  #comparison div[data-role="content"] .resort-card:not(.plantation-bay) .cons-section h3 {
    width: 100%;
    max-width: calc(70ch - 15px);
    margin-left: 15px; /* Aligns the heading with the left border of the paragraph */
    margin-right: 0;
  }

  #comparison div[data-role="content"] .resort-card:not(.plantation-bay) .pros-section p,
  #comparison div[data-role="content"] .resort-card:not(.plantation-bay) .cons-section p {
    width: 100%;
    max-width: calc(70ch - 15px);
    margin-left: 15px; /* Maintains the 15px relative indentation from the heading */
    margin-right: 0;
  }
}
