/* v1.7 for-business page pieces (includes/place-preview.php) -------------- */

/* WOW ตัวอย่างสถานที่ */
.wow-pv { --wow-pv-cols: minmax(0, 1.15fr) minmax(0, 1fr); display: grid; grid-template-columns: var(--wow-pv-cols); column-gap: 22px; row-gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--wow-line, #e3eaf3); border-radius: var(--wow-radius-lg, 20px); background: #fff; box-shadow: var(--wow-shadow, 0 8px 24px rgba(15, 46, 92, .08)); box-sizing: border-box; }
.wow-pv--no-media { grid-template-columns: minmax(0, 1fr); }
.wow-pv__media { display: grid; gap: 8px; min-width: 0; }
.wow-pv__main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--wow-radius, 14px); background: var(--wow-bg-soft, #f5f9fe); }
.wow-pv__main .wow-slider__track { height: 100%; margin: 0; padding: 0; list-style: none; }
.wow-pv__main .wow-slider__slide { height: 100%; margin: 0; }
.wow-pv__main .wow-slider__slide[hidden] { display: none; }
.wow-pv__main .wow-gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.wow-pv__main img, .wow-pv__main .wow-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.wow-pv__main .wow-slider__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--wow-navy, #0f2e5c); box-shadow: 0 2px 10px rgba(15, 46, 92, .18); transform: translateY(-50%); cursor: pointer; }
.wow-pv__main .wow-slider__nav.is-prev { left: 10px; }
.wow-pv__main .wow-slider__nav.is-next { right: 10px; }
.wow-pv__main .wow-slider__nav .wow-icon { width: 18px; height: 18px; }
.wow-pv__badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--wow-navy, #0f2e5c); font: 500 .85rem/1.3 var(--wow-font, inherit); box-shadow: 0 2px 8px rgba(15, 46, 92, .15); pointer-events: none; }
.wow-pv__badge .wow-icon { width: 16px; height: 16px; color: var(--wow-primary, #0a6cdb); }
.wow-pv__thumbs { display: grid; grid-template-columns: repeat(var(--wow-pv-thumbs, 4), minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.wow-pv__thumbs li { margin: 0; }
.wow-pv__thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: var(--wow-bg-soft, #f5f9fe); cursor: zoom-in; }
.wow-pv__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wow-pv__thumb:hover img { transform: scale(1.05); }
.wow-pv__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 46, 92, .55); color: #fff; font-weight: 600; }
.wow-pv__body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.wow-pv__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wow-pv__title { margin: 0; color: var(--wow-navy, #0f2e5c); font: 600 1.3rem/1.3 var(--wow-font-head, inherit); }
.wow-pv__title a { color: inherit; text-decoration: none; }
.wow-pv__title a:hover { color: var(--wow-primary, #0a6cdb); }
.wow-pv__fav .wow-fav { position: static; width: 36px; height: 36px; background: transparent; color: #e11d48; box-shadow: none; }
.wow-pv__fav .wow-fav .wow-icon { width: 22px; height: 22px; }
.wow-pv__rating { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; }
.wow-pv__stars { position: relative; display: inline-block; width: 82px; height: 16px; background: linear-gradient(90deg, #f5b301 var(--wow-pv-rate, 0%), #d9dee7 var(--wow-pv-rate, 0%)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg%3E%3Cpath id='s' d='M12 1.5l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.3 5.6 20.9l1.5-7.1L1.7 8.9l7.2-.8z'/%3E%3Cuse href='%23s' x='24'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='72'/%3E%3Cuse href='%23s' x='96'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg%3E%3Cpath id='s' d='M12 1.5l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.3 5.6 20.9l1.5-7.1L1.7 8.9l7.2-.8z'/%3E%3Cuse href='%23s' x='24'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='72'/%3E%3Cuse href='%23s' x='96'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.wow-pv__pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wow-pv__pills li { margin: 0; }
.wow-pv__pill { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: var(--wow-sky-soft, #eaf4fd); color: var(--wow-primary, #0a6cdb); font-size: .82rem; line-height: 1.5; text-decoration: none; }
.wow-pv__pill:hover { background: var(--wow-primary, #0a6cdb); color: #fff; }
.wow-pv__excerpt { margin: 0; color: var(--wow-muted, #5b6b82); font-size: .92rem; line-height: 1.6; }
.wow-pv__info { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wow-pv__info li { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--wow-text, #1d2b3f); font-size: .9rem; line-height: 1.5; }
.wow-pv__info .wow-icon { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--wow-primary, #0a6cdb); }
.wow-pv__info a { color: inherit; text-decoration: none; }
.wow-pv__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.wow-pv__actions .wow-btn { width: 100%; min-width: 0; padding-left: 8px; padding-right: 8px; }
.wow-pv__actions .wow-btn .wow-icon { width: 17px; height: 17px; flex: none; }
.wow-pv__actions .wow-fav-btn.is-saved .wow-icon { fill: currentColor; }
@media (max-width: 767px) {
	.wow-pv { grid-template-columns: minmax(0, 1fr); padding: 12px; }
	.wow-pv__title { font-size: 1.15rem; }
	.wow-pv__actions .wow-btn { font-size: .85rem; gap: 5px; }
}

/* Icon Box "เลขขั้นตอน (+ ลูกศรคั่น)" (Content → Icon Box → WOW: รูปแบบขั้นตอน) */
.e-con:has(> .e-con > .elementor-widget[class*="wow-ibox-step--"]),
.e-con-inner:has(> .e-con > .elementor-widget[class*="wow-ibox-step--"]) { counter-reset: wow-bstep; }
.elementor-widget[class*="wow-ibox-step--"] { counter-increment: wow-bstep; }
.elementor-widget[class*="wow-ibox-step--"] > .elementor-widget-container { position: relative; padding-top: 40px; }
.elementor-widget[class*="wow-ibox-step--"] > .elementor-widget-container::before { content: counter(wow-bstep); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wow-primary, #0a6cdb); color: #fff; font: 600 .95rem/1 var(--wow-font-head, inherit); }
@media (min-width: 1025px) {
	.e-con:has(> .elementor-widget.wow-ibox-step--num-arrow) { position: relative; overflow: visible !important; }
	.e-con:has(> .elementor-widget.wow-ibox-step--num-arrow) + .e-con:has(> .elementor-widget.wow-ibox-step--num-arrow)::before {
		content: ""; position: absolute; top: 50%; left: calc(-1 * var(--wow-step-gap, 20px) / 2 - 7px); z-index: 2; width: 10px; height: 10px;
		border-top: 2.5px solid var(--wow-primary, #0a6cdb); border-right: 2.5px solid var(--wow-primary, #0a6cdb); transform: translateY(-50%) rotate(45deg); opacity: .55;
	}
}

/* Two-column FAQ accordion (class wow-ct-acc--2col on an Accordion/Toggle widget) */
@media (min-width: 1025px) {
	.wow-ct-acc--2col .elementor-accordion, .wow-ct-acc--2col .elementor-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
}
.wow-ct-acc--2col .elementor-accordion-item, .wow-ct-acc--2col .elementor-toggle-item { margin-bottom: 10px; border: 1px solid var(--wow-line, #e3eaf3) !important; border-radius: 14px; background: #fff; overflow: hidden; }
.wow-ct-acc--2col .elementor-tab-title { border: 0 !important; padding: 14px 18px; }
.wow-ct-acc--2col .elementor-tab-content { border: 0 !important; padding: 0 18px 16px; }

/* Join cards: big number badge in the card head */
.wow-ct-joinnum .elementor-heading-title { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--wow-primary, #0a6cdb); color: #fff !important; font: 700 1.5rem/1 var(--wow-font-head, inherit) !important; }
.wow-ct-joinnum--yellow .elementor-heading-title { background: var(--wow-yellow, #ffd23f); color: var(--wow-navy, #0f2e5c) !important; }

/* Elementor kit compatibility (kit button/img resets) */
body[class*="elementor-kit-"] .wow-pv__main img,
body[class*="elementor-kit-"] .wow-pv__thumb img { width: 100%; height: 100%; max-width: none; border-radius: 0; object-fit: cover; }
body[class*="elementor-kit-"] .wow-pv button.wow-pv__thumb,
body[class*="elementor-kit-"] .wow-pv button.wow-pv__thumb:is(:hover, :focus) { padding: 0; border: 0; border-radius: 10px; background: var(--wow-bg-soft, #f5f9fe); box-shadow: none; }
body[class*="elementor-kit-"] .wow-pv__main button.wow-slider__nav { width: 36px; height: 36px; margin-top: 0; }
body[class*="elementor-kit-"] .wow-pv__fav button.wow-fav,
body[class*="elementor-kit-"] .wow-pv__fav button.wow-fav:is(:hover, :focus),
body[class*="elementor-kit-"] .wow-pv__fav button.wow-fav.is-saved { width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #e11d48; box-shadow: none; }
