/* DAC Product Blocks v0.2.2 - deliberately scoped; install only on staging first */
.dacpb{--dacpb-gold:#b49a6a;--dacpb-dark:#24211d;--dacpb-paper:#fff;--dacpb-border:#e9e4dc;color:var(--dacpb-dark);font-family:inherit;box-sizing:border-box}
.dacpb *, .dacpb *::before,.dacpb *::after{box-sizing:border-box}

[id="faq"],#faq{scroll-margin-top:18px!important}
.dacpb-gallery{position:relative;min-width:0;isolation:isolate}
.dacpb-gallery button{cursor:pointer}
.dacpb-gallery-desktop{height:400px;display:grid;gap:8px;grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr;overflow:hidden;border-radius:15px}
.dacpb-gallery-desktop .dacpb-gallery-photo:first-child{grid-row:1/3;grid-column:1}
.dacpb-gallery-desktop[data-count="1"]{grid-template-columns:1fr}
.dacpb-gallery-desktop[data-count="2"]{grid-template-columns:2fr 1fr}
.dacpb-gallery-desktop[data-count="3"]{grid-template-columns:2fr 1fr}
.dacpb-gallery-desktop[data-count="2"] .dacpb-gallery-photo:nth-child(2),.dacpb-gallery-desktop[data-count="3"] .dacpb-gallery-photo:nth-child(2){grid-row:1/3}
.dacpb-gallery-desktop[data-count="4"] .dacpb-gallery-photo:nth-child(4){grid-column:2/4}
.dacpb-gallery-desktop .dacpb-gallery-photo{position:relative;padding:0!important;border:0!important;background:#e5dfd4!important;min-width:0;min-height:0;overflow:hidden;border-radius:0;box-shadow:none!important;line-height:0}
.dacpb-gallery-desktop img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .3s ease}
.dacpb-gallery-desktop button:hover img{transform:scale(1.035)}
.dacpb-gallery .dacpb-view-all{position:absolute;right:12px;bottom:12px;padding:11px 15px;border-radius:80px;background:rgba(255,255,255,.98);color:#292723;font-size:13px;font-weight:650;line-height:1.2;box-shadow:0 3px 12px rgba(0,0,0,.16)}
.dacpb-gallery-actions{position:absolute;right:12px;top:12px;z-index:3;display:flex;gap:8px}
.dacpb-gallery .dacpb-icon-button{display:grid;place-items:center;padding:0;background:#fff!important;color:#312b21!important;width:42px;height:42px;border:1px solid #eee!important;border-radius:50%!important;box-shadow:0 2px 12px rgba(0,0,0,.12);min-height:42px}
.dacpb-gallery .dacpb-icon-button svg{width:22px;height:22px;display:block}
.dacpb-gallery .dacpb-icon-button[aria-pressed="true"]{color:#b0485e!important;background:#fff5f6!important}
.dacpb-gallery-mobile,.dacpb-dots{display:none}
.dacpb-gallery-dialog{padding:0;border:0;border-radius:16px;max-width:min(1000px,95vw);width:95vw;max-height:89vh;box-shadow:0 15px 60px #0007;color:#222;background:white}
.dacpb-gallery-dialog::backdrop{background:rgba(11,13,15,.76)}
.dacpb-dialog-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 20px;background:#fff;border-bottom:1px solid #eee}
.dacpb-dialog-head button{border:0;background:#f4f3f1;border-radius:50%;font-size:20px;width:40px;height:40px;cursor:pointer}
.dacpb-dialog-grid{padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;overflow-y:auto;max-height:calc(89vh - 65px)}
.dacpb-dialog-grid figure{margin:0}
.dacpb-dialog-grid img{display:block;width:100%;max-height:450px;object-fit:cover;border-radius:10px}
.dacpb-dialog-grid figcaption{color:#777;margin-top:4px;font-size:12px}
.dacpb-announcement{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.dacpb-panel{border:1px solid var(--dacpb-border);background:#fff;border-radius:15px;padding:19px 19px 8px;box-shadow:0 4px 15px #2d220b0a}
.dacpb-panel h2{font-size:16px!important;font-weight:700!important;margin:0 0 13px!important;padding:0 0 10px;border-bottom:1px solid #eee5d9;letter-spacing:0;line-height:1.35!important}
.dacpb-panel ul{list-style:none;margin:0!important;padding:0!important}
.dacpb-essentials li{display:flex;align-items:center;gap:12px;padding:10px 0;margin:0!important;border-bottom:1px solid #f1eee8;list-style:none}
.dacpb-essentials li:last-child{border-bottom:0}
.dacpb-essentials .dacpb-item-icon{flex:0 0 44px;display:grid;place-items:center;width:44px;height:44px;background:#faf7f0;border-radius:12px;color:#9c7131}.dacpb-essentials .dacpb-item-icon svg{width:26px;height:26px;display:block}
.dacpb-essentials strong{display:block;font-size:14px;line-height:1.35;color:#201f1c}
.dacpb-essentials small{display:block;color:#6c6a67;font-size:12px;line-height:1.4;margin-top:2px}
.dacpb-links li{margin:0!important;border-bottom:1px solid #f1eee8;list-style:none}
.dacpb-links li:last-child{border-bottom:0}
.dacpb-links li a{display:flex;align-items:center;gap:9px;padding:10px 0;text-decoration:none!important;color:#302c25!important;font-size:13px;font-weight:550}
.dacpb-links li a:hover{color:#8e641d!important}
.dacpb-links li a>span{display:grid;place-items:center;flex:0 0 28px;height:28px;background:#faf7f0;border-radius:8px;color:#9a742e;font-size:16px}
.dacpb-links li a b{margin-left:auto;color:#7a7569}
.dacpb-mobile-booking-bar{display:none}
@media(max-width:767px){
 .dacpb-gallery{width:100%;overflow:visible}
 .dacpb-gallery-desktop{display:none}
 .dacpb-gallery-mobile{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;width:100%;scroll-snap-type:x mandatory;scroll-padding:0 0 0 0;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:0 24px 2px 0;align-items:stretch;height:min(68vw,320px)}
 .dacpb-gallery-mobile::-webkit-scrollbar{display:none}
 .dacpb-mobile-card{flex:0 0 86%;min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;gap:8px;overflow:hidden;height:100%}
 .dacpb-mobile-card.dacpb-card-shape-wide{flex-basis:88%}
 .dacpb-mobile-card.dacpb-card-shape-tall{flex-basis:72%}
 .dacpb-mobile-card.dacpb-card-shape-double{flex-basis:74%}
 .dacpb-mobile-main,.dacpb-mobile-thumb{border:0!important;background:#e4e0d7!important;border-radius:14px!important;overflow:hidden;display:block;width:100%;padding:0!important;line-height:0!important;box-shadow:none!important;min-height:0;height:100%}
 .dacpb-mobile-main img,.dacpb-mobile-thumb img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important}
 .dacpb-mobile-thumbs{display:grid;grid-template-rows:1fr 1fr;gap:8px;min-height:0;height:100%}
 .dacpb-mobile-thumbs button{border:0!important;background:#eee!important;border-radius:14px!important;overflow:hidden;line-height:0!important;padding:0!important;box-shadow:none!important}
 .dacpb-dots{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:-20px;height:24px;position:relative;z-index:3;pointer-events:auto}
 .dacpb-dots::before{content:"";position:absolute;background:#fffc;border-radius:40px;width:fit-content;inset:2px calc(50% - 45px);z-index:-1}
 .dacpb-dots button{width:7px!important;height:7px!important;min-height:7px!important;min-width:7px!important;border-radius:99px!important;border:0!important;padding:0!important;background:#aaa!important;box-shadow:none!important}
 .dacpb-dots button[aria-current="true"]{background:#333!important;width:21px!important}
 .dacpb-gallery-actions{top:11px;right:calc(13% + 16px)}
 .dacpb-panel{padding:16px;margin-top:10px}
 .dacpb-mobile-booking-bar:not([hidden]){display:flex;position:fixed;bottom:0;left:0;right:0;align-items:center;justify-content:space-between;gap:12px;padding:11px 16px calc(11px + env(safe-area-inset-bottom));background:#111;border-top:1px solid #2e2a26;box-shadow:0 -9px 25px rgba(0,0,0,.24);z-index:9998;border-radius:16px 16px 0 0}
 .dacpb-mobile-booking-bar .dacpb-bar-price{min-width:0;flex:0 1 auto}
 .dacpb-mobile-booking-bar .dacpb-bar-price strong{display:block;color:#fff;font-size:15px;line-height:1.2}
 .dacpb-mobile-booking-bar .dacpb-bar-price small{display:block;color:#d9c59a;font-size:11px}.dacpb-mobile-booking-bar .dacpb-bar-price .dacpb-bar-label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px;color:#d9c59a}
 .dacpb-mobile-booking-bar button{display:block!important;flex:0 1 auto;border:1px solid #d4b06d!important;border-radius:40px!important;background:#caa35a!important;color:#171410!important;padding:13px 16px!important;font-size:13px!important;font-weight:700!important;line-height:1.25!important;min-height:45px;white-space:normal;box-shadow:0 6px 16px rgba(0,0,0,.18)}
 body.dacpb-has-bar{padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}
 .dacpb-dialog-grid{grid-template-columns:1fr}
}
@media(max-width:360px){.dacpb-mobile-card{flex-basis:88%}.dacpb-gallery-actions{right:calc(12% + 14px)}.dacpb-mobile-booking-bar button{padding:12px 10px!important;font-size:12px!important}}
@media(prefers-reduced-motion:reduce){.dacpb-gallery-desktop img{transition:none}.dacpb-gallery-mobile{scroll-behavior:auto}}

/* REV2.0: theme-safe refinements, no global Elementor selectors */
.dacpb-gallery .dacpb-view-all{z-index:4;display:inline-flex;align-items:center;gap:8px;cursor:pointer;line-height:1.2;border:0!important;min-height:40px;box-shadow:0 3px 12px rgba(0,0,0,.15)!important}
.dacpb-gallery .dacpb-view-all:hover{background:#fff!important;color:#7f5f30!important}
.dacpb-gallery .dacpb-icon-button:hover{background:#faf4e7!important;color:#9a7137!important}
.dacpb-gallery .dacpb-icon-button:focus-visible,.dacpb-gallery .dacpb-view-all:focus-visible,.dacpb-gallery .dacpb-dialog-head button:focus-visible,.dacpb-gallery .dacpb-mobile-main:focus-visible,.dacpb-gallery .dacpb-share-panel :focus-visible{outline:2px solid #b49a6a!important;outline-offset:3px!important;box-shadow:none!important}
.dacpb-gallery button:focus:not(:focus-visible){outline:0!important;box-shadow:none!important}
.dacpb-gallery-dialog .dacpb-dialog-head [data-dacpb-close],.dacpb-gallery-dialog .dacpb-dialog-head [data-dacpb-close]:hover{display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;min-height:42px!important;max-width:42px!important;border:1px solid #e5dfd4!important;border-radius:50%!important;background:#f5f2eb!important;color:#312c26!important;box-shadow:none!important;text-shadow:none!important;line-height:1!important;font-family:Arial,Helvetica,sans-serif!important;font-size:20px!important;font-weight:500!important;padding:0!important;text-align:center!important;transform:none!important}
.dacpb-gallery-dialog .dacpb-dialog-head [data-dacpb-close]:hover{background:#ede2c9!important;color:#815d2f!important}
.dacpb-gallery-dialog :focus-visible{outline-color:#b49a6a!important;box-shadow:none!important}
.dacpb-gallery .dacpb-share-panel[hidden]{display:none!important}
.dacpb-gallery .dacpb-share-panel{position:absolute;right:0;top:52px;width:228px;border-radius:13px;padding:12px;background:#fff;border:1px solid #e8ded0;box-shadow:0 12px 35px #1a1a1a2e;display:flex;flex-direction:column;gap:4px;z-index:10;text-align:left}
.dacpb-share-panel strong{font-size:13px;padding:4px 9px 8px;color:#302923}
.dacpb-gallery .dacpb-share-panel a,.dacpb-gallery .dacpb-share-panel button{display:flex;width:100%;align-items:center;gap:10px;height:auto;min-height:40px!important;cursor:pointer;text-align:left;font-size:13px;line-height:1.4;font-weight:600;color:#2d2820!important;background:#fff!important;text-decoration:none!important;border:0!important;border-radius:10px!important;padding:10px 12px!important;box-shadow:none!important}.dacpb-gallery .dacpb-share-panel .dacpb-share-ico{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#faf5ea;color:#9a7137;flex:0 0 28px}.dacpb-gallery .dacpb-share-panel .dacpb-share-ico svg{width:17px;height:17px;display:block}
.dacpb-gallery .dacpb-share-panel a:hover,.dacpb-gallery .dacpb-share-panel button:hover{background:#f6f1e7!important;color:#855e29!important}
.dacpb-related{margin:26px auto;max-width:1200px;min-width:0}
.dacpb-related-head h2{font-family:inherit!important;font-size:clamp(23px,2.2vw,30px)!important;font-weight:700!important;color:#282522!important;line-height:1.28!important;margin:0 0 9px!important}
.dacpb-related-head p{color:#756e64;font-size:14px;line-height:1.6;margin:0 0 22px}
.dacpb-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.dacpb-related-card{min-width:0;overflow:hidden;border:1px solid #e8e3db;border-radius:15px;background:#fff;box-shadow:0 6px 25px #0000000b;display:flex;flex-direction:column}
.dacpb-related-photo{display:flex;aspect-ratio:1.55;background:#f2ede3;overflow:hidden;line-height:0;align-items:stretch;justify-content:stretch}
.dacpb-related-photo img{width:100%!important;height:100%!important;display:block;object-fit:cover!important;object-position:center center!important;transition:transform .3s;background:#f2ede3}
.dacpb-related-photo:hover img{transform:scale(1.03)}
.dacpb-related-content{padding:17px;display:flex;flex:1;flex-direction:column;align-items:start;gap:9px}
.dacpb-related-content small{font-size:11px;text-transform:uppercase;letter-spacing:.065em;color:#92713d;font-weight:700}
.dacpb-related-content h3{font-family:inherit;font-size:17px!important;line-height:1.36!important;color:#2a2620!important;margin:0!important;font-weight:700!important}
.dacpb-related-content h3 a{color:inherit;text-decoration:none!important}
.dacpb-related-content h3 a:hover{color:#8a652e}
.dacpb-related-price{font-size:14px;font-weight:650;margin:3px 0 0;color:#2b2822}
.dacpb-related-price .woocommerce-Price-amount{font-weight:700}
.dacpb-related-cta{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#6d501f!important;text-decoration:none!important;font-weight:700;font-size:13px;padding:9px 0 0}
.dacpb-related-cta:hover{text-decoration:underline!important}
@media(max-width:900px){.dacpb-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
 .dacpb-gallery .dacpb-view-all{display:none!important}
 .dacpb-gallery-mobile{align-items:stretch;height:min(68vw,320px);gap:10px;scroll-padding-left:0}
 .dacpb-mobile-card{height:100%;gap:0}
 .dacpb-mobile-main,.dacpb-mobile-thumb{height:100%;aspect-ratio:auto!important}
 .dacpb-mobile-card.dacpb-card-shape-single .dacpb-mobile-main{height:100%}
 .dacpb-mobile-card.dacpb-card-shape-double .dacpb-mobile-thumbs{height:100%}
 .dacpb-dots{margin-top:6px;height:18px}
 .dacpb-dots::before{background:transparent}
 .dacpb-related-grid{grid-template-columns:1fr;gap:14px}
 .dacpb-related-card{display:grid;grid-template-columns:38% minmax(0,1fr);align-items:stretch}
 .dacpb-related-photo{height:100%;aspect-ratio:auto;min-height:122px;display:flex!important}
 .dacpb-related-content{padding:13px;gap:6px}
 .dacpb-related-content h3{font-size:15px!important}
 .dacpb-related-head h2{font-size:24px!important}
 .dacpb-mobile-booking-bar .dacpb-bar-price strong{font-size:16px;white-space:nowrap;color:#fff}
 .dacpb-mobile-booking-bar .dacpb-bar-price strong .amount{font-size:inherit}
 .dacpb-mobile-booking-bar .dacpb-bar-price small{font-size:11px}
 .dacpb-mobile-booking-bar button{font-size:12.5px!important;min-width:143px;max-width:56%;text-align:center}
}
@media(max-width:370px){.dacpb-related-card{grid-template-columns:36% minmax(0,1fr)}.dacpb-mobile-booking-bar{gap:7px!important;padding-left:10px!important;padding-right:10px!important}.dacpb-mobile-booking-bar button{min-width:125px;padding:12px 8px!important;font-size:12px!important}}

@media(max-width:767px){.dacpb-mobile-card.dacpb-card-shape-double .dacpb-mobile-thumb img{object-position:center center!important}.dacpb-mobile-card.dacpb-card-shape-single .dacpb-mobile-main img{object-position:center center!important}}

/* ===== DAC PRODUCT BLOCKS v0.2.6 — responsive gallery + clear saved state ===== */
/* Use available space from the Elementor container without imposing viewport-based width. */
.single-product .dacpb-gallery{
  display:block;width:100%;max-width:100%;min-width:0;
  container-type:inline-size;container-name:dac-gallery;
}
.single-product .dacpb-gallery-desktop{
  display:grid;overflow:hidden;width:100%;max-width:100%;
  grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  height:clamp(320px,31vw,440px);
}
.single-product .dacpb-gallery-desktop .dacpb-gallery-photo{
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  display:block!important;position:relative!important;align-self:stretch;justify-self:stretch;
  overflow:hidden!important;
}
.single-product .dacpb-gallery-desktop .dacpb-gallery-photo img,
.single-product .dacpb-gallery-desktop .dacpb-gallery-photo .dacpb-photo{
  position:absolute!important;inset:0!important;
  display:block!important;width:100%!important;height:100%!important;
  min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;
  object-fit:cover!important;object-position:center!important;
  vertical-align:middle!important;
}
.single-product .dacpb-gallery-desktop[data-count="3"] .dacpb-gallery-photo:nth-child(3){grid-row:1/3;grid-column:3}
@container dac-gallery (max-width:670px){
  .dacpb-gallery-desktop{height:340px!important;gap:6px}
  .dacpb-gallery .dacpb-view-all{right:9px;bottom:9px}
}
/* Maintain the existing mobile carousel from the v0.2.5 plugin. */
@media(max-width:767px){
  .single-product .dacpb-gallery-desktop{display:none!important}
  .single-product .dacpb-gallery-mobile{display:flex}
}
/* Saved = filled white heart on a bold burgundy disc, with a gold check marker. */
.single-product .dacpb-gallery .dacpb-icon-button[data-dacpb-favorite][aria-pressed="true"]{
  position:relative!important;
  background:#982b4a!important;color:#fff!important;border:2px solid #fff!important;
  box-shadow:0 0 0 3px rgba(152,43,74,.38),0 5px 15px rgba(0,0,0,.23)!important;
}
.single-product .dacpb-gallery .dacpb-icon-button[data-dacpb-favorite][aria-pressed="true"] svg{
  fill:#fff!important;stroke:#fff!important;stroke-width:2.1!important;
}
.single-product .dacpb-gallery .dacpb-icon-button[data-dacpb-favorite][aria-pressed="true"]::after{
  content:"✓";position:absolute;right:-6px;bottom:-6px;
  display:grid;place-items:center;width:17px;height:17px;border-radius:50%;
  background:#b49a6a;color:#171511;border:2px solid #fff;
  font:800 11px/1 Arial,sans-serif;
}
.single-product .dacpb-related-content{min-height:0}
/* Preserve correct mosaics when WooCommerce has fewer than five photographs. */
.single-product .dacpb-gallery-desktop[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.single-product .dacpb-gallery-desktop[data-count="2"]{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.single-product .dacpb-gallery-desktop[data-count="3"]{grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr))}
