/* =====================================================
   Travel Package Display v2 – CSS
   ===================================================== */

/* ── Shared ── */
.tpd-dest, .tpd-carousel-wrap, .tpd-reel {
    font-family: inherit;
    color: #333;
    box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

.tpd-section { margin-bottom: 48px; }
.tpd-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.tpd-section-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

/* ── Tags ── */
.tpd-tag {
    display: inline-block;
    background: #d9eaf7;
    color: #1a5a8a;
    border-radius: 20px;
    padding: 2px 11px;
    font-size: .78rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* =====================================================
   REEL (full-width hero slider)
   ===================================================== */
.tpd-reel {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 48px;
}
.tpd-reel-track { width: 100%; height: 100%; position: relative; }

.tpd-reel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
}
.tpd-reel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tpd-reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.65) 100%);
    display: flex;
    align-items: flex-end;
    padding: 48px;
}
.tpd-reel-content { max-width: 680px; }

.tpd-reel-badge {
    display: inline-block;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.5);
    color: #fff;
    border-radius: 20px;
    padding: 3px 14px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
}
.tpd-reel-title {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    line-height: 1.2;
}
.tpd-reel-subtitle {
    color: rgba(255,255,255,.9);
    font-size: 1rem;
    margin: 0 0 20px;
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.tpd-reel-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tpd-reel-btn {
    display: inline-block;
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: .95rem;
    transition: background .2s, transform .15s;
}
.tpd-reel-btn:hover { background: #f0f0f0; transform: translateY(-1px); }
.tpd-reel-price { color: #fff; font-size: 1.1rem; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* Reel nav arrows */
.tpd-reel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background .2s;
    z-index: 10;
}
.tpd-reel-nav:hover { background: rgba(255,255,255,.35); }
.tpd-reel-prev { left: 18px; }
.tpd-reel-next { right: 18px; }

/* Reel dots */
.tpd-reel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.tpd-reel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s, border-color .2s;
}
.tpd-reel-dot.is-active { background: #fff; border-color: #fff; }

/* =====================================================
   CAROUSEL (horizontal card scroller)
   ===================================================== */
.tpd-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}
.tpd-carousel-track-wrap {
    overflow: hidden;
    flex: 1;
}
.tpd-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform .4s ease;
    will-change: transform;
}

/* Cards */
.tpd-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.tpd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.15);
}
.tpd-card-link { text-decoration: none; color: inherit; display: block; }
.tpd-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.tpd-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: .75rem;
    font-weight: 600;
}
.tpd-card-body { padding: 16px; }
.tpd-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
    line-height: 1.3;
}
.tpd-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tpd-card-excerpt { font-size: .85rem; color: #666; line-height: 1.5; margin: 0 0 12px; }
.tpd-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.tpd-card-price { font-weight: 700; color: #1a5a8a; font-size: .9rem; }
.tpd-card-cta { font-size: .85rem; color: #1a5a8a; font-weight: 600; }

/* Carousel nav buttons */
.tpd-carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s;
    z-index: 5;
    color: #444;
}
.tpd-carousel-btn:hover { border-color: #1a5a8a; background: #f0f6fc; color: #1a5a8a; }
.tpd-carousel-prev { margin-right: 10px; }
.tpd-carousel-next { margin-left: 10px; }

/* Carousel dots */
.tpd-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.tpd-carousel-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.tpd-carousel-dot.is-active { background: #1a5a8a; }

/* =====================================================
   DESTINATION DETAIL PAGE
   ===================================================== */
.tpd-dest { max-width: 1100px; margin: 0 auto; }

/* Hero */
.tpd-hero {
    width: 100%;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.tpd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}
.tpd-title { color: #fff; font-size: 2.4rem; font-weight: 800; margin: 0 0 8px; text-shadow: 0 2px 10px rgba(0,0,0,.4); line-height: 1.2; }
.tpd-title-plain { color: #111; padding: 20px 0 0; }
.tpd-hero-subtitle { color: rgba(255,255,255,.9); font-size: 1.1rem; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.3); }

/* Meta bar */
.tpd-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    background: #f4f6f8;
    border-radius: 0 0 10px 10px;
    padding: 14px 22px;
    margin-bottom: 36px;
    font-size: .9rem;
    color: #555;
}
.tpd-meta-item { display: flex; align-items: center; gap: 6px; }
.tpd-meta-price { color: #1a5a8a; font-weight: 700; font-size: 1rem; }
.tpd-tags { flex-wrap: wrap; gap: 5px; }

/* Inclusions */
.tpd-inclusions-list {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}
.tpd-inclusions-list li {
    padding: 10px 14px 10px 36px;
    background: #f9f9f9;
    border-left: 3px solid #2d8a4e;
    border-radius: 5px;
    font-size: .92rem;
    position: relative;
    line-height: 1.4;
}
.tpd-inclusions-list li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: #2d8a4e;
    font-weight: 700;
}

/* Itinerary */
.tpd-days { display: flex; flex-direction: column; gap: 0; }
.tpd-day {
    display: flex;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}
.tpd-day:last-child { border-bottom: none; }
.tpd-day-number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: #1a5a8a;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    padding: 6px;
}
.tpd-day-content { flex: 1; }
.tpd-day-title { font-size: 1rem; font-weight: 700; margin: 0 0 5px; color: #111; }
.tpd-day-desc { font-size: .9rem; color: #555; margin: 0 0 5px; line-height: 1.5; }
.tpd-day-hotel { font-size: .82rem; color: #888; margin: 0; }

/* Gallery */
.tpd-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}
.tpd-gallery-item {
    border-radius: 7px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
}
.tpd-gallery-item a { display: block; height: 100%; }
.tpd-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
    display: block;
}
.tpd-gallery-item:hover img { transform: scale(1.06); }
.tpd-gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.55);
    color: #fff; font-size: .76rem;
    padding: 6px 8px;
    transform: translateY(100%);
    transition: transform .25s;
}
.tpd-gallery-item:hover .tpd-gallery-caption { transform: translateY(0); }

/* Lightbox */
.tpd-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
}
.tpd-lightbox-bg { position: absolute; inset: 0; background: rgba(0,0,0,.9); cursor: pointer; }
.tpd-lightbox-inner { position: relative; z-index: 1; max-width: 90vw; text-align: center; }
.tpd-lightbox-inner img { max-width: 100%; max-height: 82vh; border-radius: 5px; display: block; margin: 0 auto; }
#tpd-lb-caption { color: #ccc; margin-top: 10px; font-size: .9rem; }
.tpd-lb-close {
    position: absolute; top: -40px; right: 0;
    background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer;
}
.tpd-lb-prev, .tpd-lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none; color: #fff;
    font-size: 1.8rem; padding: 8px 14px; cursor: pointer; border-radius: 5px;
    transition: background .2s;
}
.tpd-lb-prev { left: -60px; }
.tpd-lb-next { right: -60px; }
.tpd-lb-prev:hover, .tpd-lb-next:hover { background: rgba(255,255,255,.3); }

/* Map */
.tpd-map-wrap { border-radius: 8px; overflow: hidden; border: 1px solid #e0e0e0; }
.tpd-map-wrap iframe { display: block; }

/* Inquiry form */
.tpd-inquiry {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 36px;
}
.tpd-inquiry-note { color: #777; font-size: .9rem; margin-top: -10px; margin-bottom: 24px; }
.tpd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tpd-fg { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.tpd-fg label { font-weight: 600; font-size: .88rem; color: #444; }
.req { color: #c0392b; }
.tpd-hint { font-weight: 400; color: #999; font-size: .8rem; }
.tpd-fg input[type="text"],
.tpd-fg input[type="email"],
.tpd-fg input[type="tel"],
.tpd-fg input[type="number"],
.tpd-fg textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: .93rem;
    font-family: inherit;
    background: #fff;
    width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.tpd-fg input:focus, .tpd-fg textarea:focus {
    outline: none;
    border-color: #1a5a8a;
    box-shadow: 0 0 0 3px rgba(26,90,138,.12);
}
.tpd-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 7px;
    margin-top: 8px;
}
.tpd-years { grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 10px; }
.tpd-chk { display: flex; align-items: center; gap: 5px; font-size: .86rem; cursor: pointer; font-weight: 400; }
.tpd-radios { display: flex; gap: 20px; margin-top: 6px; }
.tpd-radios label { display: flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.tpd-submit {
    background: #1a5a8a; color: #fff;
    border: none; padding: 13px 40px;
    font-size: 1rem; font-weight: 700;
    border-radius: 6px; cursor: pointer;
    transition: background .2s;
}
.tpd-submit:hover { background: #154a72; }
.tpd-submit:disabled { background: #999; cursor: not-allowed; }
.tpd-msg {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: .93rem;
    font-weight: 500;
}
.tpd-msg.success { background: #e6f4ea; color: #2d6a4f; border: 1px solid #b7dfc5; }
.tpd-msg.error   { background: #fdecea; color: #a93226; border: 1px solid #f5c6c2; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .tpd-reel { height: 380px; }
    .tpd-reel-overlay { padding: 24px; }
    .tpd-reel-title { font-size: 1.6rem; }
    .tpd-reel-nav { display: none; }
    .tpd-card { flex: 0 0 260px; }
    .tpd-form-row { grid-template-columns: 1fr; }
    .tpd-hero { min-height: 280px; }
    .tpd-title { font-size: 1.6rem; }
    .tpd-hero-overlay { padding: 22px; }
    .tpd-lb-prev { left: -40px; }
    .tpd-lb-next { right: -40px; }
    .tpd-inquiry { padding: 20px 16px; }
    .tpd-gallery { grid-template-columns: repeat(2, 1fr); }
}
