@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --trv-green:  #034705;
    --trv-red:    #e00000;
    --trv-border: #e8e8e8;
    --trv-bg:     #f7f9f7;
    --trv-radius: 14px;
    --trv-shadow: 0 6px 28px rgba(0,0,0,.08);
}

/* ══════════════════════════════════════════════════════════════
   TOUR GRID
══════════════════════════════════════════════════════════════ */
.travelora-grid {
    display: grid;
    gap: 28px;
    margin: 30px 0;
}
.travelora-cols-1 { grid-template-columns: 1fr; }
.travelora-cols-2 { grid-template-columns: repeat(2, 1fr); }
.travelora-cols-3 { grid-template-columns: repeat(3, 1fr); }
.travelora-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .travelora-cols-3, .travelora-cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .travelora-grid { grid-template-columns: 1fr !important; } }

/* Card */
.travelora-card {
    background: #fff;
    border-radius: var(--trv-radius);
    box-shadow: var(--trv-shadow);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.travelora-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.13);
}
.travelora-card__img-wrap {
    display: block; position: relative; overflow: hidden;
    height: 220px;
}
.travelora-card__img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.travelora-card:hover .travelora-card__img-wrap img { transform: scale(1.06); }
.travelora-card__badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--trv-green); color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .8px; padding: 4px 10px; border-radius: 20px;
}
.travelora-card__body { padding: 18px 20px 10px; flex: 1; }
.travelora-card__title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.travelora-card__title a { color: var(--trv-green); text-decoration: none; }
.travelora-card__title a:hover { color: var(--trv-red); }
.travelora-card__excerpt { font-size: 13.5px; color: #666; line-height: 1.6; margin: 0 0 12px; }
.travelora-card__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #888; }
.travelora-card__meta span { display: flex; align-items: center; gap: 4px; }

.travelora-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-top: 1px solid var(--trv-border);
    background: var(--trv-bg);
}
.travelora-card__price-from { font-size: 10px; color: #999; text-transform: uppercase; display: block; }
.travelora-card__price-amount { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 800; color: var(--trv-green); }
.travelora-card__price-pp { font-size: 11px; color: #999; margin-left: 2px; }

/* Buttons */
.travelora-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 20px; border-radius: 8px; font-size: 14px;
    font-weight: 700; cursor: pointer; text-decoration: none;
    transition: .25s; font-family: 'DM Sans', sans-serif; border: none;
}
.travelora-btn--primary {
    background: var(--trv-green); color: #fff;
    box-shadow: 0 4px 12px rgba(3,71,5,.2);
}
.travelora-btn--primary:hover { background: #045e07; transform: translateY(-2px); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   SINGLE TOUR
══════════════════════════════════════════════════════════════ */
.travelora-single__hero {
    border-radius: 16px; overflow: hidden; margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1); max-height: 420px;
}
.travelora-single__hero img { width: 100%; height: 420px; object-fit: cover; display: block; }

.travelora-single__layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px; align-items: start;
}
@media (max-width: 960px) { .travelora-single__layout { grid-template-columns: 1fr; } }

.travelora-single__price-tag {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--trv-red); color: #fff;
    font-weight: 700; font-size: 15px;
    padding: 8px 16px; border-radius: 22px; margin-bottom: 12px;
}

.travelora-single__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0 0 20px;
}

.travelora-single__overview {
    background: var(--trv-bg);
    border-left: 4px solid var(--trv-green);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.travelora-single__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--trv-green);
    margin: 0 0 8px;
}
.travelora-single__overview-text {
    color: #444; line-height: 1.8; font-size: 15px; margin: 0;
}

.travelora-single__content { line-height: 1.8; color: #444; margin-bottom: 24px; }

/* Info table */
.travelora-info-table { width: 100%; border-collapse: collapse; border: 1px solid var(--trv-border); border-radius: 10px; overflow: hidden; }
.travelora-info-table th { background: var(--trv-bg); padding: 14px 18px; width: 28%; font-weight: 700; color: var(--trv-green); border: 1px solid var(--trv-border); text-align: left; font-size: 14px; }
.travelora-info-table td { padding: 14px 18px; border: 1px solid var(--trv-border); color: #555; font-size: 14px; line-height: 1.7; }

/* Included / Excluded lists */
.travelora-check-list, .travelora-x-list { list-style: none; margin: 0; padding: 0; }
.travelora-check-list li, .travelora-x-list li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 5px; font-size: 14px; }
.trv-check { width: 16px; height: 16px; stroke: #27ae60; fill: none; stroke-width: 2.5; flex-shrink: 0; margin-top: 2px; }
.trv-x     { width: 16px; height: 16px; stroke: #e74c3c; fill: none; stroke-width: 2.5; flex-shrink: 0; margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   BOOKING WIDGET
══════════════════════════════════════════════════════════════ */
.travelora-booking-widget {
    position: sticky; top: 24px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    overflow: hidden;
}

/* Widget header */
.trv-widget-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    background: var(--trv-green); padding: 22px 24px;
}
.trv-widget-header h4 { margin: 0; color: #fff; font-family: 'Playfair Display', serif; font-size: 1.3rem; }
.trv-widget-price { text-align: right; color: #fff; }
.trv-widget-price { font-size: 1.4rem; font-weight: 800; }
.trv-widget-price span { display: block; font-size: 11px; opacity: .7; text-transform: uppercase; margin-top: 2px; }

/* Form */
.trv-form { padding: 22px 24px; }
.trv-field { margin-bottom: 14px; }
.trv-field label { display: block; font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.trv-field input,
.trv-field select,
.trv-field textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid #ddd;
    border-radius: 8px; font-size: 14px; font-family: 'DM Sans', sans-serif;
    transition: .2s; background: #fff; box-sizing: border-box;
}
.trv-field input:focus,
.trv-field select:focus,
.trv-field textarea:focus { border-color: var(--trv-green); outline: none; box-shadow: 0 0 0 3px rgba(3,71,5,.08); }
.trv-field textarea { resize: vertical; }
.trv-field-row { display: flex; gap: 10px; }
.trv-field-row .trv-field { flex: 1; }
.trv-field-note { font-size: 12px; color: #c0392b; display: block; margin-top: 5px; font-weight: 600; }
.trv-error { font-size: 12px; color: #e74c3c; display: none; margin-top: 4px; }
.trv-error.show { display: block; }
.trv-field input.is-invalid,
.trv-field select.is-invalid,
.trv-field textarea.is-invalid { border-color: #e74c3c !important; }

/* Price preview */
.trv-price-preview {
    display: flex; justify-content: space-between; align-items: center;
    background: #f0f7f0; border: 1px dashed #a8d5a8;
    border-radius: 8px; padding: 10px 14px; margin-bottom: 16px;
}
.trv-price-preview__label { font-size: 12px; font-weight: 700; color: var(--trv-green); text-transform: uppercase; }
.trv-price-preview__amount { font-size: 1.2rem; font-weight: 800; color: var(--trv-green); }

/* Form error */
.trv-form-error {
    background: #fdecea; border-left: 3px solid #e74c3c;
    color: #c0392b; font-size: 13px; padding: 10px 14px;
    border-radius: 4px; margin-bottom: 14px;
}

/* Buttons */
.trv-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border: none; padding: 15px 20px; border-radius: 10px;
    font-weight: 700; font-size: 15px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; transition: .25s; letter-spacing: .2px;
}
.trv-btn--book {
    background: var(--trv-red); color: #fff;
    box-shadow: 0 6px 18px rgba(224,0,0,.25);
}
.trv-btn--book:hover { background: #b50000; transform: translateY(-2px); }
.trv-btn--payfast {
    background: var(--trv-green); color: #fff;
    box-shadow: 0 6px 20px rgba(3,71,5,.25);
}
.trv-btn--payfast:hover { background: #045e07; transform: translateY(-2px); }
.trv-btn--payfast svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.trv-btn__arrow { margin-left: auto; opacity: .7; }
.trv-btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ── SUMMARY STEP ── */
.trv-step--summary { padding: 24px; }

.trv-back-btn {
    background: none; border: none; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--trv-green);
    display: flex; align-items: center; gap: 6px; padding: 0;
    margin-bottom: 18px; transition: gap .2s; font-family: 'DM Sans', sans-serif;
}
.trv-back-btn:hover { gap: 10px; }

.trv-summary__hero {
    background: var(--trv-green); border-radius: 12px;
    padding: 20px 22px; margin-bottom: 18px;
}
.trv-summary__label { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,.5); text-transform: uppercase; margin-bottom: 6px; }
.trv-summary__tour-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.trv-summary__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.trv-summary__badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.85); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 500; }

.trv-summary__section-title { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #999; margin-bottom: 10px; }
.trv-summary__details { background: var(--trv-bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.trv-detail-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed #e8e8e8; }
.trv-detail-row:last-child { border-bottom: none; }
.trv-detail-row span { color: #888; }
.trv-detail-row strong { color: #222; text-align: right; max-width: 60%; word-break: break-word; }

.trv-price-breakdown { background: #f0faf0; border: 1px solid #c8e6c9; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.trv-price-row { display: flex; justify-content: space-between; font-size: 13.5px; color: #555; padding: 5px 0; border-bottom: 1px dashed #d4ead4; }
.trv-price-row:last-child { border-bottom: none; }
.trv-price-row--total { font-size: 15px; color: var(--trv-green); border-top: 2px solid #a5d6a7 !important; margin-top: 6px; padding-top: 12px !important; }
.trv-price-row--total strong { font-size: 1.2rem; font-weight: 800; }

.trv-secure-note {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 11.5px; color: #888; margin-top: 10px; text-align: center;
    flex-wrap: wrap;
}
.trv-secure-note svg { width: 13px; height: 13px; fill: #27ae60; stroke: none; }

/* Loading overlay inside widget */
.trv-loading {
    position: absolute; inset: 0; background: rgba(255,255,255,.92);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; border-radius: 16px; z-index: 10;
}
.trv-loading p { font-weight: 600; color: var(--trv-green); font-size: 14px; margin: 0; }
.trv-spinner {
    width: 40px; height: 40px; border: 3px solid #e0e0e0;
    border-top-color: var(--trv-green); border-radius: 50%;
    animation: trv-spin .75s linear infinite;
}
@keyframes trv-spin { to { transform: rotate(360deg); } }

/* Booking widget relative for overlay */
.travelora-booking-widget { position: relative; }

/* Note box */
.travelora-note-box {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fffbf0; border-left: 4px solid #f39c12;
    padding: 14px 16px; border-radius: 4px; margin-top: 16px;
}
.travelora-note-box svg { width: 18px; height: 18px; fill: none; stroke: #f39c12; stroke-width: 2; flex-shrink: 0; margin-top: 1px; }
.travelora-note-box p { font-size: 13px; color: #7a6522; margin: 0; line-height: 1.6; font-style: italic; }

/* No tours */
.travelora-no-tours { color: #666; padding: 20px 0; }

/* ── Hide duplicate theme title on single tour pages ───────────
   Most themes render an <h1 class="entry-title"> ABOVE the_content().
   Our template already shows the price tag + tour details, so we
   suppress the raw theme title to prevent it appearing twice.       */
.single-travelora_tour .entry-title,
.single-travelora_tour .post-title,
.single-travelora_tour h1.page-title,
.single-travelora_tour .page-header,
.single-travelora_tour .entry-header .entry-title,
.single-travelora_tour .post-header .post-title {
    display: none !important;
}
