/*
  Travellerscart Travel Packages — front-end styles.
  Brand: deep green + white/light backgrounds + gold used sparingly for
  premium accents, per the supplied brochure identity. Loaded only on
  package pages / pages using the plugin's shortcodes.
*/

/*
  Defined on :root (not scoped to .tc-container) because the enquiry
  modal and the mobile sticky bar are injected directly into wp_footer,
  outside any .tc-container wrapper — they still need these tokens.
*/
:root {
  --tc-green: #0f4c33;
  --tc-green-dark: #0a3524;
  --tc-green-light: #e7efe9;
  --tc-gold: #c8a13c;
  --tc-ink: #1a1f1c;
  --tc-muted: #5c655f;
  --tc-border: #e3e7e1;
  --tc-bg: #fafaf8;
  --tc-radius: 6px;
  --tc-shadow: 0 2px 6px rgba(15, 76, 51, 0.08), 0 10px 30px rgba(15, 76, 51, 0.08);
}
.tc-container, .tc-container *,
.tc-single__body, .tc-single__body *,
.tc-hero__overlay, .tc-hero__overlay * { box-sizing: border-box; }

.tc-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.tc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-size: .95rem; text-decoration: none; text-align: center;
  padding: .8em 1.5em; border-radius: var(--tc-radius); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1.2;
}
.tc-btn--primary { background: var(--tc-green); color: #fff; }
.tc-btn--primary:hover { background: var(--tc-green-dark); transform: translateY(-1px); }
.tc-btn--outline { background: #fff; color: var(--tc-green); border-color: var(--tc-green); }
.tc-btn--outline:hover { background: var(--tc-green-light); }
.tc-btn--whatsapp { background: #25D366; color: #08321f; }
.tc-btn--whatsapp:hover { filter: brightness(0.95); }
.tc-btn--large { padding: 1em 1.9em; font-size: 1rem; }
.tc-btn:focus-visible { outline: 2px solid var(--tc-gold); outline-offset: 2px; }

/* ---------- card grid (listing pages, homepage sections) ---------- */
.tc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px;
  margin: 0; padding: 0;
}
.tc-card {
  background: #fff; border: 1px solid var(--tc-border); border-radius: var(--tc-radius);
  overflow: hidden; box-shadow: var(--tc-shadow); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tc-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(15,76,51,.14), 0 16px 36px rgba(15,76,51,.1); }
.tc-card__media { display: block; aspect-ratio: 4 / 3; background: var(--tc-green-light); overflow: hidden; }
.tc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-card__media-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--tc-green-light), #fff); }
.tc-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tc-card__title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.tc-card__title a { color: var(--tc-ink); text-decoration: none; }
.tc-card__title a:hover { color: var(--tc-green); }
.tc-card__duration { color: var(--tc-muted); font-size: .85rem; }
.tc-card__destinations { color: var(--tc-muted); font-size: .82rem; }
.tc-card__price { margin-top: 6px; display: flex; align-items: baseline; gap: .5em; }
.tc-card__price-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tc-muted); }
.tc-card__price-value { font-size: 1.25rem; font-weight: 700; color: var(--tc-green); }
.tc-card__actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.tc-card__actions .tc-btn { flex: 1; padding: .7em 1em; font-size: .88rem; }
.tc-empty { color: var(--tc-muted); font-style: italic; }

/* ---------- single package hero ---------- */
.tc-hero {
  background-color: var(--tc-green-dark); background-size: cover; background-position: center;
  position: relative; color: #fff;
}
.tc-hero__overlay {
  background: linear-gradient(180deg, rgba(10,53,36,.55) 0%, rgba(10,53,36,.85) 100%);
  padding: 90px 0 56px;
}
.tc-hero__title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .4em; text-wrap: balance; }
.tc-hero__duration { font-size: 1rem; opacity: .9; margin-bottom: .6em; }
.tc-hero__price { display: flex; align-items: baseline; gap: .6em; margin-bottom: 1.6em; }
.tc-hero__price span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.tc-hero__price strong { font-size: 1.9rem; color: var(--tc-gold); }
.tc-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- single package body ---------- */
.tc-single__body { padding: 56px 24px 40px; }
.tc-section { padding: 32px 0; border-bottom: 1px solid var(--tc-border); }
.tc-section:last-child { border-bottom: none; }
.tc-section h2 { color: var(--tc-green); font-size: 1.5rem; margin: 0 0 .8em; }
.tc-lede { font-size: 1.05rem; color: var(--tc-ink); max-width: 65ch; }
.tc-content { color: var(--tc-ink); max-width: 70ch; }
.tc-placeholder { color: var(--tc-muted); font-style: italic; }
.tc-note { color: var(--tc-muted); font-size: .85rem; margin-top: .8em; }
.tc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tc-list li { padding-left: 1.6em; position: relative; color: var(--tc-ink); }
.tc-list li::before { content: '✓'; position: absolute; left: 0; color: var(--tc-green); font-weight: 700; }
.tc-list--destinations { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-list--destinations li { padding: .4em 1em; background: var(--tc-green-light); border-radius: 999px; color: var(--tc-green-dark); font-size: .9rem; }
.tc-list--destinations li::before { content: none; }
.tc-grid--info, .tc-grid--terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.tc-grid--info { grid-template-columns: repeat(4, 1fr); }
.tc-grid--info .tc-section, .tc-grid--terms .tc-section { padding: 32px 0; }
.tc-section--cta { background: var(--tc-green-light); border-radius: var(--tc-radius); padding: 40px; text-align: center; border-bottom: none; }
.tc-section--cta h2 { margin-bottom: .3em; }
.tc-section--cta .tc-hero__actions { justify-content: center; margin-top: 1.2em; }
.tc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tc-gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--tc-radius); }

@media (max-width: 760px) {
  .tc-hero__overlay { padding: 64px 0 40px; }
  .tc-grid--info { grid-template-columns: repeat(2, 1fr); }
  .tc-grid--terms { grid-template-columns: 1fr; }
  .tc-single__body { padding-bottom: 96px; } /* room for sticky bar */
}

/* ---------- enquiry modal ---------- */
.tc-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.tc-modal.is-open { display: block; }
.tc-modal__backdrop { position: absolute; inset: 0; background: rgba(10,20,15,.55); }
.tc-modal__panel {
  position: relative; background: #fff; max-width: 480px; width: 92%; margin: 6vh auto;
  max-height: 88vh; overflow-y: auto; border-radius: var(--tc-radius); padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.tc-modal__close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--tc-muted); }
.tc-modal h3 { color: var(--tc-green); margin: 0 0 .2em; font-size: 1.3rem; }
.tc-modal__package { color: var(--tc-muted); font-size: .9rem; margin: 0 0 1.2em; }
.tc-modal__whatsapp { margin-top: 1em; font-size: .88rem; color: var(--tc-muted); }
.tc-modal__whatsapp a { color: var(--tc-green); font-weight: 600; text-decoration: none; }

.tc-form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.tc-form-row > span, .tc-form-row input, .tc-form-row textarea { flex: 1; }
.wpcf7-form input[type=text], .wpcf7-form input[type=tel], .wpcf7-form input[type=email],
.wpcf7-form input[type=date], .wpcf7-form input[type=number], .wpcf7-form textarea,
.tc-fallback-form input, .tc-fallback-form textarea {
  width: 100%; padding: .7em .85em; border: 1px solid var(--tc-border); border-radius: var(--tc-radius);
  font-family: inherit; font-size: .92rem; margin-bottom: 0;
}
.wpcf7-form textarea, .tc-fallback-form textarea { min-height: 80px; }
.wpcf7-form input[type=submit], .tc-fallback-form button[type=submit] {
  width: 100%; margin-top: 6px; background: var(--tc-green); color: #fff; border: none;
  padding: .9em; border-radius: var(--tc-radius); font-weight: 600; font-size: .95rem; cursor: pointer;
}
.wpcf7-form input[type=submit]:hover, .tc-fallback-form button[type=submit]:hover { background: var(--tc-green-dark); }
.wpcf7-response-output { border-radius: var(--tc-radius); font-size: .88rem; margin-top: 1em; }
@media (max-width: 480px) { .tc-form-row { flex-direction: column; gap: 8px; } }

/* ---------- sticky mobile bar ---------- */
.tc-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  display: none; gap: 10px; padding: 10px 14px; background: #fff;
  border-top: 1px solid var(--tc-border); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
@media (max-width: 760px) {
  .tc-sticky-bar { display: flex; }
  .tc-sticky-bar .tc-btn { flex: 1; }
}
