/**
 * Original Family Travel ftg-core listing layout — gallery, amenities, sticky sidebar.
 * Class names match ftg-core.php exactly.
 */

.ftg-gallery-wrap {
	max-width: 1200px;
	margin: 30px auto;
	padding: 0 20px;
}

.ftg-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 180px);
	gap: 8px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}

.ftg-gallery-cell {
	background-size: cover;
	background-position: center;
	cursor: pointer;
	transition: opacity 0.2s ease;
	background-color: #F9F6F0;
}

.ftg-gallery-cell:hover {
	opacity: 0.9;
}

.ftg-gallery-cell-0 { grid-column: 1 / 3; grid-row: 1 / 3; }
.ftg-gallery-cell-1 { grid-column: 3 / 4; grid-row: 1 / 2; }
.ftg-gallery-cell-2 { grid-column: 4 / 5; grid-row: 1 / 2; }
.ftg-gallery-cell-3 { grid-column: 3 / 4; grid-row: 2 / 3; }
.ftg-gallery-cell-4 { grid-column: 4 / 5; grid-row: 2 / 3; }

.ftg-gallery-show-all {
	position: absolute;
	bottom: 16px;
	right: 16px;
	background: #fff;
	border: 1px solid #0C3C5E;
	border-radius: 6px;
	padding: 8px 16px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	font-family: 'Open Sans', sans-serif;
	color: #0C3C5E;
}

.ftg-gallery-show-all:hover {
	background: #F9F6F0;
}

.ftg-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 31, 61, 0.96);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	display: none;
}

.ftg-lightbox.is-open {
	display: flex;
}

.ftg-lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
}

.ftg-lightbox-counter {
	position: absolute;
	top: 24px;
	left: 30px;
	color: #fff;
	font-size: 15px;
	font-family: 'Open Sans', sans-serif;
}

.ftg-lightbox-prev,
.ftg-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	font-size: 32px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	cursor: pointer;
}

.ftg-lightbox-prev { left: 20px; }
.ftg-lightbox-next { right: 20px; }

.ftg-lightbox-prev:hover,
.ftg-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.3);
}

.ftg-lightbox-image-wrap {
	max-width: 90%;
	max-height: 85%;
}

.ftg-lightbox-image {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 4px;
	display: block;
	margin: 0 auto;
}

.ftg-lightbox-caption {
	color: #F9F6F0;
	text-align: center;
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	margin-top: 14px;
}

.ctc-property-video {
	max-width: 1200px;
	margin: 0 auto 0;
	padding: 0 20px 10px;
}

.ctc-property-video__frame {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #0a1f3d;
}

.ctc-property-video__frame iframe,
.ctc-property-video__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ftg-property-layout {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 50px;
	align-items: start;
}

.ftg-property-main {
	min-width: 0;
}

.ftg-property-sidebar {
	position: sticky;
	top: 100px;
}

.ftg-booking-card {
	background: #fff;
	border: 1px solid rgba(12, 60, 94, 0.15);
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.ftg-booking-card h3 {
	margin-top: 0;
	font-family: 'Playfair Display', serif;
	color: #0C3C5E;
}

.ftg-booking-cta {
	display: inline-block;
	margin-top: 10px;
	background: #FF6F61;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.04em;
	padding: 12px 24px;
	border-radius: 6px;
	text-decoration: none;
}

.ftg-booking-cta:hover {
	background: #E85A4D;
	color: #fff;
}

.ftg-booking-card .ownerrez-widget,
.ftg-booking-card .ownerrez-widget iframe,
.ftg-booking-card .ownerrez-widget-iframe,
.ftg-booking-card .ctc-pms-booking-iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
	border: 0;
}

.ftg-detail-section {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid rgba(12, 60, 94, 0.1);
}

.ftg-detail-section h2 {
	font-family: 'Playfair Display', serif;
	color: #0C3C5E;
	font-size: 24px;
	margin-bottom: 18px;
}

.ftg-amenities-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 24px;
}

.ftg-amenity-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	color: #2D3748;
}

.ftg-amenity-icon {
	display: inline-flex;
	width: 22px;
	height: 22px;
	color: #0C3C5E;
	flex: 0 0 22px;
}

.ftg-amenity-icon svg {
	width: 22px;
	height: 22px;
}

.ftg-rooms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}

.ftg-room-card {
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease;
	background: #fff;
}

.ftg-room-card:hover {
	transform: translateY(-2px);
}

.ftg-room-thumb {
	width: 100%;
	height: 110px;
	background-size: cover;
	background-position: center;
	background-color: #F9F6F0;
}

.ftg-room-name {
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 600;
	color: #0C3C5E;
	background: #fff;
}

.ftg-map-label {
	font-size: 14px;
	color: #2D3748;
	margin-bottom: 10px;
}

.ftg-map-embed {
	border-radius: 10px;
	overflow: hidden;
}

.ftg-faq-item h3 {
	font-size: 16px;
	color: #0C3C5E;
	margin: 0 0 6px;
}

.ftg-faq-item p {
	margin: 0 0 16px;
	color: #2D3748;
}

.ctc-property-filter-bar {
	max-width: 1200px;
	margin: 0 auto 20px;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px;
	font-family: 'Montserrat', sans-serif;
}

.ctc-filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ctc-property-filter-bar label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #0c3c5e;
}

.ctc-property-filter-bar select {
	height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(12, 60, 94, 0.2);
	border-radius: 6px;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	color: #2d3748;
	background-color: #fff;
	min-width: 200px;
}

.ctc-property-results-bar {
	max-width: 1200px;
	margin: 0 auto 20px;
	padding: 0 20px;
	font-family: 'Open Sans', sans-serif;
	color: #2d3748;
	font-size: 15px;
}

.ctc-property-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.ctc-property-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.ctc-property-card:hover {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.ctc-property-card-image-link {
	display: block;
}

.ctc-property-card-image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.ctc-property-card-image-placeholder {
	background: #f9f6f0;
}

.ctc-property-card-body {
	padding: 18px 20px 22px;
}

.ctc-property-card-title {
	margin: 0 0 8px;
	font-family: 'Playfair Display', serif;
	font-size: 19px;
}

.ctc-property-card-title a {
	color: #0c3c5e;
	text-decoration: none;
}

.ctc-property-card-meta {
	font-size: 13px;
	color: #2d3748;
	margin-bottom: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ctc-property-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.ctc-badge {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #f9f6f0;
	color: #0c3c5e;
	padding: 4px 10px;
	border-radius: 20px;
}

.ctc-property-card-cta {
	display: inline-block;
	background: #ff6f61;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 10px 22px;
	border-radius: 6px;
	text-decoration: none;
}

.ctc-property-card-cta:hover {
	background: #e85a4d;
	color: #fff;
}

@media (max-width: 900px) {
	.ftg-property-layout {
		grid-template-columns: 1fr;
	}

	.ftg-property-sidebar {
		position: static;
	}

	.ftg-amenities-grid {
		grid-template-columns: 1fr;
	}

	.ctc-property-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.ftg-gallery-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.ftg-gallery-cell-0 {
		grid-column: 1;
		grid-row: auto;
		height: 260px;
	}

	.ftg-gallery-cell-1,
	.ftg-gallery-cell-2,
	.ftg-gallery-cell-3,
	.ftg-gallery-cell-4 {
		display: none;
	}
}

@media (max-width: 600px) {
	.ctc-property-grid {
		grid-template-columns: 1fr;
	}
}

.ctc-inspection {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid rgba(12, 60, 94, 0.1);
}

.ctc-inspection__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	margin-bottom: 20px;
}

.ctc-inspection__eyebrow {
	margin: 0 0 6px;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #C5A572;
}

.ctc-inspection__header h2 {
	margin: 0 0 8px;
	font-family: 'Playfair Display', serif;
	color: #0C3C5E;
	font-size: 24px;
}

.ctc-inspection__intro {
	margin: 0;
	max-width: 46rem;
	font-size: 15px;
	line-height: 1.6;
	color: #2D3748;
}

.ctc-inspection__score {
	flex: 0 0 auto;
	background: #F9F6F0;
	border: 1px solid rgba(12, 60, 94, 0.12);
	border-radius: 10px;
	padding: 14px 18px;
	text-align: center;
	min-width: 110px;
}

.ctc-inspection__score-value {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 36px;
	line-height: 1;
	color: #0C3C5E;
}

.ctc-inspection__score-of {
	display: block;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #2D3748;
	margin-top: 4px;
}

.ctc-inspection__score-date {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	color: #2D3748;
}

.ctc-inspection__category {
	border: 1px solid rgba(12, 60, 94, 0.12);
	border-radius: 8px;
	margin-bottom: 8px;
	background: #fff;
}

.ctc-inspection__category summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	padding: 12px 16px;
	font-weight: 600;
	color: #0C3C5E;
	font-family: 'Open Sans', sans-serif;
}

.ctc-inspection__cat-meta {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2D3748;
}

.ctc-inspection__items {
	list-style: none;
	margin: 0;
	padding: 0 16px 12px;
}

.ctc-inspection__item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 6px 0;
	font-size: 14px;
	color: #2D3748;
	border-top: 1px solid rgba(12, 60, 94, 0.06);
}

.ctc-inspection__mark {
	flex: 0 0 1.1rem;
	color: #0C3C5E;
	font-weight: 700;
}

.ctc-inspection__item--pass .ctc-inspection__mark {
	color: #2F6B3C;
}

.ctc-inspection__item--fail .ctc-inspection__mark {
	color: #C4473A;
}

.ctc-inspection__item--na {
	color: #6B7280;
}

@media (max-width: 700px) {
	.ctc-inspection__header {
		flex-direction: column;
	}
}
