/* Real Krabi – site header + footer (RKTP_Site::header_markup / footer_markup). Loaded on every front-end page.
   Menu items are managed in Appearance → Menus. Optional CSS classes on menu items:
   rk-nav-gold (gold link), rk-nav-support (Contact pill, opens the contact popup), rk-nav-cta (gold outline button),
   rk-nav-phone / rk-nav-email (mobile menu only), rk-ico-palm / rk-ico-mountain / rk-ico-people (dropdown icons). */

.rkh, .rkf {
	--rkc-navy: #0b1d2a;
	--rkc-navy-2: #0f2532;
	--rkc-gold: #d6a84f;
	--rkc-gold-2: #e8c77f;
	--rkc-cream: #faf8f5;
	--rkc-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--rkc-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-family: var(--rkc-sans);
	-webkit-font-smoothing: antialiased;
}
.rkh *, .rkh *::before, .rkh *::after, .rkf *, .rkf *::before, .rkf *::after { box-sizing: border-box; }
.rk-site .skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100002; clip: auto; width: auto; height: auto; padding: 10px 16px; background: #fff; color: #0b1d2a; border-radius: 8px; }
#rk-content:focus { outline: none; }

/* ============================================================== header */
.rkh { position: relative; z-index: 60; background: var(--rkc-navy); }
.rkh-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1320px; margin: 0 auto; padding: 18px 40px; }
.rkh-logo { display: block; flex: none; line-height: 0; text-decoration: none; }
.rkh-logo img { display: block; width: auto; height: 49px; max-width: none; }
.rkh-panel { display: flex; align-items: center; min-width: 0; }
.rkh-panel-head, .rkh-toggle, .rkh-overlay { display: none; }
.rkh-overlay[hidden] { display: none !important; }

.rkh-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rkh-menu li { position: relative; margin: 0; padding: 0; list-style: none; }
.rkh-menu > li > a {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
	color: var(--rkc-cream); font-size: 15px; font-weight: 500; letter-spacing: .3px; line-height: 1.4;
	text-decoration: none; white-space: nowrap; transition: color .25s ease;
}
.rkh-menu > li > a:hover, .rkh-menu > li > a:focus-visible, .rkh-menu > li.current-menu-item > a { color: var(--rkc-gold); }
.rkh-menu > li > a:focus-visible, .rkh-menu .sub-menu a:focus-visible { outline: 2px solid var(--rkc-gold); outline-offset: 2px; border-radius: 8px; }
.rkh-menu > li.rk-nav-gold > a { color: var(--rkc-gold); }
.rkh-menu > li.rk-nav-gold > a:hover { color: var(--rkc-gold-2); }

/* dropdown arrow */
.rkh-menu > li.menu-item-has-children > a::after {
	content: ""; width: 10px; height: 10px; flex: none; background-color: var(--rkc-gold); transition: transform .3s ease;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rkh-menu > li.menu-item-has-children:hover > a::after, .rkh-menu > li.menu-item-has-children:focus-within > a::after { transform: rotate(180deg); }

/* dropdown panel */
.rkh-menu .sub-menu {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; min-width: 240px; margin: 0; padding: 10px 8px; list-style: none;
	background: var(--rkc-navy); border: 1px solid rgba(214, 168, 79, .15); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.rkh-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.rkh-menu > li:hover > .sub-menu, .rkh-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.rkh-menu .sub-menu a {
	display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 8px;
	color: var(--rkc-cream); font-size: 14px; font-weight: 400; line-height: 1.4; text-decoration: none; white-space: nowrap;
	transition: background .2s ease, color .2s ease;
}
.rkh-menu .sub-menu a:hover, .rkh-menu .sub-menu .current-menu-item > a { background: rgba(214, 168, 79, .08); color: var(--rkc-gold); }
.rkh-menu .sub-menu li + li { margin-top: 2px; }

/* dropdown icons */
.rkh-menu li[class*="rk-ico-"] > a::before { content: ""; flex: none; width: 20px; height: 20px; background-color: var(--rkc-gold); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.rkh-menu li.rk-ico-palm > a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 8c0-2.76-2.46-5-5.5-5-1.93 0-3.5 1.57-3.5 3.5 0 1.58.78 2.97 2 3.83'/%3E%3Cpath d='M13 8c0-2.5 2.24-5 5-5 1.93 0 3.5 1.57 3.5 3.5 0 1.58-.78 2.97-2 3.83'/%3E%3Cpath d='M13 8v13'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 8c0-2.76-2.46-5-5.5-5-1.93 0-3.5 1.57-3.5 3.5 0 1.58.78 2.97 2 3.83'/%3E%3Cpath d='M13 8c0-2.5 2.24-5 5-5 1.93 0 3.5 1.57 3.5 3.5 0 1.58-.78 2.97-2 3.83'/%3E%3Cpath d='M13 8v13'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); }
.rkh-menu li.rk-ico-mountain > a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18L13.5 4 9 12l-3 2z'/%3E%3Cpath d='M3 20l5.5-8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18L13.5 4 9 12l-3 2z'/%3E%3Cpath d='M3 20l5.5-8'/%3E%3C/svg%3E"); }
.rkh-menu li.rk-ico-people > a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }

/* Contact pill (rk-nav-support – opens the contact popup) */
.rkh-menu > li.rk-nav-support > a {
	gap: 8px; margin: 0 4px; padding: 7px 16px 7px 13px;
	border: 1px solid rgba(250, 248, 245, .28); border-radius: 999px; background: rgba(250, 248, 245, .06);
	color: var(--rkc-cream); font-size: 14px; cursor: pointer; transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.rkh-menu > li.rk-nav-support > a::before {
	content: ""; flex: none; width: 18px; height: 18px; background-color: var(--rkc-gold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.2-4.2A8.5 8.5 0 1 1 20 11.5z'/%3E%3Cpath d='M8.5 11.5h.01M12 11.5h.01M15.5 11.5h.01' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.2-4.2A8.5 8.5 0 1 1 20 11.5z'/%3E%3Cpath d='M8.5 11.5h.01M12 11.5h.01M15.5 11.5h.01' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rkh-menu > li.rk-nav-support > a:hover, .rkh-menu > li.rk-nav-support > a:focus-visible { border-color: var(--rkc-gold); background: rgba(214, 168, 79, .12); color: var(--rkc-gold); }

/* Plan Your Trip (rk-nav-cta) */
.rkh-menu > li.rk-nav-cta > a {
	margin-left: 6px; padding: 8px 20px; border: 1.5px solid var(--rkc-gold); border-radius: 999px; background: transparent;
	color: var(--rkc-gold); font-size: 14px; font-weight: 600; letter-spacing: .5px; transition: background .25s ease, color .25s ease;
}
.rkh-menu > li.rk-nav-cta > a::after { content: "\203A"; font-size: 20px; font-weight: 300; line-height: 1; margin-left: 2px; }
.rkh-menu > li.rk-nav-cta > a:hover, .rkh-menu > li.rk-nav-cta > a:focus-visible { background: var(--rkc-gold); color: var(--rkc-navy); }

/* phone / email: mobile menu only */
.rkh-menu > li.rk-nav-phone, .rkh-menu > li.rk-nav-email { display: none; }

/* currency switcher button (RKTP_Currency appends li.rk-cur-item) */
.rkh-menu > li.rk-cur-item { display: flex; align-items: center; }
.rkh .rk-cur-btn.rk-cur-btn { margin-left: 8px; }

/* ============================================================== header – mobile menu */
@media (max-width: 1100px) {
	.rkh-in { padding: 12px 20px; }
	.rkh-logo img { height: 40px; }

	.rkh-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0 !important;
		background: transparent !important; border: 1px solid rgba(250, 248, 245, .22) !important; border-radius: 12px !important;
		color: var(--rkc-cream) !important; cursor: pointer; box-shadow: none !important;
	}
	.rkh-toggle:hover, .rkh-toggle:focus-visible { border-color: var(--rkc-gold) !important; outline: none; }
	.rkh-bars { display: grid; gap: 4px; width: 20px; }
	.rkh-bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; }

	.rkh-panel {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 100001; display: flex; flex-direction: column; align-items: stretch;
		width: min(86vw, 380px); overflow-y: auto; overscroll-behavior: contain;
		background: var(--rkc-navy); border-left: 1px solid rgba(214, 168, 79, .12); box-shadow: -20px 0 60px rgba(0, 0, 0, .45);
		transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
	}
	html.rkh-open .rkh-panel { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
	html.rkh-open { overflow: hidden; }
	html.rkh-open .rkh { z-index: 100001; } /* lift the header's stacking context above floating widgets */
	.admin-bar .rkh-panel { top: 46px; }
	.rkh-overlay { display: block; position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .55); }

	.rkh-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.rkh-panel-title { color: var(--rkc-gold); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
	.rkh-close {
		display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0 !important;
		background: transparent !important; border: 1px solid rgba(250, 248, 245, .22) !important; border-radius: 50% !important;
		color: var(--rkc-cream) !important; font: 400 26px/1 system-ui, sans-serif !important; cursor: pointer; box-shadow: none !important;
	}
	.rkh-close:hover, .rkh-close:focus-visible { border-color: var(--rkc-gold) !important; outline: none; }

	.rkh-nav { padding: 8px 0 24px; }
	.rkh-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.rkh-menu > li > a { display: flex; padding: 14px 24px; font-size: 16px; white-space: normal; border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.rkh-menu > li.menu-item-has-children > a::after { display: none; }
	.rkh-menu .sub-menu, .rkh-menu > li:hover > .sub-menu, .rkh-menu > li:focus-within > .sub-menu {
		position: static; min-width: 0; padding: 4px 0 8px; border: 0; border-radius: 0; box-shadow: none; background: rgba(255, 255, 255, .02);
		opacity: 1; visibility: visible; transform: none; transition: none;
	}
	.rkh-menu .sub-menu::before { display: none; }
	.rkh-menu .sub-menu a { padding: 12px 24px 12px 32px; font-size: 15px; white-space: normal; border-radius: 0; }

	.rkh-menu > li.rk-nav-support > a { margin: 0; gap: 10px; padding: 14px 24px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; background: transparent; font-size: 16px; }
	.rkh-menu > li.rk-nav-phone, .rkh-menu > li.rk-nav-email { display: block; }
	.rkh-menu > li.rk-nav-phone > a, .rkh-menu > li.rk-nav-email > a { gap: 10px; padding: 10px 24px; border-bottom: 0; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 400; }
	.rkh-menu > li.rk-nav-phone > a::before, .rkh-menu > li.rk-nav-email > a::before { content: ""; flex: none; width: 18px; height: 18px; background-color: var(--rkc-gold); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
	.rkh-menu > li.rk-nav-phone > a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.362 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.338 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.362 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.338 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
	.rkh-menu > li.rk-nav-email > a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E"); }
	.rkh-menu > li.rk-nav-phone { margin-top: 12px; }
	.rkh-menu > li.rk-nav-cta > a { justify-content: center; margin: 16px 24px 0; padding: 12px 24px; border-bottom: 1.5px solid var(--rkc-gold); font-size: 15px; }
	.rkh-menu > li.rk-cur-item { padding: 16px 24px 0; }
	.rkh .rk-cur-btn.rk-cur-btn { margin-left: 0; }
}
@media (max-width: 480px) {
	.rkh-in { padding: 10px 16px; }
	.rkh-logo img { height: 32px; }
}

/* ============================================================== footer */
.rkf { position: relative; background: var(--rkc-navy); color: rgba(250, 248, 245, .72); font-size: 15px; line-height: 1.6; }
.rkf a { color: rgba(250, 248, 245, .82); text-decoration: none; transition: color .2s ease; }
.rkf a:hover, .rkf a:focus-visible { color: var(--rkc-gold); }
.rkf-in { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.rkf-main { padding: 64px 0 48px; border-top: 1px solid rgba(214, 168, 79, .14); }
.rkf-main > .rkf-in { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(var(--rkf-cols, 2), minmax(0, 1fr)); gap: 40px; }
.rkf-logo { display: inline-block; line-height: 0; }
.rkf-logo img { display: block; width: 190px; max-width: 100%; height: auto; }
.rkf-h { margin: 0 0 16px !important; font-family: var(--rkc-serif); font-size: 18px; font-weight: 600; line-height: 1.3; color: #fff; }
.rkf-h a { color: #fff; }
.rkf-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rkf-col li { margin: 0; list-style: none; }
.rkf-bottom { padding: 22px 0 72px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.rkf-bottom > .rkf-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.rkf-copy { margin: 0 !important; color: rgba(250, 248, 245, .6); }
.rkf-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.rkf-legal li { margin: 0; list-style: none; }
.rkf-legal a { color: rgba(250, 248, 245, .7); }
@media (max-width: 900px) {
	.rkf-main > .rkf-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rkf-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.rkf-in { padding: 0 20px; }
	.rkf-main { padding: 48px 0 36px; }
	.rkf-main > .rkf-in { gap: 32px 24px; }
	.rkf-logo img { width: 160px; }
	.rkf-bottom { padding-bottom: 84px; } /* room for the floating language switcher */
	.rkf-bottom > .rkf-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.rkh *, .rkf * { transition: none !important; }
}

/* ============================================================== overlay header (homepage: body.rk-header-overlay) */
.rk-header-overlay .rkh { position: fixed; top: 0; left: 0; right: 0; background: transparent; }
.rk-header-overlay .rkh::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(3, 16, 24, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(214, 168, 79, .12); box-shadow: 0 10px 40px rgba(0, 0, 0, .15); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.rk-header-overlay .rkh.is-scrolled::before, html.rkh-open .rk-header-overlay .rkh::before { opacity: 1; }
.admin-bar.rk-header-overlay .rkh { top: 32px; }
@media (max-width: 782px) { .admin-bar.rk-header-overlay .rkh { top: 46px; } }
