/*
 * Show B&B v0.4.4q - room frontend visual layout
 * Scope: rooms.php and detail.php display only.
 * No booking/payment/OTA logic.
 */
.showbnb-room-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: #2f332f;
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}
.showbnb-room-hero {
  border-radius: 28px;
  padding: 34px 28px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #eef6ea 0%, #ffffff 68%);
  border: 1px solid #e2e8df;
}
.showbnb-room-hero__eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  color: #63845d;
  letter-spacing: .08em;
}
.showbnb-room-hero h1,
.showbnb-room-hero h2 {
  margin: 0 0 12px;
  color: #2f4f35;
  line-height: 1.25;
}
.showbnb-room-hero p {
  margin: 0;
  line-height: 1.8;
  font-size: 1.03rem;
}
.showbnb-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.showbnb-room-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(47, 79, 53, .08);
}
.showbnb-room-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2e9;
}
.showbnb-room-cover--empty {
  min-height: 230px;
  background: linear-gradient(135deg, #eef2e9, #f8faf7);
}
.showbnb-room-body {
  padding: 18px;
}
.showbnb-room-title {
  margin: 0 0 8px;
  color: #2f4f35;
  font-size: 1.28rem;
  line-height: 1.35;
}
.showbnb-room-summary {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.7;
}
.showbnb-room-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.showbnb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 11px;
  background: #eef6ea;
  color: #2f4f35;
  font-size: .9rem;
  line-height: 1.2;
}
.showbnb-price-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid #edf0ec;
}
.showbnb-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  color: #374151;
}
.showbnb-price-row strong {
  color: #2f4f35;
  white-space: nowrap;
}
.showbnb-price-original strong {
  color: #8b8f88;
  text-decoration: line-through;
}
.showbnb-price-holiday strong {
  color: #b45309;
}
.showbnb-price-newyear strong {
  color: #b91c1c;
}
.showbnb-booking-links,
.showbnb-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.showbnb-booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #d1d5db;
  color: #2f4f35;
  background: #fff;
}
.showbnb-booking-btn:hover,
.showbnb-booking-btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}
.showbnb-booking-btn--primary {
  background: #2f4f35;
  color: #fff;
  border-color: #2f4f35;
}
.showbnb-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}
.showbnb-detail-cover {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2e9;
  box-shadow: 0 12px 30px rgba(47, 79, 53, .1);
}
.showbnb-detail-panel {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(47, 79, 53, .08);
}
.showbnb-detail-title {
  margin: 0 0 10px;
  color: #2f4f35;
  line-height: 1.3;
}
.showbnb-detail-summary {
  margin: 0 0 14px;
  line-height: 1.75;
  color: #4b5563;
}
.showbnb-room-section {
  margin-bottom: 30px;
}
.showbnb-section-title {
  border-left: 6px solid #7a9b69;
  padding-left: 12px;
  margin: 0 0 16px;
  color: #2f4f35;
  line-height: 1.35;
}
.showbnb-room-content {
  line-height: 1.85;
  color: #2f332f;
}
.showbnb-room-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.showbnb-room-content table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}
.showbnb-info-card {
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.showbnb-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.showbnb-soft-notice {
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #7c2d12;
}
.showbnb-amenity-badges,
.showbnb-amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.showbnb-amenity-badge,
.showbnb-amenity-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef6ea;
  color: #2f4f35;
}
.showbnb-room-empty {
  border-radius: 20px;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
@media (max-width: 860px) {
  .showbnb-detail-layout { grid-template-columns: 1fr; }
  .showbnb-detail-panel { position: static; }
}
@media (max-width: 560px) {
  .showbnb-room-page { padding: 16px 12px 36px; }
  .showbnb-room-hero { padding: 24px 18px; border-radius: 22px; }
  .showbnb-room-grid { grid-template-columns: 1fr; }
  .showbnb-booking-links,
  .showbnb-room-actions { flex-direction: column; }
  .showbnb-booking-btn { width: 100%; }
  .showbnb-price-row { align-items: baseline; }
}

/* v0.4.4r room detail gallery: existing backend multi-image display */
.showbnb-room-gallery {
  width: 100%;
}
.showbnb-gallery-main {
  position: relative;
}
.showbnb-gallery-main-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}
.showbnb-gallery-main .showbnb-detail-cover {
  display: block;
}
.showbnb-gallery-caption {
  margin: 10px 6px 0;
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.65;
}
.showbnb-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.showbnb-gallery-thumb {
  flex: 0 0 92px;
  width: 92px;
  height: 72px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2e9;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(47,79,53,.08);
}
.showbnb-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showbnb-gallery-thumb.is-active {
  border-color: #2f4f35;
}
.showbnb-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(14, 23, 18, .88);
}
.showbnb-gallery-lightbox.is-open {
  display: flex;
  flex-direction: column;
}
.showbnb-gallery-lightbox img {
  max-width: min(1180px, 94vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  background: #fff;
}
.showbnb-gallery-lightbox p {
  max-width: min(900px, 92vw);
  margin: 12px 0 0;
  color: #fff;
  text-align: center;
  line-height: 1.7;
}
.showbnb-gallery-lightbox-close {
  position: fixed;
  right: 20px;
  top: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #1f2937;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 560px) {
  .showbnb-gallery-thumb {
    flex-basis: 82px;
    width: 82px;
    height: 64px;
  }
  .showbnb-gallery-lightbox {
    padding: 14px;
  }
  .showbnb-gallery-lightbox img {
    max-height: 76vh;
  }
}
