/* ============================================================
   Amar — Transfer page
   ============================================================ */

/* ---------- Hero ---------- */
.tr-hero {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 380px;
  display: flex;
}
.tr-hero picture,
.tr-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tr-hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 56px 0;
  background: linear-gradient(
    100deg,
    rgba(22, 58, 46, .93) 0%,
    rgba(22, 58, 46, .78) 45%,
    rgba(22, 58, 46, .25) 100%
  );
}
.tr-hero h1 {
  color: #fff;
  max-width: 70%;
  margin: 10px 0 12px;
}
.tr-lead {
  color: #F0E2CB;
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 24px;
  line-height: 1.6;
}
.tr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #F2E8D8;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.tr-eyebrow i { font-size: 16px; }

.tr-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
}
.btn-white-outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

/* ---------- Առավելություններ ---------- */
.tr-features {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: -46px;
  position: relative;
  z-index: 2;
}
.tr-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 18px rgba(31, 77, 61, .07);
}
.tr-feature i {
  font-size: 24px;
  color: #A34B1E;
  flex-shrink: 0;
  margin-top: 1px;
}
.tr-feature b {
  display: block;
  font-size: 14.5px;
  color: var(--pine);
  margin-bottom: 2px;
}
.tr-feature span {
  font-size: 13px;
  color: var(--muted-text, #5C6159);
  line-height: 1.45;
}

/* ---------- Gallery ---------- */
.tr-gallery {
  grid-template-columns: repeat(3, 1fr);
}
.tr-gallery .main {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 759px) {
  .tr-gallery { grid-template-columns: repeat(2, 1fr); }
  .tr-gallery .main { grid-column: span 2; grid-row: auto; }
  .tr-gallery a:not(.main) { display: block; }
}

.tr-dir {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.tr-dir-opt { position: relative; cursor: pointer; }
.tr-dir-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.tr-dir-opt span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted-text, #5C6159);
  text-align: center;
  background: var(--white);
  transition: border-color .15s, background .15s, color .15s;
}
.tr-dir-opt span i { font-size: 22px; }
.tr-dir-opt input:checked + span {
  border-color: var(--pine);
  background: var(--pine-soft);
  color: var(--pine);
}
.tr-dir-opt input:focus-visible + span {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

.tr-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--white);
  font-size: 14.5px;
  transition: border-color .15s, background .15s;
}
.tr-check:has(input:checked) {
  border-color: var(--pine);
  background: var(--pine-soft);
}
.tr-check input {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  accent-color: var(--pine);
  flex: none;
}
.tr-check span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tr-check i { font-size: 18px; color: #A34B1E; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .tr-hero { min-height: 320px; }
  .tr-hero-overlay {
    padding: 36px 0;
    background: linear-gradient(180deg, rgba(22,58,46,.88) 0%, rgba(22,58,46,.94) 100%);
  }
  .tr-lead { font-size: 15px; }
  .tr-features { margin-top: 18px; }
  .tr-hero-actions .btn { flex: 1 0 100%; justify-content: center; }
}

.search-tabs .tab-link {
    flex: 1;
    min-height: 42px;
    border: 1.5px solid var(--line);
    background: var(--white);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-text, #5C6159);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
    -webkit-tap-highlight-color: transparent;
}
.search-tabs .tab-link:hover,
.search-tabs .tab-link:focus-visible {
    border-color: #A34B1E;
    background: #FFF6F0;
    color: #A34B1E;
}
.search-tabs .tab-link:active { transform: scale(.97); }

.search-tabs .tab-link::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #C9622B;
    flex-shrink: 0;
}

@media (min-width: 760px) {
    .search-tabs button,
    .search-tabs .tab-link {
        font-size: 13.5px;
        padding: 0 8px;
    }
}

@media (max-width: 759px) {
    .search-tabs {
        display: flex !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
        mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    }
    .search-tabs::-webkit-scrollbar { display: none; }

    .search-tabs button,
    .search-tabs .tab-link {
        flex: none !important;
        min-width: 122px;
        white-space: nowrap;
        font-size: 13px;
        padding: 0 12px;
    }
    .search-tabs .tab-link::after { display: none; }
}
