/*
Theme Name: Gastronomy Tours FSE
Theme URI: https://gastronomytours.com
Author: Gastronomy Tours
Description: Full Site Editing block theme replacing Bricks Builder. All templates are Git-versionable files; styling is managed through theme.json; content is editable via the REST API. Built from a programmatic audit of the live site (2026-08).
Version: 0.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gastronomytours-fse
*/

/* Base styles — keep minimal; the design system lives in theme.json.
   Add only theme-specific tweaks here (e.g. Kleesto booking button layout). */

.kleesto-book-button {
	display: inline-block;
	width: 100%;
	cursor: pointer;
}

/* Tour fact labels — small caps polish */
.tour-fact-label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	opacity: 0.85;
	margin-bottom: 0.15rem !important;
}

/* Meta field values in sidebars */
.gt-meta-field {
	font-weight: 600;
	margin-bottom: 0.9rem;
}

/* Card hover lift (query-loop cards) */
.wp-block-post-template .wp-block-group {
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wp-block-post-template .wp-block-group:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* ============ TOUR PAGE — amenities icon cards (match live) ============ */
.amenities-grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 0.8rem;
	margin-bottom: 1rem !important;
}
.amenity-card {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 0.9rem;
	margin: 0 !important;
}
.amenity-card img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	flex-shrink: 0;
}
.amenity-card h4 {
	margin: 0 0 0.15rem !important;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #8a8a8a;
}
.amenity-card .gt-meta-field {
	font-weight: 700;
	font-size: 0.95rem;
	color: #252525;
	margin: 0;
	display: inline;
}
.amenity-card-wide {
	grid-column: 1 / -1;
}
.amenity-price .gt-meta-field {
	color: #1b456b;
	font-size: 1.1rem;
}
.amenity-card .wp-block-group > div {
	min-width: 0;
}

/* ============ HEADER (match live Bricks header) ============ */

/* Announcement bar (dark, dismissible) */
.gt-announcement {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.2rem;
	background: #212224;
	color: #fff;
	font-size: 0.9rem;
	padding: 0.55rem 1rem;
	position: relative;
}
.gt-announcement-link {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	white-space: nowrap;
}
.gt-announcement-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0 0.3rem;
	line-height: 1;
	position: absolute;
	right: 0.8rem;
}

/* Header bar */
.site-header {
	border-bottom: 1px solid #eee;
}
.site-header .wp-block-group {
	gap: 1.5rem;
}
.site-logo {
	margin: 0 !important;
}
.site-logo img {
	height: 48px;
	width: auto;
}
.site-nav {
	gap: 1.4rem;
	flex-wrap: wrap;
}
.site-nav-item {
	margin: 0 !important;
}
.site-nav-item a {
	color: #252525;
	font-weight: 600;
	font-size: 0.98rem;
}
.site-nav-item a:hover {
	color: #1b456b;
}
.site-nav-b2b {
	margin: 0 !important;
	white-space: nowrap;
}
.site-nav-b2b a {
	background: #1b456b;
	color: #fff !important;
	padding: 0.5rem 1.1rem;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.9rem;
}
.site-nav-b2b a:hover {
	background: #12314c;
}

/* Destinations mega-menu dropdown (CSS-only, hover) */
.site-nav-mega {
	position: relative;
}
.mega-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 0.8rem);
	left: -1rem;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
	padding: 0.9rem;
	grid-template-columns: repeat(2, minmax(150px, 1fr));
	gap: 0.4rem 1rem;
	z-index: 50;
	min-width: 340px;
}
.site-nav-mega:hover .mega-dropdown {
	display: grid;
}
.mega-dropdown a {
	color: #333;
	font-size: 0.9rem;
	font-weight: 500;
	padding: 0.3rem 0.4rem;
	border-radius: 6px;
	white-space: nowrap;
}
.mega-dropdown a:hover {
	background: #f2f6fa;
	color: #1b456b;
}
.mega-dropdown::before {
	content: "";
	position: absolute;
	top: -0.8rem;
	left: 0;
	right: 0;
	height: 0.8rem;
}

/* ============ FOOTER (match live dark footer) ============ */
.site-footer a {
	color: #cfcfcf;
}
.site-footer a:hover {
	color: #fff;
}
.site-footer h3 {
	color: #fff;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.site-footer ul {
	list-style: none;
	padding-left: 0;
}
.site-footer ul li {
	margin-bottom: 0.45rem;
}
.site-footer-logo {
	margin: 0 0 1rem !important;
}
.site-footer-social a {
	font-weight: 600;
}

/* Featured producers / location label */
.home-card-loc {
	color: #8a8a8a;
	font-size: 0.82rem;
}

/* S4 Banner (live: uppercase statement + CTA) */
.home-banner {
	background: #f5f3f0;
	padding: 3rem 1rem;
}
.home-banner-text {
	max-width: 1000px;
	margin: 0 auto 1.4rem !important;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: 0.02em;
	color: #1b456b;
}
.home-banner-btn .wp-block-button__link {
	background: #1b456b;
	color: #fff;
	padding: 0.85rem 2.2rem;
	font-weight: 700;
}

/* S7 Features chips (Location Search / Download Now / Instant Booking) */
.home-features {
	gap: 0.8rem;
	margin-bottom: 2rem !important;
}
.home-feature {
	background: #1b456b;
	color: #fff;
	border-radius: 999px;
	padding: 0.5rem 1.2rem;
	margin: 0 !important;
	font-size: 0.88rem;
}
.home-feature strong {
	color: #fff;
}

/* S10 outline button */
.home-outline-btn .wp-block-button__link {
	background: transparent;
	color: #1b456b;
	border: 2px solid #1b456b;
	padding: 0.7rem 2rem;
	font-weight: 700;
}
.home-outline-btn .wp-block-button__link:hover {
	background: #1b456b;
	color: #fff;
}

/* ============ HOMEPAGE — match the live Bricks design ============ */

/* Section titles: uppercase, bold, spaced (live style: 31.25px/700) */
.section-title {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	font-size: 31.25px;
	line-height: 1.25;
	margin-bottom: 0.4em !important;
}
/* Subsection titles (live: 25px tier) */
.section-title-sm {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	font-size: 25px !important;
	line-height: 1.3;
	margin-bottom: 0.4em !important;
}
.section-sub {
	color: #6b6b6b;
	margin-bottom: 2rem !important;
}

/* Hero */
.home-hero .wp-block-cover__inner-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem;
	position: relative;
	z-index: 2;
}
.home-hero h1 {
	font-size: 39px !important;
	font-weight: 400 !important;
}
.home-hero .wp-block-cover__inner-container p {
	font-size: 1.15rem !important;
}
.home-hero-cta .wp-block-button__link {
	font-size: 1.05rem;
	padding: 0.95rem 2.4rem;
	border-radius: 4px;
}

/* Hero rotating slides (3 images, 7s each — matches live slider) */
.hero-slides {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	animation: heroFade 21s infinite;
}
.hero-slide-2 { animation-delay: 7s; }
.hero-slide-3 { animation-delay: 14s; }
@keyframes heroFade {
	0%   { opacity: 0; }
	4%   { opacity: 1; }
	29%  { opacity: 1; }
	33%  { opacity: 0; }
	100% { opacity: 0; }
}

/* Category tiles (Visits/Activities/Trips/Museums) */
.home-tiles {
	gap: 1.25rem;
}
.home-tile {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	margin: 0 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.home-tile a {
	display: block;
	position: relative;
}
.home-tile-img {
	margin: 0 !important;
}
.home-tile-img img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.home-tile:hover .home-tile-img img {
	transform: scale(1.05);
}
.home-tile-label {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	margin: 0 !important;
	font-size: 1.25rem;
	font-weight: 700;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.home-tile a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
	pointer-events: none;
}

/* Destination image cards */
.home-dest-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
	gap: 1rem !important;
}
.home-dest-card {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	margin: 0 !important;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}
.home-dest-link {
	display: block;
	position: relative;
}
.home-dest-img {
	margin: 0 !important;
}
.home-dest-img img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.home-dest-card:hover .home-dest-img img {
	transform: scale(1.05);
}
.home-dest-name {
	position: absolute;
	left: 0.9rem;
	bottom: 0.7rem;
	margin: 0 !important;
	font-size: 21.328px;
	font-weight: 700;
	color: #fff !important;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.home-dest-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 55%);
	pointer-events: none;
}

/* Discover Gastronomic Paths chips */
.home-paths {
	gap: 0.6rem;
}
.home-path-chip {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 0.45rem 1.1rem;
	margin: 0 !important;
	font-size: 0.9rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.home-path-chip a {
	color: #1b456b;
	font-weight: 600;
}
.home-path-chip:hover {
	border-color: #1b456b;
	box-shadow: 0 2px 8px rgba(27, 69, 107, 0.18);
}

/* Query-loop cards (white card on tinted sections) */
.home-card {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.home-card .wp-block-post-featured-image img {
	border-radius: 8px 8px 0 0;
	height: 140px;
	width: 100%;
	object-fit: cover;
}
.home-card .wp-block-post-title {
	font-size: 21.328px !important;
	font-weight: 700;
	line-height: 1.35;
	margin: 0.6rem 0 0.3rem;
}
.home-card .home-card-price,
.home-card .gt-meta-field {
	color: #1b456b;
	font-weight: 700;
	font-size: 0.95rem;
}
.home-card .wp-block-post-date {
	color: #8a8a8a;
	font-size: 0.8rem;
}

/* Join band buttons (live: 25px labels) */
.wp-block-group.has-primary-background-color .wp-block-button__link {
	font-size: 25px;
	padding: 0.8rem 1.8rem;
}
/* Subscribe sub-line (live: 39px) */
.home-subscribe-sub {
	font-size: 39.0625px;
	font-weight: 700;
	color: #1b456b;
	line-height: 1.3;
}

/* Homepage section compaction (live sections are tight rows) */
.site-main .wp-block-group.alignfull[style*="padding"] {
	padding-top: 40px !important;
	padding-bottom: 40px !important;
}
.home-banner {
	padding: 2.5rem 1rem !important;
}

/* Compact middle grids (match live tight strips) */
.home-card .wp-block-post-featured-image img {
	height: 100px !important;
}
.home-card {
	padding: 0.6rem !important;
}
.home-card .wp-block-post-title {
	font-size: 15px !important;
	margin: 0.4rem 0 0.2rem !important;
}
.home-card .gt-meta-field,
.home-card .home-card-price {
	font-size: 0.85rem !important;
}
.home-dest-img img {
	height: 90px !important;
}
.home-dest-name {
	font-size: 16px !important;
}
.home-dest-grid {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
	gap: 0.6rem !important;
}
.home-tile-img img {
	height: 180px !important;
}
.site-main .wp-block-group.alignfull[style*="padding"] {
	padding-top: 30px !important;
	padding-bottom: 30px !important;
}

/* Top card grids (live: larger producer/activity cards) */
.home-lg-grid .home-card .wp-block-post-featured-image img {
	height: 140px !important;
}
.home-lg-grid .home-card .wp-block-post-title {
	font-size: 21px !important;
}
.home-lg-grid .home-card {
	padding: 0.8rem !important;
}
.home-lg-grid .home-card .home-card-loc {
	font-size: 0.9rem !important;
}

/* === Header exact-match pass (measured vs live) === */
.gt-announcement {
	background: #887a74 !important;
	color: #f2f2f2 !important;
	font-size: 16px;
	padding: 13px 1rem !important;
}
.gt-announcement-link {
	color: #f2f2f2 !important;
}
.gt-announcement-close {
	color: #f2f2f2 !important;
}
.site-header {
	padding-top: 2.5rem !important;
	padding-bottom: 2.5rem !important;
}
.site-nav-item a {
	font-size: 16px;
}
.home-hero {
	min-height: 450px !important;
}

/* Header fine-tune (measured vs live) */
.site-header {
	padding-top: 3.05rem !important;
	padding-bottom: 3.05rem !important;
	border-bottom: 1px solid #dddde0 !important;
}
.site-nav-item a {
	color: #000;
}

/* Stronger compaction (match live compact strips) */
.home-card .wp-block-post-featured-image img {
	height: 70px !important;
}
.home-card {
	padding: 0.5rem !important;
}
.home-card .wp-block-post-title {
	font-size: 14px !important;
	margin: 0.3rem 0 0.1rem !important;
}
.home-lg-grid .home-card .wp-block-post-featured-image img {
	height: 90px !important;
}
.home-lg-grid .home-card .wp-block-post-title {
	font-size: 16px !important;
}
.home-lg-grid .home-card {
	padding: 0.6rem !important;
}
.site-main .wp-block-group.alignfull[style*="padding"] {
	padding-top: 24px !important;
	padding-bottom: 24px !important;
}
.home-tiles {
	gap: 0.8rem !important;
}
.home-tile-img img {
	height: 140px !important;
}
.home-dest-img img {
	height: 70px !important;
}
.home-banner {
	padding: 1.8rem 1rem !important;
}
.home-banner-text {
	font-size: 1rem !important;
}
.home-features {
	margin-bottom: 1.2rem !important;
}

/* Hero content geometry (measured vs live: 415px column, compact) */
.home-hero .wp-block-cover__inner-container {
	max-width: 415px !important;
}
.home-hero .wp-block-cover__inner-container p {
	font-size: 16px !important;
}
.home-hero-cta .wp-block-button__link {
	font-size: 16px !important;
	padding: 0.5rem 1.4rem !important;
	border-radius: 4px !important;
}
.home-hero .wp-block-cover__inner-container h1 {
	margin-bottom: 0.4rem !important;
}
.home-hero .wp-block-cover__inner-container {
	padding-top: 3.8rem !important;
}

/* === Tour page exact-match (measured vs live) === */
/* Title: 39px, inside the main column */
.single-tours .wp-block-post-title,
.site-main .wp-block-post-title {
	font-size: 39px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
}
/* Amenity cards: uniform 160x139-ish, aligned */
.amenity-card {
	min-height: 130px;
	align-items: flex-start;
}
.amenity-card h4 {
	font-size: 0.7rem !important;
}
/* Kleesto booking button: match live padding/size */
.kleesto-book-button {
	padding: 0.9rem 1.5rem !important;
	font-size: 1rem !important;
	background: #1b456b;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-weight: 600;
}

/* Events page (live: single column, EVENT INFO) */
.event-info-title {
	font-size: 20px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 2rem !important;
}
.event-meta {
	gap: 0.8rem;
	margin-top: 1.5rem;
}

/* === Encyclopedia single (live: narrow single column) === */
body.single-encyclopedia .site-main {
	max-width: 1000px;
	margin: 0 auto;
}
body.single-encyclopedia .site-main .wp-block-post-title {
	font-size: 39px !important;
	font-weight: 400 !important;
}

/* === Taxonomy/destinations archive (live: compact cards) === */
body.tax-destinations .site-main,
body.tax-tour-categories .site-main,
body.tax-encyclopedia-category .site-main {
	max-width: 1200px;
	margin: 0 auto;
}
body.tax-destinations .wp-block-post .wp-block-group,
body.tax-tour-categories .wp-block-post .wp-block-group {
	padding: 0.6rem !important;
}
body.tax-destinations .wp-block-post-featured-image img,
body.tax-tour-categories .wp-block-post-featured-image img {
	height: 110px !important;
	width: 100% !important;
	object-fit: cover !important;
}
body.tax-destinations .wp-block-post-title,
body.tax-tour-categories .wp-block-post-title {
	font-size: 16px !important;
}

/* Partner cards (Become a Partner page) */
.partner-grid {
	gap: 1.2rem;
	justify-content: center;
}
.partner-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 1.4rem;
	width: 240px;
	text-align: center;
	box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}
.partner-card h3 {
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}
.partner-card p {
	font-size: 0.9rem;
	color: #666;
	min-height: 3.4em;
}
.partner-card .wp-block-buttons {
	justify-content: center;
}
.partner-card .wp-block-button__link {
	padding: 0.55rem 1.5rem;
	font-size: 0.9rem;
}
