/*
Theme Name: Bali Flores Tour
Theme URI: https://adayinbali.com
Author: Agus Endrawan
Author URI: https://adayinbali.com
Description: Minimal base theme for tour websites (Bali & Flores). Header & footer customizable via native WP Customizer. Full-width empty canvas for Elementor Free.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bali-flores-tour
*/

/* -------------------------------------------------- */
/* 1. Reset & base                                     */
/* -------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #2b2b28;
	background: #fff;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #b8732e;
	text-decoration: none;
}

a:hover {
	color: #8f571f;
}

ul {
	margin: 0;
	padding: 0;
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* -------------------------------------------------- */
/* 2. Top bar                                          */
/* -------------------------------------------------- */
.top-bar {
	background: #2b2b28;
	color: #e8e3da;
	font-size: 13px;
}

.top-bar .container {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	padding-top: 8px;
	padding-bottom: 8px;
	flex-wrap: wrap;
}

.top-bar a {
	color: #e8e3da;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.top-bar a:hover {
	color: #d9a05b;
}

.top-bar .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	flex-shrink: 0;
}

.top-bar a:hover .icon {
	background: rgba(217, 160, 91, 0.2);
}

.icon svg {
	width: 13px;
	height: 13px;
	display: inline-block;
	vertical-align: middle;
}

.footer-contact .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #d9a05b;
	flex-shrink: 0;
	margin-top: 1px;
}

.footer-contact .icon svg {
	width: 12px;
	height: 12px;
}

/* -------------------------------------------------- */
/* 3. Main header                                      */
/* -------------------------------------------------- */
.main-header {
	background: #fff;
	border-bottom: 1px solid #ece7dc;
}

.main-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.site-branding a {
	display: inline-block;
}

.site-branding .custom-logo {
	max-height: 52px;
	width: auto;
	height: auto;
}

.site-branding .site-title {
	font-size: 22px;
	font-weight: 700;
	color: #2b2b28;
	margin: 0;
}

.site-branding .site-title a {
	color: #2b2b28;
}

.header-row {
	display: flex;
	align-items: center;
	gap: 28px;
}

/* Primary nav */
.primary-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #2b2b28;
}

.primary-menu {
	list-style: none;
	display: flex;
	gap: 24px;
	align-items: center;
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	color: #2b2b28;
	font-weight: 500;
	font-size: 15px;
	padding: 6px 0;
	display: inline-block;
}

.primary-menu a:hover,
.primary-menu li.current-menu-item > a {
	color: #b8732e;
}

/* Sub menu (basic support) */
.primary-menu ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 200px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	padding: 8px 0;
	z-index: 50;
}

.primary-menu li:hover > ul.sub-menu {
	display: block;
}

.primary-menu ul.sub-menu li a {
	display: block;
	padding: 8px 16px;
}

/* CTA button */
.btn-cta {
	display: inline-block;
	background: #b8732e;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	padding: 10px 22px;
	border-radius: 4px;
	white-space: nowrap;
}

.btn-cta:hover {
	background: #8f571f;
	color: #fff;
}

/* -------------------------------------------------- */
/* 4. Footer                                           */
/* -------------------------------------------------- */
.site-footer {
	background: #2b2b28;
	color: #cfc9bd;
	padding-top: 48px;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	padding-bottom: 32px;
}

.footer-columns h3 {
	color: #fff;
	font-size: 16px;
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.footer-col .footer-logo {
	margin-bottom: 14px;
}

.footer-col .footer-logo .custom-logo {
	max-height: 40px;
	width: auto;
	height: auto;
}

.footer-col p {
	margin: 0 0 10px;
	font-size: 14px;
	color: #cfc9bd;
}

.footer-menu {
	list-style: none;
}

.footer-menu li {
	margin-bottom: 10px;
}

.footer-menu a {
	color: #cfc9bd;
	font-size: 14px;
}

.footer-menu a:hover {
	color: #d9a05b;
}

.footer-contact p {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
}

.footer-contact a {
	color: #cfc9bd;
}

.footer-contact a:hover {
	color: #d9a05b;
}

.footer-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding-bottom: 32px;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #cfc9bd;
}

.footer-social a:hover {
	background: #b8732e;
	color: #fff;
}

.footer-social .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

.copyright {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 16px 0;
	text-align: center;
	font-size: 13px;
	color: #9b958a;
}

/* -------------------------------------------------- */
/* 5. Elementor canvas helpers                         */
/* -------------------------------------------------- */
.site-main {
	min-height: 200px;
}

.site-main.full-width {
	padding: 0;
	max-width: none;
}

/* -------------------------------------------------- */
/* 6. Responsive                                       */
/* -------------------------------------------------- */
@media (max-width: 768px) {
	.primary-menu-toggle {
		display: inline-block;
	}

	.header-row {
		gap: 14px;
	}

	.primary-menu {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		padding: 10px 20px 20px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
		z-index: 40;
	}

	.primary-menu.is-open {
		display: flex;
	}

	.primary-menu li {
		width: 100%;
	}

	.primary-menu ul.sub-menu {
		position: static;
		box-shadow: none;
		padding-left: 12px;
	}

	.main-header .container {
		position: relative;
		flex-wrap: wrap;
	}

	.top-bar .container {
		justify-content: center;
		gap: 14px;
	}

	.footer-columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* === TOUR CPT === */

/* -- Archive: header + grid -- */
.tour-archive {
	padding: 40px 0 60px;
}

.tour-archive-header {
	margin-bottom: 28px;
}

.tour-archive-title {
	font-size: 28px;
	font-weight: 700;
	color: #2b2b28;
	margin: 0;
}

.tour-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.tour-card {
	background: #fff;
	border: 1px solid #ece7dc;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tour-card:hover {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.tour-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #ece7dc;
	overflow: hidden;
}

.tour-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tour-card-media-placeholder {
	width: 100%;
	height: 100%;
	background: #ece7dc;
}

.tour-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #b8732e;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.tour-card-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
}

.tour-card-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
}

.tour-card-title a {
	color: #2b2b28;
}

.tour-card-title a:hover {
	color: #b8732e;
}

.tour-card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #6b665c;
}

.tour-card-duration {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tour-card-duration .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.tour-card-footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.tour-card-price {
	font-size: 17px;
	font-weight: 700;
	color: #b8732e;
}

.tour-card-link {
	font-size: 13px;
	font-weight: 600;
	color: #2b2b28;
	border: 1px solid #ece7dc;
	border-radius: 4px;
	padding: 6px 12px;
}

.tour-card-link:hover {
	background: #b8732e;
	border-color: #b8732e;
	color: #fff;
}

.tour-pagination {
	margin-top: 36px;
	display: flex;
	justify-content: center;
}

/* -- Single tour -- */
.tour-single {
	padding: 32px 0 60px;
}

.tour-hero {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-bottom: 44px;
}

.tour-gallery-carousel {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.tour-gallery-track {
	display: flex;
	transition: transform 0.45s ease;
}

.tour-gallery-slide {
	flex: 0 0 100%;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tour-hero-thumb {
	flex: 1 1 0;
	min-width: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	padding: 0;
	cursor: pointer;
	background: #ece7dc;
}

.tour-hero-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.tour-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.tour-gallery-prev {
	left: 16px;
}

.tour-gallery-next {
	right: 16px;
}

.tour-hero-thumb {
	cursor: zoom-in;
}

.tour-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.tour-lightbox[hidden] {
	display: none;
}

.tour-lightbox-img {
	max-width: 100%;
	max-height: 100%;
	display: block;
	border-radius: 4px;
}

.tour-lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.tour-lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.tour-lightbox-prev {
	left: 20px;
}

.tour-lightbox-next {
	right: 20px;
}

.tour-hero-info {
	padding: 4px 2px 0;
}

.tour-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.tour-badges .tour-badge {
	position: static;
	letter-spacing: 0.04em;
	box-shadow: 0 4px 10px rgba(184, 115, 46, 0.25);
}

.tour-title {
	font-size: 34px;
	line-height: 1.25;
	font-weight: 800;
	color: #2b2b28;
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}

.tour-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
}

.tour-destinations {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #6b665c;
	background: #f7f4ed;
	border: 1px solid #ece7dc;
	padding: 6px 12px;
	border-radius: 999px;
}

.tour-destinations .tour-icon-svg {
	color: #b8732e;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* -- Content layout -- */
.tour-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	align-items: start;
}

.tour-section {
	margin-bottom: 24px;
	padding: 26px 28px;
	background: #fff;
	border: 1px solid #ece7dc;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(43, 43, 40, 0.04);
}

.tour-section h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 19px;
	font-weight: 700;
	color: #2b2b28;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #ece7dc;
}

.tour-section-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #b8732e;
	background: #f7f1e6;
	border-radius: 8px;
}

.tour-section-icon svg {
	width: 18px;
	height: 18px;
}

.tour-include .tour-section-icon {
	color: #4a7c3a;
	background: rgba(74, 124, 58, 0.12);
}

.tour-exclude .tour-section-icon {
	color: #c0392b;
	background: rgba(192, 57, 43, 0.1);
}

.tour-section-body {
	color: #4a463d;
	line-height: 1.75;
}

.tour-section-body > :first-child {
	margin-top: 0;
}

.tour-section-body > :last-child {
	margin-bottom: 0;
}

.tour-notes p {
	margin: 0;
	color: #6b665c;
}

.tour-list {
	list-style: none;
	display: grid;
	gap: 10px;
}

.tour-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.5;
}

.tour-list-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin-top: 1px;
}

.tour-list-icon svg {
	width: 13px;
	height: 13px;
}

.tour-list-include .tour-list-icon {
	color: #4a7c3a;
	background: rgba(74, 124, 58, 0.12);
}

.tour-list-exclude .tour-list-icon {
	color: #c0392b;
	background: rgba(192, 57, 43, 0.1);
}

.tour-list-bring .tour-list-icon {
	color: #b8732e;
	background: rgba(184, 115, 46, 0.12);
}

/* -- Booking sidebar -- */
.tour-booking-box {
	position: static;
}

.tour-booking-inner {
	background: #fff;
	border: 1px solid #ece7dc;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 16px 36px rgba(43, 43, 40, 0.08);
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: relative;
	overflow: hidden;
}

.tour-booking-inner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #b8732e, #e3a564);
}

.tour-booking-main {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tour-booking-price {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tour-booking-price-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b665c;
	font-weight: 600;
}

.tour-booking-price-value {
	font-size: 28px;
	font-weight: 800;
	color: #b8732e;
	letter-spacing: -0.01em;
}

.tour-booking-duration {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #6b665c;
	background: #f7f4ed;
	border-radius: 999px;
	padding: 6px 12px;
	width: fit-content;
}

.tour-booking-duration .tour-icon-svg {
	width: 16px;
	height: 16px;
	color: #b8732e;
	flex-shrink: 0;
}

.tour-booking-trust {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tour-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: #6b665c;
}

.tour-trust-badge .tour-icon-svg {
	width: 14px;
	height: 14px;
	color: #b8732e;
	flex-shrink: 0;
}

.tour-booking-divider {
	height: 1px;
	background: #ece7dc;
	margin: 0 -24px;
}

.tour-booking-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tour-booking-cta {
	text-align: center;
	font-size: 15px;
	padding: 13px 22px;
	border-radius: 8px;
	box-shadow: 0 10px 22px rgba(184, 115, 46, 0.3);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tour-booking-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 26px rgba(184, 115, 46, 0.36);
}

.tour-booking-call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 8px;
	border: 1px solid #ddd3c0;
	background: #fff;
	color: #b8732e;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.tour-booking-call .tour-icon-svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.tour-booking-call:hover {
	background: #f7f4ed;
	transform: translateY(-1px);
}

/* -- Sidebar extra (help card + related tours) -- */
.tour-sidebar-col {
	display: flex;
	flex-direction: column;
}

.tour-sidebar-extra {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 24px;
}

.tour-help-card {
	background: #fff;
	border: 1px solid #ece7dc;
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 6px 20px rgba(43, 43, 40, 0.04);
	text-align: center;
}

.tour-help-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #f7f1e6;
	color: #b8732e;
	margin-bottom: 12px;
}

.tour-help-icon svg {
	width: 22px;
	height: 22px;
}

.tour-help-title {
	font-size: 16px;
	font-weight: 700;
	color: #2b2b28;
	margin: 0 0 6px;
}

.tour-help-text {
	font-size: 13.5px;
	color: #6b665c;
	line-height: 1.5;
	margin: 0 0 16px;
}

.tour-help-actions {
	display: flex;
	flex-direction: column;
}

.tour-help-cta {
	width: 100%;
	text-align: center;
	font-size: 13.5px;
	padding: 10px 18px;
}

.tour-related-tours {
	background: #fff;
	border: 1px solid #ece7dc;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 6px 20px rgba(43, 43, 40, 0.04);
}

.tour-related-title {
	font-size: 15px;
	font-weight: 700;
	color: #2b2b28;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #ece7dc;
}

.tour-related-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tour-related-card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.tour-related-media {
	display: block;
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #ece7dc;
}

.tour-related-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tour-related-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.tour-related-card-title {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
}

.tour-related-card-title a {
	color: #2b2b28;
}

.tour-related-card-title a:hover {
	color: #b8732e;
}

.tour-related-link {
	font-size: 12px;
	font-weight: 600;
	color: #b8732e;
}

.tour-related-link:hover {
	text-decoration: underline;
}

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

	.tour-layout {
		grid-template-columns: 1fr;
	}

	.tour-booking-box {
		position: static;
	}
}

@media (max-width: 768px) {
	.tour-grid {
		grid-template-columns: 1fr;
	}

	.tour-title {
		font-size: 26px;
	}

	.tour-section {
		padding: 20px;
	}

}

/* -------------------------------------------------- */
/* Force Poppins on all headings & Elementor heading   */
/* widgets, overriding per-widget inline font-family    */
/* -------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
