/*
 * 3CUBE Layout Patterns CSS — DESIGN.md applied
 * Tropical Resort / Natural Luxury
 * Fonts: Playfair Display (headings) + Inter (body)
 * Colors: ocean-dark / ocean-primary / sand-light
 */

/* ==================== SPACING ==================== */
/* Pattern-to-pattern distance classes */
.sp-s  { margin-top: 32px; }   /* same-context elements */
.sp-m  { margin-top: 56px; }   /* standard section gap */
.sp-l  { margin-top: 80px; }   /* theme change */
.sp-xl { margin-top: 100px; }  /* after hero / before CTA */

@media (max-width: 768px) {
  .sp-s  { margin-top: 20px; }
  .sp-m  { margin-top: 40px; }
  .sp-l  { margin-top: 56px; }
  .sp-xl { margin-top: 72px; }
}

/* ==================== CONTAINERS ==================== */
.pt-inner       { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.pt-inner--narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.pt-inner--wide   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ==================== COMMON SECTION ==================== */
.pt-section {
  padding: 64px 0;
}
.pt-section--lg {
  padding: 100px 0;
}
.pt-section--white {
  background-color: #fff;
}

/* ==================== HEADINGS ==================== */
.pt-label {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean-primary, #2da4a8);
  text-align: center;
  margin-bottom: 12px;
}
.pt-label--left { text-align: left; }
.pt-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.6;
  text-align: center;
  color: var(--ocean-dark, #0e4c55);
  margin-bottom: 24px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.pt-title--left { text-align: left; }
.pt-desc {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--ui-gray, #718096);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.pt-desc--left { text-align: left; margin: 0; }

/* ==================== P01: HERO FULLWIDTH ==================== */
.pt-hero {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}
.pt-hero--full { height: 100vh; }
.pt-hero img,
.pt-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  color: #fff;
  text-align: center;
}
.pt-hero__title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 48px;
  letter-spacing: 0.03em;
  font-weight: 400;
  font-style: italic;
}
.pt-hero__sub {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 16px;
  opacity: .85;
}

@media (max-width: 768px) {
  .pt-hero { height: 350px; }
  .pt-hero--full { height: 80vh; }
  .pt-hero__title { font-size: 26px; }
}

/* ==================== P02: INTRO CENTERED ==================== */
.pt-intro {
  text-align: center;
  padding: 64px 0;
}
.pt-intro .pt-desc {
  margin-top: 32px;
}

/* ==================== P03: 2COL IMG-TEXT — DESIGN.md overlapping images ==================== */
.pt-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  max-width: var(--max-w, 1280px);
  margin: 0 auto;
  padding: 0 24px;
}
.pt-2col--reverse { grid-template-columns: 1fr 1fr; direction: rtl; }
.pt-2col--reverse > * { direction: ltr; }
.pt-2col__img {
  position: relative;
  width: 100%;
  min-height: 480px;
}
.pt-2col__img img {
  width: 80%;
  height: 80%;
  min-height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(14,76,85,.12);
}
/* Second image in group — overlapping style */
.pt-2col__img img:nth-child(2) {
  position: absolute;
  bottom: -20px; right: 0;
  width: 50%;
  min-height: 260px;
  height: 60%;
  border: 8px solid var(--white, #fff);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(14,76,85,.15);
  z-index: 1;
}
.pt-2col__body {
  padding: 48px 56px;
}

@media (max-width: 768px) {
  .pt-2col { grid-template-columns: 1fr; padding: 0; }
  .pt-2col--reverse { grid-template-columns: 1fr; direction: ltr; }
  .pt-2col__img { min-height: 300px; }
  .pt-2col__img img { width: 100%; min-height: 280px; border-radius: 0; }
  .pt-2col__img img:nth-child(2) { display: none; }
  .pt-2col__body { padding: 40px 24px; }
}

/* ==================== P04: 3COL CARD GRID ==================== */
.pt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pt-card {
  background: var(--white, #fff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.pt-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.pt-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.pt-card:hover .pt-card__img { transform: scale(1.05); }
/* Featured (2col) cards — taller images */
.pt-cards--featured { grid-template-columns: repeat(2, 1fr); gap: 40px; }
.pt-cards--featured .pt-card__img { height: 350px; }
.pt-card__body {
  padding: 24px;
}
.pt-card__title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ocean-dark, #0e4c55);
  margin-bottom: 8px;
}
.pt-card__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ui-gray, #718096);
}
.pt-card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean-primary, #2da4a8);
}

@media (max-width: 768px) {
  .pt-cards { grid-template-columns: 1fr; gap: 20px; }
}

/* ==================== P05: CAROUSEL (Splide) ==================== */
.pt-carousel {
  overflow: hidden;
}
.pt-carousel .splide__slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .pt-carousel .splide__slide img { height: 240px; }
}

/* ==================== P06: FULL-IMG + TEXT STACK ==================== */
.pt-imgstack__img {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  border-radius: 24px;
}
.pt-imgstack__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}
.pt-imgstack__body {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: center;
}

/* ==================== P07: ROOM DETAIL FLOW ==================== */
.pt-room-flow {}
.pt-room-flow__carousel { margin-bottom: 40px; }
.pt-room-flow__spec {
  max-width: 800px;
  margin: 0 auto;
}
.pt-room-flow__spec table {
  width: 100%;
  border-collapse: collapse;
}
.pt-room-flow__spec th,
.pt-room-flow__spec td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ocean-light, #e0f2f2);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.pt-room-flow__spec th {
  width: 160px;
  font-weight: 600;
  color: var(--ocean-dark, #0e4c55);
  background: var(--ocean-mist, #f0f9f9);
}

/* ==================== P08: ACCORDION FAQ ==================== */
.pt-accordion {}
.pt-accordion__item {
  border-bottom: 1px solid var(--ocean-light, #e0f2f2);
}
.pt-accordion__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--ocean-dark, #0e4c55);
}
.pt-accordion__q::after {
  content: '+';
  font-size: 24px;
  color: var(--ui-gray, #718096);
  transition: transform .3s;
}
.pt-accordion__item.is-open .pt-accordion__q::after {
  transform: rotate(45deg);
}
.pt-accordion__a {
  display: none;
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 2;
  color: var(--ui-gray, #718096);
}
.pt-accordion__item.is-open .pt-accordion__a { display: block; }

/* ==================== P09: 2COL FORM + INFO ==================== */
.pt-form-info {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.pt-form-info__form input,
.pt-form-info__form textarea,
.pt-form-info__form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ocean-light, #e0f2f2);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 16px;
}
.pt-form-info__aside {
  background: var(--ocean-mist, #f0f9f9);
  padding: 32px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .pt-form-info { grid-template-columns: 1fr; }
}

/* ==================== P10: NEWS CARD STACK ==================== */
.pt-news-list {}
.pt-news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ocean-light, #e0f2f2);
  align-items: center;
}
.pt-news-item__img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
}
.pt-news-item__date {
  font-size: 12px;
  color: var(--ui-gray, #718096);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.pt-news-item__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pt-news-item { grid-template-columns: 120px 1fr; gap: 16px; }
  .pt-news-item__img { width: 120px; height: 80px; }
}

/* ==================== P11: 2COL CTA BOXES ==================== */
.pt-cta-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pt-cta-box {
  background: #fff;
  border: 1px solid var(--ocean-light, #e0f2f2);
  padding: 48px 32px;
  text-align: center;
  border-radius: 12px;
}
.pt-cta-box__icon { font-size: 32px; margin-bottom: 16px; }
.pt-cta-box__title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 18px;
  margin-bottom: 12px;
}
.pt-cta-box__btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 32px;
  border: 1px solid var(--ocean-dark, #0e4c55);
  color: var(--ocean-dark, #0e4c55);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: .3s;
}
.pt-cta-box__btn:hover {
  background: var(--ocean-dark, #0e4c55);
  color: #fff;
}

@media (max-width: 768px) {
  .pt-cta-boxes { grid-template-columns: 1fr; }
}

/* ==================== P12: ACCESS MAP + INFO ==================== */
.pt-access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.pt-access__map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}
.pt-access__info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 16px;
  font-size: 14px;
  line-height: 1.8;
}
.pt-access__info dt { font-weight: 600; color: var(--ocean-dark, #0e4c55); }
.pt-access__info dd { color: var(--ui-gray, #718096); }

@media (max-width: 768px) {
  .pt-access { grid-template-columns: 1fr; }
  .pt-access__map iframe { height: 280px; }
}

/* ==================== P13: SPEC LIST ==================== */
.pt-spec table {
  width: 100%;
  border-collapse: collapse;
}
.pt-spec th,
.pt-spec td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ocean-light, #e0f2f2);
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}
.pt-spec th {
  width: 180px;
  font-weight: 600;
  background: var(--ocean-mist, #f0f9f9);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pt-spec th { width: auto; display: block; background: none; padding-bottom: 0; border: none; }
  .pt-spec td { display: block; padding-top: 4px; }
}

/* ==================== P14: 2COL IMG PAIR ==================== */
.pt-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pt-img-pair img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(14,76,85,.08);
}

@media (max-width: 768px) {
  .pt-img-pair { grid-template-columns: 1fr; }
  .pt-img-pair img { height: 220px; }
}

/* ==================== P15: SECTION DIVIDER ==================== */
.pt-divider {
  text-align: center;
  padding: 24px 0;
}
.pt-divider--line {
  border-top: 1px solid #e5e5e5;
  margin: 0 auto;
  max-width: 80px;
}
.pt-divider--wave {
  position: relative;
  height: 80px;
}
.pt-divider--wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==================== P16: PHOTO GRIDS ==================== */
.pt-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.pt-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.pt-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.pt-grid-6 { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }
.pt-grid-2 img, .pt-grid-3 img,
.pt-grid-4 img, .pt-grid-6 img {
  width: 100%; height: 220px;
  object-fit: cover; display: block;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform .4s ease;
}
.pt-grid-2 img:hover, .pt-grid-3 img:hover,
.pt-grid-4 img:hover, .pt-grid-6 img:hover { transform: scale(1.03); }

@media (max-width: 768px) {
  .pt-grid-2 { grid-template-columns: repeat(2,1fr); }
  .pt-grid-3 { grid-template-columns: 1fr; }
  .pt-grid-3 img { height: 200px; }
  .pt-grid-4 { grid-template-columns: repeat(2,1fr); }
  .pt-grid-4 img, .pt-grid-6 img { height: 160px; }
  .pt-grid-6 { grid-template-columns: repeat(3,1fr); }
}

/* ==================== SECTION MODIFIERS ==================== */
.pt-section--alt { background-color: var(--ocean-mist, #f0f9f9); }

/* ==================== EFFECTS (Uiverse.io inspired) ==================== */

/* --- Card shine sweep on hover --- */
.pt-card { position: relative; overflow: hidden; }
.pt-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.4) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .6s cubic-bezier(.55,0,.1,1);
  pointer-events: none;
}
.pt-card:hover::after { transform: translateX(100%); }

/* --- Card link arrow slide --- */
.pt-card__link {
  position: relative;
  transition: color .3s;
}
.pt-card__link::after {
  content: ' →'; display: inline-block;
  transition: transform .3s cubic-bezier(.55,0,.1,1);
}
.pt-card:hover .pt-card__link::after { transform: translateX(4px); }

/* --- 2col image zoom on hover --- */
.pt-2col__img img {
  transition: transform .6s cubic-bezier(.55,0,.1,1);
}
.pt-2col__img:hover img { transform: scale(1.04); }

/* --- Photo grid blue ring on hover --- */
.pt-grid-2 img, .pt-grid-3 img,
.pt-grid-4 img, .pt-grid-6 img {
  transition: transform .4s ease, box-shadow .4s ease;
}
.pt-grid-2 img:hover, .pt-grid-3 img:hover,
.pt-grid-4 img:hover, .pt-grid-6 img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 3px rgba(45,164,168,.3), 0 0 16px rgba(45,164,168,.15);
}

/* --- Image pair hover --- */
.pt-img-pair img {
  transition: transform .4s ease, box-shadow .4s ease;
}
.pt-img-pair img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(45,164,168,.3), 0 0 16px rgba(45,164,168,.15);
}

/* --- Spec table row hover --- */
.pt-spec tr {
  transition: background-color .3s;
}
.pt-spec tr:hover {
  background-color: rgba(45,164,168,.04);
}
.pt-spec tr:hover th {
  color: var(--ocean-dark, #0e4c55);
}

/* --- Accordion smooth open (max-height) --- */
.pt-accordion__a {
  display: block; max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.55,0,.1,1), padding .4s;
  padding: 0;
}
.pt-accordion__item.is-open .pt-accordion__a {
  max-height: 600px;
  padding: 0 0 20px;
}

/* --- View more link arrow --- */
.tp-sec__more {
  position: relative;
}
.tp-sec__more::after {
  content: ' →'; display: inline-block;
  transition: transform .3s cubic-bezier(.55,0,.1,1);
}
.tp-sec__more:hover::after { transform: translateX(4px); }
