/* ============================ SITE SEARCH POPUP ============================ */

body.searchopen { overflow: hidden; }

.searchpop { position: fixed; inset: 0; z-index: 99999; display: none; }
.searchpop.open { display: block; }
.searchpop .searchpop-bg { position: absolute; inset: 0; background: rgba(34, 65, 55, 0.45); }

.searchpop .searchpop-inn { position: relative; width: min(1540px, calc(100% - 40px)); max-height: calc(100vh - 140px); margin: 110px auto 0;
	padding: 50px 56px 56px; overflow-y: auto; -webkit-overflow-scrolling: touch; background: url(../images/srchvec1.svg) no-repeat left top 100px, url(../images/srchvec2.svg) no-repeat right 20px top var(--beige5); border-radius: 24px; }

.searchpop .searchpop-close { position: absolute; top: 22px; left: 26px; width: 26px; height: 26px; padding: 0; background: none; border: 0; cursor: pointer; }
.searchpop .searchpop-close:before,
.searchpop .searchpop-close:after { content: ''; position: absolute; left: 0; top: 12px; width: 100%; height: 2px; background: var(--green1); }
.searchpop .searchpop-close:before { transform: rotate(45deg); }
.searchpop .searchpop-close:after { transform: rotate(-45deg); }

/* SEARCH BAR */
.searchpop .searchform { width: min(800px, 100%); margin: 0px auto; gap: 12px; padding: 8px; background: var(--white); border-radius: 50px; align-items: center; }
.searchpop .searchico { flex: 0 0 auto; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 20px;
	color: var(--green); background: var(--beige2); border-radius: 50%; }
.searchpop .searchinput { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 8px; font-size: 17px; color: var(--green); background: none; border: 0; box-shadow: none; }
.searchpop .searchinput:focus { outline: none; }
.searchpop .searchinput::placeholder { color: #9B9384; }
.searchpop .searchinput::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchpop .searchsubmit { flex: 0 0 auto; border: 0; cursor: pointer; }
.searchpop .searchsubmit:disabled { opacity: 0.6; cursor: default; }

/* STATES */
.searchpop .searchmeta { margin-top: 22px; font-size: clamp(18px, 1.15vw, 22px); color: #9B9384; text-align: center; }
.searchpop .searchmeta:empty { margin: 0; }
.searchpop .searchloading { padding: 30px 0 0; }
.searchpop .searchempty { padding: 40px 0 90px; text-align: center; color: #9B9384; }
.searchpop .searchempty h3 { color: #9B9384; margin-bottom: 6px; font-size: clamp(30px, 2.3vw, 44px); }
.searchpop .searchempty p { margin: 0; }

/* RESULTS */
.searchpop .searchresults { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.searchpop .searchresults:empty { margin: 0; }

.searchpop .searchitem { gap: 28px; padding: 22px; background: var(--white); border-radius: 12px; }
.searchpop .searchimg { flex: 0 0 250px; max-width: 250px; }
.searchpop .searchimg a { display: block; border-radius: 6px; overflow: hidden; }
.searchpop .searchimg img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 3; }
.searchpop .searchcont { flex: 1 1 auto; min-width: 0; max-width: calc(100% - 290px); }
.searchpop .searchlabel { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
	text-transform: uppercase; color: var(--green1); }
.searchpop .searchcont h4 { margin-bottom: 14px; font-size: clamp(22px, 1.6vw, 30px); font-weight: 500; }
.searchpop .searchcont h4 a { color: var(--green); text-decoration: none; }
.searchpop .searchcont h4 a:hover { color: var(--green1); }
.searchpop .searchcont .text p { margin-bottom: 20px; color: #0E0E0E; }

.searchpop .searchmore { margin-top: 22px; text-align: center; }
.searchpop .searchmore-btn { cursor: pointer; }

/* MOBILE */
@media screen and (max-width: 1024px) {
	.searchpop .searchpop-inn { margin-top: 80px; max-height: calc(100vh - 100px); padding: 46px 20px 30px; border-radius: 16px; }
	.searchpop .searchitem { flex-direction: column; gap: 16px; }
	.searchpop .searchimg { flex: 0 0 auto; max-width: 100%; }
	.searchpop .searchimg img { aspect-ratio: 16 / 9; }
	.searchpop-inn { background-size: 120px !important; }
	.searchpop .searchcont { max-width: 100%; }
}

@media screen and (max-width: 600px) {
	.searchpop .searchform { flex-wrap: wrap; border-radius: 20px; padding: 10px; }
	.searchpop .searchico { width: 42px; height: 42px; }
	.searchpop .searchinput { flex: 1 1 calc(100% - 60px); height: 42px; font-size: 16px; }
	.searchpop .searchsubmit { width: 100%; margin-top: 10px; }
	.searchpop-inn { background-size: 80px !important; }
}
