﻿/* ============================================
     PLACE DETAIL — BOOKING-FOCUSED LAYOUT
     ============================================ */

  /* Top container spacing */
  .pd-container-top { padding-top: 24px; }

  /* Gallery single-image variant */
  .pd-gallery-single { grid-template-columns: 1fr; }

  /* Breadcrumb */
  .pd-breadcrumb { font-size: 13px; color: #6b7280; }
  .pd-breadcrumb a { color: #6b7280; text-decoration: none; }
  .pd-breadcrumb a:hover { color: #e94560; }
  .pd-breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

  /* Header */
  .pd-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 12px; }
  .pd-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary, #1a1a2e); margin: 0; }
  .pd-meta { display: flex; gap: 16px; margin-top: 8px; font-size: 14px; color: #6b7280; flex-wrap: wrap; align-items: center; }
  .pd-rating { color: #f59e0b; font-weight: 600; }
  .pd-price-badge { text-align: right; flex-shrink: 0; }
  .pd-price-from { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
  .pd-price { font-size: 32px; font-weight: 800; color: #e94560; line-height: 1.1; }
  .pd-price-unit { font-size: 13px; color: #6b7280; font-weight: 400; }

  /* Gallery */
  .pd-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-top: 24px; border-radius: 16px; overflow: hidden; max-height: 400px; }
  .pd-gallery-main { overflow: hidden; }
  .pd-gallery-main img { width: 100%; height: 400px; object-fit: cover; display: block; transition: transform 500ms ease; }
  .pd-gallery-main img:hover { transform: scale(1.03); }
  .pd-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
  .pd-gallery-side img { width: 100%; height: 196px; object-fit: cover; display: block; transition: transform 500ms ease; }
  .pd-gallery-side img:hover { transform: scale(1.05); }
  .pd-gallery-empty { background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 14px; height: 400px; border-radius: 16px; margin-top: 24px; }

  /* Two-column grid */
  .pd-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; margin-top: 32px; align-items: start; }

  /* Main content sections */
  .pd-section { margin-bottom: 40px; }
  .pd-section-title { font-size: 20px; font-weight: 700; color: var(--text-primary, #1a1a2e); margin: 0 0 16px; }
  .pd-description { font-size: 15px; line-height: 1.8; color: #374151; }
  .pd-details-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #f3f4f6; }
  .pd-detail-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4b5563; }
  .pd-detail-item a { color: #e94560; text-decoration: none; font-weight: 500; }
  .pd-detail-item a:hover { text-decoration: underline; }

  /* Price comparison card (sidebar) */
  .pd-price-card { background: #fff; border: 2px solid #e5e7eb; border-radius: 16px; padding: 24px; position: sticky; top: 80px; }
  .pd-price-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
  .pd-price-card .pd-price-sub { font-size: 13px; color: #6b7280; margin: 0 0 20px; }
  .pd-price-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f3f4f6; gap: 12px; }
  .pd-price-row:last-of-type { border-bottom: none; }
  .pd-price-row.best { background: #f0fdf4; margin: 0 -24px; padding: 12px 24px; border-radius: 8px; border: 1px solid #bbf7d0; }
  .pd-platform { font-size: 14px; font-weight: 600; color: #1f2937; flex: 1; }
  .pd-amount { font-size: 18px; font-weight: 800; color: #1f2937; white-space: nowrap; }
  .pd-book-btn { padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; background: #e94560; color: #fff; text-decoration: none; white-space: nowrap; display: inline-block; transition: opacity 200ms; }
  .pd-book-btn:hover { opacity: 0.9; color: #fff; }
  .pd-price-row:not(.best) .pd-book-btn { background: #fff; color: #e94560; border: 1px solid #e94560; }
  .pd-price-row:not(.best) .pd-book-btn:hover { background: #fef2f4; }
  .pd-savings { text-align: center; margin-top: 16px; font-size: 14px; font-weight: 600; color: #10b981; background: #f0fdf4; padding: 10px; border-radius: 8px; }
  .pd-no-prices { text-align: center; color: #9ca3af; font-size: 14px; padding: 20px 0; }

  /* Amenities */
  .pd-amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .pd-amenity { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; padding: 10px; background: #f9fafb; border-radius: 8px; }
  .pd-amenity-icon { color: #10b981; font-weight: 700; flex-shrink: 0; }

  /* Map */
  .pd-map { width: 100%; height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; background: #f3f4f6; }
  .pd-map iframe { width: 100%; height: 100%; border: none; }
  .pd-map-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #9ca3af; font-size: 14px; }
  .pd-address { font-size: 14px; color: #4b5563; margin-top: 12px; }
  .pd-address a { color: #e94560; text-decoration: none; font-weight: 500; margin-left: 8px; }
  .pd-address a:hover { text-decoration: underline; }

  /* Reviews */
  .pd-reviews-box { display: flex; align-items: center; gap: 24px; padding: 24px; background: #f9fafb; border-radius: 12px; }
  .pd-score { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #e94560, #ff6b81); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
  .pd-score-num { font-size: 24px; font-weight: 800; line-height: 1; }
  .pd-score-max { font-size: 10px; opacity: 0.8; }
  .pd-score-info { flex: 1; }
  .pd-score-label { font-size: 18px; font-weight: 700; color: #1f2937; }
  .pd-score-count { font-size: 14px; color: #6b7280; margin-top: 2px; }
  .pd-reviews-note { font-size: 13px; color: #9ca3af; margin-top: 12px; }

  /* Related */
  .pd-related { margin-top: 48px; margin-bottom: 48px; }
  .pd-related-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }
  .pd-related-scroll::-webkit-scrollbar { height: 4px; }
  .pd-related-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
  .pd-related-card { min-width: 260px; max-width: 280px; flex-shrink: 0; scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; text-decoration: none; color: inherit; transition: box-shadow 300ms, transform 300ms; }
  .pd-related-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
  .pd-related-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
  .pd-related-card-body { padding: 14px 16px 18px; }
  .pd-related-card-name { font-size: 15px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
  .pd-related-card-loc { font-size: 12px; color: #9ca3af; margin-bottom: 10px; }
  .pd-related-card-footer { display: flex; justify-content: space-between; align-items: center; }
  .pd-related-card-price { font-size: 15px; font-weight: 800; color: #10b981; }
  .pd-related-card-rating { font-size: 12px; font-weight: 700; background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 999px; }

  /* Responsive */
  @media (max-width: 768px) {
    .pd-grid { grid-template-columns: 1fr; }
    .pd-price-card { position: static !important; }
    .pd-gallery { grid-template-columns: 1fr; max-height: none; }
    .pd-gallery-main img { height: 260px; }
    .pd-gallery-side { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .pd-gallery-side img { height: 130px; }
    .pd-header { flex-direction: column; }
    .pd-price-badge { text-align: left; }
    .pd-amenities { grid-template-columns: repeat(2, 1fr); }
    .pd-reviews-box { flex-direction: column; text-align: center; }
    .pd-related-card { min-width: 220px; }
    .pd-title { font-size: 22px; }
    .pd-price { font-size: 26px; }
  }
