/* =========================================================
   My Tuk Lisbon - Frontend Stylesheet
   Theme color driven by CSS variables set in site-header.php
   --theme (accent) and --secondary (dark)
   ========================================================= */

:root {
    --theme: #F5B301;
    --secondary: #14213D;
    --ink: #1c2333;
    --muted: #5d6675;
    --paper: #ffffff;
    --sand: #f7f5f0;
    --line: #e7e3da;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 33, 61, .10);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-font {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    color: var(--secondary);
}

img { max-width: 100%; }

a { color: var(--secondary); }

.btn-theme {
    background: var(--theme);
    color: var(--secondary);
    font-weight: 700;
    border: 2px solid var(--theme);
    border-radius: 999px;
    padding: .55rem 1.4rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-theme:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-outline-theme {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 999px;
    font-weight: 600;
    padding: .5rem 1.3rem;
}
.btn-outline-theme:hover { background: var(--secondary); color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--secondary);
    color: #fff;
    font-size: .85rem;
    padding: .45rem 0;
}
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; margin-right: 1.2rem; }
.topbar a:hover { color: var(--theme); }
.topbar-social a { margin: 0 0 0 .9rem; font-size: 1rem; }

/* ---------- Navbar ---------- */
.main-nav {
    background: #fff;
    border-bottom: 3px solid var(--theme);
    box-shadow: 0 2px 12px rgba(20,33,61,.06);
    padding: .6rem 0;
}
.navbar-brand { display: flex; align-items: center; gap: .55rem; }
.site-logo { max-height: 52px; width: auto; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--theme); color: var(--secondary); font-size: 1.3rem;
}
.brand-text { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.35rem; color: var(--secondary); }
.main-nav .nav-link { font-weight: 600; color: var(--secondary); padding: .5rem .9rem; }
.main-nav .nav-link:hover { color: var(--theme); }
.btn-book { padding: .45rem 1.2rem; }

/* ---------- Hero Slider ---------- */
.hero-slide {
    position: relative;
    height: min(78vh, 640px);
    min-height: 420px;
    background-size: cover;
    background-position: center;
}
.hero-slide::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,16,32,.25) 0%, rgba(10,16,32,.65) 100%);
}
.hero-caption {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; justify-content: center;
}
.hero-caption h1, .hero-caption h2 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    max-width: 720px;
    text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero-caption p { color: rgba(255,255,255,.92); font-size: clamp(1rem, 2vw, 1.25rem); max-width: 600px; }
.carousel-indicators [data-bs-target] { background-color: var(--theme); }

/* Azulejo signature strip under hero */
.azulejo-strip {
    height: 14px;
    background-image:
        linear-gradient(45deg, var(--theme) 25%, transparent 25%, transparent 75%, var(--theme) 75%),
        linear-gradient(45deg, var(--theme) 25%, var(--secondary) 25%, var(--secondary) 75%, var(--theme) 75%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--secondary); color: #fff; }
.section-dark h2 { color: #fff; }
.section-eyebrow {
    display: inline-block;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--secondary);
    background: var(--theme);
    padding: .25rem .8rem; border-radius: 999px;
    margin-bottom: .8rem;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .4rem; }
.section-sub { color: var(--muted); max-width: 640px; }

/* ---------- Tour Cards ---------- */
.tour-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tour-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tour-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tour-card:hover .tour-card-img img { transform: scale(1.06); }
.tour-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--theme); color: var(--secondary);
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: 999px;
}
.tour-price-tag {
    position: absolute; bottom: 12px; right: 12px;
    background: var(--secondary); color: #fff;
    font-weight: 700; padding: .35rem .8rem; border-radius: 10px;
    font-size: .95rem;
}
.tour-price-tag small { color: var(--theme); font-weight: 600; }
.tour-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.tour-card-body h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.tour-card-body h3 a { text-decoration: none; }
.tour-card-meta { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.stars { color: var(--theme); font-size: .95rem; letter-spacing: 1px; }
.tour-card .short { color: var(--muted); font-size: .9rem; }

/* ---------- Destinations ---------- */
.dest-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: block;
    text-decoration: none;
}
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dest-card:hover img { transform: scale(1.07); }
.dest-card .dest-label {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 2.2rem 1rem .9rem;
    background: linear-gradient(180deg, transparent, rgba(10,16,32,.85));
    color: #fff; font-weight: 700; font-family: 'Fraunces', serif; font-size: 1.15rem;
}

/* ---------- Reviews ---------- */
.review-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    height: 100%;
}
.review-card .quote { color: var(--ink); font-size: .95rem; }
.review-meta { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; }
.review-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--theme); color: var(--secondary);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
}
.review-meta .name { font-weight: 700; font-size: .92rem; }
.review-meta .country { color: var(--muted); font-size: .8rem; }

/* ---------- Gallery ---------- */
.gal-item { border-radius: var(--radius); overflow: hidden; display: block; aspect-ratio: 1 / 1; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gal-item:hover img { transform: scale(1.08); }

/* ---------- Blog cards ---------- */
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.blog-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.blog-card-body h3 { font-size: 1.1rem; }
.blog-card-body h3 a { text-decoration: none; }
.blog-date { color: var(--muted); font-size: .8rem; }

/* ---------- Tour Details ---------- */
.detail-hero { position: relative; }
.detail-hero img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 0 0 var(--radius) var(--radius); }
.detail-title-wrap { padding-top: 1.6rem; }
.detail-title-wrap h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; color: var(--muted); font-size: .95rem; margin: .6rem 0 0; }
.detail-meta i { color: var(--theme); }

.detail-section { margin-top: 2.4rem; }
.detail-section h2 {
    font-size: 1.35rem;
    padding-bottom: .5rem;
    border-bottom: 3px solid var(--theme);
    display: inline-block;
    margin-bottom: 1rem;
}
.highlight-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--sand); border: 1px solid var(--line);
    padding: .45rem .95rem; border-radius: 999px;
    font-size: .88rem; font-weight: 600; color: var(--secondary);
    margin: 0 .5rem .5rem 0;
}
.highlight-chip i { color: var(--theme); }

.inc-list li, .exc-list li { margin-bottom: .45rem; list-style: none; }
.inc-list, .exc-list { padding-left: 0; }
.inc-list i { color: #1a9e55; margin-right: .45rem; }
.exc-list i { color: #d43f3f; margin-right: .45rem; }

/* Itinerary timeline */
.itinerary { position: relative; padding-left: 1.6rem; }
.itinerary::before {
    content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px;
    width: 3px; background: var(--theme); border-radius: 3px;
}
.itin-step { position: relative; padding: 0 0 1.4rem 1rem; }
.itin-step::before {
    content: ''; position: absolute; left: -1.6rem; top: 4px;
    width: 17px; height: 17px; border-radius: 50%;
    background: #fff; border: 4px solid var(--secondary);
}
.itin-step h4 { font-size: 1.02rem; margin-bottom: .25rem; }
.itin-step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Booking / enquiry sidebar */
.booking-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem;
    position: sticky;
    top: 96px;
}
.booking-price { font-family: 'Fraunces', serif; font-size: 1.9rem; font-weight: 900; color: var(--secondary); }
.booking-price small { font-size: .85rem; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 500; }

/* Detail gallery thumbs */
.detail-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .8rem; }
.detail-gal a { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.detail-gal img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Forms ---------- */
.form-control:focus, .form-select:focus {
    border-color: var(--theme);
    box-shadow: 0 0 0 .2rem rgba(245, 179, 1, .18);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.82); padding: 3.5rem 0 0; margin-top: 4rem; }
.footer-brand { color: var(--theme); font-weight: 900; }
.footer-about { font-size: .92rem; }
.footer-heading { color: #fff; font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .55rem; font-size: .92rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--theme); }
.footer-contact i { color: var(--theme); margin-right: .4rem; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,.08); color: #fff;
    margin-right: .5rem; text-decoration: none; font-size: 1.05rem;
    transition: background .15s ease, color .15s ease;
}
.footer-social a:hover { background: var(--theme); color: var(--secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 2.5rem; padding: 1.1rem 0;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    font-size: .85rem;
}
.footer-bottom a { color: var(--theme); text-decoration: none; }

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 1050;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--sand); padding: .7rem 0; font-size: .85rem; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs .current { color: var(--secondary); font-weight: 600; }

/* ---------- Page content ---------- */
.page-content h2, .page-content h3 { margin-top: 1.6rem; }
.page-content img { border-radius: var(--radius); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .booking-card { position: static; margin-top: 2rem; }
    .main-nav .navbar-nav { padding: .8rem 0; }
    .btn-book { margin-top: .5rem; display: inline-block; }
}
@media (max-width: 767px) {
    .section { padding: 3rem 0; }
    .hero-slide { height: 62vh; min-height: 380px; }
    .detail-gal { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .detail-gal { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ---------- Top Attractions (GetYourGuide style) ---------- */
.attraction-item { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 6px; border-radius: 12px; transition: background .18s ease, transform .18s ease; }
.attraction-item:hover { background: rgba(0,0,0,.04); transform: translateX(3px); }
.attraction-item img, .attraction-ph { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.attraction-ph { display: flex; align-items: center; justify-content: center; background: var(--sand, #f4efe6); color: var(--theme); font-size: 1.6rem; }
.attraction-text { display: flex; flex-direction: column; min-width: 0; }
.attraction-name { font-weight: 700; font-size: 1.02rem; color: var(--secondary); line-height: 1.3; }
.attraction-item:hover .attraction-name { color: var(--theme-dark, #c78f00); }
.attraction-sub { color: #8a8a8a; font-size: .87rem; margin-top: 3px; }
@media (max-width: 575px) { .attraction-item img, .attraction-ph { width: 72px; height: 72px; } }

/* ---------- Reviews carousel ---------- */
#reviewsCarousel { padding-bottom: 34px; }
.review-indicators { position: absolute; bottom: 0; margin-bottom: 0; }
.review-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; background-color: var(--secondary); opacity: .25; border: 0; }
.review-indicators .active { opacity: 1; background-color: var(--theme); }
