/* Front-end base stylesheet.
 * Provides shared reset/foundation rules without loading legacy frontend CSS.
 */

html {
	-webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-width: 320px;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg,
iframe {
	max-width: 100%;
}

img,
svg {
	display: block;
}

button,
input,
select,
textarea {
	font: inherit;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

.container {
	width: min(var(--app-container, var(--container, 1280px)), calc(100% - 28px));
	margin: 0 auto;
}

.nav,
.sub-menu,
.socials,
.footer-column ul,
.footer-cert,
.footer-v2-column ul,
.mobile-nav-scroll {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ky-gui-float-btn {
	position: fixed;
	right: 22px;
	bottom: 154px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--app-primary, #ff5b00), var(--app-primary-deep, #d94800));
	color: #fff;
	font-weight: 800;
	box-shadow: 0 18px 34px rgba(255, 91, 0, .28);
	cursor: pointer;
}

.ky-gui-float-btn i {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
}

.ky-gui-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(15, 23, 42, .62);
}

.ky-gui-modal.active {
	display: flex;
}

body.ky-gui-modal-open {
	overflow: hidden;
}

.ky-gui-modal-dialog {
	position: relative;
	width: min(980px, 100%);
	max-height: min(90vh, 780px);
	overflow: auto;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
	padding: 24px;
	color: #172638;
}

.ky-gui-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ky-gui-modal-head {
	padding-right: 34px;
	margin-bottom: 16px;
}

.ky-gui-modal-head span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 10px;
	padding: 7px 10px;
	border-radius: 999px;
	background: #dcfce7;
	color: #15803d;
	font-size: 12px;
	font-weight: 800;
}

.ky-gui-modal-head h3 {
	margin: 0;
	font-size: 28px;
	line-height: 1.15;
	color: #0f172a;
}

.ky-gui-modal-head p {
	margin: 8px 0 0;
	color: #64748b;
	line-height: 1.7;
}

.ky-gui-notice {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 14px;
	font-weight: 800;
	font-size: 14px;
}

.ky-gui-notice.is-success {
	background: #ecfdf5;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.ky-gui-notice.is-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.ky-gui-role {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.ky-gui-role label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 13px;
	border: 1px solid #dbe6ef;
	border-radius: 14px;
	background: #f8fafc;
	font-weight: 800;
	cursor: pointer;
}

.ky-gui-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ky-gui-grid label {
	display: grid;
	gap: 6px;
}

.ky-gui-grid label.is-full {
	grid-column: 1 / -1;
}

.ky-gui-grid span {
	font-size: 13px;
	font-weight: 800;
	color: #435a73;
}

.ky-gui-grid input,
.ky-gui-grid select,
.ky-gui-grid textarea {
	width: 100%;
	min-height: 46px;
	border: 1px solid #cad8e7;
	border-radius: 12px;
	padding: 0 13px;
	background: #fff;
	color: #172638;
}

.ky-gui-grid textarea {
	min-height: 108px;
	padding: 11px 13px;
	resize: vertical;
}

.ky-gui-amenities {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.ky-gui-amenities label {
	min-width: 0;
}

.ky-gui-upload {
	position: relative;
	min-height: 138px;
	padding: 14px;
	border: 1px dashed #adc4dc;
	border-radius: 16px;
	background: linear-gradient(180deg, #f9fcff, #f3f8fb);
	text-align: center;
	align-content: center;
	transition: .2s ease;
	cursor: pointer;
}

.ky-gui-upload input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.ky-gui-upload > span {
	position: absolute;
	top: 10px;
	left: 12px;
	color: #435a73;
}

.ky-gui-upload strong {
	display: grid;
	justify-items: center;
	gap: 8px;
	color: #172638;
	font-size: 14px;
	line-height: 1.35;
}

.ky-gui-upload strong i {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: #e5f5fb;
	color: #0f5f86;
	font-size: 18px;
}

.ky-gui-upload small {
	display: block;
	margin-top: 8px;
	color: #64748b;
	font-size: 12px;
	line-height: 1.45;
	word-break: break-word;
}

.ky-gui-upload.is-dragover {
	border-color: #0f5f86;
	background: #e5f5fb;
	box-shadow: 0 0 0 3px rgba(15, 95, 134, .12);
}

.ky-gui-submit {
	width: 100%;
	min-height: 48px;
	margin-top: 14px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--app-primary, #ff5b00), var(--app-primary-deep, #d94800));
	color: #fff;
	font-weight: 900;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	cursor: pointer;
}

.ky-gui-submit:disabled,
.ky-gui-submit.is-loading {
	opacity: .72;
	cursor: wait;
}

.ky-gui-policy {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 13px;
	padding: 12px 13px;
	border: 1px solid rgba(255, 91, 0, .18);
	border-radius: 14px;
	background: #fff7ed;
	color: #7c2d12;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.ky-gui-policy input {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin-top: 2px;
	accent-color: var(--app-primary, #ff5b00);
}

@media (max-width: 760px) {
	.ky-gui-float-btn {
		right: 14px;
		bottom: 140px;
		min-height: 44px;
		padding: 0 13px;
	}

	.ky-gui-modal {
		align-items: flex-end;
		padding: 10px;
	}

	.ky-gui-modal-dialog {
		max-height: 88vh;
		border-radius: 20px 20px 16px 16px;
		padding: 20px;
	}

	.ky-gui-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ky-gui-amenities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ky-gui-role {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ky-gui-grid input,
	.ky-gui-grid select,
	.ky-gui-grid textarea {
		min-width: 0;
		padding-inline: 10px;
	}
}
