/* GXP Next responsive layer. The design is a fixed 1248px desktop layout:
   1024-1279px scales it down with zoom; below 1024px the absolute layouts become a fluid single column. */

/* ---------- Small laptops / iPad landscape: same design, scaled ---------- */
@media (min-width: 1024px) and (max-width: 1099px) { body { zoom: .8; } }
@media (min-width: 1100px) and (max-width: 1179px) { body { zoom: .86; } }
@media (min-width: 1180px) and (max-width: 1279px) { body { zoom: .92; } }

.burger, .menu-extra { display: none; }
.h1, .h2, .post-card-title, .entry-content h2, .entry-content h3 { text-wrap: balance; }

/* ---------- Tablet + phone ---------- */
@media (max-width: 1023px) {
    body { overflow-wrap: break-word; }
    .wrap { width: auto; margin: 0 32px; }
    /* Template inline widths/paddings were desktop pixel values */
    .wrap [style*="width"] { width: auto !important; max-width: 100%; }
    [style*="padding: 120px 0"] { padding: 72px 0 !important; }
    [style*="padding: 0 0 120px"] { padding: 0 0 72px !important; }
    [style*="padding: 110px 0 120px"] { padding: 64px 0 72px !important; }
    [style*="padding: 88px 0 100px"] { padding: 48px 0 72px !important; }
    [style*="font-size: 44px"] { font-size: 34px !important; line-height: 42px !important; }

    .h1 { font-size: 46px; line-height: 54px; }
    .h2, .more-faq .h2, .more-copy .h2 { font-size: 38px; line-height: 46px; }
    .lead, .product-lead, .story p, .body-20, .strong, .split-sec .col > p:not(.small-lead):not(.eyebrow) { font-size: 18px; line-height: 29px; }
    .btn { max-width: 100%; }

    /* Top bar */
    .topbar .lang, .topbar nav > a:not(.login) { display: none; }
    .topbar .tag { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 12px; }

    /* Header + burger menu */
    .header .wrap { gap: 12px; }
    .header .demo { margin-top: 0; }
    .burger { display: grid; place-items: center; width: 44px; height: 44px; flex: none; margin-right: -8px; }
    .burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .2s; }
    .burger span { position: relative; }
    .burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
    .burger span::before { top: -7px; } .burger span::after { top: 7px; }
    .header.open .burger span { background: transparent; }
    .header.open .burger span::before { transform: translateY(7px) rotate(45deg); }
    .header.open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
    .header .menu { position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); top: 76px; flex-direction: column; gap: 0; padding: 8px 32px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgb(40 20 80 / .25); max-height: calc(100vh - 76px); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .3s; }
    .header.open .menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .header .menu a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
    .header .menu a::after { display: none; }
    .menu-extra { display: block; }
    .menu-extra a { font-size: 16px !important; color: var(--muted); }
    .header { backdrop-filter: none; background: var(--bg); }

    /* Footer: absolute layout becomes a flowing grid */
    .footer { height: auto; padding: 56px 0 24px; }
    .footer .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
    .footer .wrap > * { position: static !important; width: auto; }
    .footer .logo, .footer .about, .footer .contact { grid-column: 1 / -1; }
    .footer .mii { width: 131px; }
    .footer .social { align-self: center; justify-self: end; grid-column: 2 / -1; }
    .footer .rule { grid-column: 1 / -1; width: 100%; }
    .footer .bottom { grid-column: 1 / -1; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; line-height: 28px; font-size: 14px; }
    .footer .bottom nav { position: static; flex-wrap: wrap; gap: 8px 24px; }
    .footer .bottom nav a:last-child { margin-left: 0; }
    .footer .col a { height: auto; line-height: 36px; }

    /* ----- Home ----- */
    .footer { margin-top: 0; }
    body.page-template-template-home .footer { margin-top: 96px; }
    .hero { height: auto; padding: 48px 0 64px; }
    .hero .wrap { display: flex; flex-direction: column; align-items: flex-start; }
    .pill-badge, .hero h1, .hero .intro, .hero .ctas { position: static; width: auto; }
    .pill-badge { max-width: 100%; height: auto; min-height: 44px; padding: 10px 18px; }
    .hero h1 { margin-top: 24px; }
    .hero .intro { margin-top: 20px; font-size: 18px; line-height: 30px; }
    .hero .ctas { margin-top: 32px; flex-wrap: wrap; gap: 16px; }
    .stage { position: relative; left: auto; top: auto; margin-top: 48px; width: 100%; height: 560px; }
    .dots { top: auto; bottom: 24px; }
    .hc.b { top: auto; bottom: 80px; }
    .ai-badge { display: none; }
    .hero .blob { left: 30%; }

    .band { margin-top: 64px; padding: 72px 0 80px; }
    .band .h1 { width: auto; }
    .band .row { margin-top: 48px; flex-direction: column; gap: 24px; }
    .palace { width: auto; margin-left: 0; height: 460px; }
    .palace .copy { left: 32px; right: 32px; top: auto; bottom: 32px; width: auto; }
    .palace .copy h3 { white-space: normal; }
    .palace .copy p { width: auto; }
    .stat.bookings { left: auto; right: 156px; top: 24px; }
    .stat.rating { left: auto; right: 32px; top: 24px; }
    .setup { width: auto; height: auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
    .setup h3, .setup > p { width: 100%; margin: 0; }
    .checklist, .golive { position: static; height: auto; }
    .checklist { width: 220px; }

    .allinone { margin-top: 64px; height: auto; padding: 56px 24px; }
    .allinone .lead { width: auto; }
    .chips ul { flex-wrap: wrap; justify-content: center; }
    .chips li { height: 44px; }

    .duo { height: auto; flex-direction: column; }
    .ops { width: auto; padding: 36px 32px; }
    .ops p { width: auto; }
    .tags { flex-direction: row; flex-wrap: wrap; }
    .tags ul, .chips ul { display: contents; }
    .chips { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .guesthub { width: auto; height: 460px; }
    .guesthub .copy { left: 32px; right: 32px; top: 32px; width: auto; }
    .device { right: 24px; bottom: 24px; height: auto; }

    .section-head { margin-top: 72px; }
    .section-head .lead { margin-top: 20px; }
    .feature { margin-top: 40px; flex-direction: column; gap: 24px; }
    .feature > .feat-stage { order: 2; }
    .ops-acc, .bill-acc { width: 100%; }
    .feat-stage.stage-hk, .feat-stage.stage-bill { width: 100%; height: 480px; }
    .rooms { left: auto; top: auto; right: 24px; bottom: 24px; }
    .note.lg { left: 24px; right: auto; top: auto; bottom: 24px; }

    .steps-title { margin-top: 80px; }
    .steps { margin-top: 40px; height: auto; flex-direction: column; gap: 16px; }
    .step { width: auto; height: auto; min-height: 240px; margin-top: 0 !important; }
    .step h3, .step p { width: auto; padding-right: 0; }
    .step h3 { padding-right: 90px; }

    .kinds-title { margin-top: 80px; }
    .kinds { margin-top: 40px; }
    .kinds .row { flex-direction: column; gap: 20px; }
    .kind.big, .kind.small { width: auto; height: 380px; }
    .kind .copy, .kind.small .copy { width: auto; right: 88px; }
    .kind .go { transform: none; opacity: 1; }

    .pricing-title { margin-top: 80px; width: auto; }
    .pricing-sub { flex-direction: column; align-items: flex-start; gap: 20px; }
    .toggle { margin-top: 0; }
    .plans { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .plan { width: auto; height: auto; min-height: 460px; }
    .plan .btn { width: 100%; margin: auto 0 0; }
    .plan ul { line-height: 23px; }
    .plan li { padding: 5px 0; }

    .cta { margin-top: 72px; height: auto; }
    .cta .copy { position: relative; left: auto; top: auto; width: auto; padding: 64px 40px; }
    .cta h2 { width: auto; font-size: 44px; line-height: 52px; }
    .cta .btns { flex-wrap: wrap; }
    .cta .shade { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.8)); }

    .faq { margin-top: 80px; flex-direction: column; gap: 48px; }
    .faq-left, .faq-right, .help { width: 100%; }
    .faq-left .h1 { line-height: 54px; }
    .help .copy { left: 28px; right: 28px; top: auto; bottom: 28px; width: auto; }
    .help p { width: auto; }
    .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }

    /* ----- Product pages ----- */
    .product-grid { flex-direction: column; align-items: stretch; gap: 48px; }
    .product-copy, .product-copy .h1, .product-card { width: auto; }

    /* ----- Legal ----- */
    .legal { padding: 48px 0 72px; }
    .legal-lead, .legal-guide, .legal-outline { width: auto; }
    .legal-grid { flex-direction: column; gap: 32px; }

    /* ----- Property types ----- */
    .pt { padding: 64px 0; }
    .pt-grid, .pt-flip .pt-grid { flex-direction: column; align-items: stretch; gap: 40px; }
    .pt-story, .pt-visual { width: auto; }
    .pt-photo { height: 420px; }

    /* ----- About, support, demo ----- */
    .split-row { flex-direction: column; align-items: stretch; gap: 48px !important; }
    .pic { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; }
    .split-row .col { width: auto !important; }
    .panel-sand { padding: 40px 32px; }
    .panel-row { flex-direction: column; gap: 32px; }
    .outcomes { width: auto; }
    .outcomes li { font-size: 19px; line-height: 30px; }
    .callout-sec { padding: 0 0 72px; }
    .dark-callout { padding: 48px 32px; }
    .btn-row { flex-wrap: wrap; gap: 16px; }
    .routes, .collections { flex-direction: column; gap: 20px; align-self: stretch; }
    .route, .collection { width: auto; height: auto; }
    .route-desc { height: auto; }
    .checklist-lines { width: auto; }
    .pic-note { height: auto; }
    .demo-row { flex-direction: column; gap: 48px; }
    .demo-form { width: auto; }
    .field, .field.wide, .demo-submit { width: 100%; }
    .pair .field { flex: 1; width: auto; }

    /* ----- Blog ----- */
    .blog-head { padding: 48px 0 40px; }
    .blog-head .product-lead, .post-head .product-lead, .post-title { width: auto; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-list { padding: 0 0 72px; }
    .post-head { padding: 48px 0 32px; }
    .post-hero { height: 360px; margin-bottom: 40px; }
    .post-body { flex-direction: column; gap: 48px; padding-bottom: 72px; }
    .post-content, .post-aside { width: 100%; flex: none; }
    .post-aside { position: static; }
    .entry-content img { max-width: 100%; height: auto; }
    .entry-content th, .entry-content td { padding: 10px; overflow-wrap: normal; hyphens: auto; }
    body.menu-open { overflow: hidden; }
    .dot { height: 44px; }
    .dot::before, .dot::after { top: 20px; }
    .motion-toggle { width: 44px; height: 44px; }
    .switch::before { content: ''; position: absolute; inset: -7px 0; }
    .footer .bottom nav a { line-height: 44px; }
    .more { padding: 0 0 72px; }
    .more-grid { flex-direction: column; gap: 48px; }
    .more-copy, .more-faq { width: 100%; flex: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 639px) {
    .wrap { margin: 0 20px; }
    .h1 { font-size: 36px; line-height: 44px; }
    .h2, .more-faq .h2, .more-copy .h2 { font-size: 30px; line-height: 38px; }
    .lead, .product-lead, .story p, .body-20, .strong, .split-sec .col > p:not(.small-lead):not(.eyebrow) { font-size: 17px; line-height: 28px; }
    [style*="font-size: 44px"] { font-size: 30px !important; line-height: 38px !important; }
    .btn-purple, .btn-outline, .btn-pill, .product-cta { height: 56px; padding: 0 28px; }

    .topbar .tag { font-size: 12px; }
    .field input, .field select, .field textarea { font-size: 16px; }
    .entry-content table { font-size: 14px; line-height: 21px; }
    .header .menu { padding: 8px 20px 24px; }
    .header .demo { width: auto; padding: 0 16px; height: 40px; }

    .footer .wrap { grid-template-columns: 1fr 1fr; }
    .footer .col:last-of-type { grid-column: 1 / -1; }
    .footer .social { grid-column: auto; justify-self: start; }
    .footer .bottom { flex-direction: column; align-items: flex-start; }
    .pair { flex-direction: column; }
    .pair .field { width: 100%; }

    .hero { padding: 32px 0 48px; }
    .hero .ctas .btn { flex: 1 1 auto; }
    .stage { height: 440px; }
    .hc { display: none; }
    .occ { left: 16px; top: 16px; }
    .dots { left: 20px; }

    .palace { height: 420px; }
    .stat { display: none; }
    .palace .copy, .guesthub .copy { left: 24px; right: 24px; }
    .palace .copy h3, .guesthub .copy h3 { font-size: 28px; line-height: 36px; }
    .palace .copy p { font-size: 16px; line-height: 26px; }
    .setup { padding: 28px 24px; }
    .setup h3 { font-size: 28px; line-height: 38px; }
    .checklist, .golive { width: 100%; }

    .allinone { padding: 48px 20px; border-radius: 24px; }
    .chips li { padding: 0 16px; }
    .ops { padding: 28px 24px; }
    .ops h3 { font-size: 30px; line-height: 40px; }
    .tags ul, .tags { gap: 10px; }
    .tags li { height: 44px; padding: 0 16px; font-size: 14px; }
    .guesthub { height: 440px; }
    .guesthub .copy { top: 24px; }
    .guesthub .copy h3 { font-size: 28px; line-height: 36px; }
    .device { left: 24px; right: 24px; width: auto; }

    .fi-h > button { gap: 14px; padding: 18px 16px; }
    .fi .fi-title, .bill-acc .fi-title { font-size: 20px; line-height: 28px; }
    .fi .body p, .bill-acc .body p { margin: -2px 16px 0; font-size: 16px; line-height: 26px; }
    .fi .mini, .bill-acc .mini { margin: 16px 16px 20px; flex-wrap: wrap; }
    .feat-stage.stage-hk, .feat-stage.stage-bill { height: 400px; border-radius: 24px; }
    .rooms { right: 16px; bottom: 16px; }
    .note.sm { left: 16px; top: 16px; }
    .note.lg { left: 16px; bottom: 16px; max-width: calc(100% - 32px); white-space: normal; height: auto; }

    .step { padding: 24px; min-height: 220px; }
    .step .num { width: 60px; height: 60px; right: 24px; top: 24px; font-size: 22px; }
    .step h3 { font-size: 24px; line-height: 32px; padding-right: 72px; }

    .kind.big, .kind.small { height: 340px; }
    .kind h3, .kind.small h3 { font-size: 28px; line-height: 36px; }
    .kind .copy, .kind.small .copy { left: 24px; right: 84px; bottom: 24px; }

    .pricing-sub p { font-size: 17px; line-height: 26px; }
    .toggle { flex-wrap: wrap; }
    .plans { grid-template-columns: 1fr; }
    .plan { min-height: 0; }
    .plan .btn { margin-top: 12px; }

    .cta { border-radius: 24px; }
    .cta .copy { padding: 48px 24px; }
    .cta h2 { font-size: 34px; line-height: 42px; }
    .cta .btn.white, .cta .btn.ghost { padding: 0 28px; }

    .faq-left .h1 { line-height: 44px; }
    .help { height: 420px; }
    .help .copy { left: 24px; right: 24px; bottom: 24px; }
    .qa summary { padding: 18px 20px; font-size: 16px; }
    .qa details[open] summary { padding-top: 18px; }
    .qa details p { padding: 12px 20px 20px; font-size: 15.5px; }

    .product-card { padding: 20px; border-radius: 24px; }
    .pc-visual { height: 220px; }
    .pc-intro h2 { font-size: 26px; line-height: 34px; }
    .pc-items li { padding: 14px; }
    .product-cta { min-width: 0; }

    .legal-guide { padding: 24px; }
    .legal-outline { padding: 24px; border-radius: 24px; }

    .pt { padding: 48px 0; }
    .pt-photo { height: 280px; }
    .pt-tagline { font-size: 22px; line-height: 30px; }
    .pt-visual figcaption { padding: 20px; }

    .panel-sand { padding: 28px 20px; border-radius: 24px; }
    .dark-callout { padding: 36px 20px; border-radius: 24px; }
    .outcomes li { font-size: 17px; line-height: 27px; }
    .route { padding: 24px; }
    .collection { padding: 24px; border-radius: 24px; }
    .coll-head h3 { font-size: 26px; line-height: 34px; }
    .pic { aspect-ratio: 1; }
    .pic-note { left: 16px; right: 16px; bottom: 16px; padding: 16px; }
    .demo-form { padding: 24px 20px; border-radius: 24px; }
    .demo-form h2 { font-size: 28px; line-height: 36px; }
    .demo-expect { font-size: 24px; line-height: 32px; }

    .post-grid { grid-template-columns: 1fr; }
    .post-hero { height: 220px; margin-bottom: 32px; }
    .post-card-title { font-size: 22px; line-height: 30px; }
    .entry-content p, .entry-content li { font-size: 17px; line-height: 28px; }
    .entry-content h2 { margin-top: 40px; font-size: 26px; line-height: 34px; }
    .entry-content h3 { font-size: 21px; line-height: 29px; }
    .post-cta { padding: 24px; }
}

/* Very small phones */
@media (max-width: 374px) {
    .h1 { font-size: 32px; line-height: 40px; }
    .header .demo { display: none; }
    .burger { margin-left: auto; }
}
