/*
Theme Name: Taxi Lixouri
Description: Child theme of Twenty Twenty-Five for taxi-lixouri.gr — transfers, pricelist, private tours and bookings (works with the Taxi Lixouri Booking plugin and Polylang).
Template: twentytwentyfive
Version: 0.6.2
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: taxi-lixouri
*/

/* Colours for the booking plugin, taken from theme.json. */
:root {
	--tl-ink: var(--wp--preset--color--contrast);
	--tl-muted: var(--wp--preset--color--accent-4);
	--tl-sea: var(--wp--preset--color--accent-2);
	--tl-sea-50: var(--wp--preset--color--accent-3);
	--tl-accent: var(--wp--preset--color--accent-1);
	--tl-line: #c3ced6;
	--tl-card: var(--wp--preset--color--base-2);
}

/* Header */
.tl-header { border-bottom: 1px solid var(--wp--preset--color--accent-5); }
.tl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.tl-brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--wp--preset--color--accent-1); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tl-nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.tl-nav a { display: inline-block; padding: 10px 0; color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 500; }
.tl-nav a:hover, .tl-nav .current-menu-item > a { color: var(--wp--preset--color--accent-2); }
.tl-lang { display: inline-flex; border: 1px solid var(--wp--preset--color--accent-5); border-radius: 999px; overflow: hidden; font-size: .875rem; font-weight: 600; }
.tl-lang a { padding: 10px 14px; color: var(--wp--preset--color--contrast); text-decoration: none; }
.tl-lang a[aria-current] { background: var(--wp--preset--color--contrast); color: #fff; }
.tl-call a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--wp--preset--color--accent-2); color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }

/* Language menu (7 languages) */
.tl-lang-menu { position: relative; }
.tl-lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--wp--preset--color--accent-5); border-radius: 999px; font-size: .875rem; font-weight: 700; cursor: pointer; }
.tl-lang-menu summary::-webkit-details-marker { display: none; }
.tl-lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--wp--preset--color--accent-5); border-radius: 14px; box-shadow: 0 12px 32px rgba(14, 27, 44, .15); }
.tl-lang-menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 500; }
.tl-lang-menu a:hover, .tl-lang-menu a:focus-visible { background: var(--wp--preset--color--accent-3); }
.tl-lang-menu a[aria-current] { font-weight: 700; background: var(--wp--preset--color--accent-3); }
.tl-lang-code { display: inline-block; min-width: 26px; font-size: .75rem; font-weight: 700; color: var(--wp--preset--color--accent-2); }

/* WhatsApp: header button + floating button on phones */
.tl-wa { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #1e7a4c; color: #fff; flex: none; }
.tl-wa:hover, .tl-wa:focus-visible { background: #17643e; color: #fff; }
.tl-wa-float { display: none; }
@media (max-width: 781px) {
	/* Full-width button fixed to the bottom of the screen (does not cover content). */
	.tl-wa-float { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 16px env(safe-area-inset-bottom, 0px); background: #1e7a4c; color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; box-shadow: 0 -4px 16px rgba(14, 27, 44, .18); }
	.tl-wa-float:hover, .tl-wa-float:focus-visible { background: #17643e; color: #fff; }
	.tl-wa-float:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
	body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* Sections */
.tl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tl-chips li { padding: 8px 14px; border-radius: 999px; background: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--accent-2); font-weight: 600; font-size: .875rem; }
.tl-card { background: var(--wp--preset--color--base-2); border: 1px solid var(--wp--preset--color--accent-5); border-radius: 20px; }
.tl-booking-card { padding: 28px; box-shadow: 0 12px 32px rgba(14, 27, 44, .08); }
.tl-hero-img img { border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.tl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tl-steps li { padding: 24px; }
.tl-steps .tl-num { width: 36px; height: 36px; border-radius: 50%; background: var(--wp--preset--color--accent-1); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.tl-dark .tlb-tour { background: var(--wp--preset--color--accent-6); border-color: transparent; color: #fff; }
.tl-dark .tlb-tour .tlb-small { color: #c9d4dd; }

/* Popular routes */
.tlb-popular { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tlb-pop { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--wp--preset--color--accent-5); border-radius: 16px; background: var(--wp--preset--color--base-2); }
.tlb-pop small { color: var(--wp--preset--color--accent-4); }
.tlb-pop-to { font-family: var(--wp--preset--font-family--manrope); font-weight: 700; font-size: 1.2rem; }
.tlb-pop-foot { display: flex; justify-content: space-between; align-items: center; }
.tlb-pop-foot strong { font-family: var(--wp--preset--font-family--manrope); font-size: 1.75rem; }
.tlb-pop-foot a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--wp--preset--color--accent-2); color: var(--wp--preset--color--accent-2); text-decoration: none; font-weight: 600; font-size: .9rem; }

.tl-photo { margin: 0; }
.tl-photo img { display: block; width: 100%; height: auto; }
.tl-hero-img img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; }
.tl-gallery { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tl-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; transition: opacity .15s ease; }
.tl-gallery a:hover img { opacity: .85; }
@media (max-width: 781px) { .tl-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Footer (dark) */
.tl-footer { color: #dfe7ee; }
.tl-footer a { color: #dfe7ee; text-decoration: none; }
.tl-footer a:hover, .tl-footer a:focus-visible { color: #fff; text-decoration: underline; }
.tl-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px 56px; }
.tl-footer .tl-brand { color: #fff; }
.tl-foot-about { margin: 16px 0 0; max-width: 38ch; color: #b9c6d1; line-height: 1.6; }
.tl-foot-h { margin: 0 0 14px; font-family: var(--wp--preset--font-family--manrope); font-size: 1rem; font-weight: 700; color: #fff; }
.tl-foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-foot-list li { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.tl-foot-list svg { flex: none; color: var(--wp--preset--color--accent-1); }
.tl-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-footer-menu a { display: inline-flex; align-items: center; min-height: 36px; }
.tl-foot-bottom { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; color: #9fb0bf; }
@media (max-width: 781px) { .tl-foot-grid { grid-template-columns: 1fr; } }

/* FAQ (native Details blocks, editable in wp-admin) */
.tl-faq .tl-faq-item { margin: 0 0 12px; background: var(--wp--preset--color--base-2); border: 1px solid var(--wp--preset--color--accent-5); border-radius: 14px; overflow: hidden; }
.tl-faq .tl-faq-item > summary { list-style: none; position: relative; padding: 18px 56px 18px 20px; font-weight: 700; cursor: pointer; color: var(--wp--preset--color--contrast); }
.tl-faq .tl-faq-item > summary::-webkit-details-marker { display: none; }
.tl-faq .tl-faq-item > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--accent-2); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 600; transition: transform .2s ease; }
.tl-faq .tl-faq-item[open] > summary::after { content: "−"; }
.tl-faq .tl-faq-item > summary:hover { color: var(--wp--preset--color--accent-2); }
.tl-faq .tl-faq-item > summary:focus-visible { outline: 3px solid var(--wp--preset--color--accent-2); outline-offset: -3px; border-radius: 14px; }
.tl-faq .tl-faq-item > :not(summary) { margin: 0; padding: 0 20px 18px; color: var(--wp--preset--color--accent-4); line-height: 1.65; }
.tl-steps { margin-top: 24px; }

@media (max-width: 781px) {
	.tl-header-row > .wp-block-shortcode:nth-child(2), .tl-header-row nav { order: 3; flex-basis: 100%; }
	.tl-header-row { row-gap: 8px; }
	.tl-booking-card { padding: 20px; }

	/* Hero on phones: title and one line first, then the price form, then chips and photo. */
	.wp-block-columns:has(.tl-booking-card) > .wp-block-column:first-child { display: contents; }
	.wp-block-columns:has(.tl-booking-card) > .wp-block-column:first-child > * { flex-basis: 100%; width: 100%; order: 1; margin: 0; }
	.wp-block-columns:has(.tl-booking-card) > .wp-block-column:has(.tl-booking-card) { order: 2; }
	.wp-block-columns:has(.tl-booking-card) > .wp-block-column:first-child > .tl-chips,
	.wp-block-columns:has(.tl-booking-card) > .wp-block-column:first-child > .tl-hero-img { order: 3; }
	.wp-block-columns:has(.tl-booking-card) { row-gap: 16px; }
	.wp-block-columns:has(.tl-booking-card) h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}

/* Very narrow phones (≤ 400px): phone button shows only the icon, so the header fits. */
@media (max-width: 400px) {
	.tl-call a { padding: 0; width: 44px; justify-content: center; }
	.tl-call-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
}

/* Grids of six: three columns, so no half-empty row. */
@media (min-width: 782px) {
	.tlb-popular { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tlb-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Legal: "Cookie settings" looks like the other footer links; notice under the booking form. */
.tl-link-btn { background: none; border: 0; padding: 0; min-height: 36px; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.tl-link-btn:hover, .tl-link-btn:focus-visible { text-decoration: underline; color: #fff; }
.tl-legal-note { margin: 4px 0 12px; }
.tl-legal-note a { color: inherit; text-decoration: underline; }
.tl-business { line-height: 1.7; }
/* Same gap under every section intro, also in the FAQ. */
.tl-faq h2 + p { margin-bottom: 28px; }
