/* Destinations Page Styles */

/* Map Section */
.dest-map-section {
  padding: 80px 0;
  background: var(--cream);
}

.map-container {
  display: grid;
  grid-template-columns: 1.8fr 280px;
  gap: 48px;
  align-items: flex-start;
  margin-top: 40px;
}

.china-map-wrapper {
  position: relative;
  width: 100%;
}

.china-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.map-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border: 4px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.map-marker:hover {
  background: var(--navy);
  transform: translate(-50%, -50%) scale(1.3);
}

.map-marker::after {
  content: attr(data-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  margin-bottom: 8px;
}

.map-marker:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Beijing and Hong Kong markers always show label */
.map-marker.beijing::after,
.map-marker.hongkong::after {
  opacity: 1;
  visibility: visible;
}

/* Hong Kong marker label smaller to avoid overlapping */
.map-marker.hongkong::after {
  font-size: 0.6rem;
  padding: 3px 8px;
}

.map-marker::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  margin-bottom: 2px;
}

.map-marker:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Marker positions based on china-map.png (1882 × 1415) */
.map-marker.beijing   { left: 56.9%; top: 42.0%; }
.map-marker.shanghai  { left: 67.1%; top: 56.7%; }
.map-marker.xian      { left: 48.6%; top: 48.6%; }
.map-marker.chengdu   { left: 42.0%; top: 58.8%; }
.map-marker.guilin    { left: 51.0%; top: 71.4%; }
.map-marker.zhangjiajie { left: 51.3%; top: 62.2%; }
.map-marker.yunnan    { left: 41.7%; top: 72.8%; }
.map-marker.tibet     { left: 26.8%; top: 57.6%; }
.map-marker.dunhuang  { left: 30.6%; top: 39.2%; }
.map-marker.hongkong  { left: 56.3%; top: 77.5%; }

/* Regions List */
.regions-list {
  background: var(--white);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.regions-list h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.region-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.region-item:last-child {
  border-bottom: none;
}

.region-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.region-cities {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: right;
}

/* Dest Hero */
.dest-hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.dest-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dest-hero-gradient {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dest-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(35, 55, 100, 0.55) 0%, transparent 70%),
    linear-gradient(160deg, rgba(26, 39, 68, 0.7) 0%, rgba(42, 61, 110, 0.5) 40%, rgba(61, 90, 138, 0.3) 65%, rgba(122, 90, 42, 0.4) 100%);
}

.dest-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.6) 39px,
      rgba(255,255,255,0.6) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.6) 39px,
      rgba(255,255,255,0.6) 40px
    );
}

.dest-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.dest-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.dest-hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
}

.dest-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

/* Dest List Section */
.dest-list-section {
  padding: 80px 0;
  background: var(--beige);
}

.dest-list-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.dest-list-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.dest-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.dest-list-visual {
  height: 280px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dest-list-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,68,0.3) 0%, transparent 60%);
}

.dest-list-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dest-list-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
}

.dest-list-highlights {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 8px;
}

.dest-list-bestfor {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.dest-list-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.dest-list-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dest-list-cta .arrow {
  transition: transform 0.3s ease;
}

.dest-list-card:hover .arrow {
  transform: translateX(6px);
}

/* Dest CTA */
.dest-cta {
  padding: 100px 0;
  background: var(--navy);
  text-align: center;
  color: var(--white);
}

.dest-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.dest-cta h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.dest-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

/* Destination images for list page */
.dest-beijing   { background-image: url('../images/dest-beijing.jpg'); }
.dest-shanghai  { background-image: url('../images/dest-shanghai.jpg'); }
.dest-xian      { background-image: url('../images/dest-xian.jpg'); }
.dest-chengdu   { background-image: url('../images/dest-chengdu.jpg'); }
.dest-guilin    { background-image: url('../images/dest-guilin.jpg'); }
.dest-zhangjiajie { background-image: url('../images/dest-zhangjiajie.jpg'); }
.dest-yunnan    { background-image: url('../images/dest-yunnan.jpg'); }
.dest-tibet     { background-image: url('../images/dest-tibet.jpg'); }
.dest-dunhuang  { background-image: url('../images/dest-silkroad.jpg'); }

/* Responsive */
@media (max-width: 860px) {
  .map-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .regions-list {
    order: -1;
  }
  
  .china-map-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .dest-hero h1 {
    font-size: 2.2rem;
  }
  
  .dest-list-card {
    grid-template-columns: 1fr;
  }
  
  .dest-list-visual {
    height: 200px;
  }
  
  .dest-list-info {
    padding: 28px;
  }
  
  .dest-list-info h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 560px) {
  .dest-hero {
    padding: 100px 0 60px;
  }
  
  .dest-hero h1 {
    font-size: 1.8rem;
  }
  
  .dest-list-section {
    padding: 60px 0;
  }
  
  .dest-list-grid {
    gap: 24px;
  }
}
