/*
Theme Name: Boutique Hotel JT
Theme URI: https://www.boutiquehoteljt.com
Description: Blokthema voor Boutique Hotel JT, Curaçao. Adults only, rust en Caribische stijl. Inclusief MyTourist-boekingskalender.
Version: 1.4.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boutique-hotel-jt
*/

/* ---------- Algemeen ---------- */
html { scroll-behavior: smooth; }
:where(section, .wp-block-group)[id] { scroll-margin-top: 90px; }
img { max-width: 100%; height: auto; }

.jt-eyebrow {
	font-size: 0.8125rem !important;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--wp--preset--color--terracotta-donker);
	margin-bottom: 0.75rem !important;
}
.jt-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.jt-center { text-align: center; }
.jt-center .wp-block-buttons { justify-content: center; }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: var(--wp--preset--color--cacao);
	padding: calc(1rem - 1px) calc(2rem - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--cacao);
	color: var(--wp--preset--color--ivoor);
}

/* ---------- Header ---------- */
.jt-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--wp--preset--color--ivoor);
	border-bottom: 1px solid rgba(59, 42, 34, 0.12);
	padding-top: 14px; padding-bottom: 14px;
}
.admin-bar .jt-header { top: 32px; }
.jt-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.jt-logo { display: inline-flex; align-items: flex-end; gap: 6px; text-decoration: none; color: var(--wp--preset--color--cacao); }
.jt-logo span { font-family: var(--wp--preset--font-family--playfair); font-size: 1.6rem; line-height: 1; }
.jt-logo svg { width: 34px; height: 34px; }
.jt-nav { font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; gap: 1.8rem; }
.jt-nav a { text-decoration: none; }
.jt-header .wp-block-button__link { padding: 0.8rem 1.6rem; }

/* ---------- Hero ---------- */
.jt-hero { background: var(--wp--preset--color--terracotta); padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; }
.jt-hero-cols { gap: 0 !important; margin-bottom: 0 !important; }
.jt-hero-text { padding: clamp(3.5rem, 8vw, 7.5rem) clamp(0rem, 4vw, 3.5rem) clamp(5rem, 10vw, 8.5rem) 0; display: flex; flex-direction: column; justify-content: center; }
.jt-hero-text h1 { color: var(--wp--preset--color--wit); margin: 0.5rem 0 1.5rem; }
.jt-hero-text h1 em { font-style: italic; }
.jt-hero-text .jt-eyebrow { color: var(--wp--preset--color--cacao); }
.jt-hero-text p { max-width: 460px; font-size: 1.125rem; }
.jt-hero-image { margin: 0 !important; height: 100%; }
.jt-hero-image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; display: block; }

/* ---------- Boekingskaart (MyTourist) ---------- */
.jt-booking { position: relative; z-index: 3; margin-top: -56px !important; background: var(--wp--preset--color--ivoor); box-shadow: 0 18px 50px rgba(59, 42, 34, 0.12); padding: 28px 30px 30px !important; }
.jt-booking h2 { font-family: var(--wp--preset--font-family--jost); font-size: 0.75rem !important; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; color: var(--wp--preset--color--terracotta-donker); margin: 0 0 1rem; }
.jt-booking [widget] { min-height: 80px; }

.jt-usps { text-align: center; font-size: 0.9375rem; padding-top: 3.5rem; }
.jt-usps h3 { font-size: 1.375rem !important; margin-bottom: 0.25rem; }

/* ---------- Welkom ---------- */
.jt-palm svg { width: 44px; height: 44px; display: block; margin: 0 auto 1rem; }
.jt-pillars { border-top: 1px solid rgba(59, 42, 34, 0.15); padding-top: 3rem; margin-top: 4.5rem !important; }
.jt-pillars h3 { font-size: 1.625rem !important; margin-bottom: 0.5rem; }

/* ---------- Kamers ---------- */
.jt-rooms { background: var(--wp--preset--color--zand); }
.jt-room { background: var(--wp--preset--color--ivoor); height: 100%; display: flex; flex-direction: column; }
.jt-room > * { margin-left: 26px !important; margin-right: 26px !important; }
.jt-room .wp-block-image { margin: 0 0 1.25rem !important; }
.jt-room .wp-block-image img { width: 100%; height: 300px; object-fit: cover; display: block; }
.jt-room .jt-eyebrow { font-size: 0.6875rem !important; letter-spacing: 0.24em; margin-bottom: 0 !important; }
.jt-room h3 { font-size: 1.75rem !important; margin: 0.25rem 26px 0.5rem !important; }
.jt-room-meta { border-top: 1px solid rgba(59, 42, 34, 0.15); padding: 14px 0 26px; margin-top: auto !important; font-size: 0.875rem; display: flex; justify-content: space-between; }
.jt-room-meta a { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; font-weight: 500; }

.jt-room-meta strong { font-family: var(--wp--preset--font-family--playfair); font-weight: 400; font-size: 1.25rem; }
.jt-price { font-size: 1rem; margin: 0.5rem 0 1.75rem !important; }
.jt-price strong { font-family: var(--wp--preset--font-family--playfair); font-weight: 400; font-size: 2.25rem; line-height: 1; margin: 0 0.15em; }

/* ---------- Galerij ---------- */
.jt-gallery { gap: 20px !important; }
.jt-gallery .wp-block-image { margin: 0 !important; }
.jt-gallery .wp-block-image img { width: 100%; height: 460px; object-fit: cover; display: block; }
.jt-gallery .jt-stack { display: flex; flex-direction: column; gap: 20px; }
.jt-gallery .jt-stack .wp-block-image img { height: 220px; }

/* ---------- Rust (zeegroen) ---------- */
.jt-quiet { background: var(--wp--preset--color--zeegroen); color: var(--wp--preset--color--ivoor); text-align: center; }
.jt-quiet .jt-eyebrow { color: var(--wp--preset--color--terracotta); }
.jt-quiet .jt-quote { font-family: var(--wp--preset--font-family--playfair); font-size: var(--wp--preset--font-size--xx-large); line-height: 1.2; }
.jt-quiet p:last-child { opacity: 0.88; }

/* ---------- Diensten ---------- */
.jt-services { background: var(--wp--preset--color--cacao); color: var(--wp--preset--color--ivoor); }
.jt-services h2, .jt-services h3 { color: var(--wp--preset--color--ivoor); }
.jt-services .jt-eyebrow { color: var(--wp--preset--color--terracotta); }
.jt-services .wp-block-column { border-top: 1px solid rgba(250, 245, 239, 0.25); padding-top: 2rem; }
.jt-services .wp-block-column p { opacity: 0.85; }

.jt-services .wp-block-button.jt-light > .wp-block-button__link { color: var(--wp--preset--color--ivoor); border-color: var(--wp--preset--color--ivoor); }
.jt-services .wp-block-button.jt-light > .wp-block-button__link:hover { background: var(--wp--preset--color--ivoor); color: var(--wp--preset--color--cacao); }

/* ---------- Ontdek ---------- */
.jt-partners { list-style: none; padding: 0; margin: 0; counter-reset: jt; }
.jt-partners li { counter-increment: jt; display: grid; grid-template-columns: 48px 1fr; padding: 22px 0; border-bottom: 1px solid rgba(59, 42, 34, 0.15); font-size: 0.9375rem; }
.jt-partners li::before { content: counter(jt, decimal-leading-zero); font-family: var(--wp--preset--font-family--playfair); font-style: italic; font-size: 1.375rem; color: var(--wp--preset--color--terracotta-donker); }
.jt-partners li strong { display: block; font-family: var(--wp--preset--font-family--playfair); font-weight: 400; font-size: 1.5rem; line-height: 1.3; }
.jt-discover-image img { width: 100%; height: 380px; object-fit: cover; display: block; }

/* ---------- Locatie ---------- */
.jt-location { background: var(--wp--preset--color--terracotta); gap: 0 !important; }
.jt-location > .wp-block-column:first-child { padding: clamp(2.5rem, 6vw, 4.5rem); }
.jt-location h2 { color: var(--wp--preset--color--wit); }
.jt-location .jt-eyebrow { color: var(--wp--preset--color--cacao); }
.jt-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Reserveer-band ---------- */
.jt-cta { background: var(--wp--preset--color--zand); text-align: center; }
.jt-cta h2 em { font-style: italic; }
.jt-cta .wp-block-buttons { justify-content: center; }

/* ---------- Footer ---------- */
.jt-footer { background: var(--wp--preset--color--cacao-donker); color: var(--wp--preset--color--ivoor); padding-top: 5.5rem; padding-bottom: 2.5rem; margin-top: 0 !important; }
.jt-footer a { color: var(--wp--preset--color--ivoor); text-decoration: none; }
.jt-footer a:hover { color: var(--wp--preset--color--terracotta); }
.jt-footer .jt-eyebrow { color: var(--wp--preset--color--terracotta); font-size: 0.75rem !important; }
.jt-footer .jt-logo { color: var(--wp--preset--color--ivoor); }
.jt-footer-bottom { border-top: 1px solid rgba(250, 245, 239, 0.18); padding-top: 1.5rem; margin-top: 3.5rem !important; font-size: 0.8125rem; opacity: 0.8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ---------- Gewone pagina's ---------- */
.jt-page-title { padding-top: var(--wp--preset--spacing--50); }

/* ---------- Volle-breedte pagina's (kamers, diensten, contact) ---------- */
.jt-full > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.jt-page-hero { background: var(--wp--preset--color--zand); padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.jt-page-hero-cols { align-items: center !important; gap: clamp(2rem, 5vw, 4.5rem) !important; }
.jt-page-hero-image img { width: 100%; height: clamp(320px, 42vw, 560px); object-fit: cover; display: block; }
.jt-page-hero h1 { margin: 0.25rem 0 1.25rem; }
.jt-page-intro { padding-bottom: var(--wp--preset--spacing--40); }
.jt-section-sm { padding-top: var(--wp--preset--spacing--40); padding-bottom: var(--wp--preset--spacing--40); }
.jt-row { align-items: center !important; gap: clamp(2rem, 5vw, 4.5rem) !important; }
.jt-row-image img { width: 100%; height: 440px; object-fit: cover; display: block; }
.jt-facilities { list-style: none; padding: 0; margin: 0; }
.jt-facilities li { padding: 14px 0 14px 34px; border-bottom: 1px solid rgba(59, 42, 34, 0.15); position: relative; }
.jt-facilities li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 14px; height: 1px; background: var(--wp--preset--color--terracotta-donker); }
.jt-avail { background: var(--wp--preset--color--zand); }
.jt-avail .jt-booking { margin-top: 0 !important; }
.jt-avail .jt-booking h2 { font-family: var(--wp--preset--font-family--playfair); font-size: var(--wp--preset--font-size--x-large) !important; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--cacao); }
.jt-avail .jt-booking .jt-eyebrow { margin-bottom: 0.25rem !important; }
.jt-room h3 a { text-decoration: none; }
.jt-contact { align-items: stretch !important; gap: clamp(2rem, 5vw, 4.5rem) !important; }
.jt-contact .jt-map { height: 100%; }
.jt-gallery-discover .wp-block-column:nth-child(2) { display: flex; flex-direction: column; gap: 20px; }
.jt-gallery-discover .wp-block-column:nth-child(2) .wp-block-image img { height: 220px; }

/* ---------- Fotogalerij (slider) ---------- */
.wp-block-gallery.jt-slider[hidden], .wp-block-gallery.jt-slider.jt-slider-done { display: none !important; }
.jt-gallery-section .jt-center { margin-bottom: 2rem; }
.jt-slider-ui { display: flex; flex-direction: column; gap: 18px; max-width: var(--wp--style--global--wide-size); margin-left: auto !important; margin-right: auto !important; width: 100%; }
.jt-stage { position: relative; aspect-ratio: 2 / 1; background: var(--wp--preset--color--zand); overflow: hidden; }
.jt-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jt-stage button { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 0; background: rgba(250, 245, 239, 0.92); color: var(--wp--preset--color--cacao); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.jt-stage button:hover { background: var(--wp--preset--color--ivoor); }
.jt-stage button:focus-visible, .jt-thumbs button:focus-visible { outline: 2px solid var(--wp--preset--color--cacao); outline-offset: 3px; }
.jt-prev { left: 20px; }
.jt-next { right: 20px; }
.jt-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.jt-caption { margin: 0; font-family: var(--wp--preset--font-family--playfair); font-style: italic; font-size: 1.25rem; line-height: 1.4; }
.jt-count { margin: 0; font-size: 0.8125rem; letter-spacing: 0.24em; white-space: nowrap; }
.jt-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.jt-thumbs button { padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; opacity: 0.55; transition: opacity .2s; }
.jt-thumbs button:hover, .jt-thumbs button[aria-current="true"] { opacity: 1; }
.jt-thumbs button[aria-current="true"] { outline: 1px solid var(--wp--preset--color--cacao); outline-offset: 3px; }
.jt-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1024px) { .jt-stage { aspect-ratio: 3 / 2; } }
@media (max-width: 600px) {
	.jt-stage { aspect-ratio: 4 / 3; margin-left: calc(-1 * clamp(1.25rem, 4vw, 2rem)); margin-right: calc(-1 * clamp(1.25rem, 4vw, 2rem)); }
	.jt-stage button { width: 42px; height: 42px; }
	.jt-prev { left: 10px; }
	.jt-next { right: 10px; }
	.jt-caption { font-size: 1rem; }
	.jt-thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding: 4px 4px 8px; scrollbar-width: none; }
	.jt-thumbs::-webkit-scrollbar { display: none; }
	.jt-thumbs button { flex: 0 0 78px; height: 58px; aspect-ratio: auto; scroll-snap-align: start; }
}

/* ---------- Mobiel ---------- */
@media (max-width: 781px) {
	.jt-hero-text { padding-right: 0; }
	.jt-hero-image img { min-height: 380px; }
	.jt-gallery .wp-block-image img, .jt-gallery .jt-stack .wp-block-image img { height: 300px; }
	.jt-booking { margin-top: -32px !important; padding: 22px 18px !important; }
	.jt-header .wp-block-buttons { display: none; }
	.jt-row-image img { height: 300px; }
	.jt-gallery-discover .wp-block-column:nth-child(2) .wp-block-image img { height: 300px; }
}
