/**
 * Showcase — reusable slider/cards/modal
 * Used by: works, projects (future)
 */

/* === SECTION === */
.showcase-slider--projects {
	padding-top: 0;
}

/* === HEADER === */
.showcase-header {
	margin: 0 0 28px;
}
.showcase-header .container {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}
.showcase-header__title {
	font-size: 34px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	text-align: center;
	grid-column: 2;
}
@media (max-width: 1199px) { .showcase-header__title { font-size: 26px; } }
@media (max-width: 480px)  { .showcase-header__title { font-size: 20px; } }

/* === HINT ANIMATION === */
.showcase-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #aaa;
	grid-column: 1;
}
.showcase-hint__arrow {
	display: flex;
	animation: showcaseHint 2s ease-in-out infinite;
	color: #EBA11E;
}
@keyframes showcaseHint {
	0%, 100% { transform: translateX(0); opacity: .6; }
	50%      { transform: translateX(8px); opacity: 1; }
}
.showcase-hint__text {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 600;
	color: #bbb;
}

/* === NAV ARROWS === */
.showcase-nav {
	display: flex;
	gap: 8px;
	grid-column: 3;
	justify-self: end;
}
.showcase-nav__btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid #ddd;
	background: #fff;
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s;
}
.showcase-nav__btn:hover {
	border-color: #EBA11E;
	color: #EBA11E;
}

/* === TRACK === */
.showcase-track-wrap {
	overflow: visible;
}
.showcase-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overflow-y: visible;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* padding-left/right set by JS to match .container offset */
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 12px;
	padding-bottom: 30px;
	scroll-padding-left: 20px;
}
.showcase-track::-webkit-scrollbar {
	display: none;
}

/* === CARDS === */
.showcase-card {
	flex: 0 0 calc((1200px - 40px) / 3);
	scroll-snap-align: start;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	transition: transform .25s;
}
.showcase-card:hover {
	transform: translateY(-4px);
}
.showcase-card__image {
	position: relative;
	padding-top: 62%;
	overflow: hidden;
	background: #eee;
}
.showcase-card__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}
.works .showcase-card__image {
	padding-top: 75%;
}
.showcase-card:hover .showcase-card__image img {
	transform: scale(1.06);
}
.showcase-card__cta {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: #EBA11E;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	opacity: 0;
	transform: translateY(8px);
	transition: all .25s;
	z-index: 2;
}
.showcase-card:hover .showcase-card__cta {
	opacity: 1;
	transform: translateY(0);
}
.showcase-card__body {
	padding: 18px 20px 20px;
	border-bottom: 1px solid #d5d5d5;
	border-left: 1px solid #d5d5d5;
	border-right: 1px solid #d5d5d5;
	border-radius: 0 0 16px 16px;
}
.showcase-card__title {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px;
	line-height: 1.35;
}
.showcase-card__desc {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.showcase-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.showcase-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	background: #f4f4f4;
	padding: 5px 11px 5px 9px;
	border-radius: 20px;
	white-space: nowrap;
	line-height: 1;
}
.showcase-card__meta span svg {
	flex-shrink: 0;
	opacity: 0.55;
}
.showcase-card__meta .meta-area {
	background: #eef6ff;
	color: #2a6fc4;
}
.showcase-card__meta .meta-area svg {
	opacity: 0.8;
}
.showcase-card__meta .meta-floors {
	background: #eefaf3;
	color: #1e8a4c;
}
.showcase-card__meta .meta-floors svg {
	opacity: 0.8;
}
.showcase-card__meta .meta-city {
	background: #fff4e8;
	color: #b85f00;
}
.showcase-card__meta .meta-city svg {
	opacity: 0.8;
}

/* === PROJECT CARD overrides === */
.showcase-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(0,0,0,0.65);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 20px;
	z-index: 2;
	letter-spacing: 0.3px;
	backdrop-filter: blur(4px);
}
.showcase-card__prices {
	margin: 14px 0 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.showcase-card__price {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0;
}
.showcase-card__price .price-label {
	font-size: 12px;
	color: #999;
}
.showcase-card__price .price-value {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
}
.showcase-card__price .price-value svg {
	opacity: 0.45;
}
.showcase-card__price .price-value--accent {
	color: #EBA11E;
	font-size: 15px;
}
.showcase-card__cta-project {
	display: block;
	width: 100%;
	margin: 16px 0 0;
	padding: 12px;
	background: #EBA11E;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	transition: background .2s;
}
.showcase-card__cta-project:hover {
	background: #d39527;
}

/* === FILTERS === */
.showcase-filters {
	margin: 0 0 6px;
}
.showcase-filter-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}
.sf-cat {
	padding: 7px 18px;
	border: 1.5px solid #ddd;
	border-radius: 24px;
	background: #fff;
	color: #555;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
	white-space: nowrap;
}
.sf-cat:hover {
	border-color: #EBA11E;
	color: #EBA11E;
}
.sf-cat.active {
	background: #EBA11E;
	border-color: #EBA11E;
	color: #fff;
}
.showcase-filter-selects {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.sf-select,
.sf-sort {
	padding: 8px 32px 8px 14px;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 12px center;
	-webkit-appearance: none;
	appearance: none;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	transition: border-color .2s;
	min-width: 140px;
}
.sf-select:focus,
.sf-sort:focus {
	outline: none;
	border-color: #EBA11E;
}
.sf-reset-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	background: #fff;
	color: #666;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
}
.sf-reset-btn:hover {
	border-color: #EBA11E;
	color: #EBA11E;
}
.sf-reset-btn svg {
	flex-shrink: 0;
}

/* hide project meta bed/rooms color */
.showcase-card__meta .meta-rooms {
	background: #f3f0ff;
	color: #6b4ecf;
}
.showcase-card__meta .meta-rooms svg { opacity: 0.8; }
.showcase-card__meta .meta-bed {
	background: #fff0f3;
	color: #c44d6e;
}
.showcase-card__meta .meta-bed svg { opacity: 0.8; }

/* === LOAD MORE === */
.showcase-loadmore {
	display: block;
	margin: 32px auto 0;
	background: transparent;
	border: 2px solid #EBA11E;
	color: #EBA11E;
	border-radius: 10px;
	padding: 14px 40px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all .2s;
}
.showcase-loadmore:hover {
	background: #EBA11E;
	color: #fff;
}
.showcase-loadmore:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* ========= MODAL ========= */
.showcase-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: none;
}
.showcase-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
}
.showcase-modal__content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 20px;
	width: 90%;
	max-width: 880px;
	max-height: 90vh;
	overflow-y: auto;
}
.showcase-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(0,0,0,0.5);
	color: #fff;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	z-index: 5;
	transition: background .2s;
}
.showcase-modal__close:hover {
	background: rgba(0,0,0,0.8);
}

/* Gallery */
.showcase-modal__gallery-main {
	width: 100%;
	height: 400px;
	overflow: hidden;
	border-radius: 20px 20px 0 0;
	background: #f8f8f8;
	display: flex;
	align-items: center;
	justify-content: center;
}
.showcase-modal__gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity .2s, transform .3s;
}
.showcase-modal__main-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: relative;
	cursor: zoom-in;
	text-decoration: none;
}
.showcase-modal__main-link:hover img {
	transform: scale(1.02);
}
.showcase-modal__zoom-hint {
	position: absolute;
	bottom: 12px;
	right: 14px;
	background: rgba(0,0,0,.52);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	padding: 5px 11px;
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	opacity: 0;
	transition: opacity .2s;
	pointer-events: none;
	z-index: 2;
}
.showcase-modal__main-link:hover .showcase-modal__zoom-hint {
	opacity: 1;
}
/* Fancybox must be above showcase modal (z-index 99998) */
.fancybox-container {
	z-index: 100001 !important;
}
.fancybox-overlay {
	z-index: 100000 !important;
}
.showcase-modal__fancybox-links {
	position: fixed;
	left: -9999px;
	top: -9999px;
	width: 0;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}
.showcase-modal__fancybox-links a {
	pointer-events: auto;
}
.showcase-modal__gallery-thumbs {
	display: flex;
	gap: 8px;
	padding: 12px 24px;
	overflow-x: auto;
}
.showcase-modal__gallery-thumb {
	flex: 0 0 64px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color .2s;
	opacity: .6;
}
.showcase-modal__gallery-thumb.active {
	border-color: #EBA11E;
	opacity: 1;
}
.showcase-modal__gallery-thumb:hover {
	opacity: 1;
}
.showcase-modal__gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Info */
.showcase-modal__info {
	padding: 24px 28px 28px;
}
.showcase-modal__title {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px;
	line-height: 1.3;
}
.showcase-modal__specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0 0 24px;
}
.showcase-modal__spec {
	background: #f8f8f8;
	border-radius: 10px;
	padding: 12px 16px;
}
.showcase-modal__spec-label {
	font-size: 11px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin: 0 0 3px;
	display: block;
}
.showcase-modal__spec-value {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}
.showcase-modal__description {
	font-size: 15px;
	line-height: 1.65;
	color: #444;
	margin: 0 0 20px;
}
.showcase-modal__scope {
	margin: 0 0 24px;
}
.showcase-modal__scope h4 {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px;
}
.showcase-modal__scope p {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	margin: 0;
}
.showcase-modal__cta {
	width: 100%;
	background: #EBA11E;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 16px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s;
}
.showcase-modal__cta:hover {
	background: #d39527;
}

/* === MOBILE FILTER BAR === */
.sf-mobilebar {
	display: none;
}

/* === MOBILE BOTTOM SHEET === */
.smf-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 1100;
}
.smf-sheet {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 20px 20px 0 0;
	z-index: 1101;
	max-height: 85vh;
	flex-direction: column;
}
.smf-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 14px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}
.smf-title {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
}
.smf-close {
	width: 32px;
	height: 32px;
	border: none;
	background: #f4f4f4;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.smf-body {
	overflow-y: auto;
	padding: 16px 20px;
	flex: 1;
}
.smf-group {
	margin-bottom: 20px;
}
.smf-label {
	font-size: 12px;
	font-weight: 700;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 10px;
}
.smf-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.smf-cat {
	padding: 7px 16px;
	border: 1.5px solid #ddd;
	border-radius: 24px;
	background: #fff;
	color: #555;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all .2s;
}
.smf-cat.active {
	background: #EBA11E;
	border-color: #EBA11E;
	color: #fff;
}
.smf-select,
.smf-sort {
	width: 100%;
	padding: 11px 36px 11px 14px;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 12px center;
	-webkit-appearance: none;
	appearance: none;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
}
.smf-footer {
	display: flex;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid #eee;
	flex-shrink: 0;
}
.smf-reset {
	flex: 0 0 auto;
	padding: 13px 20px;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	background: #fff;
	color: #666;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.smf-apply {
	flex: 1;
	padding: 13px;
	background: #EBA11E;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s;
}
.smf-apply:hover {
	background: #d39527;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1199px) {
	.showcase-card {
		flex: 0 0 calc(50vw - 20px);
	}
}
@media (max-width: 768px) {
	.showcase-filters {
		display: none;
	}
	.sf-mobilebar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 0 14px;
	}
	.sf-mobile-toggle {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		padding: 9px 18px;
		background: #fff;
		border: 1.5px solid #ddd;
		border-radius: 24px;
		font-size: 14px;
		font-weight: 700;
		color: #333;
		cursor: pointer;
		transition: border-color .2s;
	}
	.sf-mobile-toggle:hover {
		border-color: #EBA11E;
	}
	.sf-mobile-toggle.has-filters {
		border-color: #EBA11E;
		color: #EBA11E;
	}
	.sf-badge {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		min-width: 20px;
		height: 20px;
		background: #EBA11E;
		color: #fff;
		font-size: 11px;
		font-weight: 700;
		border-radius: 10px;
		padding: 0 5px;
	}
	.sf-total-count {
		font-size: 13px;
		color: #999;
		font-weight: 600;
	}
	.showcase-track {
		gap: 12px;
	}
	.showcase-card {
		flex: 0 0 80vw;
	}
	.showcase-nav {
		display: none;
	}
	.showcase-hint {
		display: none;
	}
	.showcase-header .container {
		grid-template-columns: 1fr;
		justify-items: center;
	}
	.showcase-header__title {
		grid-column: 1;
	}
	.showcase-card__cta {
		opacity: 1;
		transform: none;
	}
	.showcase-modal__content {
		width: 96%;
		max-height: 94vh;
		border-radius: 14px;
	}
	.showcase-modal__gallery-main {
		height: 220px;
		border-radius: 14px 14px 0 0;
	}
	.showcase-modal__specs {
		grid-template-columns: 1fr;
	}
	.showcase-modal__info {
		padding: 20px 16px 24px;
	}
	.showcase-modal__title {
		font-size: 20px;
	}
}
