:root{
  --bg:#f6f4ef;
  --card:rgba(255,255,255,.86);
  --glass:rgba(255,255,255,.72);
  --ink:#1d2421;
  --muted:#4d5a55;
  --brand:#2e6b55;
  --brand2:#4a8b6c;
  --link:#1f5f4a;
  --linkHover:#134133;
  --line:rgba(20,30,24,.14);
  --shadow:0 14px 40px rgba(15,22,18,.12);
  --r:18px;

  --max:1200px;

  --bodyLink:#0e4636;
  --bodyLinkHover:#072b21;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(74,139,108,.22), transparent 50%),
    radial-gradient(1000px 600px at 85% 0%, rgba(46,107,85,.18), transparent 55%),
    var(--bg);
  color:var(--ink);
  line-height:1.55;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:var(--link);
  text-decoration:none;
}

a:hover{
  color:var(--linkHover);
}

/* layout wrapper */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* header */
header{
  background:linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.38));
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
}

.banner{
  margin:18px 0 10px;
  border-radius:var(--r);
  overflow:hidden;
  box-shadow:var(--shadow);
}

/* captions */
.caption{
  font-size:13px;
  color:var(--muted);
  text-align:center;
  font-weight:600;
  font-style:italic;
  margin:6px 0 12px;
}

/* page spacing */
.page{padding-bottom:34px}
main{padding:18px 0 10px}

/* body links */
main a{
  color:var(--bodyLink);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}

main a:hover{
  color:var(--bodyLinkHover);
  background-color:rgba(230,180,74,.18);
  border-radius:4px;
}

/* ===== TWO COLUMN LAYOUT ===== */
.layout{
  display:grid;
  gap:18px;
  grid-template-columns:minmax(0,1fr) 360px;
  align-items:stretch;
}

@media (max-width:980px){
  .layout{
    grid-template-columns:1fr;
  }
}

/* ===== CARDS ===== */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:18px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
  height:100%;
}

.card hr{
  width:100%;
  border:0;
  border-top:1px solid var(--line);
  margin:14px 0;
  align-self:stretch;
}

/* ONLY sidebar card uses flex */
aside.card{
  display:flex;
  flex-direction:column;
}

/* typography */
.card h1,
.card h2,
.card h3{
  margin:0 0 10px;
  line-height:1.2;
}

.card p,
.card ul{
  margin:0 0 12px;
  color:var(--muted);
}

.card p:last-child{
  margin-bottom:0;
}

.small{
  font-size:13px;
  color:var(--muted);
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  border:1px solid transparent;
  white-space:nowrap;
}

.btn.primary{
  color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  box-shadow:0 16px 26px rgba(18,32,26,.14);
}

/* footer */
.footerbar{
  margin:28px 0 22px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.footergrid{
  display:grid;
  gap:14px;
  grid-template-columns:auto 1fr auto;
  align-items:center;
}

.footer-links a{
  font-weight:600;
  display:inline-block;
  margin-bottom:6px;
}

.footer-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* footer search */
.search-box{
  width:100%;
  display:flex;
  justify-content:center;
}

.search-row{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:8px;
  width:100%;
  max-width:520px;
  margin:0 auto;
}

.search-row input[type="text"]{
  flex:1 1 auto;
  min-width:0;
  height:40px;
  padding:0 12px;
  font-size:16px;
  line-height:40px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  -webkit-appearance:none;
  appearance:none;
}

/* search button matches primary tour button */
.search-row button{
  height:40px;
  padding:0 16px;
  font-size:14px;
  line-height:40px;
  border-radius:999px;
  border:1px solid transparent;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  box-shadow:0 16px 26px rgba(18,32,26,.14);
  color:#fff;
  font-weight:800;
  white-space:nowrap;
  -webkit-text-fill-color:#fff;
}

.search-row button:hover{
  filter:brightness(0.95);
}

/* align heights with primary button */
.footer-actions .btn{
  height:40px;
  line-height:40px;
}

/* responsive footer */
@media (max-width:900px){
  .footergrid{
    grid-template-columns:1fr;
    text-align:center;
    justify-items:center;
  }

  .footer-links{
    text-align:center;
  }

  .footer-actions{
    width:100%;
    align-items:center;
  }

  .footer-actions .btn{
    width:100%;
    max-width:520px;
  }
}


/* navigation */
.nav{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0 10px;
}

.navlinks{
  display:flex;
  gap:16px;
  margin-left:auto;
}

.navlinks a{
  font-size:14px;
  font-weight:800;
  color:var(--muted);
}

.navlinks a:hover{
  color:var(--ink);
}

/* actions */
.actions{
  display:flex;
  gap:10px;
}

/* mobile menu */
#menu-toggle{
  position:absolute;
  left:-9999px;
}

.menu-icon{
  display:none;
  width:44px;
  height:44px;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  border:1px solid var(--line);
  box-shadow:0 10px 22px rgba(15,22,18,.12);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  margin-left:auto;
}

.menu-icon span{
  width:20px;
  height:3px;
  background:var(--ink);
  border-radius:999px;
}

@media (max-width:768px){
  .menu-icon{display:flex}

  .nav{
    flex-wrap:wrap;
  }

  .nav .navlinks,
  .nav .actions{
    width:100%;
    flex-direction:column;
    max-height:0;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
    transition:max-height .25s ease, opacity .2s ease;
  }

  #menu-toggle:checked ~ .navlinks,
  #menu-toggle:checked ~ .actions{
    max-height:600px;
    opacity:1;
    pointer-events:auto;
  }

  main .actions{
    flex-direction:column;
  }

  main .actions .btn{
    width:100%;
  }
}

/* video embeds */
.video{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  border-radius:14px;
  border:1px solid var(--line);
  box-shadow:0 10px 28px rgba(15,22,18,.10);
  overflow:hidden;
}

.video iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.callout{
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  box-shadow:0 10px 28px rgba(15,22,18,.08);
  margin:14px 0;
}


/* footer alignment fixes */
.footergrid{
  grid-template-columns:auto 1fr auto;
  align-items:center;
}

.search-box{
  display:flex;
  justify-content:center;
}

.search-row{
  display:flex;
  align-items:center;
  gap:8px;
}

.footer-actions .btn,
.search-row input,
.search-row button{
  height:40px;
  line-height:40px;
}

.search-row input{
  padding:0 10px;
}

.search-row button{
  padding:0 14px;
}


/* ===== responsive footer tweaks ===== */
/* Keep the 3-column alignment only on wider screens */
@media (min-width:901px){
  .footergrid{
    grid-template-columns:auto 1fr auto;
    align-items:center;
    text-align:initial;
  }
}

/* On small screens, stack and keep everything tidy */
@media (max-width:900px){
  .footergrid{
    grid-template-columns:1fr;
    text-align:center;
    justify-items:center;
  }

  .footer-links{
    text-align:center;
  }

  .search-box{
    width:100%;
    justify-content:center;
  }

  .search-row{
    width:100%;
    max-width:520px;
    flex-direction:column;
    gap:10px;
  }

  .search-row input,
  .search-row button{
    width:100%;
  }

  .footer-actions{
    width:100%;
    align-items:center;
  }

  .footer-actions .btn{
    width:100%;
    max-width:520px;
  }
}


/* ===== footer search: force input + button on one line (iOS safe) ===== */
.search-box{width:100%;}

.search-row{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center;
  gap:8px;
  width:100%;
  max-width:520px;
  margin:0 auto;
}

.search-row input[type="text"]{
  flex:1 1 0 !important;
  width:auto !important;
  min-width:0 !important;
  height:40px;
  padding:0 12px;
  font-size:16px;
  line-height:40px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  -webkit-appearance:none;
  appearance:none;
}

.search-row button{
  flex:0 0 auto !important;
  width:auto !important;
  height:40px;
  padding:0 16px;
  font-size:14px;
  line-height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.86);
  white-space:nowrap;
}

/* If something else set full-width controls on mobile, override it here */
@media (max-width:900px){
  .search-row input[type="text"],
  .search-row button{
    width:auto !important;
  }
}


/* ===== ensure search button label is visible everywhere (Safari/iOS safe) ===== */
.search-row button{
  background:var(--brand) !important;
  border-color:var(--brand) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:800;
  font-size:14px !important;
  -webkit-appearance:none;
  appearance:none;
}

.search-row button:hover{
  background:var(--brand2) !important;
  border-color:var(--brand2) !important;
}
