/* =============================================
   TOP 10 QUY NHƠN – DETAIL PAGE STYLES
   ============================================= */

/* ---- ARTICLE HERO ---- */
.article-hero {
  position: relative;
  height: 440px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 44px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { opacity: 0.5; }
.hero-content h1 {
  font-size: 30px;
  font-weight: 800;
  color: white;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin-bottom: 14px;
  max-width: 820px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  flex-wrap: wrap;
}
.hero-badge {
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: white;
  text-transform: uppercase;
}
.badge-khachsan-h { background: #e74c3c; }
.badge-amthuc-h   { background: #e67e22; }
.badge-dulich-h   { background: #27ae60; }
.badge-congty-h   { background: #3498db; }
.badge-dichvu-h   { background: #9b59b6; }

/* ---- DETAIL LAYOUT ---- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 32px;
  padding: 36px 0 56px;
  align-items: start;
}

/* ---- MAIN CONTENT ---- */
.detail-content {
  background: white;
  border-radius: 14px;
  padding: 38px 42px;
  box-shadow: 0 3px 18px rgba(0,0,0,0.07);
}
.detail-content h2 {
  font-size: 21px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid #c0392b;
}
.detail-content h2:first-of-type { margin-top: 20px; }
.detail-content h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #c0392b;
  margin: 18px 0 7px;
}
.detail-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 14px;
}
.detail-content ul, .detail-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.detail-content li {
  font-size: 14.5px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 7px;
}
.detail-content strong { color: #1a1a1a; font-weight: 700; }
.detail-content img {
  width: 100%;
  border-radius: 12px;
  margin: 22px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  object-fit: cover;
  max-height: 360px;
}

/* ---- BACK BUTTON ---- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c0392b;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 28px;
  transition: gap 0.2s, color 0.2s;
  padding: 7px 14px;
  background: #fef5f4;
  border-radius: 6px;
  border: 1px solid rgba(192,57,43,0.2);
}
.back-btn:hover { gap: 12px; color: #a93226; background: #fde8e8; }
.back-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: linear-gradient(135deg, #fef9f0, #fff8f0);
  border-left: 4px solid #e67e22;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.highlight-box.blue {
  background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
  border-left-color: #3498db;
}
.highlight-box.green {
  background: linear-gradient(135deg, #f0fff7, #e8faf2);
  border-left-color: #27ae60;
}
.highlight-box.red {
  background: linear-gradient(135deg, #fff5f5, #fde8e8);
  border-left-color: #c0392b;
}
.highlight-box p { margin: 0; font-size: 14px; color: #555; line-height: 1.65; }
.highlight-box strong { color: #c0392b; }

/* ---- PLACE CARDS GRID ---- */
.place-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.place-card {
  background: #fafafa;
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 18px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative;
}
.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: #c0392b;
}
.place-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c0392b;
  color: white;
  font-size: 11px;
  font-weight: 800;
  width: 26px; height: 26px;
  border-radius: 50%;
  margin-bottom: 8px;
}
.rating { color: #FFD700; font-size: 13px; margin-bottom: 5px; letter-spacing: 1px; }
.place-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 7px;
  line-height: 1.4;
}
.place-card p {
  font-size: 12.5px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid #bbf7d0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.tag.green { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.tag.red   { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.tag.blue  { background: #f0f9ff; color: #0284c7; border-color: #bae6fd; }

.map-dir-btn {
  transition: all 0.2s ease !important;
}
.map-dir-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ---- INFO TABLE ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.info-table th {
  background: #c0392b;
  color: white;
  padding: 11px 16px;
  text-align: left;
  font-weight: 700;
}
.info-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #f5f5f5;
  color: #444;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) td { background: #fafafa; }
.info-table tr:hover td { background: #fef5f4; }

/* ---- SIDEBAR ---- */
.detail-sidebar { position: sticky; top: 128px; }

.sidebar-widget {
  background: white;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 3px 18px rgba(0,0,0,0.07);
  margin-bottom: 20px;
  overflow: hidden;
}
.widget-title {
  font-size: 12.5px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  padding: 13px 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.related-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  align-items: flex-start;
  transition: background 0.15s;
}
.related-item:hover { background: #fef5f4; }
.related-item:last-child { border-bottom: none; }
.related-thumb {
  flex: 0 0 72px;
  height: 56px;
  border-radius: 7px;
  overflow: hidden;
  display: block;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-item:hover .related-thumb img { transform: scale(1.06); }
.related-info { flex: 1; }
.related-info h5 {
  font-size: 12.5px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.45;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.related-item:hover .related-info h5 { color: #c0392b; }
.related-info span { font-size: 11px; color: #aaa; font-weight: 500; }

/* ---- CONTACT BOX ---- */
.contact-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: white;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-box::before {
  content: '';
  position: absolute;
  top: -30px; right: -20px;
  width: 100px; height: 100px;
  background: rgba(255,215,0,0.07);
  border-radius: 50%;
}
.contact-box h4 { font-size: 15px; margin-bottom: 8px; color: #FFD700; font-weight: 800; position: relative; }
.contact-box p { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-bottom: 18px; line-height: 1.6; position: relative; }
.contact-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: white;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.contact-phone:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(192,57,43,0.5); }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .place-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .article-hero { height: 320px; background-attachment: scroll; }
  .hero-content h1 { font-size: 21px; }
  .detail-content { padding: 22px 18px; }
  .place-grid { grid-template-columns: 1fr; }
}

/* ---- LIVE USER REVIEW FORM STYLES ---- */
.add-review-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-top: 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.add-review-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .review-form-row { grid-template-columns: 1fr; }
}
.review-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.review-form-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}
.review-form-group input[type="text"],
.review-form-group textarea {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}
.review-form-group input[type="text"]:focus,
.review-form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.star-rating-select {
  display: flex;
  gap: 6px;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
}
.star-rating-select span {
  color: #cbd5e1;
  transition: color 0.15s, transform 0.15s;
}
.star-rating-select span:hover,
.star-rating-select span.active {
  color: #f59e0b;
  transform: scale(1.15);
}
.submit-review-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.submit-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
