/* ========================================================
   123 LUXURY TRAVELS - BESPOKE EDITORIAL DOSSIER STYLES
   Royal Heritage Concertina Folio System (V3 Watercolor Edition)
   Palette: Warm Ivory Linen Parchment (#FAF7F2), Charcoal Line, Burgundy Seals
   ======================================================== */

/* Fonts loaded non-blocking in document head */

:root {
  --dossier-bg: #FAF7F2;
  --dossier-paper: #FAF7F2;
  --dossier-line: #4A443D;
  --dossier-red-seal: #8B2626;
  --dossier-hollow-dot: #544D45;
  --dossier-text-primary: #1C1917;
  --dossier-text-secondary: #706B63;
  --dossier-text-watermark: rgba(160, 136, 112, 0.13);
  --dossier-font-serif: 'Noto Serif TC', 'Cinzel', 'Source Han Serif', serif;
  --dossier-font-script: 'Pinyon Script', cursive, serif;
}

/* CONTAINER & WRAPPER */
.dossier-suite-wrapper {
  background-color: #0E1015;
  padding: 30px 16px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dossier-suite-header {
  max-width: 540px;
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
  color: #FFFFFF;
}

.dossier-suite-tag {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.dossier-suite-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.dossier-suite-desc {
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.5;
}

.dossier-suite-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-dossier-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-dossier-tool:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.btn-dossier-tool.primary {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.btn-dossier-tool.accent-editor {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #FFFFFF;
  font-weight: 700;
}

#dossierMountContainer {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* DOSSIER SCROLL / CONCERTINA STREAM */
.dossier-stream-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 540px;
  gap: 0;
}

/* SINGLE DOSSIER CARD (Standard 1:2 Aspect Ratio: 540 x 1080) */
.dossier-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  width: 540px;
  height: 1080px;
  background-color: var(--dossier-paper);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, rgba(250, 247, 242, 0.96) 100%);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  user-select: none;
  box-sizing: border-box;
}

/* Responsive scaling for mobile devices */
@media screen and (max-width: 560px) {
  .dossier-card {
    max-width: 100vw;
    width: 100vw;
    height: 200vw; /* Strict 1:2 ratio */
  }
}

/* TOP HEADER */
.dossier-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.dossier-top-tick {
  width: 1px;
  height: 52px;
  background-color: var(--dossier-line);
}

.dossier-day-title {
  font-family: 'Cinzel', serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #2D2721;
  margin-top: 8px;
  text-transform: uppercase;
}

/* SCRIPT CALLIGRAPHY WATERMARK */
.dossier-script-watermark {
  position: absolute;
  font-family: var(--dossier-font-script);
  font-size: 78px;
  color: var(--dossier-text-watermark);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  line-height: 1;
  transform: rotate(-3deg);
}

/* SERPENTINE SVG OVERLAY */
.dossier-serpentine-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.serpentine-path {
  fill: none;
  stroke: var(--dossier-line);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.anchor-dot-red {
  fill: var(--dossier-red-seal);
  stroke: var(--dossier-paper);
  stroke-width: 1.5;
}

.anchor-dot-hollow {
  fill: var(--dossier-paper);
  stroke: var(--dossier-hollow-dot);
  stroke-width: 1.3;
}

/* ========================================================
   GENUINE HIGH-RESOLUTION ORGANIC WATERCOLOR MASKS
   Zero rigid rectangles, zero geometric circular avatars
   ======================================================== */

.dossier-photo-layer {
  position: absolute;
  background-size: cover;
  background-position: center;
  z-index: 3;
  pointer-events: none;
}

/* Specific focal adjustments for iconic landmarks */
.dossier-card[data-state="kl"] .photo-slot-3 {
  background-position: center 18% !important; /* Highlights iconic KLCC twin tower spires */
}

.dossier-card[data-state="kl"] .photo-slot-1 {
  background-position: center 30% !important; /* Highlights Putra Mosque dome */
}

.dossier-card[data-state="melaka"] .photo-slot-3 {
  background-position: center 40% !important; /* Highlights Straits Mosque sunset reflection */
}

/* 1. TOP HERO PHOTO: 4-SIDED SOFT FEATHER */

/* Template B (Melaka) */
.dossier-card.template-b .photo-slot-1 {
  left: 18px;
  top: 95px;
  width: 52%;
  height: 265px;
  mask-image: url('../assets/masks/brush_top_left.png');
  -webkit-mask-image: url('../assets/masks/brush_top_left.png');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  filter: contrast(1.03) saturate(1.05);
}

/* Template A (Penang / KL) */
.dossier-card.template-a .photo-slot-1 {
  right: 18px;
  top: 95px;
  width: 52%;
  height: 265px;
  mask-image: url('../assets/masks/brush_top_right.png');
  -webkit-mask-image: url('../assets/masks/brush_top_right.png');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  filter: contrast(1.03) saturate(1.05);
}

/* 2. MIDDAY FOOD & TEA PHOTO: 4-SIDED SOFT FEATHER */

/* Template B (On Right: Melaka Afternoon Tea) */
.dossier-card.template-b .photo-slot-2 {
  right: 22px;
  top: 405px;
  width: 230px;
  height: 200px;
  mask-image: url('../assets/masks/brush_food_halo.png');
  -webkit-mask-image: url('../assets/masks/brush_food_halo.png');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  filter: drop-shadow(0 12px 24px rgba(140, 120, 100, 0.20));
}

/* Template A (On Left: Penang Blue Mansion / KL Food) */
.dossier-card.template-a .photo-slot-2 {
  left: 22px;
  top: 405px;
  width: 230px;
  height: 200px;
  mask-image: url('../assets/masks/brush_food_halo.png');
  -webkit-mask-image: url('../assets/masks/brush_food_halo.png');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  filter: drop-shadow(0 12px 24px rgba(140, 120, 100, 0.20));
}

/* 3. EVENING / DUSK PHOTO: 4-SIDED SOFT FEATHER (NO HARD BOUNDARY) */

/* Template B (Melaka Mosque) */
.dossier-card.template-b .photo-slot-3 {
  left: 18px;
  bottom: 75px;
  width: 56%;
  height: 285px;
  mask-image: url('../assets/masks/brush_bottom_left.png');
  -webkit-mask-image: url('../assets/masks/brush_bottom_left.png');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  filter: contrast(1.04) saturate(1.08);
}

/* Template A (Penang Jetty / KLCC Towers) */
.dossier-card.template-a .photo-slot-3 {
  right: 18px;
  bottom: 75px;
  width: 56%;
  height: 285px;
  mask-image: url('../assets/masks/brush_bottom_right.png');
  -webkit-mask-image: url('../assets/masks/brush_bottom_right.png');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  filter: contrast(1.04) saturate(1.08);
}

/* ========================================================
   TYPOGRAPHY BLOCK WITH ZERO TEXT COLLISION
   Lines gracefully cradle the text pockets
   ======================================================== */

.dossier-text-block {
  position: absolute;
  z-index: 8;
  pointer-events: auto;
}

.text-time {
  font-family: 'Cinzel', var(--dossier-font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--dossier-text-primary);
  line-height: 1.1;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
  display: block;
}

.text-title {
  font-family: var(--dossier-font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--dossier-text-primary);
  line-height: 1.25;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.text-sub {
  font-family: var(--dossier-font-serif);
  font-size: 11px;
  color: var(--dossier-text-secondary);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Template B Text Coordinates (Melaka Reference) */
.dossier-card.template-b .text-slot-1 {
  left: 298px;
  top: 232px;
  width: 220px;
  text-align: left;
}

.dossier-card.template-b .text-slot-2 {
  left: 56px;
  top: 472px;
  width: 220px;
  text-align: left;
}

.dossier-card.template-b .text-slot-3 {
  right: 56px;
  top: 686px;
  width: 230px;
  text-align: right;
}

/* Template A Text Coordinates (Penang / KL) */
.dossier-card.template-a .text-slot-1 {
  left: 64px;
  top: 232px;
  width: 220px;
  text-align: left;
}

.dossier-card.template-a .text-slot-2 {
  right: 56px;
  top: 472px;
  width: 220px;
  text-align: right;
}

.dossier-card.template-a .text-slot-3 {
  left: 64px;
  top: 736px;
  width: 230px;
  text-align: left;
}

/* BOTTOM ARCHITECTURAL SKETCH WATERMARK */
.dossier-bottom-sketch {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24%;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* PRINT & HIGH RESOLUTION EXPORT */
@media print {
  body, .dossier-suite-wrapper {
    background: #FFFFFF !important;
    padding: 0 !important;
  }
  .dossier-suite-header, .dossier-suite-toolbar {
    display: none !important;
  }
  .dossier-card {
    box-shadow: none !important;
    page-break-after: always;
    break-after: page;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
  }
}
