/*
 * Small additions to the Tracker theme (public/tracker/css/style.css).
 * Only for parts the theme does not have: price boxes, car cards, alerts,
 * date/time inputs, the search box under the banner.
 *
 * Site color palette (October 2026). It replaced the theme's original colors
 * in style.css, site.css and live-search.css:
 *   teal   #1DC5CE -> turf green      #306B34 (buttons, icons, links)
 *   dark   #10221B -> dark slate grey #1C5253 (headings, dark boxes)
 *   light  #F3F7FA -> pure white      #FFFFFF (light sections, input fields)
 *          (was cream #F3FFC6 until Oct 2026: it looked bad, so it was replaced by white)
 *   orange #FC8F00 -> cherry rose     #B6174B (stars, small highlights)
 *   lime cream #C3EB78 is for accents ON dark boxes.
 *   Turf green on dark slate grey is too dark to read, so we use lime cream there.
 * The variables below are for new CSS. Old rules still use plain hex codes.
 */
:root {
    --turf-green: #306B34;
    --dark-slate-grey: #1C5253;
    --cream: #FFFFFF; /* name kept so old rules still work; the colour is now pure white */
    --lime-cream: #C3EB78;
    --cherry-rose: #B6174B;
}

/* ---------- Inner banner: our <h1> looks like the theme's <h2> ---------- */
.inner-banner .content-box h1 { position: relative; color: #ffffff; text-transform: uppercase;
    font-weight: 700; margin-bottom: 10px; font-size: 42px; line-height: 1.2; }
@media (max-width: 767px) { .inner-banner .content-box h1 { font-size: 28px; } }
/* Soft shadow keeps the white title readable on bright photo banners (e.g. blog posts). */
.inner-banner .content-box h1,
.inner-banner .bread-crumb { text-shadow: 0 2px 12px rgba(28, 82, 83, 0.6); }

/* ---------- Header: phone + login links (replace the theme's cart/wishlist) ---------- */
.main-header .header-upper .links-box .link a { color: #1C5253; font-weight: 600; line-height: 44px; }
.main-header .header-upper .links-box .link a:hover { color: #306B34; }
.main-header .header-upper .links-box .link .icon { margin-right: 6px; }

/* ---------- Top menu: no icon above the items ---------- */
/* The theme shows a small logo icon (logo-icon.svg) above a menu item on hover
   and on the current page. We hide it here instead of editing the theme file. */
.main-menu .navigation > li > a:before { display: none; }

/* ---------- Forms: the theme styles text inputs only, so add date/time ---------- */
.site-form form .form-group input[type="date"],
.site-form form .form-group input[type="time"] {
    width: 100%; height: 58px; padding: 15px 20px; border: 1px solid rgba(0, 0, 0, 0.03);
    color: #1C5253; font-weight: 500; background: #ffffff;
}
.site-form form .form-group input:focus,
.site-form form .form-group select:focus,
.site-form form .form-group textarea:focus { border-color: #306B34; }
/* White box; the thin grey border keeps it visible on white pages. */
.site-form { background: #FFFFFF; border: 1px solid #E1E8E5; padding: 40px; border-radius: 10px; }
.field-error { color: #d93025; font-size: 14px; margin-top: 6px; }
.form-section-title { margin: 10px 0 20px; padding-top: 10px; border-top: 1px solid #DEDEDE; }
.form-section-title:first-of-type { border-top: 0; padding-top: 0; }
.form-section-title small { font-size: 14px; color: #505050; }
.choice-row label, .choice-list label { margin-right: 30px; font-weight: 500; cursor: pointer; }
.choice-list label { display: block; margin-bottom: 10px; }
.choice-row input, .choice-list input { margin-right: 8px; accent-color: #306B34; }

/* ---------- Search box under the home banner and on landing pages ---------- */
.home-search { position: relative; margin-top: -40px; padding-bottom: 60px; z-index: 5; }
/* The card look (corners, shadow, field colours) is in live-search.css. */
.home-search .site-form { background: #ffffff; }
.route-search { padding: 0 0 80px; }

/* ---------- Landing pages: overview, facts, price box ---------- */
.route-overview, .fleet-section, .checkout-section, .contact-section, .blog-single, .blog-section { padding: 80px 0; }
.route-overview h2, .contact-section h2 { margin-bottom: 20px; }
.route-facts { margin: 0 0 20px; padding: 0; list-style: none; }
.route-facts li { margin-bottom: 10px; color: #505050; }
.route-facts li i { width: 22px; color: #306B34; }
.price-box { background: #1C5253; color: #ffffff; padding: 35px; border-radius: 10px; margin-bottom: 30px; }
.price-box h3 { color: #ffffff; margin-bottom: 20px; }
/* Lime cream: green text would be unreadable on the dark slate box. */
.price-box a { color: var(--lime-cream); }
.price-box .route-facts li { color: #CBCBCB; }
.price-table { width: 100%; margin-bottom: 20px; }
.price-table td { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.price-table td.price { text-align: right; font-weight: 700; color: var(--lime-cream); font-size: 18px; }
/* Fact icons inside the dark price box: lime cream too, for contrast. */
.price-box .route-facts li i { color: var(--lime-cream); }
.small-note { font-size: 14px; opacity: 0.8; }
.sticky-summary { position: sticky; top: 20px; }
.search-summary { margin-bottom: 30px; font-weight: 500; }
.search-summary i { color: #306B34; margin-right: 4px; }

/* ---------- Car cards (fleet + price list) ---------- */
.car-card { background: #ffffff; border-radius: 10px; overflow: hidden; margin-bottom: 30px;
    box-shadow: 0 5px 30px rgba(28, 82, 83, 0.08); }
.car-card .car-image img { width: 100%; height: 220px; object-fit: cover; }
.car-card .car-body { padding: 25px 30px 30px; }
.car-card .car-specs { list-style: none; padding: 0; margin: 10px 0 20px; color: #505050; }
.car-card .car-specs i { width: 22px; color: #306B34; }
.car-card .car-price { font-size: 28px; font-weight: 700; color: #1C5253; margin-bottom: 20px; }
.car-card .car-price small { display: block; font-size: 14px; font-weight: 400; color: #505050; }

/* ---------- Booking page ---------- */
.ride-card { background: #FFFFFF; border: 1px solid #E1E8E5; border-radius: 10px; padding: 30px; margin-bottom: 30px; position: relative; }
.ride-card h4 { margin-bottom: 15px; }
.status-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; background: #306B34;
    color: #ffffff; font-size: 13px; font-weight: 600; text-transform: capitalize; }
.ride-card .status-badge { position: absolute; top: 30px; right: 30px; }

/* ---------- Alerts (flash messages) ---------- */
.site-alerts { padding-top: 20px; }
.site-alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; }
.site-alert ul { margin: 0; padding-left: 18px; }
/* Success alert: cream background, dark slate text, green border (new palette). */
.site-alert-ok { background: var(--cream); color: var(--dark-slate-grey); border: 1px solid #306B34; }
.site-alert-error { background: #fdecea; color: #8a1c13; border: 1px solid #f5b5ae; }

/* ---------- Area page: list of places ---------- */
.places-list { padding: 0 0 80px; }
.place-links { columns: 3 220px; list-style: none; padding: 0; }
.place-links li { margin-bottom: 10px; break-inside: avoid; }
.place-links i { color: #306B34; margin-right: 6px; }

/* ---------- Home promos ---------- */
.home-promos { padding: 0 0 80px; }
.promo-card { position: relative; display: block; border-radius: 10px; overflow: hidden; margin-bottom: 30px; }
.promo-card img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.4s; }
.promo-card:hover img { transform: scale(1.05); }
/* Title bar: solid see-through teal, no gradient (.cursor/rules/no-gradients.mdc). */
.promo-card .promo-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px;
    color: #ffffff; font-weight: 600; font-size: 20px; background: rgba(28, 82, 83, 0.85); }

/* ---------- Route / area cards ---------- */
/* Same height, whatever the photo size. */
.dest-block-two .image-box img { width: 100%; height: 300px; object-fit: cover; }
/*
 * The theme shows the caption only on hover. For a transfer site the route name
 * must always be visible, so the caption box stays open (hover only adds the tint).
 */
.dest-block-two .hvr-box { transform: none; background: transparent; }
.dest-block-two:hover .hvr-box { background: rgba(48, 107, 52, 0.25); }
.dest-block-two .hvr-box .cap-box { bottom: 20px; }
.dest-block-two .hvr-box .cap-inner { padding: 14px 18px; max-width: 100%; }
.dest-block-two .hvr-box h4 { float: none; font-size: 18px; line-height: 26px; padding: 0 0 8px; text-transform: none; }
.dest-block-two .hvr-box .tour-count { float: none; margin-left: 0; padding: 4px 16px; font-size: 14px; }

/* Section spacing ("destinations-list" is our own class, not in the theme). */
.trending-two { padding-bottom: 40px; }
.destinations-list { padding: 80px 0 50px; }

/* ---------- FAQ: the theme's faq-one has big top padding for its stone images ---------- */
.site-faq { padding: 80px 0; }

/* ---------- Footer: a light top line instead of the placeholder image ---------- */
.footer-two { border-top: 1px solid #DEDEDE; }
/* The theme leaves 140px above the footer, made for its background image (we have none). */
.footer-two .upper-section { padding-top: 70px; }
/*
 * Logo: the SVG is 1346px wide, and the theme gives the footer logo no size.
 * So it filled the whole column (almost 500px tall). Same height as the header logo.
 * margin-top: 0 removes the theme's -42px pull-up, which was for its own logo.
 */
.footer-two .upper-section .footer-logo { margin: 0 0 20px; }
.footer-two .footer-logo img { display: block; height: 66px; width: auto; }
/* Small gap between the intro text and the phone/email lines. */
.footer-two .footer-text { margin-bottom: 15px; }
/* Mobile: the theme centres the footer text, so centre the logo too. */
@media (max-width: 767px) { .footer-two .footer-logo img { margin: 0 auto; } }

/* ---------- Content boxes without an icon ---------- */
.content-boxes .why-block-two .inner-box { padding-top: 40px; }
.why-two.content-boxes { padding: 0 0 50px; }

/* ---------- Route map (components/route-map.blade.php) ---------- */
/* No box, no background: just the island on the page (minimal). */
.route-map { margin: 0 0 30px; }
.route-map svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Light grey island, so it shows on the white page without a background box. */
.rm-island { fill: #FFFFFF; stroke: #DEDEDE; stroke-width: 1.5; stroke-linejoin: round;
    animation: rm-fade 0.8s ease-out both; }
/* Lines keep the same thickness on screen, whatever the zoom of the map. */
.rm-island, .rm-line, .rm-line-base { vector-effect: non-scaling-stroke; }
.rm-line-base { fill: none; stroke: #306B34; stroke-width: 3; stroke-dasharray: 2 10;
    stroke-linecap: round; opacity: 0.35; }
/* pathLength="1" on the path: dasharray 1 = the whole line, so 1 -> 0 "draws" it. */
.rm-line { fill: none; stroke: #306B34; stroke-width: 4; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1; animation: rm-draw 1.6s 0.6s ease-in-out forwards; }
.rm-traveller { fill: #ffffff; stroke: #1C5253; stroke-width: 3; opacity: 0; animation: rm-fade 0.3s 2.4s forwards; }
.rm-marker { transform-box: fill-box; transform-origin: center; transform: scale(0);
    animation: rm-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.rm-marker-a { animation-delay: 0.4s; }
.rm-marker-b { animation-delay: 2.2s; }
.rm-dot { fill: #1C5253; stroke: #ffffff; stroke-width: 4; }
.rm-marker-b .rm-dot { fill: #306B34; }
.rm-letter { fill: #ffffff; font-size: 18px; font-weight: 700; font-family: Poppins, sans-serif; }
.rm-pulse { fill: #306B34; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rm-marker-b .rm-pulse { animation: rm-pulse 2s 2.7s ease-out infinite; }

.rm-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 8px 14px; margin-top: 12px; font-weight: 500; color: #1C5253; }
.rm-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
    margin-right: 4px; border-radius: 50%; background: #1C5253; color: #ffffff; font-size: 12px; }
.rm-badge-b { background: #306B34; }
.rm-arrow { color: #306B34; }

@keyframes rm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rm-draw { to { stroke-dashoffset: 0; } }
@keyframes rm-pop { to { transform: scale(1); } }
@keyframes rm-pulse { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* Less motion wanted: show the finished picture at once. */
@media (prefers-reduced-motion: reduce) {
    .rm-island, .rm-line, .rm-marker, .rm-traveller, .rm-pulse { animation: none !important; }
    .rm-line { stroke-dashoffset: 0; }
    .rm-marker { transform: scale(1); }
    .rm-traveller { display: none; }
}

/* ---------- Blog list cards (theme "news-block-one") ---------- */
/* The card fills its column, so cards in one row have the same height. */
.blog-section .news-block-one { display: flex; width: 100%; }
.blog-section .news-block-one .inner-box { display: flex; flex-direction: column; width: 100%; }
/* Same photo ratio for every post, whatever size the uploaded image has. */
.blog-section .news-block-one .image-box .image { margin: 0; aspect-ratio: 16 / 9; }
.blog-section .news-block-one .image-box .image img { height: 100%; object-fit: cover; }
/* The theme leaves a 30px gap under the photo; a smaller gap reads as one card. */
.blog-section .news-block-one .lower-content { flex-grow: 1; display: flex; flex-direction: column; margin-top: 15px; }
.blog-section .news-block-one h4 { font-size: 20px; text-transform: none; margin-bottom: 12px; }
.blog-section .news-block-one .text p { margin-bottom: 20px; }
/* Push "Read more" to the bottom so the links line up across cards. */
.blog-section .news-block-one .link { margin-top: auto; font-weight: 600; }

/* ---------- Blog post body (admin-written HTML) ---------- */
.post-content img { max-width: 100%; height: auto; }
.post-content p { margin-bottom: 20px; }
