last code tast 3
{ "@context": "https://schema.org", "@type": "LodgingBusiness", "name": "Manaar Stays", "description": "Private rooms in Jawalakhel, Lalitpur near Patan Durbar Square. Quiet 4-room residence with 2 rooms per floor, 6.5x5 ft beds, fast Wi-Fi, 24/7 hot shower, and direct Fonepay booking.", "url": "https://manaarstays.com", "telephone": "+977-9765131653", "email": "shyamtheseo@gmail.com", "priceRange": "NPR 1650 - NPR 1850", "checkinTime": "14:00", "checkoutTime": "11:00", "address": { "@type": "PostalAddress", "streetAddress": "Shanti Chok Marg, Ward No. 4, Jawalakhel", "addressLocality": "Lalitpur", "addressRegion": "Bagmati Province", "postalCode": "44600", "addressCountry": "NP" }, "geo": { "@type": "GeoCoordinates", "latitude": "27.6744", "longitude": "85.3155" } }
LIVE AIRBNB SYNC Checking open rooms in Jawalakhel, Patan... | Check-in 2:00 PM · Check-out 11:00 AM
SHANTI CHOWK MARG · WARD 4, LALITPUR

Rooms in Jawalakhel, Lalitpur — Nearby Patan Durbar Square

A calm 4-room residence with only 2 rooms per floor for genuine personal space, 6.5 × 5 ft beds, fast Wi-Fi, 24/7 hot shower, and smooth popup booking.

TODAY'S ROOM STATUS
1 Person 2 Persons 3 Persons
1 Night · Room 1 NPR 1,850
WhatsApp
SELECT YOUR ROOM · CLICK PHOTO TO ZOOM · TAP BOOK NOW FOR POPUP

Swipe horizontally on mobile to browse all 4 rooms →

Open Booked Selected
Manaar Stays Main House in Jawalakhel, Patan, Lalitpur SHANTI CHOWK MARG · JAWALAKHEL, PATAN

Explore Our 4 Private Rooms Floor by Floor

Only 2 rooms on the First Floor and 2 rooms on the Second Floor—peaceful personal space, full photo galleries, and live calendar availability.

Clean Bathroom with 24/7 Hot Water Shower at Manaar Stays Jawalakhel Patan 24/7 HOT WATER GEYSER SHOWER
UNCROWDED COMFORT · TRANSPARENT DETAILS

Personal Space & Clean Hot-Shower Facilities

With just two rooms per floor, Manaar Stays stays quiet and uncrowded near Patan Durbar Square and Jawalakhel.

  • First Floor Common Bathroom: Clean modern bathroom with 24/7 hot-water geyser shower on the first floor (just 10 easy steps down from the second floor).
  • Second Floor Bathroom Upgrade: A dedicated second-floor bathroom is currently under construction so each floor will soon have its own bathroom.
  • Shared Kitchen & Hygiene: Light kitchen access available—please wash dishes and switch off the induction cooktop after use.
LOCAL STAY GUIDE · LALITPUR

Affordable Private Rooms & Homestay Near Patan Durbar Square, Jawalakhel

Located on peaceful Shanti Chok Marg in Ward No. 4, Jawalakhel, Manaar Stays offers convenient access to Patan Durbar Square, Jawalakhel cafes, and Lalitpur transit routes.

6.5 × 5 ft Queen Beds & Pillows

Choose between pocket-spring pillow-top (Room 1), orthopedic queen beds (Rooms 2 & 3), and memory-foam queen bed (Room 4) with clean microfiber/fiber pillows.

Study Desks & Standing Mirrors

Rooms 1, 2, and 3 include a study table and chair for work or reading, while Rooms 3 and 4 include full-length standing mirrors.

Direct Fonepay & Calendar Sync

View live open and booked dates before booking, pay directly via Fonepay QR, and download a PDF booking summary right after submitting.

#msb-landing-app { --msb-primary: #6a2dba; --msb-primary-dark: #522094; --msb-primary-soft: #F3ECFC; --msb-gold: #B8892D; --msb-bg: #FAF9FC; --msb-surface: #FFFFFF; --msb-ink: #14101D; --msb-muted: #5B5568; --msb-border: #E6E0F0; --msb-avail: #15803D; --msb-avail-bg: #ECFDF3; --msb-booked: #B91C1C; --msb-booked-bg: #FEF2F2; font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--msb-ink); background: var(--msb-bg); line-height: 1.5; -webkit-font-smoothing: antialiased; } #msb-landing-app *, #msb-landing-app *::before, #msb-landing-app *::after { box-sizing: border-box; } .msb-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; } #msb-landing-app .msb-logo-img { width: 38px !important; height: 38px !important; max-width: 38px !important; max-height: 38px !important; object-fit: contain !important; border-radius: 8px; flex-shrink: 0; display: block; } @keyframes msbPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.65; } } .msb-ribbon { background: var(--msb-ink); color: #F4F1FA; font-size: 12px; padding: 8px 0; } .msb-ribbon-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .msb-ribbon-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .msb-live-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(106, 45, 186, 0.35); border: 1px solid rgba(180, 142, 235, 0.45); color: #E2D4FA; padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; } .msb-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; animation: msbPulse 1.8s infinite; } .msb-rib-sep { opacity: 0.35; } .msb-ribbon-right { display: flex; gap: 8px; } .msb-rib-btn { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.25); border-radius: 7px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: pointer; } .msb-rib-btn-primary { background: var(--msb-primary); border-color: var(--msb-primary); } .msb-rib-btn-primary:hover { background: var(--msb-primary-dark); } .msb-topbar { position: sticky; top: 0; z-index: 40; background: rgba(250, 249, 252, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--msb-border); } .msb-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; } .msb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--msb-ink); } .msb-brand-title { display: block; font-weight: 700; letter-spacing: 0.14em; font-size: 14px; color: var(--msb-primary); } .msb-brand-sub { display: block; font-size: 10px; letter-spacing: 0.11em; color: var(--msb-muted); } .msb-nav { display: flex; align-items: center; gap: 18px; } .msb-nav a { text-decoration: none; color: var(--msb-ink); font-size: 13px; font-weight: 600; } .msb-nav-book-pill { background: var(--msb-primary); color: #FFF; border: none; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; } .msb-nav-call { padding: 7px 13px; border: 1.5px solid var(--msb-primary); color: var(--msb-primary) !important; border-radius: 999px; } .msb-hero { padding: 32px 0 48px; background: radial-gradient(circle at 88% 8%, rgba(106, 45, 186, 0.10), transparent 46%), var(--msb-bg); border-bottom: 1px solid var(--msb-border); } .msb-hero-intro { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; margin-bottom: 20px; } .msb-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--msb-primary); margin-bottom: 6px; } .msb-hero-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(28px, 3.8vw, 46px); font-weight: 600; line-height: 1.12; margin: 0 0 10px; } .msb-hero-title em { font-style: italic; color: var(--msb-primary); } .msb-hero-sub { margin: 0; font-size: 14px; color: var(--msb-muted); max-width: 600px; } .msb-today-card { background: var(--msb-surface); border: 1px solid var(--msb-border); border-radius: 16px; padding: 14px; box-shadow: 0 10px 26px rgba(20, 16, 29, 0.04); } .msb-today-head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--msb-muted); margin-bottom: 9px; } .msb-today-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .msb-today-pill { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 10px; padding: 8px 10px; cursor: pointer; transition: all 0.2s ease; } .msb-today-pill:hover { border-color: var(--msb-primary); transform: translateY(-1px); } .msb-today-pill strong { font-size: 12px; color: var(--msb-ink); } .msb-today-pill span { font-size: 10.5px; margin-top: 2px; font-weight: 600; } .st-open { color: var(--msb-avail); } .st-full { color: var(--msb-booked); } .msb-search-bar { display: grid; grid-template-columns: 1.1fr 0.85fr 0.85fr 0.7fr auto auto; gap: 10px; align-items: center; background: var(--msb-surface); border: 1.5px solid var(--msb-primary); border-radius: 16px; padding: 12px; box-shadow: 0 16px 36px rgba(106, 45, 186, 0.10); } .msb-sb-group { display: flex; flex-direction: column; gap: 3px; } .msb-sb-group label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--msb-muted); } .msb-sb-group input, .msb-sb-group select { border: 1px solid var(--msb-border); border-radius: 9px; padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--msb-ink); background: var(--msb-bg); } .msb-sb-calc { padding: 0 8px; text-align: right; } .msb-sb-calc small { display: block; font-size: 10.5px; color: var(--msb-muted); font-weight: 600; } .msb-sb-calc strong { font-size: 17px; color: var(--msb-primary); font-weight: 700; } .msb-sb-btns { display: flex; gap: 7px; } .msb-btn-primary { background: var(--msb-primary); color: #FFFFFF; border: none; border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.2s ease, transform 0.15s ease; } .msb-btn-primary:hover { background: var(--msb-primary-dark); transform: translateY(-1px); } .msb-btn-gold { background: var(--msb-gold); color: #FFFFFF; border: none; border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 700; cursor: pointer; } .msb-btn-outline { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border: 1.5px solid var(--msb-ink); border-radius: 10px; color: var(--msb-ink); background: transparent; text-decoration: none; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; } .msb-btn-outline:hover { background: var(--msb-primary-soft); border-color: var(--msb-primary); color: var(--msb-primary); } .msb-btn-full { width: 100%; } .msb-search-feedback { margin-top: 9px; font-size: 12.5px; font-weight: 600; min-height: 18px; } .msb-hero-cards-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px; gap: 10px; } .msb-kicker { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--msb-primary); } .msb-swipe-hint { display: none; margin: 3px 0 0; font-size: 11.5px; color: var(--msb-primary); font-weight: 600; } .msb-legend-mini { display: flex; gap: 12px; font-size: 11.5px; color: var(--msb-muted); } .msb-legend-mini .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; } .msb-legend-mini .dot.avail { background: var(--msb-avail); } .msb-legend-mini .dot.booked { background: var(--msb-booked); } .msb-legend-mini .dot.selected { background: var(--msb-primary); } .msb-hero-cards-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; } .msb-hc { background: var(--msb-surface); border: 1px solid var(--msb-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 26px rgba(20, 16, 29, 0.05); transition: transform 0.2s ease, border-color 0.2s ease; } .msb-hc:hover { transform: translateY(-3px); border-color: var(--msb-primary); } .msb-hc.is-active { border: 2px solid var(--msb-primary); } .msb-hc-media { position: relative; height: 172px; background: #14101D; overflow: hidden; } .msb-hc-media img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; } .msb-slide-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(20, 16, 29, 0.72); color: #FFF; font-size: 13px; cursor: pointer; } .msb-slide-btn.prev { left: 8px; } .msb-slide-btn.next { right: 8px; } .msb-hc-zoom { position: absolute; top: 8px; right: 8px; z-index: 3; background: rgba(20, 16, 29, 0.78); color: #FFF; border: none; border-radius: 6px; padding: 3px 8px; font-size: 10px; font-weight: 700; cursor: pointer; } .msb-hc-price { position: absolute; bottom: 8px; right: 8px; background: var(--msb-primary); color: #FFF; padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; } .msb-hc-body { padding: 13px; display: flex; flex-direction: column; gap: 8px; flex: 1; } .msb-hc-floor { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--msb-primary); } .msb-hc-title { margin: 1px 0 0; font-size: 14.5px; font-weight: 700; } .msb-hc-specs { display: flex; flex-wrap: wrap; gap: 4px; } .msb-hc-specs span { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: var(--msb-primary-soft); color: var(--msb-primary-dark); } .msb-hc-avail-strip { font-size: 11px; padding: 6px 8px; border-radius: 8px; background: var(--msb-bg); border: 1px solid var(--msb-border); } .msb-cal-drawer-btn { background: var(--msb-bg); border: 1px solid var(--msb-border); color: var(--msb-ink); border-radius: 8px; padding: 6px 9px; font-size: 11px; font-weight: 700; cursor: pointer; text-align: left; } .msb-hc-cal-box { display: none; background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 9px; padding: 7px; } .msb-hc-cal-box.open { display: block; } .msb-hc-total { font-size: 12px; font-weight: 700; border-top: 1px dashed var(--msb-border); padding-top: 6px; } .msb-hc-actions { display: flex; gap: 6px; margin-top: auto; } .msb-hc-actions .msb-btn-primary { flex: 1; padding: 8px 10px; font-size: 12px; } .msb-hc-actions .msb-btn-outline { padding: 8px 10px; font-size: 11.5px; } .msb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; } .msb-cal-dow { font-size: 9.5px; font-weight: 700; color: var(--msb-muted); padding: 2px 0; } .msb-cal-day { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; user-select: none; } .msb-cal-day.empty { cursor: default; } .msb-cal-day.past { color: #C5BFD0; cursor: not-allowed; } .msb-cal-day.avail { background: var(--msb-avail-bg); color: var(--msb-avail); } .msb-cal-day.booked { background: var(--msb-booked-bg); color: var(--msb-booked); text-decoration: line-through; cursor: not-allowed; } .msb-cal-day.selected, .msb-cal-day.in-range { background: var(--msb-primary) !important; color: #FFF !important; text-decoration: none; } .msb-timeline-section { padding: 58px 0 34px; } .msb-house-anchor { text-align: center; max-width: 680px; margin: 0 auto; } .msb-circle-frame { position: relative; width: 220px; height: 220px; margin: 0 auto 20px; border-radius: 50%; padding: 7px; background: var(--msb-surface); border: 2px solid var(--msb-primary); box-shadow: 0 18px 40px rgba(106, 45, 186, 0.14); } .msb-circle-frame img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; } .msb-circle-badge { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); background: var(--msb-ink); color: #FFF; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 999px; white-space: nowrap; } .msb-anchor-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 600; margin: 8px 0; } .msb-anchor-sub { color: var(--msb-muted); font-size: 14px; margin: 0 auto; } .msb-thread-stem { width: 2px; height: 46px; margin: 18px auto 0; background: linear-gradient(to bottom, var(--msb-primary), var(--msb-gold)); } .msb-floors-wrapper { position: relative; padding-bottom: 14px; } .msb-floors-wrapper::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--msb-border); transform: translateX(-50%); z-index: 0; } .msb-floor-group { position: relative; z-index: 1; margin-bottom: 48px; } .msb-floor-node { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 22px; } .msb-node-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--msb-primary); border: 3px solid var(--msb-bg); box-shadow: 0 0 0 2px var(--msb-primary); margin-bottom: 8px; } .msb-floor-heading { background: var(--msb-bg); padding: 6px 22px; border: 1px solid var(--msb-border); border-radius: 999px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; font-weight: 600; margin: 0; } .msb-floor-note { background: var(--msb-bg); font-size: 12px; color: var(--msb-muted); margin: 5px 0 0; padding: 2px 12px; } .msb-floor-rooms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; } .msb-room-card { background: var(--msb-surface); border: 1px solid var(--msb-border); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 28px rgba(20, 16, 29, 0.05); display: flex; flex-direction: column; } .msb-room-card-media { position: relative; height: 250px; background: #14101D; } .msb-room-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; } .msb-room-card-status { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; } .msb-room-card-status.is-avail { background: var(--msb-avail-bg); color: var(--msb-avail); } .msb-room-card-status.is-booked { background: var(--msb-booked-bg); color: var(--msb-booked); } .msb-room-card-price { position: absolute; bottom: 12px; right: 12px; background: var(--msb-primary); color: #FFF; padding: 5px 11px; border-radius: 9px; font-size: 13px; font-weight: 700; } .msb-card-thumbs { display: flex; gap: 6px; padding: 10px 18px 0; overflow-x: auto; } .msb-card-thumbs img { width: 50px; height: 36px; border-radius: 6px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: 0.65; flex-shrink: 0; } .msb-card-thumbs img.active, .msb-card-thumbs img:hover { opacity: 1; border-color: var(--msb-primary); } .msb-room-card-body { padding: 15px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; } .msb-room-card-body h4 { margin: 0; font-size: 18px; } .msb-room-card-body p { margin: 4px 0 0; font-size: 13px; color: var(--msb-muted); } .msb-amenities-chips { display: flex; flex-wrap: wrap; gap: 6px; } .msb-amenities-chips span { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--msb-primary-soft); color: var(--msb-primary-dark); } .msb-mini-cal-wrap { background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 12px; padding: 11px; } .msb-mini-cal-top { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; margin-bottom: 7px; } .msb-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--msb-border); } .msb-bathroom-section, .msb-seo-section { padding: 50px 0; border-top: 1px solid var(--msb-border); background: var(--msb-surface); } .msb-seo-section { background: var(--msb-bg); } .msb-bathroom-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 30px; align-items: center; } .msb-bathroom-media { position: relative; border-radius: 18px; overflow: hidden; height: 310px; } .msb-bathroom-media img { width: 100%; height: 100%; object-fit: cover; display: block; } .msb-bath-badge { position: absolute; bottom: 12px; left: 12px; background: var(--msb-primary); color: #FFF; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 999px; } .msb-bathroom-info h2, .msb-seo-header h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 32px; font-weight: 600; margin: 6px 0 10px; } .msb-bath-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; } .msb-seo-header { max-width: 760px; margin-bottom: 24px; } .msb-seo-header p { color: var(--msb-muted); font-size: 14px; margin: 0; } .msb-seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } .msb-seo-box { background: var(--msb-surface); border: 1px solid var(--msb-border); border-radius: 14px; padding: 18px; } .msb-seo-box h3 { margin: 0 0 6px; font-size: 16px; color: var(--msb-primary); } .msb-seo-box p { margin: 0; font-size: 13px; color: var(--msb-muted); } .msb-modal-backdrop[hidden] { display: none !important; } .msb-modal-backdrop { position: fixed; inset: 0; z-index: 9999; background: rgba(20, 16, 29, 0.84); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 14px; overflow-y: auto; } .msb-booking-card, .msb-lightbox-card { position: relative; background: #FFFFFF; color: var(--msb-ink); border-radius: 18px; width: 100%; max-width: 980px; max-height: 92vh; overflow-y: auto; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); } .msb-modal-close { position: absolute; top: 12px; right: 12px; z-index: 10; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--msb-border); background: #FFF; font-size: 20px; cursor: pointer; } .msb-bm-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; } .msb-bm-form h3 { margin: 4px 0 12px; font-size: 20px; } .msb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 11px; } .msb-form-row label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; } .msb-form-row input, .msb-form-row select { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--msb-border); background: var(--msb-bg); font-size: 13px; color: var(--msb-ink); } .msb-doc-chip { background: var(--msb-primary-soft); color: var(--msb-primary-dark); border-radius: 8px; padding: 6px 10px; margin-bottom: 11px; font-size: 11.5px; font-weight: 700; } .msb-agree-check { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--msb-muted); margin-bottom: 12px; cursor: pointer; } .msb-agree-check input { margin-top: 2px; accent-color: var(--msb-primary); flex-shrink: 0; } .msb-price-bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 10px; margin-bottom: 12px; } .msb-price-bar strong { font-size: 18px; color: var(--msb-primary); } .msb-feedback { margin-top: 10px; font-size: 12.5px; font-weight: 700; } .msb-post-submit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .msb-qr-card { display: flex; align-items: center; gap: 14px; background: var(--msb-primary-soft); border: 1.5px solid var(--msb-primary); border-radius: 14px; padding: 12px; margin-bottom: 14px; } .msb-qr-box { width: 118px; height: 118px; flex-shrink: 0; background: #FFF; border-radius: 10px; padding: 6px; } .msb-qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; } .msb-qr-pill { display: inline-block; background: var(--msb-primary); color: #FFF; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 5px; } .msb-qr-card h3 { margin: 4px 0 3px; font-size: 14px; } .msb-qr-card p { margin: 0; font-size: 11.5px; color: var(--msb-muted); } .msb-rules-mini { background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 12px; padding: 12px; font-size: 11.5px; } .msb-rules-mini ul { margin: 6px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 5px; color: var(--msb-muted); } .msb-rules-mini strong { color: var(--msb-ink); } .msb-lb-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; } .msb-zoom-stage { height: 350px; background: #14101D; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; } .msb-zoom-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.25s ease; cursor: zoom-in; } .msb-zoom-stage.zoomed img { transform: scale(1.75); cursor: zoom-out; } .msb-lb-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; } .msb-ghost-btn { background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; } .msb-lb-thumbs { display: flex; gap: 6px; margin-top: 9px; overflow-x: auto; } .msb-lb-thumbs img { width: 52px; height: 38px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: 0.65; } .msb-lb-thumbs img.active { opacity: 1; border-color: var(--msb-primary); } .msb-floor-pill { display: inline-block; background: var(--msb-primary); color: #FFF; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; } .msb-lb-status-pill { background: var(--msb-primary-soft); color: var(--msb-primary-dark); font-size: 11.5px; font-weight: 700; padding: 7px 9px; border-radius: 8px; margin-bottom: 10px; } .msb-lb-cal-wrap { background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 10px; padding: 9px; margin-bottom: 12px; } .msb-lb-cal-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; } .msb-lb-cal-head button { border: 1px solid var(--msb-border); background: #FFF; border-radius: 5px; padding: 1px 7px; cursor: pointer; } .msb-lb-cta-col { display: flex; flex-direction: column; gap: 8px; } @media (max-width: 1040px) { .msb-search-bar { grid-template-columns: repeat(3, 1fr); } .msb-hero-cards-track { grid-template-columns: repeat(2, 1fr); } .msb-seo-grid { grid-template-columns: 1fr; } } @media (max-width: 780px) { .msb-hero-intro, .msb-floor-rooms-grid, .msb-bathroom-grid, .msb-bm-grid, .msb-lb-grid { grid-template-columns: 1fr; } .msb-search-bar { grid-template-columns: 1fr 1fr; } .msb-sb-calc { text-align: left; } .msb-swipe-hint { display: block; } .msb-floors-wrapper::before { left: 18px; } .msb-floor-node { align-items: flex-start; padding-left: 10px; text-align: left; } .msb-hero-cards-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 10px; -webkit-overflow-scrolling: touch; } .msb-hc { flex: 0 0 82%; max-width: 320px; scroll-snap-align: start; } } @media (max-width: 540px) { .msb-nav a.msb-nav-call, .msb-nav a[href="#msb-patan-guide"] { display: none; } .msb-search-bar, .msb-form-row, .msb-today-pills { grid-template-columns: 1fr; } .msb-qr-card { flex-direction: column; text-align: center; } } (function () { const gdriveImg = (id) => `https://drive.google.com/thumbnail?id=${id}&sz=w1200`; const MSB_CONFIG = { ajaxUrl: (window.MSB_PUBLIC && window.MSB_PUBLIC.ajax_url) || "/wp-admin/admin-ajax.php", ownerEmail: "shyamtheseo@gmail.com", web3formsKey: "1c416828-c4ac-4a2a-a6b4-82d6f02a89d9", whatsapp: "9779765131653", currency: "NPR", fonepayQrUrl: "https://drive.google.com/thumbnail?id=1dCYPMxAj6BKZbN7EPhLMXOed10uruxhv&sz=w800", properties: [ { id: "jawalakhel-patan", name: "Manaar Stays — Jawalakhel, Patan (4 Rooms)" } ], rooms: [ { id: 1, propertyId: "jawalakhel-patan", floor: "First Floor Rooms (Only 2 Rooms on Floor)", floorShort: "FIRST FLOOR · ROOM 1", floorNote: "Steps from the 1st-floor 24/7 hot-water shower · Peaceful 2-room floor", name: "Room 1 — Pocket-Spring Queen Suite", price: 1850, maxGuests: 2, specs: ["6.5×5 ft Queen", "Pocket-Spring Pillow-Top", "Microfiber Pillows", "Study Table & Chair"], images: [ gdriveImg("1SjLQXa2QMzNAKqC8xZaXYSUPDG9SxSPo"), gdriveImg("1JMmjsVSjQB8FkuW7mW4cjP1kfNNT5lCN"), gdriveImg("1qfbfrgvSiYh1plltJ3ry4IHFiVd1Atnp"), gdriveImg("1ucwYLM7I_AzQrqrhJDs2ea-fg3nfN65_"), gdriveImg("1pz-TOL3CXI31on9_InTudGZrMapgxTDj"), gdriveImg("1OadnNkTic29ZhX13w1NZEHag5ek72Jj_"), gdriveImg("1o0X8UAIF328W-ak_eZHoD8aG3_swwDCq") ], desc: "6.5 × 5 ft pocket-spring pillow-top queen mattress with microfiber pillows, study table & chair, fast Wi-Fi, and easy access to the 1st-floor hot-water shower." }, { id: 2, propertyId: "jawalakhel-patan", floor: "First Floor Rooms (Only 2 Rooms on Floor)", floorShort: "FIRST FLOOR · ROOM 2", floorNote: "Steps from the 1st-floor 24/7 hot-water shower · Peaceful 2-room floor", name: "Room 2 — Orthopedic Queen Classic", price: 1650, maxGuests: 2, specs: ["6.5×5 ft Queen", "Orthopedic Mattress", "Microfiber Pillows", "Study Table & Chair"], images: [ gdriveImg("1GblPpgtSjwI4wrOcKLX14npRX6dm4vwM"), gdriveImg("1QBoCAS2lV_ruZh5jG7vLPZK4-NPi7kXb") ], desc: "Quiet first-floor room with 6.5 × 5 ft orthopedic queen mattress, microfiber pillows, study table & chair, and fast fiber Wi-Fi." }, { id: 3, propertyId: "jawalakhel-patan", floor: "Second Floor Rooms (Only 2 Rooms on Floor)", floorShort: "SECOND FLOOR · ROOM 3", floorNote: "Uses 1st-floor hot-water shower (10 steps down) while 2nd-floor bath completes", name: "Room 3 — Orthopedic Study & Mirror Loft", price: 1750, maxGuests: 2, specs: ["6.5×5 ft Queen", "Orthopedic Mattress", "Standing Mirror", "Study Table & Chair"], images: [ gdriveImg("16LpRHyztkKNKE2IcCP-Rcfs6J9NtMxK7"), gdriveImg("1kAvCEFCKFbdatBP2CetUG1xGRwiZK7QD"), gdriveImg("1EW7l18O9T6cnhCJxqsZ6YLUkg7kOuuy0"), gdriveImg("1ut-euoAPzOwEwfHKUHwNMx4_PwlyMapz"), gdriveImg("1KArWt1J_VgNykwIOqbPJUKF3HjewTCSd") ], desc: "Bright second-floor room with 6.5 × 5 ft orthopedic queen bed, microfiber pillows, standing mirror, and study table & chair." }, { id: 4, propertyId: "jawalakhel-patan", floor: "Second Floor Rooms (Only 2 Rooms on Floor)", floorShort: "SECOND FLOOR · ROOM 4", floorNote: "Uses 1st-floor hot-water shower (10 steps down) while 2nd-floor bath completes", name: "Room 4 — Memory-Foam Queen Retreat", price: 1750, maxGuests: 2, specs: ["6.5×5 ft Queen", "Memory-Foam Mattress", "High-Quality Fiber Pillows", "Standing Mirror"], images: [ gdriveImg("1uS8nH3_Y6ix4UeCT08_8Ay7BK1txxiUb"), gdriveImg("1JoFOuNetgSZc3KhGJkbWgFODqPmfC5Bl"), gdriveImg("1r9eUaUyqILM2MzmPbXO4pwkn0Sqfc0op") ], desc: "Calm second-floor retreat with 6.5 × 5 ft memory-foam queen mattress, high-quality fiber pillows, and standing mirror; 10 steps down to 1st-floor hot shower." } ] }; document.getElementById("msb-fonepay-qr-img").src = MSB_CONFIG.fonepayQrUrl; const today = new Date(); today.setHours(0, 0, 0, 0); const fmtDate = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`; const todayStr = fmtDate(today); const tomorrow = new Date(today); tomorrow.setDate(tomorrow.getDate() + 1); const tomorrowStr = fmtDate(tomorrow); document.getElementById("msb-today-date-label").textContent = today.toLocaleDateString("en-US", { weekday: "short", month: "short", day: "numeric" }); const state = { propertyId: MSB_CONFIG.properties[0].id, activeRoomId: 1, checkIn: todayStr, checkOut: tomorrowStr, guests: 2, slideIndex: { 1: 0, 2: 0, 3: 0, 4: 0 }, heroCalOpen: { 1: false, 2: false, 3: false, 4: false }, viewYear: today.getFullYear(), viewMonth: today.getMonth(), blockedRanges: [], lbRoomId: 1, lbPhotoIdx: 0, lbZoomed: false, lastReceipt: null }; function isNightBooked(roomId, dStr) { return state.blockedRanges.some((b) => Number(b.room_id) === Number(roomId) && dStr >= b.check_in && dStr < b.check_out); } function isRangeFree(roomId, inStr, outStr) { if (!inStr || !outStr || outStr Number(b.room_id) === Number(roomId) && b.check_in inStr); } function getNextBookedDate(roomId) { const dates = state.blockedRanges .filter((b) => Number(b.room_id) === Number(roomId) && b.check_out > todayStr) .map((b) => (b.check_in >= todayStr ? b.check_in : todayStr)) .sort(); return dates.length ? dates[0] : null; } function calcNights(inStr, outStr) { if (!inStr || !outStr || outStr { const opt = document.createElement("option"); opt.value = p.id; opt.textContent = p.name; propSelect.appendChild(opt); }); function handleDatePick(roomId, dateStr) { if (dateStr < todayStr || isNightBooked(roomId, dateStr)) return; state.activeRoomId = Number(roomId); if (!state.checkIn || (state.checkIn && state.checkOut) || dateStr { const el = document.createElement("div"); el.className = "msb-cal-dow"; el.textContent = d; frag.appendChild(el); }); const firstDay = new Date(year, month, 1).getDay(); const daysInMonth = new Date(year, month + 1, 0).getDate(); for (let i = 0; i < firstDay; i++) { const empty = document.createElement("div"); empty.className = "msb-cal-day empty"; frag.appendChild(empty); } for (let day = 1; day <= daysInMonth; day++) { const dStr = fmtDate(new Date(year, month, day)); const cell = document.createElement("div"); cell.className = "msb-cal-day"; cell.textContent = day; if (dStr handleDatePick(roomId, dStr)); } if (Number(roomId) === Number(state.activeRoomId) && state.checkIn) { if (dStr === state.checkIn || dStr === state.checkOut) { cell.classList.add("selected"); } else if (state.checkOut && dStr > state.checkIn && dStr r.propertyId === state.propertyId); const pillsWrap = document.getElementById("msb-today-pills"); pillsWrap.innerHTML = ""; let openTodayCount = 0; propRooms.forEach((r) => { const openToday = !isNightBooked(r.id, todayStr); if (openToday) openTodayCount++; const nextBooked = getNextBookedDate(r.id); const pill = document.createElement("button"); pill.type = "button"; pill.className = "msb-today-pill"; pill.innerHTML = ` ${r.name.split("—")[0].trim()} · ${formatMoney(r.price)} ${openToday ? "Open Today" : "Booked Today"} · ${nextBooked ? "Next booked " + nextBooked.slice(5) : "Open ahead"} `; pill.addEventListener("click", () => openLightbox(r.id)); pillsWrap.appendChild(pill); }); document.getElementById("msb-ribbon-avail-text").textContent = `${openTodayCount} of ${propRooms.length} Rooms Open Today in Jawalakhel, Patan`; const activeRoom = propRooms.find((r) => r.id === state.activeRoomId) || propRooms[0]; const nights = calcNights(state.checkIn, state.checkOut) || 1; document.getElementById("msb-sb-summary-room").textContent = `${nights} Night${nights > 1 ? "s" : ""} · ${activeRoom.name.split("—")[0].trim()}`; document.getElementById("msb-sb-summary-total").textContent = formatMoney(nights * activeRoom.price); document.getElementById("msb-sb-wa-link").href = buildWaLink(activeRoom, state.checkIn, state.checkOut, state.guests); const openForSearch = propRooms.filter((r) => isRangeFree(r.id, state.checkIn, state.checkOut)); const fb = document.getElementById("msb-search-feedback"); if (calcNights(state.checkIn, state.checkOut) > 0) { fb.innerHTML = openForSearch.length ? `${openForSearch.length} room(s) available from ${state.checkIn} to ${state.checkOut}.` : `Selected dates are booked across rooms. Choose green dates below.`; } else { fb.textContent = ""; } } function renderHeroCards() { const track = document.getElementById("msb-hero-cards-track"); track.innerHTML = ""; const nights = calcNights(state.checkIn, state.checkOut) || 1; const monthLbl = new Date(state.viewYear, state.viewMonth, 1).toLocaleString("en-US", { month: "short", year: "numeric" }); MSB_CONFIG.rooms .filter((r) => r.propertyId === state.propertyId) .forEach((room) => { const pIdx = state.slideIndex[room.id] || 0; const rangeFree = calcNights(state.checkIn, state.checkOut) > 0 ? isRangeFree(room.id, state.checkIn, state.checkOut) : !isNightBooked(room.id, todayStr); const nextBooked = getNextBookedDate(room.id); const card = document.createElement("article"); card.className = "msb-hc" + (room.id === state.activeRoomId ? " is-active" : ""); card.innerHTML = `
${room.name} in Jawalakhel Patan ${formatMoney(room.price)}/night
${room.floorShort}

${room.name}

${room.specs.map((s) => `${s}`).join("")}
${rangeFree ? `Available for selected dates` : `Booked on selected dates`}
Next booked: ${nextBooked || "Open ahead"}
${nights} night${nights > 1 ? "s" : ""}: ${formatMoney(nights * room.price)}
WhatsApp
`; card.querySelector(`[data-prev="${room.id}"]`).addEventListener("click", () => { state.slideIndex[room.id] = (pIdx - 1 + room.images.length) % room.images.length; renderAll(); }); card.querySelector(`[data-next="${room.id}"]`).addEventListener("click", () => { state.slideIndex[room.id] = (pIdx + 1) % room.images.length; renderAll(); }); card.querySelectorAll(`[data-zoom="${room.id}"]`).forEach((el) => { el.addEventListener("click", () => openLightbox(room.id)); }); card.querySelector(`[data-cal-btn="${room.id}"]`).addEventListener("click", () => { state.heroCalOpen[room.id] = !state.heroCalOpen[room.id]; renderHeroCards(); }); card.querySelector(`[data-cal-holder="${room.id}"]`).appendChild( buildCalendarCells(room.id, state.viewYear, state.viewMonth) ); card.querySelector(`[data-book="${room.id}"]`).addEventListener("click", () => openBookingPopup(room.id)); track.appendChild(card); }); } function renderFloors() { const container = document.getElementById("msb-floors-container"); container.innerHTML = ""; const floors = [...new Set(MSB_CONFIG.rooms.map((r) => r.floor))]; const monthLabel = new Date(state.viewYear, state.viewMonth, 1).toLocaleString("en-US", { month: "short", year: "numeric" }); floors.forEach((floorTitle) => { const floorRooms = MSB_CONFIG.rooms.filter((r) => r.floor === floorTitle); const group = document.createElement("div"); group.className = "msb-floor-group"; group.innerHTML = `

${floorTitle}

${floorRooms[0].floorNote}

`; const grid = group.querySelector(".msb-floor-rooms-grid"); floorRooms.forEach((room) => { const availToday = !isNightBooked(room.id, todayStr); const pIdx = state.slideIndex[room.id] || 0; const nights = calcNights(state.checkIn, state.checkOut) || 1; const card = document.createElement("article"); card.className = "msb-room-card"; card.innerHTML = `
${room.name} ${availToday ? "Available Today" : "Booked Tonight"} ${formatMoney(room.price)} / night
${room.images.map((src, i) => `Photo ${i + 1}`).join("")}

${room.name}

${room.desc}

${room.specs.map((a) => `${a}`).join("")}
Live Availability (${monthLabel}) Tap green dates
`; card.querySelector(`[data-prev="${room.id}"]`).addEventListener("click", () => { state.slideIndex[room.id] = (pIdx - 1 + room.images.length) % room.images.length; renderAll(); }); card.querySelector(`[data-next="${room.id}"]`).addEventListener("click", () => { state.slideIndex[room.id] = (pIdx + 1) % room.images.length; renderAll(); }); card.querySelector(`[data-zoom="${room.id}"]`).addEventListener("click", () => openLightbox(room.id)); card.querySelectorAll("[data-thumb]").forEach((t) => { t.addEventListener("click", () => { const [rId, idx] = t.getAttribute("data-thumb").split(":"); state.slideIndex[Number(rId)] = Number(idx); renderAll(); }); }); card.querySelector(`[data-mini-cal="${room.id}"]`).appendChild( buildCalendarCells(room.id, state.viewYear, state.viewMonth) ); card.querySelector(`[data-book-room="${room.id}"]`).addEventListener("click", () => openBookingPopup(room.id)); grid.appendChild(card); }); container.appendChild(group); }); } function syncInputs() { document.getElementById("msb-sb-checkin").min = todayStr; document.getElementById("msb-sb-checkin").value = state.checkIn; document.getElementById("msb-sb-checkout").value = state.checkOut; document.getElementById("msb-sb-guests").value = String(state.guests); const formRoom = document.getElementById("msb-form-room"); if (formRoom.options.length === 0) { MSB_CONFIG.rooms.forEach((r) => { const opt = document.createElement("option"); opt.value = r.id; opt.textContent = `${r.name} (${formatMoney(r.price)}/night)`; formRoom.appendChild(opt); }); } formRoom.value = String(state.activeRoomId); const fIn = document.getElementById("msb-form-checkin"); const fOut = document.getElementById("msb-form-checkout"); fIn.min = todayStr; if (state.checkIn) fIn.value = state.checkIn; if (state.checkOut) fOut.value = state.checkOut; document.getElementById("msb-form-guests").value = String(state.guests); const room = MSB_CONFIG.rooms.find((r) => r.id === Number(formRoom.value)) || MSB_CONFIG.rooms[0]; const nights = calcNights(fIn.value, fOut.value); document.getElementById("msb-form-breakdown").textContent = nights > 0 ? `${room.name} · ${nights} night(s) × ${formatMoney(room.price)}` : `${room.name} · Choose valid dates`; document.getElementById("msb-form-total").textContent = formatMoney(nights * room.price); } function openBookingPopup(roomId) { if (roomId) state.activeRoomId = Number(roomId); syncInputs(); document.getElementById("msb-booking-modal").hidden = false; } function openLightbox(roomId) { state.lbRoomId = Number(roomId); state.activeRoomId = Number(roomId); state.lbPhotoIdx = state.slideIndex[roomId] || 0; state.lbZoomed = false; document.getElementById("msb-zoom-stage").classList.remove("zoomed"); document.getElementById("msb-lb-zoom-btn").textContent = "Zoom: 1x"; renderLightbox(); document.getElementById("msb-lightbox").hidden = false; } function renderLightbox() { const room = MSB_CONFIG.rooms.find((r) => r.id === state.lbRoomId) || MSB_CONFIG.rooms[0]; const imgs = room.images; state.lbPhotoIdx = ((state.lbPhotoIdx % imgs.length) + imgs.length) % imgs.length; document.getElementById("msb-lb-img").src = imgs[state.lbPhotoIdx]; document.getElementById("msb-lb-counter").textContent = `${state.lbPhotoIdx + 1} / ${imgs.length}`; document.getElementById("msb-lb-floor").textContent = room.floorShort; document.getElementById("msb-lb-title").textContent = `${room.name} — ${formatMoney(room.price)}/night`; document.getElementById("msb-lb-desc").textContent = room.desc; const nb = getNextBookedDate(room.id); document.getElementById("msb-lb-next-booked").textContent = nb ? `Next booked date: ${nb} · Other green dates are open.` : `All upcoming dates open for instant booking.`; document.getElementById("msb-lb-month-label").textContent = new Date(state.viewYear, state.viewMonth, 1) .toLocaleString("en-US", { month: "long", year: "numeric" }); const calEl = document.getElementById("msb-lb-calendar"); calEl.innerHTML = ""; calEl.appendChild(buildCalendarCells(room.id, state.viewYear, state.viewMonth)); const thumbs = document.getElementById("msb-lb-thumbs"); thumbs.innerHTML = ""; imgs.forEach((src, i) => { const im = document.createElement("img"); im.src = src; if (i === state.lbPhotoIdx) im.className = "active"; im.addEventListener("click", () => { state.lbPhotoIdx = i; renderLightbox(); }); thumbs.appendChild(im); }); document.getElementById("msb-lb-wa-btn").href = buildWaLink(room, state.checkIn, state.checkOut, state.guests); } document.getElementById("msb-form-doc").addEventListener("change", (e) => { const file = e.target.files && e.target.files[0]; const chip = document.getElementById("msb-doc-chip"); if (!file) { chip.hidden = true; return; } const kb = Math.max(1, Math.round(file.size / 1024)); chip.hidden = false; document.getElementById("msb-doc-label").textContent = `Selected: ${file.name} (${kb} KB)`; }); function downloadPdfReceipt(receipt) { if (!receipt) return; const win = window.open("", "_blank", "width=760,height=860"); if (!win) return; win.document.write(` Manaar Stays Booking Receipt - ${receipt.code} body { font-family: Arial, sans-serif; color: #14101D; padding: 36px; max-width: 680px; margin: 0 auto; } .head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #6a2dba; padding-bottom: 14px; margin-bottom: 20px; } .brand { font-size: 22px; font-weight: 800; color: #6a2dba; letter-spacing: 0.08em; } .sub { font-size: 12px; color: #555; } .badge { background: #F3ECFC; color: #6a2dba; padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 13px; } table { width: 100%; border-collapse: collapse; margin: 16px 0; } td { padding: 10px 8px; border-bottom: 1px solid #E6E0F0; font-size: 14px; } td.lbl { font-weight: 700; width: 38%; color: #444; } .total { font-size: 18px; font-weight: 800; color: #6a2dba; } .rules { background: #FAF9FC; border: 1px solid #E6E0F0; padding: 14px; border-radius: 8px; font-size: 12px; line-height: 1.5; margin-top: 18px; }
MANAAR STAYS
Shanti Chok Marg, Ward No. 4, Jawalakhel, Patan, Lalitpur · +977 9765131653
Ref: #${receipt.code}

Booking & Fonepay Payment Summary

Guest Name${receipt.guestName}
Contact Number${receipt.guestPhone}
Room${receipt.roomName}
Check-in${receipt.checkIn} (2:00 PM)
Check-out${receipt.checkOut} (11:00 AM)
Guests & Relation${receipt.guests} Person(s) — ${receipt.relation}
PaymentFonepay QR (Upfront — Non-Refundable)
Total Stay Amount${receipt.totalFormatted}
House Rules: Check-in 2:00 PM / Check-out 11:00 AM. Upfront Fonepay payment required; strictly no refund regardless of cancellation timing. Balcony-only smoking; night silence; turn off geyser & dry bathroom after shower; wash dishes & turn off induction after use; garbage in dustbin; check belongings & message host after checkout; no illegal acts/drugs; guest pays for damage; host not responsible for stay incidents.
window.onload = function() { window.print(); }; `); win.document.close(); } document.getElementById("msb-ribbon-sync-btn").addEventListener("click", () => loadLiveAvailability(true)); document.getElementById("msb-ribbon-popup-btn").addEventListener("click", () => openBookingPopup(state.activeRoomId)); document.getElementById("msb-nav-book-btn").addEventListener("click", () => openBookingPopup(state.activeRoomId)); ["msb-sb-checkin", "msb-sb-checkout", "msb-sb-guests"].forEach((id) => { document.getElementById(id).addEventListener("change", () => { state.checkIn = document.getElementById("msb-sb-checkin").value; state.checkOut = document.getElementById("msb-sb-checkout").value; state.guests = Number(document.getElementById("msb-sb-guests").value); syncInputs(); renderAll(); }); }); document.getElementById("msb-hero-search").addEventListener("submit", (e) => { e.preventDefault(); openBookingPopup(state.activeRoomId); }); ["msb-form-room", "msb-form-checkin", "msb-form-checkout", "msb-form-guests"].forEach((id) => { document.getElementById(id).addEventListener("change", () => { state.activeRoomId = Number(document.getElementById("msb-form-room").value); state.checkIn = document.getElementById("msb-form-checkin").value; state.checkOut = document.getElementById("msb-form-checkout").value; state.guests = Number(document.getElementById("msb-form-guests").value); syncInputs(); renderAll(); }); }); document.getElementById("msb-bm-close").addEventListener("click", () => { document.getElementById("msb-booking-modal").hidden = true; }); document.getElementById("msb-lb-close").addEventListener("click", () => { document.getElementById("msb-lightbox").hidden = true; }); document.getElementById("msb-lb-prev").addEventListener("click", () => { state.lbPhotoIdx--; renderLightbox(); }); document.getElementById("msb-lb-next").addEventListener("click", () => { state.lbPhotoIdx++; renderLightbox(); }); document.getElementById("msb-lb-zoom-btn").addEventListener("click", () => { state.lbZoomed = !state.lbZoomed; document.getElementById("msb-zoom-stage").classList.toggle("zoomed", state.lbZoomed); document.getElementById("msb-lb-zoom-btn").textContent = state.lbZoomed ? "Zoom: 1.75x" : "Zoom: 1x"; }); document.getElementById("msb-zoom-stage").addEventListener("click", () => document.getElementById("msb-lb-zoom-btn").click()); document.getElementById("msb-lb-m-prev").addEventListener("click", () => { state.viewMonth--; if (state.viewMonth { state.viewMonth++; if (state.viewMonth > 11) { state.viewMonth = 0; state.viewYear++; } renderAll(); }); document.getElementById("msb-lb-book-btn").addEventListener("click", () => { document.getElementById("msb-lightbox").hidden = true; openBookingPopup(state.lbRoomId); }); document.getElementById("msb-download-pdf-btn").addEventListener("click", () => downloadPdfReceipt(state.lastReceipt)); document.getElementById("msb-direct-form").addEventListener("submit", async (e) => { e.preventDefault(); const feedback = document.getElementById("msb-form-feedback"); const btn = document.getElementById("msb-form-submit"); const roomId = Number(document.getElementById("msb-form-room").value); const room = MSB_CONFIG.rooms.find((r) => r.id === roomId) || MSB_CONFIG.rooms[0]; const inVal = document.getElementById("msb-form-checkin").value; const outVal = document.getElementById("msb-form-checkout").value; const guestName = document.getElementById("msb-form-name").value; const guestPhone = document.getElementById("msb-form-phone").value; const guests = document.getElementById("msb-form-guests").value; const relation = document.getElementById("msb-form-relation").value; const guestEmail = document.getElementById("msb-form-email").value || "Not provided"; const notes = document.getElementById("msb-form-notes").value || "None"; const nights = calcNights(inVal, outVal); const total = nights * room.price; if (!isRangeFree(roomId, inVal, outVal)) { feedback.style.color = "#B91C1C"; feedback.textContent = "Those dates overlap an existing booking. Please choose open green dates."; return; } btn.disabled = true; btn.textContent = "Submitting Booking..."; const fd = new FormData(e.target); fd.append("action", "msb_submit_booking"); fd.append("notify_email", MSB_CONFIG.ownerEmail); const waUrl = buildWaLink(room, inVal, outVal, guests, relation, guestName, guestPhone); let bookingCode = "MS-" + Math.random().toString(36).substring(2, 8).toUpperCase(); try { const res = await fetch(MSB_CONFIG.ajaxUrl, { method: "POST", body: fd }); const json = await res.json(); if (json && json.success && json.data && json.data.booking) { bookingCode = json.data.booking.booking_code; } } catch (err) {} try { await fetch("https://api.web3forms.com/submit", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, body: JSON.stringify({ access_key: MSB_CONFIG.web3formsKey, subject: `New Manaar Stays Booking #${bookingCode} — ${room.name}`, from_name: "Manaar Stays Website", Booking_Code: bookingCode, Room: room.name, Check_In: `${inVal} (2:00 PM)`, Check_Out: `${outVal} (11:00 AM)`, Nights: nights, Total_NPR: formatMoney(total), Guest_Name: guestName, Guest_Phone: guestPhone, Guests_Relation: `${guests} Person(s) - ${relation}`, Guest_Email: guestEmail, Notes: notes, Lock_Dates_Link: `${window.location.origin}/wp-admin/admin-post.php?action=msb_confirm_payment&code=${bookingCode}` }) }); } catch (err) {} state.lastReceipt = { code: bookingCode, guestName, guestPhone, roomName: room.name, checkIn: inVal, checkOut: outVal, guests, relation, totalFormatted: formatMoney(total) }; feedback.style.color = "#15803D"; feedback.innerHTML = `Booking #${bookingCode} submitted for ${room.name} (${inVal} to ${outVal}, ${formatMoney(total)}) and sent to ${MSB_CONFIG.ownerEmail}. Once payment is verified, dates lock on the site & sync to Airbnb.`; document.getElementById("msb-post-wa-btn").href = waUrl; document.getElementById("msb-post-submit-bar").hidden = false; btn.disabled = false; btn.textContent = "Submit Booking & Notify Host →"; }); function renderAll() { renderTodayAndSearch(); renderHeroCards(); renderFloors(); if (!document.getElementById("msb-lightbox").hidden) renderLightbox(); } syncInputs(); renderAll(); loadLiveAvailability(false); })();
{ "@context": "https://schema.org", "@type": "LodgingBusiness", "name": "Manaar Stays", "description": "Private rooms in Jawalakhel, Lalitpur near Patan Durbar Square. Quiet 4-room residence with 2 rooms per floor, 6.5x5 ft beds, fast Wi-Fi, 24/7 hot shower, and direct Fonepay booking.", "url": "https://manaarstays.com", "telephone": "+977-9765131653", "email": "shyamtheseo@gmail.com", "priceRange": "NPR 1650 - NPR 1850", "checkinTime": "14:00", "checkoutTime": "11:00", "address": { "@type": "PostalAddress", "streetAddress": "Shanti Chok Marg, Ward No. 4, Jawalakhel", "addressLocality": "Lalitpur", "addressRegion": "Bagmati Province", "postalCode": "44600", "addressCountry": "NP" }, "geo": { "@type": "GeoCoordinates", "latitude": "27.6744", "longitude": "85.3155" } }
LIVE AIRBNB SYNC Checking open rooms in Jawalakhel, Patan... | Check-in 2:00 PM · Check-out 11:00 AM
SHANTI CHOWK MARG · WARD 4, LALITPUR

Rooms in Jawalakhel, Lalitpur — Nearby Patan Durbar Square

A calm 4-room residence with only 2 rooms per floor for genuine personal space, 6.5 × 5 ft beds, fast Wi-Fi, 24/7 hot shower, and smooth popup booking.

TODAY'S ROOM STATUS
1 Person 2 Persons 3 Persons
1 Night · Room 1 NPR 1,850
WhatsApp
SELECT YOUR ROOM · CLICK PHOTO TO ZOOM · TAP BOOK NOW FOR POPUP

Swipe horizontally on mobile to browse all 4 rooms →

Open Booked Selected
Manaar Stays Main House in Jawalakhel, Patan, Lalitpur SHANTI CHOWK MARG · JAWALAKHEL, PATAN

Explore Our 4 Private Rooms Floor by Floor

Only 2 rooms on the First Floor and 2 rooms on the Second Floor—peaceful personal space, full photo galleries, and live calendar availability.

Clean Bathroom with 24/7 Hot Water Shower at Manaar Stays Jawalakhel Patan 24/7 HOT WATER GEYSER SHOWER
UNCROWDED COMFORT · TRANSPARENT DETAILS

Personal Space & Clean Hot-Shower Facilities

With just two rooms per floor, Manaar Stays stays quiet and uncrowded near Patan Durbar Square and Jawalakhel.

  • First Floor Common Bathroom: Clean modern bathroom with 24/7 hot-water geyser shower on the first floor (just 10 easy steps down from the second floor).
  • Second Floor Bathroom Upgrade: A dedicated second-floor bathroom is currently under construction so each floor will soon have its own bathroom.
  • Shared Kitchen & Hygiene: Light kitchen access available—please wash dishes and switch off the induction cooktop after use.
LOCAL STAY GUIDE · LALITPUR

Affordable Private Rooms & Homestay Near Patan Durbar Square, Jawalakhel

Located on peaceful Shanti Chok Marg in Ward No. 4, Jawalakhel, Manaar Stays offers convenient access to Patan Durbar Square, Jawalakhel cafes, and Lalitpur transit routes.

6.5 × 5 ft Queen Beds & Pillows

Choose between pocket-spring pillow-top (Room 1), orthopedic queen beds (Rooms 2 & 3), and memory-foam queen bed (Room 4) with clean microfiber/fiber pillows.

Study Desks & Standing Mirrors

Rooms 1, 2, and 3 include a study table and chair for work or reading, while Rooms 3 and 4 include full-length standing mirrors.

Direct Fonepay & Calendar Sync

View live open and booked dates before booking, pay directly via Fonepay QR, and download a PDF booking summary right after submitting.

#msb-landing-app { --msb-primary: #6a2dba; --msb-primary-dark: #522094; --msb-primary-soft: #F3ECFC; --msb-gold: #B8892D; --msb-bg: #FAF9FC; --msb-surface: #FFFFFF; --msb-ink: #14101D; --msb-muted: #5B5568; --msb-border: #E6E0F0; --msb-avail: #15803D; --msb-avail-bg: #ECFDF3; --msb-booked: #B91C1C; --msb-booked-bg: #FEF2F2; font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--msb-ink); background: var(--msb-bg); line-height: 1.5; -webkit-font-smoothing: antialiased; } #msb-landing-app *, #msb-landing-app *::before, #msb-landing-app *::after { box-sizing: border-box; } .msb-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; } #msb-landing-app .msb-logo-img { width: 38px !important; height: 38px !important; max-width: 38px !important; max-height: 38px !important; object-fit: contain !important; border-radius: 8px; flex-shrink: 0; display: block; } @keyframes msbPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.65; } } .msb-ribbon { background: var(--msb-ink); color: #F4F1FA; font-size: 12px; padding: 8px 0; } .msb-ribbon-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .msb-ribbon-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .msb-live-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(106, 45, 186, 0.35); border: 1px solid rgba(180, 142, 235, 0.45); color: #E2D4FA; padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; } .msb-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; animation: msbPulse 1.8s infinite; } .msb-rib-sep { opacity: 0.35; } .msb-ribbon-right { display: flex; gap: 8px; } .msb-rib-btn { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.25); border-radius: 7px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: pointer; } .msb-rib-btn-primary { background: var(--msb-primary); border-color: var(--msb-primary); } .msb-rib-btn-primary:hover { background: var(--msb-primary-dark); } .msb-topbar { position: sticky; top: 0; z-index: 40; background: rgba(250, 249, 252, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--msb-border); } .msb-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; } .msb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--msb-ink); } .msb-brand-title { display: block; font-weight: 700; letter-spacing: 0.14em; font-size: 14px; color: var(--msb-primary); } .msb-brand-sub { display: block; font-size: 10px; letter-spacing: 0.11em; color: var(--msb-muted); } .msb-nav { display: flex; align-items: center; gap: 18px; } .msb-nav a { text-decoration: none; color: var(--msb-ink); font-size: 13px; font-weight: 600; } .msb-nav-book-pill { background: var(--msb-primary); color: #FFF; border: none; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; } .msb-nav-call { padding: 7px 13px; border: 1.5px solid var(--msb-primary); color: var(--msb-primary) !important; border-radius: 999px; } .msb-hero { padding: 32px 0 48px; background: radial-gradient(circle at 88% 8%, rgba(106, 45, 186, 0.10), transparent 46%), var(--msb-bg); border-bottom: 1px solid var(--msb-border); } .msb-hero-intro { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; margin-bottom: 20px; } .msb-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--msb-primary); margin-bottom: 6px; } .msb-hero-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(28px, 3.8vw, 46px); font-weight: 600; line-height: 1.12; margin: 0 0 10px; } .msb-hero-title em { font-style: italic; color: var(--msb-primary); } .msb-hero-sub { margin: 0; font-size: 14px; color: var(--msb-muted); max-width: 600px; } .msb-today-card { background: var(--msb-surface); border: 1px solid var(--msb-border); border-radius: 16px; padding: 14px; box-shadow: 0 10px 26px rgba(20, 16, 29, 0.04); } .msb-today-head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--msb-muted); margin-bottom: 9px; } .msb-today-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .msb-today-pill { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 10px; padding: 8px 10px; cursor: pointer; transition: all 0.2s ease; } .msb-today-pill:hover { border-color: var(--msb-primary); transform: translateY(-1px); } .msb-today-pill strong { font-size: 12px; color: var(--msb-ink); } .msb-today-pill span { font-size: 10.5px; margin-top: 2px; font-weight: 600; } .st-open { color: var(--msb-avail); } .st-full { color: var(--msb-booked); } .msb-search-bar { display: grid; grid-template-columns: 1.1fr 0.85fr 0.85fr 0.7fr auto auto; gap: 10px; align-items: center; background: var(--msb-surface); border: 1.5px solid var(--msb-primary); border-radius: 16px; padding: 12px; box-shadow: 0 16px 36px rgba(106, 45, 186, 0.10); } .msb-sb-group { display: flex; flex-direction: column; gap: 3px; } .msb-sb-group label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--msb-muted); } .msb-sb-group input, .msb-sb-group select { border: 1px solid var(--msb-border); border-radius: 9px; padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--msb-ink); background: var(--msb-bg); } .msb-sb-calc { padding: 0 8px; text-align: right; } .msb-sb-calc small { display: block; font-size: 10.5px; color: var(--msb-muted); font-weight: 600; } .msb-sb-calc strong { font-size: 17px; color: var(--msb-primary); font-weight: 700; } .msb-sb-btns { display: flex; gap: 7px; } .msb-btn-primary { background: var(--msb-primary); color: #FFFFFF; border: none; border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.2s ease, transform 0.15s ease; } .msb-btn-primary:hover { background: var(--msb-primary-dark); transform: translateY(-1px); } .msb-btn-gold { background: var(--msb-gold); color: #FFFFFF; border: none; border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 700; cursor: pointer; } .msb-btn-outline { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border: 1.5px solid var(--msb-ink); border-radius: 10px; color: var(--msb-ink); background: transparent; text-decoration: none; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; } .msb-btn-outline:hover { background: var(--msb-primary-soft); border-color: var(--msb-primary); color: var(--msb-primary); } .msb-btn-full { width: 100%; } .msb-search-feedback { margin-top: 9px; font-size: 12.5px; font-weight: 600; min-height: 18px; } .msb-hero-cards-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px; gap: 10px; } .msb-kicker { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--msb-primary); } .msb-swipe-hint { display: none; margin: 3px 0 0; font-size: 11.5px; color: var(--msb-primary); font-weight: 600; } .msb-legend-mini { display: flex; gap: 12px; font-size: 11.5px; color: var(--msb-muted); } .msb-legend-mini .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; } .msb-legend-mini .dot.avail { background: var(--msb-avail); } .msb-legend-mini .dot.booked { background: var(--msb-booked); } .msb-legend-mini .dot.selected { background: var(--msb-primary); } .msb-hero-cards-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; } .msb-hc { background: var(--msb-surface); border: 1px solid var(--msb-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 26px rgba(20, 16, 29, 0.05); transition: transform 0.2s ease, border-color 0.2s ease; } .msb-hc:hover { transform: translateY(-3px); border-color: var(--msb-primary); } .msb-hc.is-active { border: 2px solid var(--msb-primary); } .msb-hc-media { position: relative; height: 172px; background: #14101D; overflow: hidden; } .msb-hc-media img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; } .msb-slide-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(20, 16, 29, 0.72); color: #FFF; font-size: 13px; cursor: pointer; } .msb-slide-btn.prev { left: 8px; } .msb-slide-btn.next { right: 8px; } .msb-hc-zoom { position: absolute; top: 8px; right: 8px; z-index: 3; background: rgba(20, 16, 29, 0.78); color: #FFF; border: none; border-radius: 6px; padding: 3px 8px; font-size: 10px; font-weight: 700; cursor: pointer; } .msb-hc-price { position: absolute; bottom: 8px; right: 8px; background: var(--msb-primary); color: #FFF; padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; } .msb-hc-body { padding: 13px; display: flex; flex-direction: column; gap: 8px; flex: 1; } .msb-hc-floor { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--msb-primary); } .msb-hc-title { margin: 1px 0 0; font-size: 14.5px; font-weight: 700; } .msb-hc-specs { display: flex; flex-wrap: wrap; gap: 4px; } .msb-hc-specs span { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: var(--msb-primary-soft); color: var(--msb-primary-dark); } .msb-hc-avail-strip { font-size: 11px; padding: 6px 8px; border-radius: 8px; background: var(--msb-bg); border: 1px solid var(--msb-border); } .msb-cal-drawer-btn { background: var(--msb-bg); border: 1px solid var(--msb-border); color: var(--msb-ink); border-radius: 8px; padding: 6px 9px; font-size: 11px; font-weight: 700; cursor: pointer; text-align: left; } .msb-hc-cal-box { display: none; background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 9px; padding: 7px; } .msb-hc-cal-box.open { display: block; } .msb-hc-total { font-size: 12px; font-weight: 700; border-top: 1px dashed var(--msb-border); padding-top: 6px; } .msb-hc-actions { display: flex; gap: 6px; margin-top: auto; } .msb-hc-actions .msb-btn-primary { flex: 1; padding: 8px 10px; font-size: 12px; } .msb-hc-actions .msb-btn-outline { padding: 8px 10px; font-size: 11.5px; } .msb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; } .msb-cal-dow { font-size: 9.5px; font-weight: 700; color: var(--msb-muted); padding: 2px 0; } .msb-cal-day { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; user-select: none; } .msb-cal-day.empty { cursor: default; } .msb-cal-day.past { color: #C5BFD0; cursor: not-allowed; } .msb-cal-day.avail { background: var(--msb-avail-bg); color: var(--msb-avail); } .msb-cal-day.booked { background: var(--msb-booked-bg); color: var(--msb-booked); text-decoration: line-through; cursor: not-allowed; } .msb-cal-day.selected, .msb-cal-day.in-range { background: var(--msb-primary) !important; color: #FFF !important; text-decoration: none; } .msb-timeline-section { padding: 58px 0 34px; } .msb-house-anchor { text-align: center; max-width: 680px; margin: 0 auto; } .msb-circle-frame { position: relative; width: 220px; height: 220px; margin: 0 auto 20px; border-radius: 50%; padding: 7px; background: var(--msb-surface); border: 2px solid var(--msb-primary); box-shadow: 0 18px 40px rgba(106, 45, 186, 0.14); } .msb-circle-frame img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; } .msb-circle-badge { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); background: var(--msb-ink); color: #FFF; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 999px; white-space: nowrap; } .msb-anchor-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 600; margin: 8px 0; } .msb-anchor-sub { color: var(--msb-muted); font-size: 14px; margin: 0 auto; } .msb-thread-stem { width: 2px; height: 46px; margin: 18px auto 0; background: linear-gradient(to bottom, var(--msb-primary), var(--msb-gold)); } .msb-floors-wrapper { position: relative; padding-bottom: 14px; } .msb-floors-wrapper::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--msb-border); transform: translateX(-50%); z-index: 0; } .msb-floor-group { position: relative; z-index: 1; margin-bottom: 48px; } .msb-floor-node { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 22px; } .msb-node-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--msb-primary); border: 3px solid var(--msb-bg); box-shadow: 0 0 0 2px var(--msb-primary); margin-bottom: 8px; } .msb-floor-heading { background: var(--msb-bg); padding: 6px 22px; border: 1px solid var(--msb-border); border-radius: 999px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; font-weight: 600; margin: 0; } .msb-floor-note { background: var(--msb-bg); font-size: 12px; color: var(--msb-muted); margin: 5px 0 0; padding: 2px 12px; } .msb-floor-rooms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; } .msb-room-card { background: var(--msb-surface); border: 1px solid var(--msb-border); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 28px rgba(20, 16, 29, 0.05); display: flex; flex-direction: column; } .msb-room-card-media { position: relative; height: 250px; background: #14101D; } .msb-room-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; } .msb-room-card-status { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; } .msb-room-card-status.is-avail { background: var(--msb-avail-bg); color: var(--msb-avail); } .msb-room-card-status.is-booked { background: var(--msb-booked-bg); color: var(--msb-booked); } .msb-room-card-price { position: absolute; bottom: 12px; right: 12px; background: var(--msb-primary); color: #FFF; padding: 5px 11px; border-radius: 9px; font-size: 13px; font-weight: 700; } .msb-card-thumbs { display: flex; gap: 6px; padding: 10px 18px 0; overflow-x: auto; } .msb-card-thumbs img { width: 50px; height: 36px; border-radius: 6px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: 0.65; flex-shrink: 0; } .msb-card-thumbs img.active, .msb-card-thumbs img:hover { opacity: 1; border-color: var(--msb-primary); } .msb-room-card-body { padding: 15px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; } .msb-room-card-body h4 { margin: 0; font-size: 18px; } .msb-room-card-body p { margin: 4px 0 0; font-size: 13px; color: var(--msb-muted); } .msb-amenities-chips { display: flex; flex-wrap: wrap; gap: 6px; } .msb-amenities-chips span { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--msb-primary-soft); color: var(--msb-primary-dark); } .msb-mini-cal-wrap { background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 12px; padding: 11px; } .msb-mini-cal-top { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; margin-bottom: 7px; } .msb-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--msb-border); } .msb-bathroom-section, .msb-seo-section { padding: 50px 0; border-top: 1px solid var(--msb-border); background: var(--msb-surface); } .msb-seo-section { background: var(--msb-bg); } .msb-bathroom-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 30px; align-items: center; } .msb-bathroom-media { position: relative; border-radius: 18px; overflow: hidden; height: 310px; } .msb-bathroom-media img { width: 100%; height: 100%; object-fit: cover; display: block; } .msb-bath-badge { position: absolute; bottom: 12px; left: 12px; background: var(--msb-primary); color: #FFF; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 999px; } .msb-bathroom-info h2, .msb-seo-header h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 32px; font-weight: 600; margin: 6px 0 10px; } .msb-bath-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; } .msb-seo-header { max-width: 760px; margin-bottom: 24px; } .msb-seo-header p { color: var(--msb-muted); font-size: 14px; margin: 0; } .msb-seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } .msb-seo-box { background: var(--msb-surface); border: 1px solid var(--msb-border); border-radius: 14px; padding: 18px; } .msb-seo-box h3 { margin: 0 0 6px; font-size: 16px; color: var(--msb-primary); } .msb-seo-box p { margin: 0; font-size: 13px; color: var(--msb-muted); } .msb-modal-backdrop[hidden] { display: none !important; } .msb-modal-backdrop { position: fixed; inset: 0; z-index: 9999; background: rgba(20, 16, 29, 0.84); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 14px; overflow-y: auto; } .msb-booking-card, .msb-lightbox-card { position: relative; background: #FFFFFF; color: var(--msb-ink); border-radius: 18px; width: 100%; max-width: 980px; max-height: 92vh; overflow-y: auto; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); } .msb-modal-close { position: absolute; top: 12px; right: 12px; z-index: 10; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--msb-border); background: #FFF; font-size: 20px; cursor: pointer; } .msb-bm-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; } .msb-bm-form h3 { margin: 4px 0 12px; font-size: 20px; } .msb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 11px; } .msb-form-row label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; } .msb-form-row input, .msb-form-row select { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--msb-border); background: var(--msb-bg); font-size: 13px; color: var(--msb-ink); } .msb-doc-chip { background: var(--msb-primary-soft); color: var(--msb-primary-dark); border-radius: 8px; padding: 6px 10px; margin-bottom: 11px; font-size: 11.5px; font-weight: 700; } .msb-agree-check { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--msb-muted); margin-bottom: 12px; cursor: pointer; } .msb-agree-check input { margin-top: 2px; accent-color: var(--msb-primary); flex-shrink: 0; } .msb-price-bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 10px; margin-bottom: 12px; } .msb-price-bar strong { font-size: 18px; color: var(--msb-primary); } .msb-feedback { margin-top: 10px; font-size: 12.5px; font-weight: 700; } .msb-post-submit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .msb-qr-card { display: flex; align-items: center; gap: 14px; background: var(--msb-primary-soft); border: 1.5px solid var(--msb-primary); border-radius: 14px; padding: 12px; margin-bottom: 14px; } .msb-qr-box { width: 118px; height: 118px; flex-shrink: 0; background: #FFF; border-radius: 10px; padding: 6px; } .msb-qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; } .msb-qr-pill { display: inline-block; background: var(--msb-primary); color: #FFF; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 5px; } .msb-qr-card h3 { margin: 4px 0 3px; font-size: 14px; } .msb-qr-card p { margin: 0; font-size: 11.5px; color: var(--msb-muted); } .msb-rules-mini { background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 12px; padding: 12px; font-size: 11.5px; } .msb-rules-mini ul { margin: 6px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 5px; color: var(--msb-muted); } .msb-rules-mini strong { color: var(--msb-ink); } .msb-lb-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; } .msb-zoom-stage { height: 350px; background: #14101D; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; } .msb-zoom-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.25s ease; cursor: zoom-in; } .msb-zoom-stage.zoomed img { transform: scale(1.75); cursor: zoom-out; } .msb-lb-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; } .msb-ghost-btn { background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; } .msb-lb-thumbs { display: flex; gap: 6px; margin-top: 9px; overflow-x: auto; } .msb-lb-thumbs img { width: 52px; height: 38px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: 0.65; } .msb-lb-thumbs img.active { opacity: 1; border-color: var(--msb-primary); } .msb-floor-pill { display: inline-block; background: var(--msb-primary); color: #FFF; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; } .msb-lb-status-pill { background: var(--msb-primary-soft); color: var(--msb-primary-dark); font-size: 11.5px; font-weight: 700; padding: 7px 9px; border-radius: 8px; margin-bottom: 10px; } .msb-lb-cal-wrap { background: var(--msb-bg); border: 1px solid var(--msb-border); border-radius: 10px; padding: 9px; margin-bottom: 12px; } .msb-lb-cal-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; } .msb-lb-cal-head button { border: 1px solid var(--msb-border); background: #FFF; border-radius: 5px; padding: 1px 7px; cursor: pointer; } .msb-lb-cta-col { display: flex; flex-direction: column; gap: 8px; } @media (max-width: 1040px) { .msb-search-bar { grid-template-columns: repeat(3, 1fr); } .msb-hero-cards-track { grid-template-columns: repeat(2, 1fr); } .msb-seo-grid { grid-template-columns: 1fr; } } @media (max-width: 780px) { .msb-hero-intro, .msb-floor-rooms-grid, .msb-bathroom-grid, .msb-bm-grid, .msb-lb-grid { grid-template-columns: 1fr; } .msb-search-bar { grid-template-columns: 1fr 1fr; } .msb-sb-calc { text-align: left; } .msb-swipe-hint { display: block; } .msb-floors-wrapper::before { left: 18px; } .msb-floor-node { align-items: flex-start; padding-left: 10px; text-align: left; } .msb-hero-cards-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 10px; -webkit-overflow-scrolling: touch; } .msb-hc { flex: 0 0 82%; max-width: 320px; scroll-snap-align: start; } } @media (max-width: 540px) { .msb-nav a.msb-nav-call, .msb-nav a[href="#msb-patan-guide"] { display: none; } .msb-search-bar, .msb-form-row, .msb-today-pills { grid-template-columns: 1fr; } .msb-qr-card { flex-direction: column; text-align: center; } } (function () { const gdriveImg = (id) => `https://drive.google.com/thumbnail?id=${id}&sz=w1200`; const MSB_CONFIG = { ajaxUrl: (window.MSB_PUBLIC && window.MSB_PUBLIC.ajax_url) || "/wp-admin/admin-ajax.php", ownerEmail: "shyamtheseo@gmail.com", web3formsKey: "1c416828-c4ac-4a2a-a6b4-82d6f02a89d9", whatsapp: "9779765131653", currency: "NPR", fonepayQrUrl: "https://drive.google.com/thumbnail?id=1dCYPMxAj6BKZbN7EPhLMXOed10uruxhv&sz=w800", properties: [ { id: "jawalakhel-patan", name: "Manaar Stays — Jawalakhel, Patan (4 Rooms)" } ], rooms: [ { id: 1, propertyId: "jawalakhel-patan", floor: "First Floor Rooms (Only 2 Rooms on Floor)", floorShort: "FIRST FLOOR · ROOM 1", floorNote: "Steps from the 1st-floor 24/7 hot-water shower · Peaceful 2-room floor", name: "Room 1 — Pocket-Spring Queen Suite", price: 1850, maxGuests: 2, specs: ["6.5×5 ft Queen", "Pocket-Spring Pillow-Top", "Microfiber Pillows", "Study Table & Chair"], images: [ gdriveImg("1SjLQXa2QMzNAKqC8xZaXYSUPDG9SxSPo"), gdriveImg("1JMmjsVSjQB8FkuW7mW4cjP1kfNNT5lCN"), gdriveImg("1qfbfrgvSiYh1plltJ3ry4IHFiVd1Atnp"), gdriveImg("1ucwYLM7I_AzQrqrhJDs2ea-fg3nfN65_"), gdriveImg("1pz-TOL3CXI31on9_InTudGZrMapgxTDj"), gdriveImg("1OadnNkTic29ZhX13w1NZEHag5ek72Jj_"), gdriveImg("1o0X8UAIF328W-ak_eZHoD8aG3_swwDCq") ], desc: "6.5 × 5 ft pocket-spring pillow-top queen mattress with microfiber pillows, study table & chair, fast Wi-Fi, and easy access to the 1st-floor hot-water shower." }, { id: 2, propertyId: "jawalakhel-patan", floor: "First Floor Rooms (Only 2 Rooms on Floor)", floorShort: "FIRST FLOOR · ROOM 2", floorNote: "Steps from the 1st-floor 24/7 hot-water shower · Peaceful 2-room floor", name: "Room 2 — Orthopedic Queen Classic", price: 1650, maxGuests: 2, specs: ["6.5×5 ft Queen", "Orthopedic Mattress", "Microfiber Pillows", "Study Table & Chair"], images: [ gdriveImg("1GblPpgtSjwI4wrOcKLX14npRX6dm4vwM"), gdriveImg("1QBoCAS2lV_ruZh5jG7vLPZK4-NPi7kXb") ], desc: "Quiet first-floor room with 6.5 × 5 ft orthopedic queen mattress, microfiber pillows, study table & chair, and fast fiber Wi-Fi." }, { id: 3, propertyId: "jawalakhel-patan", floor: "Second Floor Rooms (Only 2 Rooms on Floor)", floorShort: "SECOND FLOOR · ROOM 3", floorNote: "Uses 1st-floor hot-water shower (10 steps down) while 2nd-floor bath completes", name: "Room 3 — Orthopedic Study & Mirror Loft", price: 1750, maxGuests: 2, specs: ["6.5×5 ft Queen", "Orthopedic Mattress", "Standing Mirror", "Study Table & Chair"], images: [ gdriveImg("16LpRHyztkKNKE2IcCP-Rcfs6J9NtMxK7"), gdriveImg("1kAvCEFCKFbdatBP2CetUG1xGRwiZK7QD"), gdriveImg("1EW7l18O9T6cnhCJxqsZ6YLUkg7kOuuy0"), gdriveImg("1ut-euoAPzOwEwfHKUHwNMx4_PwlyMapz"), gdriveImg("1KArWt1J_VgNykwIOqbPJUKF3HjewTCSd") ], desc: "Bright second-floor room with 6.5 × 5 ft orthopedic queen bed, microfiber pillows, standing mirror, and study table & chair." }, { id: 4, propertyId: "jawalakhel-patan", floor: "Second Floor Rooms (Only 2 Rooms on Floor)", floorShort: "SECOND FLOOR · ROOM 4", floorNote: "Uses 1st-floor hot-water shower (10 steps down) while 2nd-floor bath completes", name: "Room 4 — Memory-Foam Queen Retreat", price: 1750, maxGuests: 2, specs: ["6.5×5 ft Queen", "Memory-Foam Mattress", "High-Quality Fiber Pillows", "Standing Mirror"], images: [ gdriveImg("1uS8nH3_Y6ix4UeCT08_8Ay7BK1txxiUb"), gdriveImg("1JoFOuNetgSZc3KhGJkbWgFODqPmfC5Bl"), gdriveImg("1r9eUaUyqILM2MzmPbXO4pwkn0Sqfc0op") ], desc: "Calm second-floor retreat with 6.5 × 5 ft memory-foam queen mattress, high-quality fiber pillows, and standing mirror; 10 steps down to 1st-floor hot shower." } ] }; document.getElementById("msb-fonepay-qr-img").src = MSB_CONFIG.fonepayQrUrl; const today = new Date(); today.setHours(0, 0, 0, 0); const fmtDate = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`; const todayStr = fmtDate(today); const tomorrow = new Date(today); tomorrow.setDate(tomorrow.getDate() + 1); const tomorrowStr = fmtDate(tomorrow); document.getElementById("msb-today-date-label").textContent = today.toLocaleDateString("en-US", { weekday: "short", month: "short", day: "numeric" }); const state = { propertyId: MSB_CONFIG.properties[0].id, activeRoomId: 1, checkIn: todayStr, checkOut: tomorrowStr, guests: 2, slideIndex: { 1: 0, 2: 0, 3: 0, 4: 0 }, heroCalOpen: { 1: false, 2: false, 3: false, 4: false }, viewYear: today.getFullYear(), viewMonth: today.getMonth(), blockedRanges: [], lbRoomId: 1, lbPhotoIdx: 0, lbZoomed: false, lastReceipt: null }; function isNightBooked(roomId, dStr) { return state.blockedRanges.some((b) => Number(b.room_id) === Number(roomId) && dStr >= b.check_in && dStr < b.check_out); } function isRangeFree(roomId, inStr, outStr) { if (!inStr || !outStr || outStr Number(b.room_id) === Number(roomId) && b.check_in inStr); } function getNextBookedDate(roomId) { const dates = state.blockedRanges .filter((b) => Number(b.room_id) === Number(roomId) && b.check_out > todayStr) .map((b) => (b.check_in >= todayStr ? b.check_in : todayStr)) .sort(); return dates.length ? dates[0] : null; } function calcNights(inStr, outStr) { if (!inStr || !outStr || outStr { const opt = document.createElement("option"); opt.value = p.id; opt.textContent = p.name; propSelect.appendChild(opt); }); function handleDatePick(roomId, dateStr) { if (dateStr < todayStr || isNightBooked(roomId, dateStr)) return; state.activeRoomId = Number(roomId); if (!state.checkIn || (state.checkIn && state.checkOut) || dateStr { const el = document.createElement("div"); el.className = "msb-cal-dow"; el.textContent = d; frag.appendChild(el); }); const firstDay = new Date(year, month, 1).getDay(); const daysInMonth = new Date(year, month + 1, 0).getDate(); for (let i = 0; i < firstDay; i++) { const empty = document.createElement("div"); empty.className = "msb-cal-day empty"; frag.appendChild(empty); } for (let day = 1; day <= daysInMonth; day++) { const dStr = fmtDate(new Date(year, month, day)); const cell = document.createElement("div"); cell.className = "msb-cal-day"; cell.textContent = day; if (dStr handleDatePick(roomId, dStr)); } if (Number(roomId) === Number(state.activeRoomId) && state.checkIn) { if (dStr === state.checkIn || dStr === state.checkOut) { cell.classList.add("selected"); } else if (state.checkOut && dStr > state.checkIn && dStr r.propertyId === state.propertyId); const pillsWrap = document.getElementById("msb-today-pills"); pillsWrap.innerHTML = ""; let openTodayCount = 0; propRooms.forEach((r) => { const openToday = !isNightBooked(r.id, todayStr); if (openToday) openTodayCount++; const nextBooked = getNextBookedDate(r.id); const pill = document.createElement("button"); pill.type = "button"; pill.className = "msb-today-pill"; pill.innerHTML = ` ${r.name.split("—")[0].trim()} · ${formatMoney(r.price)} ${openToday ? "Open Today" : "Booked Today"} · ${nextBooked ? "Next booked " + nextBooked.slice(5) : "Open ahead"} `; pill.addEventListener("click", () => openLightbox(r.id)); pillsWrap.appendChild(pill); }); document.getElementById("msb-ribbon-avail-text").textContent = `${openTodayCount} of ${propRooms.length} Rooms Open Today in Jawalakhel, Patan`; const activeRoom = propRooms.find((r) => r.id === state.activeRoomId) || propRooms[0]; const nights = calcNights(state.checkIn, state.checkOut) || 1; document.getElementById("msb-sb-summary-room").textContent = `${nights} Night${nights > 1 ? "s" : ""} · ${activeRoom.name.split("—")[0].trim()}`; document.getElementById("msb-sb-summary-total").textContent = formatMoney(nights * activeRoom.price); document.getElementById("msb-sb-wa-link").href = buildWaLink(activeRoom, state.checkIn, state.checkOut, state.guests); const openForSearch = propRooms.filter((r) => isRangeFree(r.id, state.checkIn, state.checkOut)); const fb = document.getElementById("msb-search-feedback"); if (calcNights(state.checkIn, state.checkOut) > 0) { fb.innerHTML = openForSearch.length ? `${openForSearch.length} room(s) available from ${state.checkIn} to ${state.checkOut}.` : `Selected dates are booked across rooms. Choose green dates below.`; } else { fb.textContent = ""; } } function renderHeroCards() { const track = document.getElementById("msb-hero-cards-track"); track.innerHTML = ""; const nights = calcNights(state.checkIn, state.checkOut) || 1; const monthLbl = new Date(state.viewYear, state.viewMonth, 1).toLocaleString("en-US", { month: "short", year: "numeric" }); MSB_CONFIG.rooms .filter((r) => r.propertyId === state.propertyId) .forEach((room) => { const pIdx = state.slideIndex[room.id] || 0; const rangeFree = calcNights(state.checkIn, state.checkOut) > 0 ? isRangeFree(room.id, state.checkIn, state.checkOut) : !isNightBooked(room.id, todayStr); const nextBooked = getNextBookedDate(room.id); const card = document.createElement("article"); card.className = "msb-hc" + (room.id === state.activeRoomId ? " is-active" : ""); card.innerHTML = `
${room.name} in Jawalakhel Patan ${formatMoney(room.price)}/night
${room.floorShort}

${room.name}

${room.specs.map((s) => `${s}`).join("")}
${rangeFree ? `Available for selected dates` : `Booked on selected dates`}
Next booked: ${nextBooked || "Open ahead"}
${nights} night${nights > 1 ? "s" : ""}: ${formatMoney(nights * room.price)}
WhatsApp
`; card.querySelector(`[data-prev="${room.id}"]`).addEventListener("click", () => { state.slideIndex[room.id] = (pIdx - 1 + room.images.length) % room.images.length; renderAll(); }); card.querySelector(`[data-next="${room.id}"]`).addEventListener("click", () => { state.slideIndex[room.id] = (pIdx + 1) % room.images.length; renderAll(); }); card.querySelectorAll(`[data-zoom="${room.id}"]`).forEach((el) => { el.addEventListener("click", () => openLightbox(room.id)); }); card.querySelector(`[data-cal-btn="${room.id}"]`).addEventListener("click", () => { state.heroCalOpen[room.id] = !state.heroCalOpen[room.id]; renderHeroCards(); }); card.querySelector(`[data-cal-holder="${room.id}"]`).appendChild( buildCalendarCells(room.id, state.viewYear, state.viewMonth) ); card.querySelector(`[data-book="${room.id}"]`).addEventListener("click", () => openBookingPopup(room.id)); track.appendChild(card); }); } function renderFloors() { const container = document.getElementById("msb-floors-container"); container.innerHTML = ""; const floors = [...new Set(MSB_CONFIG.rooms.map((r) => r.floor))]; const monthLabel = new Date(state.viewYear, state.viewMonth, 1).toLocaleString("en-US", { month: "short", year: "numeric" }); floors.forEach((floorTitle) => { const floorRooms = MSB_CONFIG.rooms.filter((r) => r.floor === floorTitle); const group = document.createElement("div"); group.className = "msb-floor-group"; group.innerHTML = `

${floorTitle}

${floorRooms[0].floorNote}

`; const grid = group.querySelector(".msb-floor-rooms-grid"); floorRooms.forEach((room) => { const availToday = !isNightBooked(room.id, todayStr); const pIdx = state.slideIndex[room.id] || 0; const nights = calcNights(state.checkIn, state.checkOut) || 1; const card = document.createElement("article"); card.className = "msb-room-card"; card.innerHTML = `
${room.name} ${availToday ? "Available Today" : "Booked Tonight"} ${formatMoney(room.price)} / night
${room.images.map((src, i) => `Photo ${i + 1}`).join("")}

${room.name}

${room.desc}

${room.specs.map((a) => `${a}`).join("")}
Live Availability (${monthLabel}) Tap green dates
`; card.querySelector(`[data-prev="${room.id}"]`).addEventListener("click", () => { state.slideIndex[room.id] = (pIdx - 1 + room.images.length) % room.images.length; renderAll(); }); card.querySelector(`[data-next="${room.id}"]`).addEventListener("click", () => { state.slideIndex[room.id] = (pIdx + 1) % room.images.length; renderAll(); }); card.querySelector(`[data-zoom="${room.id}"]`).addEventListener("click", () => openLightbox(room.id)); card.querySelectorAll("[data-thumb]").forEach((t) => { t.addEventListener("click", () => { const [rId, idx] = t.getAttribute("data-thumb").split(":"); state.slideIndex[Number(rId)] = Number(idx); renderAll(); }); }); card.querySelector(`[data-mini-cal="${room.id}"]`).appendChild( buildCalendarCells(room.id, state.viewYear, state.viewMonth) ); card.querySelector(`[data-book-room="${room.id}"]`).addEventListener("click", () => openBookingPopup(room.id)); grid.appendChild(card); }); container.appendChild(group); }); } function syncInputs() { document.getElementById("msb-sb-checkin").min = todayStr; document.getElementById("msb-sb-checkin").value = state.checkIn; document.getElementById("msb-sb-checkout").value = state.checkOut; document.getElementById("msb-sb-guests").value = String(state.guests); const formRoom = document.getElementById("msb-form-room"); if (formRoom.options.length === 0) { MSB_CONFIG.rooms.forEach((r) => { const opt = document.createElement("option"); opt.value = r.id; opt.textContent = `${r.name} (${formatMoney(r.price)}/night)`; formRoom.appendChild(opt); }); } formRoom.value = String(state.activeRoomId); const fIn = document.getElementById("msb-form-checkin"); const fOut = document.getElementById("msb-form-checkout"); fIn.min = todayStr; if (state.checkIn) fIn.value = state.checkIn; if (state.checkOut) fOut.value = state.checkOut; document.getElementById("msb-form-guests").value = String(state.guests); const room = MSB_CONFIG.rooms.find((r) => r.id === Number(formRoom.value)) || MSB_CONFIG.rooms[0]; const nights = calcNights(fIn.value, fOut.value); document.getElementById("msb-form-breakdown").textContent = nights > 0 ? `${room.name} · ${nights} night(s) × ${formatMoney(room.price)}` : `${room.name} · Choose valid dates`; document.getElementById("msb-form-total").textContent = formatMoney(nights * room.price); } function openBookingPopup(roomId) { if (roomId) state.activeRoomId = Number(roomId); syncInputs(); document.getElementById("msb-booking-modal").hidden = false; } function openLightbox(roomId) { state.lbRoomId = Number(roomId); state.activeRoomId = Number(roomId); state.lbPhotoIdx = state.slideIndex[roomId] || 0; state.lbZoomed = false; document.getElementById("msb-zoom-stage").classList.remove("zoomed"); document.getElementById("msb-lb-zoom-btn").textContent = "Zoom: 1x"; renderLightbox(); document.getElementById("msb-lightbox").hidden = false; } function renderLightbox() { const room = MSB_CONFIG.rooms.find((r) => r.id === state.lbRoomId) || MSB_CONFIG.rooms[0]; const imgs = room.images; state.lbPhotoIdx = ((state.lbPhotoIdx % imgs.length) + imgs.length) % imgs.length; document.getElementById("msb-lb-img").src = imgs[state.lbPhotoIdx]; document.getElementById("msb-lb-counter").textContent = `${state.lbPhotoIdx + 1} / ${imgs.length}`; document.getElementById("msb-lb-floor").textContent = room.floorShort; document.getElementById("msb-lb-title").textContent = `${room.name} — ${formatMoney(room.price)}/night`; document.getElementById("msb-lb-desc").textContent = room.desc; const nb = getNextBookedDate(room.id); document.getElementById("msb-lb-next-booked").textContent = nb ? `Next booked date: ${nb} · Other green dates are open.` : `All upcoming dates open for instant booking.`; document.getElementById("msb-lb-month-label").textContent = new Date(state.viewYear, state.viewMonth, 1) .toLocaleString("en-US", { month: "long", year: "numeric" }); const calEl = document.getElementById("msb-lb-calendar"); calEl.innerHTML = ""; calEl.appendChild(buildCalendarCells(room.id, state.viewYear, state.viewMonth)); const thumbs = document.getElementById("msb-lb-thumbs"); thumbs.innerHTML = ""; imgs.forEach((src, i) => { const im = document.createElement("img"); im.src = src; if (i === state.lbPhotoIdx) im.className = "active"; im.addEventListener("click", () => { state.lbPhotoIdx = i; renderLightbox(); }); thumbs.appendChild(im); }); document.getElementById("msb-lb-wa-btn").href = buildWaLink(room, state.checkIn, state.checkOut, state.guests); } document.getElementById("msb-form-doc").addEventListener("change", (e) => { const file = e.target.files && e.target.files[0]; const chip = document.getElementById("msb-doc-chip"); if (!file) { chip.hidden = true; return; } const kb = Math.max(1, Math.round(file.size / 1024)); chip.hidden = false; document.getElementById("msb-doc-label").textContent = `Selected: ${file.name} (${kb} KB)`; }); function downloadPdfReceipt(receipt) { if (!receipt) return; const win = window.open("", "_blank", "width=760,height=860"); if (!win) return; win.document.write(` Manaar Stays Booking Receipt - ${receipt.code} body { font-family: Arial, sans-serif; color: #14101D; padding: 36px; max-width: 680px; margin: 0 auto; } .head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #6a2dba; padding-bottom: 14px; margin-bottom: 20px; } .brand { font-size: 22px; font-weight: 800; color: #6a2dba; letter-spacing: 0.08em; } .sub { font-size: 12px; color: #555; } .badge { background: #F3ECFC; color: #6a2dba; padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 13px; } table { width: 100%; border-collapse: collapse; margin: 16px 0; } td { padding: 10px 8px; border-bottom: 1px solid #E6E0F0; font-size: 14px; } td.lbl { font-weight: 700; width: 38%; color: #444; } .total { font-size: 18px; font-weight: 800; color: #6a2dba; } .rules { background: #FAF9FC; border: 1px solid #E6E0F0; padding: 14px; border-radius: 8px; font-size: 12px; line-height: 1.5; margin-top: 18px; }
MANAAR STAYS
Shanti Chok Marg, Ward No. 4, Jawalakhel, Patan, Lalitpur · +977 9765131653
Ref: #${receipt.code}

Booking & Fonepay Payment Summary

Guest Name${receipt.guestName}
Contact Number${receipt.guestPhone}
Room${receipt.roomName}
Check-in${receipt.checkIn} (2:00 PM)
Check-out${receipt.checkOut} (11:00 AM)
Guests & Relation${receipt.guests} Person(s) — ${receipt.relation}
PaymentFonepay QR (Upfront — Non-Refundable)
Total Stay Amount${receipt.totalFormatted}
House Rules: Check-in 2:00 PM / Check-out 11:00 AM. Upfront Fonepay payment required; strictly no refund regardless of cancellation timing. Balcony-only smoking; night silence; turn off geyser & dry bathroom after shower; wash dishes & turn off induction after use; garbage in dustbin; check belongings & message host after checkout; no illegal acts/drugs; guest pays for damage; host not responsible for stay incidents.
window.onload = function() { window.print(); }; `); win.document.close(); } document.getElementById("msb-ribbon-sync-btn").addEventListener("click", () => loadLiveAvailability(true)); document.getElementById("msb-ribbon-popup-btn").addEventListener("click", () => openBookingPopup(state.activeRoomId)); document.getElementById("msb-nav-book-btn").addEventListener("click", () => openBookingPopup(state.activeRoomId)); ["msb-sb-checkin", "msb-sb-checkout", "msb-sb-guests"].forEach((id) => { document.getElementById(id).addEventListener("change", () => { state.checkIn = document.getElementById("msb-sb-checkin").value; state.checkOut = document.getElementById("msb-sb-checkout").value; state.guests = Number(document.getElementById("msb-sb-guests").value); syncInputs(); renderAll(); }); }); document.getElementById("msb-hero-search").addEventListener("submit", (e) => { e.preventDefault(); openBookingPopup(state.activeRoomId); }); ["msb-form-room", "msb-form-checkin", "msb-form-checkout", "msb-form-guests"].forEach((id) => { document.getElementById(id).addEventListener("change", () => { state.activeRoomId = Number(document.getElementById("msb-form-room").value); state.checkIn = document.getElementById("msb-form-checkin").value; state.checkOut = document.getElementById("msb-form-checkout").value; state.guests = Number(document.getElementById("msb-form-guests").value); syncInputs(); renderAll(); }); }); document.getElementById("msb-bm-close").addEventListener("click", () => { document.getElementById("msb-booking-modal").hidden = true; }); document.getElementById("msb-lb-close").addEventListener("click", () => { document.getElementById("msb-lightbox").hidden = true; }); document.getElementById("msb-lb-prev").addEventListener("click", () => { state.lbPhotoIdx--; renderLightbox(); }); document.getElementById("msb-lb-next").addEventListener("click", () => { state.lbPhotoIdx++; renderLightbox(); }); document.getElementById("msb-lb-zoom-btn").addEventListener("click", () => { state.lbZoomed = !state.lbZoomed; document.getElementById("msb-zoom-stage").classList.toggle("zoomed", state.lbZoomed); document.getElementById("msb-lb-zoom-btn").textContent = state.lbZoomed ? "Zoom: 1.75x" : "Zoom: 1x"; }); document.getElementById("msb-zoom-stage").addEventListener("click", () => document.getElementById("msb-lb-zoom-btn").click()); document.getElementById("msb-lb-m-prev").addEventListener("click", () => { state.viewMonth--; if (state.viewMonth { state.viewMonth++; if (state.viewMonth > 11) { state.viewMonth = 0; state.viewYear++; } renderAll(); }); document.getElementById("msb-lb-book-btn").addEventListener("click", () => { document.getElementById("msb-lightbox").hidden = true; openBookingPopup(state.lbRoomId); }); document.getElementById("msb-download-pdf-btn").addEventListener("click", () => downloadPdfReceipt(state.lastReceipt)); document.getElementById("msb-direct-form").addEventListener("submit", async (e) => { e.preventDefault(); const feedback = document.getElementById("msb-form-feedback"); const btn = document.getElementById("msb-form-submit"); const roomId = Number(document.getElementById("msb-form-room").value); const room = MSB_CONFIG.rooms.find((r) => r.id === roomId) || MSB_CONFIG.rooms[0]; const inVal = document.getElementById("msb-form-checkin").value; const outVal = document.getElementById("msb-form-checkout").value; const guestName = document.getElementById("msb-form-name").value; const guestPhone = document.getElementById("msb-form-phone").value; const guests = document.getElementById("msb-form-guests").value; const relation = document.getElementById("msb-form-relation").value; const guestEmail = document.getElementById("msb-form-email").value || "Not provided"; const notes = document.getElementById("msb-form-notes").value || "None"; const nights = calcNights(inVal, outVal); const total = nights * room.price; if (!isRangeFree(roomId, inVal, outVal)) { feedback.style.color = "#B91C1C"; feedback.textContent = "Those dates overlap an existing booking. Please choose open green dates."; return; } btn.disabled = true; btn.textContent = "Submitting Booking..."; const fd = new FormData(e.target); fd.append("action", "msb_submit_booking"); fd.append("notify_email", MSB_CONFIG.ownerEmail); const waUrl = buildWaLink(room, inVal, outVal, guests, relation, guestName, guestPhone); let bookingCode = "MS-" + Math.random().toString(36).substring(2, 8).toUpperCase(); try { const res = await fetch(MSB_CONFIG.ajaxUrl, { method: "POST", body: fd }); const json = await res.json(); if (json && json.success && json.data && json.data.booking) { bookingCode = json.data.booking.booking_code; } } catch (err) {} try { await fetch("https://api.web3forms.com/submit", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, body: JSON.stringify({ access_key: MSB_CONFIG.web3formsKey, subject: `New Manaar Stays Booking #${bookingCode} — ${room.name}`, from_name: "Manaar Stays Website", Booking_Code: bookingCode, Room: room.name, Check_In: `${inVal} (2:00 PM)`, Check_Out: `${outVal} (11:00 AM)`, Nights: nights, Total_NPR: formatMoney(total), Guest_Name: guestName, Guest_Phone: guestPhone, Guests_Relation: `${guests} Person(s) - ${relation}`, Guest_Email: guestEmail, Notes: notes, Lock_Dates_Link: `${window.location.origin}/wp-admin/admin-post.php?action=msb_confirm_payment&code=${bookingCode}` }) }); } catch (err) {} state.lastReceipt = { code: bookingCode, guestName, guestPhone, roomName: room.name, checkIn: inVal, checkOut: outVal, guests, relation, totalFormatted: formatMoney(total) }; feedback.style.color = "#15803D"; feedback.innerHTML = `Booking #${bookingCode} submitted for ${room.name} (${inVal} to ${outVal}, ${formatMoney(total)}) and sent to ${MSB_CONFIG.ownerEmail}. Once payment is verified, dates lock on the site & sync to Airbnb.`; document.getElementById("msb-post-wa-btn").href = waUrl; document.getElementById("msb-post-submit-bar").hidden = false; btn.disabled = false; btn.textContent = "Submit Booking & Notify Host →"; }); function renderAll() { renderTodayAndSearch(); renderHeroCards(); renderFloors(); if (!document.getElementById("msb-lightbox").hidden) renderLightbox(); } syncInputs(); renderAll(); loadLiveAvailability(false); })();