/* ===== Base Layout ===== */
.museum-detail {
  /*background: #f9fafb;*/
  background-color: #f9f6f1;
  color: #2d2d2d;
  line-height: 1.6;
}

.museum-layout > * {
  min-width: 0; /* prevent overflow */
}

/* ===== Breadcrumb ===== */
.breadcrumb-container {
  max-width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
  box-sizing: border-box;
}
.breadcrumb {
  font-size: 0.9rem;
  max-width: 1140px;
  margin: 0 auto;
  color: #666;
}
.breadcrumb a {
  color: #e17101;
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumb a:hover {
  color: #92400e;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 420px;
  background: #1f2937;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 6s ease;
}
.hero:hover img {
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.hero-content {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1140px;
  width: 100%;
  padding: 0 1rem;
  color: #fff;
  box-sizing: border-box;
}

.hero-action {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 8px;
  padding: 0.6rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.hero-action:hover {
  background: #fff;
}
.hero-action .icon {
  stroke: #374151;
  width: 20px;
  height: 20px;
}
.museum-category {
  display: inline-block;
  background: #e17101;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
}
.museum-category a {
   text-decoration: none;
   color: #fff;
}
.museum-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.museum-meta {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 1rem;
  opacity: 0.9;
  color: #fff;
  flex-wrap: wrap;
}
.museum-rating, .museum-location {
    color: #fff;
}
.hero-right, .hero-left {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.museum-meta .icon {
  width: 18px;
  height: 18px;
  margin-right: 0.3rem;
  vertical-align: middle;
  stroke: #f59e0b;
}

.museum-rating svg {
   stroke: #f59e0b;
   fill: #f59e0b; 
}

.museum-meta .icon1 {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* bookmark and share icon */

.hero-action.active .icon1 {
  stroke: #f59e0b;
  fill: #f59e0b;
}

/* ===== Layout ===== */
.museum-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1140px;
  margin: 2rem auto;
  padding: 0 1rem;
}
@media (max-width: 992px) {
  .museum-layout {
    grid-template-columns: 1fr;
  }
  .museum-sidebar {
    position: static; /* disable sticky on small screens */
    top: auto;
  }
}

@media (max-width: 768px) {
    .museum-title {
  font-size: 1.3rem;
    }
    .museum-meta {
        align-items: center;
    }
    .museum-meta span {
       font-size: 0.9rem; 
    }
    
    .museum-meta .icon1 {
      width: 18px;
     height: 18px;
     vertical-align: middle;
    }
   .hero-right {
    gap: 0.8rem;
   }
   .rating-summary {
      flex-direction: column;
  }
  .avatar img {
      width: 28px !important;
      height: 28px !important;
  }
  .review-stars svg {
      width: 15px;
      height: 15px;
  }
  .review-header {
      font-size: 13px;
  }
  .review p {
      font-size: 0.9rem !important;
  } 
  .museum-content .card h2 {
      font-size: 1.2rem;
  }
  .museum-content .card p, .museum-content .card ul, .museum-sidebar .card p {
      font-size: 0.95rem;
      line-height: 1.6;
  }
  .toast-container .toast span {
      font-size: 0.8rem;
  }
  .reviews-header h2, .museum-sidebar .card h3 {
      font-size: 1.2rem !important;
  }
  .reviews a, .breadcrumb {
      font-size: 12px !important;
  }
}

/* ===== Card Style ===== */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/*.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}*/
.card h2, .card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1c1917;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Lists ===== */
.highlights ul,
.facilities ul,
.attractions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.highlights li,
.facilities li,
.attractions li {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: #f9fafb;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.highlights li:hover,
.facilities li:hover,
.attractions li:hover {
  background: #fff7ed;
}

/* ===== Lucide Icons ===== */
.icon {
  width: 18px;
  height: 18px;
  stroke: #b45309;
  vertical-align: middle;
  padding-right: 3px;
  flex-shrink: 0;
  transition: transform 0.3s ease, stroke 0.3s ease;
}
li:hover .icon,
.reviews button:hover .icon,
.reviews a:hover .icon {
  transform: scale(1.2);
  stroke: #92400e;
}

/* ===== Reviews ===== */
.reviews h2 {
  margin-bottom: 1rem;
}
.reviews button,
.reviews a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: #b45309;
  color: #fff;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #92400e;
  transform: scale(1.05);
}
.btn-secondary {
  background: #e5e5e5;
  color: #333;
}
.btn-secondary:hover {
  background: #d4d4d4;
}
.review {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}
.review strong {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
  color: #111;
}
.review p {
  margin: 0;
  color: #555;
}

/* new style for review cards */
/* Header + notice */
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.notice-inline {
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  background: #f9fafb;
  padding: .35rem .65rem;
  border-radius: 6px;
}

/* Summary */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.rating-overall {
  text-align: center;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.rating-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: #111827;
}
.stars {
  display: flex;
  gap: .25rem;
  margin-bottom: .5rem;
}
.rating-star {
  width: 22px;
  height: 22px;
  stroke: #d1d5db;
  transition: stroke .2s, transform .2s;
  position: relative;
}
.rating-star.filled {
  stroke: #f59e0b;
  fill: #f59e0b;
}
.rating-star.half {
  stroke: #f59e0b;
}
.rating-star.half::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: #f59e0b;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/></svg>") no-repeat center / contain;
}
.rating-bars .bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: .9rem;
}
.bar-track {
  flex: 1 0 0;
  height: 10px;
  width: 100%;
  min-width: 200px;
  background: #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width .4s ease;
}

/* List items */
.review-list .review {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: .25rem;
  font-size: 0.9rem;
}
.review-header .author {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.review p {
    margin-top: 10px;
}
.avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.avatar-fallback {
  width: 28px;
  height: 28px;
  stroke: #6b7280;
}
.review-stars {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .5rem;
}
.review-stars svg {
    width: 18px;
    height: 18px;
}
.review-stars .rating-float {
  font-size: .85rem;
  color: #6b7280;
}

/* View all -> scroll */
.review-list.expanded {
  max-height: 620px;
  overflow-y: auto;
  padding-right: .5rem;
}
#viewAllReviewsBtn {
  margin-top: 20px;
  border-radius: 6px;
  padding: .5rem 1rem;
}

/* Form */
.review-form {
  margin-top: 1.5rem;
}
.review-form[hidden] {
  display: none;
}
.review-form .stars.selectable {
  display: flex;
  gap: .4rem;
  align-items: center;
  margin-bottom: 1rem;
}
.review-form .rating-star {
  cursor: pointer;
}
.review-form .rating-star:hover {
  transform: scale(1.15);
  stroke: #f59e0b;
}
.selected-rating {
  margin-left: .5rem;
  font-weight: 600;
  color: #92400e;
}
.review-form textarea {
  width: 100%;
  padding: .75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 1rem;
  max-height: 150px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}
.file-hint {
  font-size: .85rem;
  color: #6b7280;
}

/* Attachments row: horizontal scroll */
.attachments-row {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .25rem 0;
  margin-top: 10px;
}
.attachment-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.attachment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.attachment-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.attachment-item.file .icon {
  width: 20px;
  height: 20px;
  stroke: #92400e;
}
.attachments-row::-webkit-scrollbar {
  height: 8px;
}
.attachments-row::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 8px;
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast {
  min-width: 200px;
  padding: .75rem 1rem;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: opacity .3s ease, transform .3s ease;
}

.toast span { color: #fff; }
.toast.success { background: #15803d; color: #fff; }
.toast.error   { background: #b91c1c; color: #fff; }
.toast .icon {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* ===== Sidebar (Sticky) ===== */
.museum-sidebar {
  position: sticky;
  top: 100px; /* adjust based on header height */
  align-self: start;
}
.museum-sidebar .card {
  margin-bottom: 1.5rem;
}
.museum-sidebar a {
  text-decoration: none;
  color: #44403c;
  transition: color 0.3s ease;
}
.museum-sidebar a:hover {
  color: #92400e;
}

.mi-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.mi-info-icon {
  width: 18px;
  height: 18px;
  color: #b45309; /* amber-700 */
  flex-shrink: 0;
  margin-top: 4px;
  vertical-align: middle;
}

.mi-info-content {
  display: flex;
  flex-direction: column;
}

.mi-info-title {
  font-size: 14px;
  font-weight: 600;
  color: #44403c; /* stone-700 */
  margin-bottom: 2px;
}

.mi-info-text {
  font-size: 15px;
  color: #57534e; /* stone-600 */
}

/* Responsive */
@media (max-width: 480px) {
  .mi-info-item {
    gap: 10px;
  }
  .mi-info-title {
    font-size: 13px;
  }
  .mi-info-text {
    font-size: 14px;
  }
}

.mi-btn-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 10px 20px;
  background: #b45309; /* amber-700 */
  color: #fff !important;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mi-btn-direction:hover {
  background: #92400e; /* amber-800 */
}

.mi-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #fff;
}

/* ===== Ad Space ===== */
.ad-space {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 12px;
  padding: 1.5rem;
}

/* ===== Related Museums ===== */
.related-museums {
  max-width: 1140px;
  margin: 0rem auto;
  padding: 3rem 0rem;
}
.related-museums h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #1c1917;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 1.5rem;
}
.related-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.related-card:hover img {
  transform: scale(1.05);
}
.related-info {
  padding: 0rem 1rem 1rem;
}
.related-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
  transition: color 0.3s ease;
}
.related-card:hover h3 {
  color: #92400e;
}
.related-card .meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #666;
}
.related-card .rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #92400e;
}