/* ==========================================================
   Trải Nghiệm Vùng Cao - stylesheet dùng chung cho cả 3 trang
   ========================================================== */

:root {
  --green: #1f5d46;
  --green-dark: #143f2f;
  --green-soft: #e4f0e9;
  --amber: #e8923a;
  --amber-dark: #c9741d;
  --cream: #fbf6ec;
  --ink: #1d2b26;
  --muted: #5d6b64;
  --line: #e6dfd0;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 63, 47, 0.12);
  --maxw: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--amber-dark); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--green-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--white { background: var(--white); }
.section--green { background: var(--green-dark); color: #e9f2ed; }
.section--green h2, .section--green h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: .6rem;
}
.section--green .eyebrow { color: #f4b574; }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--green-dark); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #fff; box-shadow: 0 8px 20px rgba(232, 146, 58, .35); }
.btn--primary:hover { background: var(--amber-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--green-dark); }
.btn--outline { border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 246, 236, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--green-dark); }
.brand:hover { color: var(--green-dark); }
/* Logo tròn: cắt vừa vòng tròn để ẩn nền đen ở bốn góc ảnh */
.brand-logo { width: 52px; height: 52px; border-radius: 50%; clip-path: circle(49%); object-fit: cover; flex: none; }
.site-footer .brand-logo { width: 60px; height: 60px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink); }
.nav-links a:hover { background: var(--green-soft); color: var(--green-dark); }
.nav-links a[aria-current="page"] { background: var(--green); color: #fff; }
.nav-links .btn { padding: 9px 20px; margin-left: 6px; color: #fff; }
.nav-links .btn:hover { background: var(--amber-dark); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; border-radius: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--green-dark); position: relative; transition: .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); padding: 14px 16px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 6px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #14392c 0%, #1f5d46 55%, #3e8a66 100%);
  padding: clamp(64px, 10vw, 120px) 0 clamp(150px, 20vw, 240px);
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { font-style: normal; color: #ffc48a; }
.hero p { font-size: 1.2rem; max-width: 52ch; color: #e3efe8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-sun {
  position: absolute; right: 12%; top: 60px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, #ffd9a8 0%, #f6a95a 60%, rgba(246,169,90,0) 72%);
  opacity: .9;
}
.hero-mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; }
.hero .container { position: relative; z-index: 2; }

.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #14392c 0%, #1f5d46 100%);
  padding: 64px 0 120px;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: #dcebe3; max-width: 56ch; font-size: 1.1rem; margin: 0; }
.page-hero .hero-mountains { opacity: .95; }
.page-hero .container { position: relative; z-index: 2; }

/* ---------- Stats ---------- */
.stats {
  margin-top: -64px; position: relative; z-index: 5;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); margin-bottom: 18px;
}
.icon-badge svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Campaign ---------- */
.campaign {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
}
.campaign-visual {
  min-height: 320px;
  background: linear-gradient(160deg, #f6c58a 0%, #e8923a 45%, #1f5d46 100%);
  position: relative;
}
.campaign-visual svg { position: absolute; inset: auto 0 0 0; width: 100%; }
.campaign-body { padding: clamp(24px, 4vw, 48px); }
.tag {
  display: inline-block; background: var(--green-soft); color: var(--green-dark);
  font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.progress { height: 12px; border-radius: 999px; background: #efe8d8; overflow: hidden; margin: 18px 0 8px; }
.progress > span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--green));
  transition: width 1.4s ease;
}
.progress-meta { display: flex; justify-content: space-between; font-size: .95rem; color: var(--muted); }
.progress-meta strong { color: var(--green-dark); }

.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.amount {
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  font: inherit; font-weight: 700; cursor: pointer; color: var(--green-dark); transition: .15s;
}
.amount:hover { border-color: var(--green); }
.amount[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.donate-note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; min-height: 1.4em; }

@media (max-width: 860px) {
  .campaign { grid-template-columns: 1fr; }
  .campaign-visual { min-height: 220px; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
  background: var(--amber); color: #fff;
}
.step p { color: #c9ddd2; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.quote { background: var(--green-soft); border-radius: var(--radius); padding: 28px; position: relative; }
.quote::before {
  content: "“"; position: absolute; top: 4px; left: 18px; font-size: 4rem; line-height: 1;
  color: var(--amber); font-family: Georgia, serif;
}
.quote p { padding-top: 26px; font-size: 1.05rem; }
.quote footer { font-weight: 700; color: var(--green-dark); }
.quote footer span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--amber) 0%, #f2a95c 100%);
  color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; max-width: 52ch; }
.cta-band .btn { background: #fff; color: var(--amber-dark); }
.cta-band .btn:hover { background: var(--green-dark); color: #fff; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.illustration {
  border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #ffe2bd 0%, #f4b574 55%, #2e7a58 100%);
  position: relative; box-shadow: var(--shadow);
}
.illustration svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.press-card { display: flex; flex-direction: column; }
.press-source { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-dark); }
.press-date { font-size: .9rem; color: var(--muted); margin: 2px 0 12px; }
.press-card h3 { margin-bottom: 16px; }
.press-link { margin-top: auto; font-weight: 700; color: var(--green); }
.press-link:hover { color: var(--green-dark); }
.illustration--photo { aspect-ratio: 3 / 2; background: var(--cream); }
.illustration--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--green-soft); }
.timeline li { position: relative; padding: 0 0 32px 24px; }
.timeline li::before {
  content: ""; position: absolute; left: -38px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber); border: 4px solid var(--cream);
}
.timeline time { font-weight: 800; color: var(--amber-dark); }
.timeline h3 { margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--muted); }

.team-card { text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-size: 2rem; font-weight: 800; color: #fff;
}
.team-card .role { color: var(--amber-dark); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.pill-list li { background: var(--green-soft); color: var(--green-dark); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 14px; }
.info-list .icon-badge { margin: 0; flex: none; width: 48px; height: 48px; border-radius: 14px; }
.info-list strong { display: block; color: var(--green-dark); }
.info-list span, .info-list a { color: var(--muted); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--green-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fffdf8;
  font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 93, 70, .15);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.error-msg { display: none; color: #c0392b; font-size: .88rem; margin-top: 4px; }
.field.invalid .error-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-success {
  display: none; background: var(--green-soft); border: 1px solid #b9d8c7; color: var(--green-dark);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; font-weight: 600;
}
.form-success.show { display: block; }

.bank { background: var(--green-dark); color: #e9f2ed; border-radius: var(--radius); padding: 24px; margin-top: 28px; }
.bank h3 { color: #fff; }
.bank dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.bank dt { color: #a9c7b8; }
.bank dd { margin: 0; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; color: var(--green-dark);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--amber-dark); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #c9ddd2; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer a { color: #c9ddd2; }
.site-footer a:hover { color: #ffc48a; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: #ffc48a; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .progress > span { transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Trang Những chuyến đi ---------- */
.trip-toolbar { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  font: inherit; font-weight: 700; color: var(--green-dark); cursor: pointer; transition: .15s;
}
.filter:hover { border-color: var(--green); }
.filter[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

.trip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .trip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .trip-grid { grid-template-columns: 1fr; } }
.trip-card[hidden] { display: none; }
.trip-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Khung ảnh: có ảnh thì hiện ảnh, chưa có ảnh thì hiện ô màu + tên file */
.trip-photo, .gallery-item {
  position: relative; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath fill='%231d5a43' opacity='.55' d='M0 200 80 120l70 70 80-100 90 110 80-60v160H0z'/%3E%3Cpath fill='%2314392c' opacity='.8' d='M0 250c100-25 200-25 400 0v50H0z'/%3E%3C/svg%3E") center bottom / cover no-repeat,
    linear-gradient(160deg, #f6c58a 0%, #e8923a 50%, #3e8a66 100%);
}
.trip-photo { aspect-ratio: 4 / 3; }
.trip-photo img, .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trip-photo.no-img::after, .gallery-item.no-img::after {
  content: "Thêm ảnh: " attr(data-file);
  position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center;
  background: rgba(20, 63, 47, .78); color: #fff; font-size: .78rem; padding: 4px 8px; border-radius: 8px;
}
.trip-year {
  position: absolute; top: 12px; left: 12px; background: var(--amber); color: #fff;
  font-weight: 800; font-size: .8rem; padding: 3px 12px; border-radius: 999px;
}
.trip-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.trip-meta { font-size: .85rem; font-weight: 700; color: var(--amber-dark); margin-bottom: 6px; }
.trip-body p { color: var(--muted); }
.trip-stats {
  list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted);
}
.trip-stats strong { color: var(--green-dark); }
.trip-empty { text-align: center; color: var(--muted); padding: 32px 0; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { aspect-ratio: 1; border: 0; padding: 0; border-radius: 14px; cursor: zoom-in; transition: transform .2s ease; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item.no-img { cursor: default; }
.gallery-item.no-img:hover { transform: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1000px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 25, 19, .88); }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 12px; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox-close {
  position: absolute; top: -14px; right: -6px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: var(--green-dark); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .trip-card, .gallery-item { transition: none; }
}

/* ---------- Album ảnh từng chuyến đi ---------- */
button.trip-photo { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; font: inherit; }
.trip-photo img { object-position: center 35%; transition: transform .4s ease; }
button.trip-photo:hover img { transform: scale(1.04); }
.trip-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(20, 63, 47, .82); color: #fff;
  font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.trip-photo.no-img .trip-count { display: none; }
.trip-link { margin-top: 14px; font-weight: 700; }

.album + .album { margin-top: 56px; }
.album h3 { font-size: 1.4rem; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.album h3 span { font-size: .95rem; font-weight: 600; color: var(--amber-dark); }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 960px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }
.album-item {
  aspect-ratio: 1; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative;
  background: linear-gradient(160deg, #f6c58a 0%, #e8923a 50%, #3e8a66 100%);
}
.album-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; transition: transform .35s ease; }
.album-item:hover img { transform: scale(1.06); }
.album-empty { color: var(--muted); background: var(--cream); border: 2px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center; margin: 0; }
html { scroll-padding-top: 88px; }

.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); color: var(--green-dark); font-size: 2rem; line-height: 1;
  cursor: pointer; z-index: 3;
}
.lightbox-nav:hover { background: #fff; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-close { position: fixed; top: 16px; right: 16px; }

@media (prefers-reduced-motion: reduce) {
  .trip-photo img, .album-item img { transition: none; }
}

/* Đảm bảo thuộc tính hidden luôn ẩn được phần tử (vd: ảnh chưa có file) */
[hidden] { display: none !important; }

/* Ảnh đại diện thành viên (ảnh tròn đã cắt sẵn trong image/team/avatars) */
.avatar-photo { width: 112px; height: 112px; object-fit: cover; background: var(--green); box-shadow: 0 6px 16px rgba(20, 63, 47, .18); }

/* Đội ngũ: 6 thành viên trên một hàng (màn hình lớn), tự xuống hàng trên máy nhỏ */
.team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.team-grid .card { padding: 24px 14px; }
.team-grid .avatar-photo { width: 96px; height: 96px; }
.team-grid h3 { font-size: 1.02rem; }
.team-grid .role { font-size: .82rem; }
.team-grid .card p { font-size: .88rem; line-height: 1.5; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Thông báo lỗi khi gửi lời nhắn không thành công */
.form-error {
  background: #fdecea; border: 1px solid #f1b8b2; color: #8f2a20;
  border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; font-weight: 600;
}
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ---------- Nút nhạc nền ---------- */
.music-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 150;
  display: inline-flex; align-items: center; gap: 8px;
  width: 48px; height: 48px; justify-content: center; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-dark); color: #fff; font: inherit; font-weight: 700; font-size: .9rem;
  box-shadow: 0 8px 22px rgba(20, 63, 47, .35); transition: transform .15s ease, background .2s ease;
}
.music-toggle:hover { transform: translateY(-2px); background: var(--green); }
.music-toggle svg { width: 24px; height: 24px; flex: none; }
.music-toggle .m-on { display: none; }
.music-toggle.is-playing { background: var(--amber); }
.music-toggle.is-playing:hover { background: var(--amber-dark); }
.music-toggle.is-playing .m-on { display: inline; }
.music-toggle.is-playing .m-off { display: none; }
.music-toggle.is-playing svg { animation: music-pulse 1.4s ease-in-out infinite; }
@keyframes music-pulse { 50% { transform: scale(1.12); } }
/* Player YouTube đặt ngoài màn hình, chỉ dùng để phát tiếng */
.music-player-holder { position: fixed; left: -9999px; top: 0; width: 200px; height: 200px; overflow: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .music-toggle svg { animation: none !important; } .music-toggle { transition: none; } }
