:root {
  --merchant-green: #0c8b69;
  --merchant-green-dark: #087054;
  --merchant-gold: #d39a26;
  --merchant-ink: #173033;
  --merchant-muted: #747c78;
  --merchant-paper: #fffdfa;
  --merchant-canvas: #faf7f1;
  --merchant-line: #ece5d9;
  --merchant-shadow: 0 4px 16px rgba(66, 51, 24, .07);
}
* { box-sizing: border-box; }
html { background: #e9e6df; }
body { margin: 0; background: #e9e6df; color: var(--merchant-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.merchant-detail-shell { width: min(100%, 430px); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--merchant-canvas); box-shadow: 0 0 28px rgba(31, 28, 22, .12); }

.merchant-top-actions { position:-webkit-sticky;position:sticky; z-index: 25; top: 0; display: grid; min-height: 58px; padding: max(6px, env(safe-area-inset-top)) 14px 4px; grid-template-columns: 42px 1fr 42px 42px; gap: 5px; align-items: center; background: rgba(250, 247, 241, .93); -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px); }
.merchant-top-actions button { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.83); color: var(--merchant-ink); box-shadow: 0 3px 12px rgba(39,37,32,.07); cursor: pointer; }
.merchant-top-actions .ui-icon { width: 21px; height: 21px; }.merchant-top-actions button.active { background: #fff0ed; color: #d4584b; }
.merchant-detail-main { padding: 5px 14px calc(82px + env(safe-area-inset-bottom)); }

.merchant-identity { display: grid; padding: 5px 4px 12px; grid-template-columns: 92px 1fr; gap: 13px; align-items: center; }
.merchant-logo { display: flex; width: 92px; height: 100px; padding: 8px; align-items: center; flex-direction: column; justify-content: center; overflow: hidden; border: 1px solid #eee7dd; border-radius: 12px; background: var(--merchant-paper); color: #8d7346; box-shadow: var(--merchant-shadow); }.merchant-logo img { width: 100%; height: 100%; object-fit: contain; }.merchant-logo-icon { width: 34px; height: 34px; margin-bottom: 3px; }.merchant-logo strong { font-family: Georgia, serif; font-size: 20px; letter-spacing: .08em; text-align: center; overflow-wrap: anywhere; }.merchant-logo small { margin-top: 2px; font-family: Georgia, serif; font-size: 7px; letter-spacing: .18em; }
.merchant-title-copy { min-width: 0; }.merchant-title-copy h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 21px; line-height: 1.25; }.merchant-title-copy h1 i { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--merchant-green); color: #fff; }.merchant-title-copy h1 i .ui-icon { width: 15px; height: 15px; stroke-width: 2.2; }.merchant-title-copy > p { margin: 5px 0 3px; color: #6d7470; font-size: 13px; }.merchant-title-copy > div { display: flex; gap: 7px; align-items: center; font-size: 11px; }.merchant-title-copy > div b { color: var(--merchant-gold); font-size: 14px; }.merchant-title-copy > div small { color: #858985; }.merchant-title-copy > div span { display: flex; gap: 3px; align-items: center; color: #676e6a; }.merchant-title-copy > div .ui-icon { width: 13px; height: 13px; }.merchant-title-copy ul { display: flex; gap: 5px; margin: 8px 0 0; padding: 0; flex-wrap: wrap; list-style: none; }.merchant-title-copy li { padding: 3px 7px; border-radius: 10px; background: #f1eee8; color: #71746f; font-size: 9px; }

.merchant-cover { position: relative; display: block; width: 100%; height: 208px; overflow: hidden; padding: 0; border: 0; border-radius: 15px; background: #ddd; cursor: pointer; }.merchant-cover::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,25,21,.12), transparent 55%); content: ""; }.merchant-cover img { width: 100%; height: 100%; object-fit: cover; }.merchant-cover span { position: absolute; z-index: 1; bottom: 10px; left: 10px; padding: 4px 9px; border-radius: 13px; background: rgba(24,26,24,.63); color: #fff; font-size: 11px; }
.detail-card { margin-top: 10px; border: 1px solid var(--merchant-line); border-radius: 14px; background: var(--merchant-paper); box-shadow: var(--merchant-shadow); }
.detail-card h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 15px; }
.merchant-overview { display: grid; padding: 12px; grid-template-columns: 1.02fr .98fr; gap: 12px; }
.merchant-intro { padding-right: 10px; border-right: 1px solid var(--merchant-line); }.merchant-intro h2 { display: flex; gap: 5px; align-items: center; }.section-heading-icon { width: 15px; height: 15px; color: var(--merchant-green); }.merchant-intro > p, .merchant-intro details p { margin: 9px 0 0; color: #5e6762; font-size: 10px; line-height: 1.75; }.merchant-intro details summary { display: inline-flex; margin-top: 8px; gap: 4px; align-items: center; color: var(--merchant-green); font-size: 10px; font-weight: 700; cursor: pointer; list-style: none; }.summary-chevron { width: 13px; height: 13px; transform: rotate(90deg); transition: transform .2s ease; }.merchant-intro details[open] .summary-chevron { transform: rotate(-90deg); }
.merchant-facts { margin: 0; }.merchant-facts > div { display: grid; min-height: 39px; grid-template-columns: 85px 1fr; gap: 3px; align-items: center; border-bottom: 1px solid #f0ece5; }.merchant-facts > div:last-child { border-bottom: 0; }.merchant-facts dt { display: flex; gap: 5px; align-items: center; font-size: 9px; font-weight: 700; }.merchant-facts .fact-icon { width: 15px; height: 15px; color: var(--merchant-green); }.merchant-facts dd { margin: 0; color: #69706c; font-size: 8px; line-height: 1.45; }.merchant-facts dd > a { color: inherit; text-decoration: none; }.merchant-facts dd > a:last-child { float: right; }.merchant-facts .inline-chevron { width: 15px; height: 15px; }.merchant-facts dd i { display: inline-grid; width: 20px; height: 20px; margin-left: 4px; place-items: center; border-radius: 50%; background: #e5f4ed; color: var(--merchant-green); font-size: 7px; font-style: normal; }
.feature-row { display: flex; grid-column: 1 / -1; gap: 5px; padding-top: 9px; align-items: center; border-top: 1px solid var(--merchant-line); overflow-x: auto; scrollbar-width: none; }.feature-row::-webkit-scrollbar { display: none; }.feature-row strong { display: flex; margin-right: 4px; gap: 4px; align-items: center; font-size: 10px; white-space: nowrap; }.feature-heading-icon { width: 14px; height: 14px; color: var(--merchant-green); }.feature-row span { padding: 4px 9px; border-radius: 11px; background: #f3f0ea; color: #777b76; font-size: 8px; white-space: nowrap; }

.merchant-gallery, .merchant-packages, .merchant-map, .merchant-reviews { padding: 10px; }.detail-card > header { display: flex; margin-bottom: 8px; align-items: center; justify-content: space-between; }.detail-card > header button { padding: 0; border: 0; background: transparent; color: #818580; font-size: 10px; cursor: pointer; }.merchant-gallery > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }.merchant-gallery > div button { height: 62px; overflow: hidden; padding: 0; border: 0; border-radius: 9px; cursor: pointer; }.merchant-gallery img { width: 100%; height: 100%; object-fit: cover; }
.merchant-detail-shell [hidden] { display: none; }
.map-embed-wrap.no-map-preview { min-height: 128px; background: linear-gradient(135deg, #edf3ef, #dce8e1); }
.map-preview-empty { position: absolute; inset: 0; display: grid; margin: 0; padding: 18px 58px 42px; place-items: center; color: #69756f; font-size: 11px; line-height: 1.5; text-align: center; }
.merchant-packages > header > span { color: #868984; font-size: 9px; }
.package-grid { display: grid; min-width: 0; grid-template-columns: 1fr 1fr; gap: 10px; }
.package-grid article { position: relative; display: grid; min-width: 0; min-height: 128px; overflow: hidden; padding: 7px; grid-template-columns: 86px minmax(0, 1fr); grid-template-rows: minmax(84px, auto) auto; gap: 5px 8px; border: 1px solid #eeeae3; border-radius: 11px; }
.package-grid article > img { width: 86px; height: 84px; grid-row: 1 / span 2; border-radius: 8px; object-fit: cover; }
.package-grid article > div { min-width: 0; max-width: 100%; overflow: hidden; grid-column: 2; grid-row: 1; }
.package-grid em { position: absolute; bottom: 8px; left: 8px; padding: 3px 7px; border-radius: 3px; background: #c3912e; color: #fff; font-size: 7px; font-style: normal; }
.package-grid h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.package-grid p { margin: 4px 0; overflow: hidden; color: #777c77; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.package-grid small { display: block; overflow-wrap: anywhere; color: #92948f; font-size: 7px; }
.package-grid strong { display: flex; max-width: 100%; margin-top: 6px; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; overflow-wrap: anywhere; color: var(--merchant-green); font-size: 10px; line-height: 1.3; }
.package-grid strong del { margin-left: 0; color: #9a9d99; font-size: 8px; font-weight: 400; }
.package-grid article > button { min-width: 51px; min-height: 25px; grid-column: 2; grid-row: 2; justify-self: end; border: 0; border-radius: 13px; background: var(--merchant-green); color: #fff; font-size: 9px; font-weight: 700; cursor: pointer; }
.package-empty { margin: 8px 0 2px; color: #818984; font-size: 10px; text-align: center; }
.merchant-lower-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }.merchant-map, .merchant-reviews { min-width: 0; }.map-canvas { position: relative; display: block; width: 100%; height: 102px; overflow: hidden; padding: 0; border: 0; border-radius: 10px; background: #e8ece8; cursor: pointer; }.map-canvas::before, .map-canvas::after { position: absolute; background: #fff; content: ""; transform: rotate(-19deg); }.map-canvas::before { top: 35px; left: -5%; width: 110%; height: 13px; }.map-canvas::after { top: -10%; left: 48%; width: 11px; height: 120%; transform: rotate(31deg); }.map-canvas .road { position: absolute; z-index: 1; height: 2px; background: #c9d3cd; transform: rotate(13deg); }.road-one { top: 20px; left: 0; width: 120%; }.road-two { top: 65px; left: -12px; width: 120%; }.road-three { top: 40px; right: -20px; width: 75%; transform: rotate(-44deg); }.map-canvas i { position: absolute; z-index: 3; top: 22px; left: 52%; display: grid; width: 28px; height: 34px; place-items: center; border-radius: 50% 50% 50% 0; background: var(--merchant-green); color: #fff; font-size: 12px; font-style: normal; transform: rotate(-45deg); }.map-canvas i::first-letter { transform: rotate(45deg); }.map-canvas b { position: absolute; z-index: 4; right: 9px; bottom: 7px; left: 9px; padding: 4px; border-radius: 10px; background: rgba(36,42,39,.72); color: #fff; font-size: 7px; line-height: 1.35; }
.merchant-reviews > header > span { color: var(--merchant-gold); font-size: 11px; font-weight: 700; }
.merchant-review-form { display: grid; gap: 8px; margin-bottom: 8px; padding: 9px; border-radius: 10px; background: #f7f4ee; }
.merchant-review-form label { display: grid; gap: 4px; color: #56625c; font-size: 11px; font-weight: 700; }
.merchant-review-form select, .merchant-review-form textarea { width: 100%; padding: 8px 9px; border: 1px solid #ddd8cf; border-radius: 8px; outline: 0; background: #fff; color: var(--merchant-ink); font: inherit; resize: vertical; }
.merchant-review-form select:focus, .merchant-review-form textarea:focus { border-color: var(--merchant-green); box-shadow: 0 0 0 3px rgba(12,139,105,.1); }
.merchant-review-form > div { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.merchant-review-form > div small { color: #818984; font-size: 9px; line-height: 1.4; }
.merchant-review-form button { min-width: 82px; min-height: 34px; flex: 0 0 auto; border: 0; border-radius: 9px; background: var(--merchant-green); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.merchant-review-form button:disabled { opacity: .58; cursor: wait; }
.merchant-review-list article { display: grid; padding: 9px 0; grid-template-columns: 36px 1fr; gap: 8px; border-bottom: 1px solid #f0ece5; }
.merchant-review-list article:last-child { border-bottom: 0; }
.merchant-review-list article img { width: 36px; height: 36px; border-radius: 50%; background: #e5efe8; object-fit: cover; }
.merchant-review-list article div { min-width: 0; }
.merchant-review-list article strong { display: block; font-size: 11px; }
.merchant-review-list article b { display: block; color: var(--merchant-gold); font-size: 10px; letter-spacing: 1px; }
.merchant-review-list article b small { margin-left: 6px; color: #999b97; font-weight: 400; letter-spacing: 0; }
.merchant-review-list article p { margin: 4px 0 0; color: #68706b; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.merchant-review-own { display: inline-block; margin-top: 4px; padding: 2px 6px; border-radius: 8px; background: #e5f2ec; color: var(--merchant-green); font-size: 8px; font-style: normal; }
.merchant-review-empty { margin: 8px 0 2px; color: #818984; font-size: 10px; text-align: center; }

.merchant-action-bar { position: fixed; z-index: 21; right: 0; bottom: 0; left: 0; display: grid; width: min(100%, 430px); min-height: calc(58px + env(safe-area-inset-bottom)); margin: auto; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); grid-template-columns: 45px 45px 45px 45px 1fr; gap: 5px; border-top: 1px solid rgba(225,218,205,.85); background: rgba(255,253,250,.97); box-shadow: 0 -4px 14px rgba(50,45,35,.07); -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px); }.merchant-action-bar > button, .merchant-action-bar > a { display: flex; min-width: 0; padding: 0; align-items: center; flex-direction: column; justify-content: center; border: 0; border-radius: 9px; background: transparent; color: var(--merchant-ink); font-size: 8px; text-decoration: none; cursor: pointer; }.merchant-action-bar .ui-icon { width: 19px; height: 19px; margin-bottom: 3px; }.merchant-action-bar > .active { color: #d4584b; }.merchant-action-bar > .primary { min-height: 43px; border-radius: 12px; background: linear-gradient(135deg, var(--merchant-green), #11936f); color: #fff; font-size: 17px; font-weight: 700; box-shadow: 0 5px 12px rgba(12,139,105,.2); }

.merchant-modal { position: fixed; z-index: 60; inset: 0; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s ease; }.merchant-modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(20,27,25,.56); -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px); }.modal-card { position: relative; width: min(100%, 430px); max-height: 88vh; overflow: auto; padding: 17px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 23px 23px 0 0; background: var(--merchant-paper); transform: translateY(24px); transition: transform .22s ease; }.merchant-modal[aria-hidden="false"] .modal-card { transform: translateY(0); }.modal-handle { display: block; width: 42px; height: 5px; margin: -7px auto 12px; border-radius: 4px; background: #d8d2c9; }.modal-card > header { display: flex; justify-content: space-between; }.modal-card header small { color: var(--merchant-green); font-size:16px; font-weight: 700; letter-spacing: .13em; }.modal-card header h2 { margin: 3px 0 14px; font-family: Georgia, "Songti SC", serif; font-size: 23px; }.modal-card header > button { display: grid; width: 35px; height: 35px; place-items: center; border: 0; border-radius: 50%; background: #f1eee8; color: #65706b; cursor: pointer; }.modal-card header > button .ui-icon { width: 19px; height: 19px; }.booking-modal form { display: grid; gap: 11px; }.booking-modal label { display: grid; gap: 5px; font-size:16px; font-weight: 700; }.booking-modal input, .booking-modal select { width: 100%; height: 44px; padding: 0 11px; border: 1px solid #e2ddd4; border-radius: 9px; outline: 0; background: #fff; color: var(--merchant-ink); }.booking-modal input:focus, .booking-modal select:focus { border-color: var(--merchant-green); box-shadow: 0 0 0 3px rgba(12,139,105,.09); }.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.booking-note { margin: 0; color: #858984; font-size:16px; }.form-error { display: none; margin: 0; color: #c85043; font-size:16px; }.form-error.show { display: block; }.booking-submit { min-height: 47px; border: 0; border-radius: 10px; background: var(--merchant-green); color: #fff; font-weight: 700; cursor: pointer; }
.gallery-view { position: relative; width: min(100%, 430px); height: 70vh; background: #101512; }.gallery-view > img { width: 100%; height: 100%; object-fit: contain; }.gallery-view > button { position: absolute; z-index: 2; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }.gallery-view > button .ui-icon { width: 23px; height: 23px; }.gallery-view .previous-icon { transform: rotate(180deg); }.gallery-view > button:first-child { top: 12px; right: 12px; }.gallery-view .gallery-prev { top: 48%; left: 10px; }.gallery-view .gallery-next { top: 48%; right: 10px; }.gallery-view p { position: absolute; right: 0; bottom: 13px; left: 0; margin: 0; color: #fff; font-size: 12px; text-align: center; }
.merchant-toast { position: fixed; z-index: 80; right: 20px; bottom: calc(72px + env(safe-area-inset-bottom)); left: 20px; width: fit-content; max-width: min(360px, calc(100% - 40px)); margin: auto; padding: 10px 16px; border-radius: 20px; background: rgba(23,35,32,.92); color: #fff; font-size: 11px; text-align: center; opacity: 0; pointer-events: none; transform: translateY(7px); transition: .2s ease; }.merchant-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 370px) {
  .merchant-detail-main { padding-right: 10px; padding-left: 10px; }
  .merchant-identity { grid-template-columns: 80px 1fr; gap: 10px; }.merchant-logo { width: 80px; height: 92px; }.merchant-title-copy h1 { font-size: 18px; }
  .merchant-overview { grid-template-columns: 1fr; }.merchant-intro { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--merchant-line); }.merchant-facts > div { grid-template-columns: 94px 1fr; }
  .package-grid { grid-template-columns: 1fr; }.merchant-lower-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto; transition-duration: .01ms; } }

/* Real map embed (replaces demo map-canvas) */
.map-embed-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 168px;
  overflow: hidden;
  border-radius: 10px;
  background: #e8ece8;
}
.map-embed-wrap .map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.merchant-detail-shell .map-embed-wrap .map-embed[hidden] {
  display: none;
}
.map-embed-open {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 253, 250, .94);
  color: #0b6b52;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(20, 27, 25, .12);
}
.map-address-note {
  margin: 8px 0 0;
  color: #68706b;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.map-fallback-link {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 102px;
  padding: 12px;
  border-radius: 10px;
  background: #eef4f0;
  color: inherit;
  text-decoration: none;
}
.map-fallback-link span {
  color: #0b6b52;
  font-size: 12px;
  font-weight: 700;
}
.map-fallback-link b {
  color: #68706b;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.merchant-map > header .map-open-icon-btn {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1eee8;
  color: #818580;
  cursor: pointer;
}
.merchant-map > header .map-open-icon-btn:active {
  transform: scale(.96);
}
.merchant-map > header .map-open-icon-btn .ui-icon {
  width: 18px;
  height: 18px;
  pointer-events: none;
}


