/* Vietnam Life enquiries: scoped styles, existing page and messenger controls stay intact. */
.vl-lead-open{display:block;width:calc(100% - 32px);min-height:44px;margin:0 16px 16px;padding:10px 16px;border:1px solid #b8d7d4;border-radius:12px;background:#f0f8f7;color:#125b56;font:600 14px/1.3 'Onest',sans-serif;cursor:pointer;transition:background .18s,border-color .18s}
.vl-lead-open:hover{background:#e3f2ef;border-color:#168b83}.vl-lead-open:focus-visible{outline:3px solid #168b83;outline-offset:3px}.vl-lead-open--detail{width:100%;margin:12px 0 0;background:#168b83;border-color:#168b83;color:#fff}.vl-lead-open--detail:hover{background:#106d67;color:#fff}
.vl-lead-dialog{--lead-ink:#142d37;--lead-accent:#168b83;position:fixed;inset:0 0 0 auto;width:min(492px,100%);max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:24px 0 0 24px;background:#fff;color:var(--lead-ink);font-family:'Onest',sans-serif;box-shadow:-20px 0 70px #09252926;overflow:auto;overscroll-behavior:contain;text-align:left}
.vl-lead-dialog:not([open]){display:none}.vl-lead-dialog::backdrop{background:#0b2029a6;backdrop-filter:blur(3px)}.vl-lead-dialog[open]{animation:vl-lead-enter .2s ease-out}.vl-lead-dialog *{box-sizing:border-box}.vl-lead-dialog [hidden]{display:none!important}
.vl-lead-header{position:relative;padding:30px 32px 26px;background:#132e37;color:#fff}.vl-lead-brand{display:flex;align-items:center;gap:12px;margin:0 44px 26px 0;font-size:17px;font-weight:650;letter-spacing:-.5px}.vl-lead-brand span{padding-left:12px;border-left:1px solid #517078;color:#8bcac3;font-size:10px;font-weight:600;letter-spacing:1.7px}.vl-lead-close{position:absolute;right:20px;top:22px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #ffffff33;border-radius:50%;background:transparent;color:#fff;font:300 26px/1 'Onest',sans-serif;cursor:pointer}.vl-lead-close:hover{background:#ffffff14}.vl-lead-header h2{max-width:340px;margin:0 0 12px;color:#fff;font:500 clamp(27px,4vw,34px)/1.14 'Playfair Display',Georgia,serif;letter-spacing:-.6px}.vl-lead-intro{max-width:355px;margin:0;color:#c5d8dc;font-size:14px;line-height:1.6}
.vl-lead-content{padding:24px 32px 30px}.vl-lead-property{display:flex;align-items:center;gap:14px;padding:0 0 22px;margin-bottom:23px;border-bottom:1px solid #e4ecee}.vl-lead-property img{flex:none;width:64px;height:64px;object-fit:cover;border-radius:12px}.vl-lead-property p{margin:0;font-size:14px;line-height:1.5;font-weight:600;color:#23434b}.vl-lead-field{display:block;margin:0 0 19px}.vl-lead-field>span{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin:0 0 8px;font-size:13px;font-weight:600;line-height:1.4}.vl-lead-field small{color:#788b91;font-size:10px;font-weight:400}.vl-lead-dialog input:not([type=radio]):not([type=checkbox]),.vl-lead-dialog select,.vl-lead-dialog textarea{display:block;width:100%;max-width:100%;min-height:48px;padding:12px 13px;border:1px solid #dce7e9;border-radius:11px;background:#f7fafb;color:#142d37;font:400 15px/1.4 'Onest',sans-serif;box-shadow:none;transition:border-color .15s,background .15s}.vl-lead-dialog textarea{min-height:90px;resize:vertical}.vl-lead-dialog input::placeholder,.vl-lead-dialog textarea::placeholder{color:#84969b;font-size:13px}.vl-lead-dialog input:focus-visible,.vl-lead-dialog select:focus-visible,.vl-lead-dialog textarea:focus-visible{outline:2px solid #168b8340;outline-offset:1px;border-color:#168b83;background:#fff}.vl-lead-dialog input[type=date]{min-width:0;appearance:none;-webkit-appearance:none}.vl-lead-dialog input[type=date]::-webkit-date-and-time-value{text-align:left}
.vl-lead-contact{min-width:0;margin:0 0 20px;padding:0;border:0}.vl-lead-contact legend{margin-bottom:8px;padding:0;font-size:13px;font-weight:600}.vl-lead-channels{display:flex;gap:6px;margin-bottom:10px;padding:4px;border:1px solid #e0ebed;border-radius:12px;background:#f0f5f6}.vl-lead-channels label{position:relative;flex:1;cursor:pointer}.vl-lead-channels input{position:absolute;width:1px;height:1px;opacity:0}.vl-lead-channels span{display:block;padding:9px 12px;border:1px solid transparent;border-radius:8px;color:#678089;font-size:13px;font-weight:600;text-align:center}.vl-lead-channels input:checked+span{border-color:#c9e4df;background:#fff;color:#12665e;box-shadow:0 2px 5px #183c3610}.vl-lead-channels input:focus-visible+span{outline:2px solid #168b83;outline-offset:1px}.vl-lead-contact>small{display:block;margin-top:7px;color:#788b91;font-size:11px;line-height:1.5}.vl-lead-dates{display:grid;grid-template-columns:1fr 1fr;gap:14px}.vl-lead-dates .vl-lead-field>span{display:block}.vl-lead-dates .vl-lead-field small{display:block;margin-top:3px}.vl-lead-dialog select{padding-right:6px;font-size:13px}
.vl-lead-consent{display:flex;align-items:flex-start;gap:9px;margin:3px 0 20px;color:#72858b;font-size:11px;line-height:1.6;cursor:pointer}.vl-lead-consent input{flex:none;width:16px;height:16px;margin:1px 0 0;accent-color:#168b83}.vl-lead-consent a{color:#346c69;text-decoration:underline;text-underline-offset:2px}.vl-lead-submit{display:block;width:100%;min-height:51px;padding:13px 20px;border:0;border-radius:12px;background:#168b83;color:#fff;font:600 15px/1.4 'Onest',sans-serif;cursor:pointer;transition:background .15s}.vl-lead-submit:hover{background:#116d67}.vl-lead-submit:disabled{opacity:.65;cursor:wait}.vl-lead-submit:focus-visible,.vl-lead-close:focus-visible,.vl-lead-success button:focus-visible{outline:3px solid #5bc5b9;outline-offset:3px}.vl-lead-error{margin:0 0 14px;padding:11px 13px;border:1px solid #e9cdd0;border-radius:10px;background:#fff6f7;color:#994254;font-size:13px;line-height:1.5}.vl-lead-honey{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.vl-lead-success{padding:25px 0 12px;outline:none}.vl-lead-success svg{width:48px;height:48px;padding:10px;border-radius:50%;background:#e3f4ee;color:#168b83}.vl-lead-success h3{margin:20px 0 12px;color:#142d37;font:500 28px/1.2 'Playfair Display',Georgia,serif}.vl-lead-success p{margin:0 0 14px;color:#617d85;font-size:15px;line-height:1.6}.vl-lead-success small{display:block;color:#789096;font-size:12px}.vl-lead-success button{margin-top:26px;padding:11px 22px;border:1px solid #b8d7d4;border-radius:10px;background:#f0f8f7;color:#125b56;font:600 14px 'Onest',sans-serif;cursor:pointer}
@keyframes vl-lead-enter{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:540px){.vl-lead-dialog{inset:auto 0 0;width:100%;height:auto;max-height:calc(100dvh - 10px);border-radius:22px 22px 0 0}.vl-lead-header{padding:25px 22px 23px}.vl-lead-brand{margin-bottom:22px}.vl-lead-content{padding:21px 22px calc(26px + env(safe-area-inset-bottom))}.vl-lead-close{top:18px;right:18px}.vl-lead-header h2{font-size:29px}.vl-lead-dates{gap:10px}.vl-lead-dialog input:not([type=radio]):not([type=checkbox]),.vl-lead-dialog select,.vl-lead-dialog textarea{font-size:16px}.vl-lead-dialog select{font-size:14px}}
@media(prefers-reduced-motion:reduce){.vl-lead-dialog[open]{animation:none}.vl-lead-open,.vl-lead-submit,.vl-lead-dialog input,.vl-lead-dialog textarea{transition:none}}
/* Keep the entire enquiry panel inside the viewport and reduce mobile density. */
dialog.vl-lead-dialog[open]{position:fixed;top:0;right:0;bottom:0;left:auto;width:min(460px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;margin:0;box-sizing:border-box;transform:none}
@media(max-width:540px){
  dialog.vl-lead-dialog[open]{top:auto;right:0;bottom:0;left:0;width:100%;max-width:100%;height:auto;max-height:min(88dvh,720px);margin:0;border-radius:18px 18px 0 0}
  .vl-lead-header{padding:17px 20px 16px}.vl-lead-brand{margin-bottom:13px;font-size:15px}.vl-lead-header h2{margin-bottom:6px;font-size:25px}.vl-lead-intro{font-size:12px;line-height:1.4}.vl-lead-close{top:14px;right:14px;width:34px;height:34px}
  .vl-lead-content{padding:15px 20px calc(18px + env(safe-area-inset-bottom))}.vl-lead-property{gap:10px;margin-bottom:15px;padding-bottom:15px}.vl-lead-property img{width:48px;height:48px;border-radius:9px}.vl-lead-property p{font-size:12px;line-height:1.4}
  .vl-lead-field,.vl-lead-contact{margin-bottom:13px}.vl-lead-field>span,.vl-lead-contact legend{margin-bottom:5px;font-size:12px}.vl-lead-dialog input:not([type=radio]):not([type=checkbox]),.vl-lead-dialog select{min-height:42px;padding:9px 11px}.vl-lead-dialog textarea{min-height:66px;padding:9px 11px}.vl-lead-channels{margin-bottom:7px}.vl-lead-channels span{padding:7px 10px}.vl-lead-contact>small{margin-top:4px}.vl-lead-consent{margin-bottom:13px}.vl-lead-submit{min-height:46px;padding:10px 16px}
  .vl-lead-open:not(.vl-lead-open--detail){width:calc(100% - 24px);min-height:38px;margin:0 12px 12px;padding:8px 12px;font-size:13px}
}

.vl-lead-header{padding-top:20px;padding-bottom:20px}.vl-lead-brand{margin-bottom:0}.vl-lead-date-hint{display:block;margin-top:5px;color:#788b91;font-size:11px}.vl-lead-dates .vl-lead-field>span small{display:block}.vl-lead-header .vl-lead-close{top:13px}
/* One compact, stable footer for the initial and subsequently loaded cards. */
#rental-catalog .rental-card__contact-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 8px;width:100%;padding:12px 16px 10px;margin:0}
#rental-catalog .rental-card__price-group{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
#rental-catalog .rental-card__price-group .rental-card__price{display:inline-block;grid-column:auto;grid-row:auto;margin:0;white-space:nowrap;font-size:19px;line-height:1.2}
#rental-catalog .rental-card__price-group .rental-card__price small{font-size:11px}
#rental-catalog .rental-card__price-group .rental-card-currency-trigger,#rental-catalog .rental-card__price-group .rental-card__currency{grid-column:auto;grid-row:auto;justify-self:auto;flex:none}
#rental-catalog .rental-card__contact-options{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:4px;width:auto;height:auto;margin:0}
#rental-catalog .rental-card__contact-option{width:36px;height:36px;min-width:36px;min-height:36px;margin:0}
#rental-catalog .rental-card__contact-option img{width:32px;height:32px}
#rental-catalog .rental-card>.vl-lead-open{width:calc(100% - 32px);min-height:40px;margin:0 16px 16px;padding:9px 12px;border-radius:10px;font-size:13px}
@media(max-width:540px){
  #rental-catalog .rental-card__contact-bar{padding:10px 14px 9px;gap:8px}
  #rental-catalog .rental-card__price-group .rental-card__price{font-size:18px}
  #rental-catalog .rental-card>.vl-lead-open{width:calc(100% - 28px);min-height:40px;margin:0 14px 14px}
}
@media(max-width:350px){#rental-catalog .rental-card__contact-bar{column-gap:4px}#rental-catalog .rental-card__contact-options{gap:1px}#rental-catalog .rental-card__contact-option{width:34px;height:34px;min-width:34px;min-height:34px}#rental-catalog .rental-card__price-group .rental-card__price{font-size:17px}}
/* Center the form and reserve a consistent contact area across card widths. */
dialog.vl-lead-dialog[open]{inset:0;width:min(460px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - 32px);margin:auto;border-radius:20px;transform:none}
#rental-catalog .rental-card__contact-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:8px 6px;min-height:92px}
#rental-catalog .rental-card__price-group{display:contents}
#rental-catalog .rental-card__price-group .rental-card__price{grid-column:1;grid-row:1;white-space:nowrap}
#rental-catalog .rental-card__price-group .rental-card-currency-trigger,#rental-catalog .rental-card__price-group .rental-card__currency{grid-column:2;grid-row:1;justify-self:end}
#rental-catalog .rental-card__contact-options{grid-column:1 / -1;grid-row:2;justify-self:end}
#rental-catalog .rental-card>.vl-lead-open{flex-shrink:0}
@media(max-width:540px){dialog.vl-lead-dialog[open]{inset:0;width:calc(100vw - 20px);max-width:calc(100vw - 20px);height:auto;max-height:calc(100dvh - 20px);margin:auto;border-radius:18px}}
/* The catalogue uses the selected/default page currency without a per-card control. */
#rental-catalog .rental-card__price-group .rental-card-currency-trigger,#rental-catalog .rental-card__price-group .rental-card__currency{display:none!important}
#rental-catalog .rental-card__contact-bar{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;min-height:56px;gap:8px}
#rental-catalog .rental-card__price-group{display:flex;min-width:0;flex:1 1 auto}
#rental-catalog .rental-card__contact-options{flex:0 0 auto}
/* Size the centered dialog to its contents; scroll only on short screens. */
dialog.vl-lead-dialog[open]{height:fit-content;min-height:0;max-height:calc(100dvh - 32px);overflow-y:auto}
@media(max-width:540px){dialog.vl-lead-dialog[open]{height:fit-content;min-height:0;max-height:calc(100dvh - 20px)}}

.vl-lead-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Four hero links form two balanced rows on narrow screens. */
@media(max-width:767px){body.page-template-page-rentals:not(.wp-admin) .rentals-hero__actions:has(> .rentals-hero__btn:nth-child(4)){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}body.page-template-page-rentals:not(.wp-admin) .rentals-hero__actions:has(> .rentals-hero__btn:nth-child(4))>.rentals-hero__btn{grid-column:auto!important;width:100%!important;min-width:0!important;min-height:44px!important;padding:8px 6px!important;font-size:clamp(11px,3vw,14px)!important;line-height:1.2!important;white-space:normal!important;text-align:center}}
/* Subtle contrast over the hero photograph for secondary actions. */
body.page-template-page-rentals:not(.wp-admin) .rentals-hero__actions .rentals-hero__btn--ghost,
body.page-template-page-rentals:not(.wp-admin) .rentals-hero__actions .rentals-hero__btn--locations{background:rgba(12,54,60,.46);border-color:rgba(232,250,248,.72);color:#fff;backdrop-filter:blur(3px)}
body.page-template-page-rentals:not(.wp-admin) .rentals-hero__actions .rentals-hero__btn--ghost:hover,
body.page-template-page-rentals:not(.wp-admin) .rentals-hero__actions .rentals-hero__btn--locations:hover{background:rgba(16,104,99,.68);border-color:#fff;color:#fff}

/* Rental term menu stays anchored to its own field. */
.vl-lead-term{position:relative;min-width:0}.vl-lead-term-toggle{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-height:48px;padding:10px 12px;border:1px solid #dce7e9;border-radius:11px;background:#f7fafb;color:#142d37;font:400 13px/1.3 'Onest',sans-serif;text-align:left;cursor:pointer}.vl-lead-term-toggle span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vl-lead-term-toggle svg{width:16px;height:16px;flex:none}.vl-lead-term-toggle:focus-visible{outline:2px solid #168b83;outline-offset:2px}.vl-lead-term-options{position:absolute;z-index:5;top:calc(100% + 5px);left:0;right:0;max-height:200px;overflow:auto;padding:5px;border:1px solid #d9e8e6;border-radius:11px;background:#fff;box-shadow:0 10px 24px #123b3a24}.vl-lead-term-options[hidden]{display:none}.vl-lead-term-options button{display:block;width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#23434b;font:400 13px/1.3 'Onest',sans-serif;text-align:left;cursor:pointer}.vl-lead-term-options button:hover,.vl-lead-term-options button:focus-visible,.vl-lead-term-options button.is-selected{background:#eaf6f4;color:#12665e}.vl-lead-dates .vl-lead-field{min-width:0}@media(max-width:540px){.vl-lead-term-toggle{min-height:42px}}
/* A compact confirmation with a clear visual hierarchy. */
.vl-lead-success:not([hidden]){display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 8px 4px}
.vl-lead-success svg{width:58px;height:58px;padding:15px;border:1px solid #bce4dd;background:#e4f6f1;color:#11877c;box-shadow:0 0 0 7px #f3faf8}
.vl-lead-success h3{margin:24px 0 9px;color:#15343b;font-size:25px;line-height:1.2}
.vl-lead-success p{max-width:280px;margin:0;color:#607b81;font-size:14px;line-height:1.55}
.vl-lead-success small{display:inline-block;margin-top:15px;padding:5px 10px;border:1px solid #e0eeeb;border-radius:6px;background:#f5faf9;color:#69837f;font-size:11px;letter-spacing:.03em}
.vl-lead-success button{width:100%;min-height:44px;margin-top:24px;border-color:#168b83;border-radius:10px;background:#168b83;color:#fff;font-size:14px}
.vl-lead-success button:hover{background:#116d67}
@media(max-width:540px){.vl-lead-success:not([hidden]){padding-top:14px}.vl-lead-success h3{margin-top:20px;font-size:23px}.vl-lead-success button{margin-top:20px}}
