/* ============================================================
   guide-maya.css — стили страницы авторского тура (guide-maya.php)
   Подключается ПОСЛЕ guide.css — переиспользует его палитру (--g-*),
   собственные классы .tm-*
   ============================================================ */

@keyframes tm-fade-up { from { opacity:0; transform:translateY(14px);} to { opacity:1; transform:translateY(0);} }
@keyframes tm-fade-in { from { opacity:0;} to { opacity:1;} }

.tm-page {
  background: var(--g-bg);
  color: var(--g-text);
  font-family: "Roboto Condensed", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============ HERO ============ */
.tm-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 64px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20,17,13,.25) 0%, rgba(20,17,13,.6) 55%, rgba(20,17,13,.97) 100%),
    url('/assets/images/tour/hero-fortress.jpg') center 60% / cover no-repeat;
}
.tm-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
  animation: tm-fade-up .7s ease;
}
.tm-eyebrow {
  display: inline-block;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 11px;
  color: var(--g-gold);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(230,175,75,.3);
}
.tm-title {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 300;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #fff;
  margin: 0 0 22px;
}
.tm-title strong { font-weight: 700; }
.tm-quote {
  font-family: Volkhov, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--g-text-2);
  max-width: 620px;
  line-height: 1.6;
  margin: 0 0 40px;
}

.tm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
  max-width: 520px;
  padding-top: 28px;
  border-top: 1px solid var(--g-line-hi);
  margin-bottom: 40px;
}
.tm-stats > div { padding-right: 20px; border-right: 1px solid var(--g-line); }
.tm-stats > div:last-child { border-right: 0; padding-right: 0; padding-left: 20px; }
.tm-stats > div:nth-child(2) { padding-left: 20px; padding-right: 20px; }
.tm-stats .v { font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: 26px; color: #fff; margin-bottom: 8px; }
.tm-stats .l { font-family: Volkhov, serif; font-style: italic; font-size: 12.5px; color: var(--g-muted); }

.tm-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tm-actions a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 11px;
  text-decoration: none; transition: all .2s;
  border: 1px solid var(--g-line-hi); color: var(--g-text);
}
.tm-actions a:hover { background: var(--g-card-hi); color: #fff; border-color: var(--g-gold-dim); }
.tm-actions a.primary { background: var(--g-gold); color: #1a1714; border-color: var(--g-gold); font-weight: 600; }
.tm-actions a.primary:hover { background: #fff; border-color: #fff; color: #1a1714; }

/* ============ BODY / SECTIONS ============ */
.tm-body { padding: 88px 0 40px; }
.tm-section { margin-bottom: 64px; scroll-margin-top: 24px; }
.tm-section .sec-eyebrow {
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: 4px;
  font-size: 11px; color: var(--g-muted);
  margin: 0 0 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--g-line);
}
.tm-section h2 {
  font-family: "Roboto Condensed", sans-serif; font-weight: 300;
  font-size: 34px; color: #fff; margin: 0 0 28px; letter-spacing: -.5px;
}
.tm-section h2 strong { font-weight: 700; }
.tm-lead { font-family: Volkhov, serif; font-style: italic; font-size: 15px; color: var(--g-text-2); margin: 0 0 32px; }

/* ============ INCLUDED ============ */
.tm-included-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.tm-card { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 4px; padding: 24px 22px; }
.tm-card.span-2 { grid-column: span 2; }
.tm-card .ic { color: var(--g-gold); font-size: 22px; margin-bottom: 18px; }
.tm-card h4 { font-family: "Roboto Condensed", sans-serif; font-weight: 600; font-size: 15px; color: #fff; margin: 0 0 10px; }
.tm-card p { font-family: Volkhov, serif; font-style: italic; font-size: 13.5px; color: var(--g-text-2); line-height: 1.6; margin: 0; }

/* ============ ITINERARY ============ */
.tm-day { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 4px; margin-bottom: 12px; overflow: hidden; }
.tm-day-head {
  width: 100%; display: flex; align-items: center; gap: 20px;
  padding: 22px 26px; background: transparent; border: none; cursor: pointer;
  text-align: left; color: var(--g-text); font: inherit;
}
.tm-day-head .n { font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: 22px; color: var(--g-gold); width: 40px; flex-shrink: 0; }
.tm-day-head .mid { flex: 1; }
.tm-day-head .t { display: block; font-family: "Roboto Condensed", sans-serif; font-weight: 600; font-size: 16px; color: #fff; margin-bottom: 4px; }
.tm-day-head .m { display: block; font-family: Volkhov, serif; font-style: italic; font-size: 13px; color: var(--g-muted); }
.tm-day-head .chev { color: var(--g-muted); font-size: 14px; flex-shrink: 0; width: 14px; text-align: center; }
.tm-day-body { display: none; padding: 0 26px 26px 86px; }
.tm-day.open .tm-day-body { display: block; animation: tm-fade-in .3s ease; }
.tm-day-body .pt {
  display: flex; gap: 12px; padding: 6px 0;
  color: var(--g-text-2); font-family: Volkhov, serif; font-style: italic;
  font-size: 14.5px; line-height: 1.65;
}
.tm-day-body .pt::before { content: "—"; color: var(--g-gold); flex-shrink: 0; }

/* ============ GALLERY ============ */
.tm-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 140px; gap: 12px; }
.tm-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; cursor: pointer; border: 1px solid var(--g-line); }
.tm-gallery .g-1 { grid-column: span 7; grid-row: span 3; }
.tm-gallery .g-2 { grid-column: span 5; grid-row: span 3; }
.tm-gallery .g-3, .tm-gallery .g-4, .tm-gallery .g-5 { grid-column: span 4; grid-row: span 2; }

/* ============ PRICE ============ */
.tm-price-card { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 4px; padding: 30px 32px; }
.tm-price-card h4 { font-family: "Roboto Condensed", sans-serif; font-weight: 600; font-size: 18px; color: #fff; margin: 0 0 14px; }
.tm-price-card p { font-family: Volkhov, serif; font-style: italic; font-size: 15px; color: var(--g-text-2); line-height: 1.75; margin: 0 0 10px; }
.tm-price-card p.fine { font-size: 13.5px; color: var(--g-muted); margin: 0; }

/* ============ GUIDE ============ */
.tm-guide { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.tm-guide img { width: 100%; height: 340px; object-fit: cover; border-radius: 4px; border: 1px solid var(--g-line); }
.tm-guide .lead { font-family: Volkhov, serif; font-style: italic; font-size: 16.5px; color: var(--g-text); line-height: 1.75; margin: 0 0 18px; }
.tm-guide p { font-family: Volkhov, serif; font-style: italic; font-size: 15px; color: var(--g-text-2); line-height: 1.75; margin: 0 0 18px; }
.tm-guide .name { font-family: "Roboto Condensed", sans-serif; font-weight: 600; font-size: 15px; color: #fff; }
.tm-guide .role { font-family: Volkhov, serif; font-style: italic; font-size: 13px; color: var(--g-muted); }

/* ============ REQUEST FORM ============ */
.tm-form-card { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 4px; padding: 32px; }
.tm-form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
.tm-form-field { margin-bottom: 20px; }
.tm-form-field:last-of-type { margin-bottom: 8px; }
.tm-form-card label {
  display: block; font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 10.5px;
  color: var(--g-muted); margin-bottom: 8px;
}
.tm-form-card input, .tm-form-card textarea {
  width: 100%; box-sizing: border-box;
  background: var(--g-bg); border: 1px solid var(--g-line-hi); border-radius: 3px;
  padding: 12px 14px; color: var(--g-text); font-family: "Roboto Condensed", sans-serif; font-size: 14px;
}
.tm-form-card input.short { max-width: 220px; }
.tm-form-card textarea { resize: vertical; }
.tm-form-error { color: #e08a8a; font-family: Volkhov, serif; font-style: italic; font-size: 13.5px; margin: 14px 0 0; }
.tm-submit {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; background: var(--g-gold); color: #1a1714; border: none; border-radius: 3px;
  font-family: "Roboto Condensed", sans-serif; text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 11px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.tm-submit:hover { background: #fff; }
.tm-submit:disabled { opacity: .6; cursor: default; }

.tm-form-success { text-align: center; padding: 36px; }
.tm-form-success .ico { color: var(--g-green); font-size: 30px; margin-bottom: 16px; }
.tm-form-success h4 { font-family: "Roboto Condensed", sans-serif; font-weight: 600; font-size: 18px; color: #fff; margin: 0 0 8px; }
.tm-form-success p { font-family: Volkhov, serif; font-style: italic; font-size: 14.5px; color: var(--g-text-2); margin: 0; }

/* ============ LIGHTBOX ============ */
.tm-lightbox {
  position: fixed; inset: 0; background: rgba(10,8,6,.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; padding: 40px; box-sizing: border-box; cursor: zoom-out;
  animation: tm-fade-in .2s ease;
}
.tm-lightbox[hidden] { display: none; }
.tm-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .tm-title { font-size: 44px; }
  .tm-included-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-card.span-2 { grid-column: span 2; }
  .tm-guide { grid-template-columns: 1fr; }
  .tm-guide img { height: 280px; max-width: 320px; }
  .tm-body { padding-top: 64px; }
}
@media (max-width: 640px) {
  .tm-hero { padding-bottom: 48px; }
  .tm-title { font-size: 34px; }
  .tm-stats { grid-template-columns: 1fr; gap: 16px; }
  .tm-stats > div { border-right: 0 !important; padding: 0 !important; }
  .tm-included-grid { grid-template-columns: 1fr; }
  .tm-card.span-2 { grid-column: span 1; }
  .tm-day-head { padding: 18px 18px; gap: 14px; }
  .tm-day-body { padding: 0 18px 22px 58px; }
  .tm-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .tm-gallery .g-1, .tm-gallery .g-2, .tm-gallery .g-3, .tm-gallery .g-4, .tm-gallery .g-5 { grid-column: span 1; grid-row: span 1; }
  .tm-form-row { grid-template-columns: 1fr; }
}
