/* ============================================================
   HBN Plans & Designs — Frontend Styles
   Colors: Dark Blue #1B2F43 | Gold #DAB038
   ============================================================ */

/* ---- Divi layout overrides for archive page ---- */

.post-type-archive-plan #sidebar,
.single-plan #sidebar {
	display: none !important;
}

.post-type-archive-plan #left-area,
.single-plan #left-area {
	width: 100% !important;
	float: none !important;
}

.post-type-archive-plan #main-content,
.single-plan #main-content {
	padding: 0 !important;
}

.post-type-archive-plan #content-area,
.single-plan #content-area {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* ---- Archive ---- */

.hbn-plans-archive {
	padding: 40px 0 60px;
}

.hbn-plans-archive__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0;
}

/* Filter buttons */

.hbn-plans-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
}

.hbn-plans-filter__btn {
	border: 2px solid #1B2F43;
    color: #1B2F43;
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 15px;
    font-weight: 300;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
}

.hbn-plans-filter__btn:hover {
	background: #1B2F43;
	color: #fff;
}

.hbn-plans-filter__btn.active {
	background: #1B2F43;
	color: #fff;
}

/* Grid */

.hbn-plans-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

@media (max-width: 900px) {
	.hbn-plans-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 580px) {
	.hbn-plans-grid {
		grid-template-columns: 1fr;
	}
}

/* Card */

.hbn-plan-card {
	background: #fff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.hbn-plan-card__image {
	position: relative;
	overflow: hidden;
}

.hbn-plan-card__image a {
	display: block;
}

.hbn-plan-card__image img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.hbn-plan-card:hover .hbn-plan-card__image img {
	transform: scale(1.03);
}

.hbn-plan-card__category {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(255, 255, 255, 0.92);
	color: #1B2F43;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 50px;
	pointer-events: none;
}

.hbn-plan-card__body {
	padding: 20px 20px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.hbn-plan-card__title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.hbn-plan-card__title {
	font-size: var(--size-10);
	font-weight: 400;
	color: #1B2F43;
	margin: 0;
	line-height: 1.2;
}

.hbn-plan-card__sqm {
	font-size: 18px;
	font-weight: 400;
	font-family: var(--font-body);
	color: #1B2F43;
	white-space: nowrap;
	flex-shrink: 0;
}

.hbn-plan-card__sqm i {
	color: #DAB038;
	font-weight: 400;
}

.hbn-plan-card__divider {
	border: none;
	border-top: 1px solid #e5e5e5;
	margin: 0 0 14px;
}

.hbn-plan-card__stats {
	display: flex;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.hbn-plan-card__stats span {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	color: #1B2F43;
}

.hbn-plan-card__stats i {
	color: #DAB038;
	font-size: 16px;
	font-weight: 400;
}

body .hbn-plan-card__learn-more {
	padding: 0px !important;
	color: var(--colour-gold) !important;
}

body .hbn-plan-card__learn-more::before {
	background-color: transparent !important;
	border-radius: 0px;
}
body .hbn-plan-card__learn-more {
    position: relative;
    padding: 0px !important;
    background: none !important;
    border: none !important;
	width: fit-content;
    z-index: 2;
	opacity: 1;

    display: flex;
	align-items: center;
	justify-content: center;
    column-gap: 0px;

	margin-top: 16px !important;
	font-weight: 400;
	font-size: 16px;
	font-family: var(--font-body);
	text-transform: none;
	text-decoration: none;
	letter-spacing: 0.25px;
	white-space: nowrap;
	color: var(--colour-white);
	line-height: calc(var(--master-line-height) * 1) !important;

	transition: var(--transition);
}
body .hbn-plan-card__learn-more::after {
    content: "\e09f";
	font-family: "Font Awesome 6 Pro" !important;
	font-size: 16px;
	margin-left: 10px;
	display: flex;
	width: 30px;
	height: 30px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-radius: 100px;
	color: var(--colour-white);
	background-color: var(--colour-gold);
	position: unset;
	line-height: unset;
	opacity: 1;
}
body .hbn-plan-card__learn-more:hover {
	color: var(--colour-primary) !important;
}
body .hbn-plan-card__learn-more:hover::after {
	background-color: var(--colour-primary);
}


/* ============================================================
   Single Plan Page
   ============================================================ */

.hbn-plan-single {
	padding: 60px 0 clamp(60px, calc(var(--master-section-pad) * 16), 160px);
}

.hbn-plan-single__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0;
}

/* Breadcrumb */

.hbn-plan-single__breadcrumb {
	font-size: 18px;
	color: #888;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-body);
	font-weight: 400;
}

.hbn-plan-single__breadcrumb a {
	color: var(--colour-primary);
	font-size: 18px;
	text-decoration: none;
	font-family: var(--font-body);
}

.hbn-plan-single__breadcrumb a:hover {
	color: #1B2F43;
}

.hbn-plan-single__breadcrumb-sep {
	font-size: 16px;
	margin: 0px 8px;
}

/* Category badge */

.hbn-plan-single__category {
	display: inline-block;
	background: #f0f0f0;
	color: #1B2F43;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 16px;
	border-radius: 50px;
	margin-bottom: 14px;
}

/* Stats */

.hbn-plan-single__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 24px;
}

.hbn-plan-single__stats span {
	font-family: var(--font-body);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 20px;
	color: #1B2F43;
	font-weight: 400;
}

.hbn-plan-single__stats i {
	color: #DAB038;
	font-size: 20px;
	font-weight: 400;
}

/* Content */

.hbn-plan-single__content {
	font-size: 15px;
	line-height: 1.7;
	color: #444;
	margin-bottom: 40px;
}

/* Download button */

#page-container #et-main-area .hbn-plan-single__download {
    position: relative;
    padding: 16px 24px !important;
    background: none !important;
    border: none !important;
	width: fit-content;
    z-index: 2;
	opacity: 1;

    display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: center;
    column-gap: 0px;

	font-weight: 400;
	font-size: 16px;
	font-family: var(--font-body);
	text-transform: none;
	text-decoration: none;
	letter-spacing: 0.25px;
	white-space: nowrap;
	color: var(--colour-white);
	line-height: calc(var(--master-line-height) * 1) !important;

	transition: var(--transition);
}


#page-container #et-main-area .hbn-plan-single__download:hover {
	color: var(--colour-primary);
}

#page-container #et-main-area .hbn-plan-single__download::before {
    content: "";
    width: 100%;
    height: 100%;
	background-color: var(--colour-primary);
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    opacity: 1;
    transition: var(--transition);
	margin-left: 0 !important;
	border-radius: 100px;
}
#page-container #et-main-area .hbn-plan-single__download:hover::before {
    background-color: var(--colour-white) !important;
}
#page-container #et-main-area .hbn-plan-single__download::after {
	display: none !important;
}
#page-container #et-main-area .hbn-plan-single__download i {
	margin-left: 10px;
}
.hbn-plan-single__download:hover {
	background: #263f59;
	color: #fff;
}

.hbn-plan-single__download i {
	font-size: 15px;
}

/* Gallery / Slider */

.hbn-plan-single__gallery {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-top: 48px;
}

.hbn-plan-single__gallery-main {
	flex: 1;
	min-width: 0;
	position: relative;
}

.hbn-plan-single__gallery-thumbs {
	width: 100px;
	flex-shrink: 0;
}

.hbn-main-slider .swiper-slide img {
	width: 100%;
	height: 600px;
	object-fit: cover;
	display: block;
}

.hbn-thumb-slider {
	height: 480px;
}

.hbn-thumb-slider .swiper-slide {
	height: auto;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.2s;
}

.hbn-thumb-slider .swiper-slide-thumb-active {
	opacity: 1;
}

.hbn-thumb-slider .swiper-slide img {
	width: 100%;
	/* height: 100px; */
	object-fit: cover;
	display: block;
}

.hbn-slider-nav {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.hbn-slider-prev,
.hbn-slider-next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #1B2F43;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
	font-size: 14px;
}

.hbn-slider-prev:hover,
.hbn-slider-next:hover {
	background: #DAB038;
}

@media (max-width: 700px) {
	.hbn-plan-single__gallery {
		flex-direction: column-reverse;
	}

	.hbn-plan-single__gallery-thumbs {
		width: 100%;
	}

	.hbn-thumb-slider {
		height: auto;
	}

	.hbn-thumb-slider .swiper-slide img {
		height: 70px;
	}

	.hbn-main-slider .swiper-slide img {
		height: 260px;
	}
}

.hbn-plan-single__gallery-wrap {
	display: flex;
	align-items: flex-end;
	column-gap: 80px;
}
.hbn-plan-single__gallery {
	flex: 1 1 85%;
    max-width: 85%;
}
.hbn-slider-nav {
	flex: 1 1 15%;
    max-width: 10%;
}