.admin-bar .site-header {
  top: 32px;
}

#trp-floater-ls,
.trp-floating-switcher {
  display: none !important;
}

.inner-main {
  min-height: 65vh;
  padding-top: 88px;
}

.wagokoro-inner-page .site-header {
  background: #102338f7;
  box-shadow: 0 8px 24px #0002;
}

.wp-content {
  max-width: 880px;
}

.wp-content h1 {
  color: var(--navy);
}

.wp-content a:not(.button) {
  color: var(--verm);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-content img {
  max-width: 100%;
  height: auto;
}

.archive-hero {
  padding: 164px 0 78px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.archive-hero h1 {
  max-width: 940px;
  margin: 10px 0 18px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 600;
  line-height: .95;
}

.archive-hero p:not(.eyebrow) {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.8;
}

.archive-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.archive-hero-image {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
}

.archive-hero-image::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  content: "";
  pointer-events: none;
}

.archive-hero-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.content-card-image {
  display: grid;
  min-height: 245px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), #314255);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .06em;
}

.content-card-image img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  transition: transform .4s ease;
}

.content-card:hover .content-card-image img {
  transform: scale(1.025);
}

.content-card-body {
  padding: 26px;
}

.content-card h2,
.content-card h3 {
  margin: 10px 0 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.12;
}

.content-card h2 a,
.content-card h3 a,
.news-list-item h2 a,
.news-list-item h3 a {
  color: inherit;
}

.content-date {
  color: var(--verm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.content-excerpt {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.content-excerpt p {
  margin: 0;
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.news-list-item h2,
.news-list-item h3 {
  margin: -5px 0 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.25;
}

.news-list-item .content-excerpt {
  grid-column: 2 / 4;
  margin: -16px 0 0;
}

.empty-content {
  padding: 70px 7vw;
  border: 1px solid var(--line);
  background: var(--ivory);
  text-align: center;
}

.empty-content h2,
.empty-content h3 {
  color: var(--navy);
  font-family: var(--serif);
}

.compact-empty {
  grid-column: 1 / -1;
  padding: 44px;
}

.home-content-grid,
.home-news-list {
  margin-top: 45px;
}

.pagination {
  margin-top: 46px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  min-width: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: center;
}

.pagination .current {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.entry-wrap {
  max-width: 880px;
  padding-top: 64px;
  padding-bottom: 90px;
}

.single-featured-image {
  margin-bottom: 45px;
}

.single-featured-image img {
  width: 100%;
  height: auto;
}

.entry-content {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.95;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.7em;
  color: var(--navy);
  font-family: var(--serif);
}

.entry-content a {
  color: var(--verm);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.back-link {
  display: inline-block;
  margin-top: 48px;
}

.wagokoro-contact-form {
  margin-top: 12px;
}

.wagokoro-contact-form form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.wagokoro-contact-form form > p {
  margin: 0;
}

.wagokoro-contact-form form > p:nth-last-child(-n + 3),
.wagokoro-contact-form .wpcf7-response-output {
  grid-column: 1 / -1;
}

.wagokoro-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .05em;
}

.wagokoro-contact-form input:not([type="checkbox"]):not([type="submit"]),
.wagokoro-contact-form textarea,
.wagokoro-contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  padding: 12px;
  color: var(--ink);
}

.wagokoro-contact-form input[type="submit"] {
  min-width: 190px;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: var(--navy);
  color: #fff;
  padding: 14px 19px;
  cursor: pointer;
}

.wagokoro-contact-form input:focus,
.wagokoro-contact-form textarea:focus,
.wagokoro-contact-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #b9955a33;
  outline: none;
}

.wagokoro-contact-form .wpcf7-list-item {
  display: block;
  margin: 4px 0;
}

.wagokoro-contact-form .wpcf7-list-item label {
  display: flex;
  flex-direction: row;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
  cursor: pointer;
}

.wagokoro-contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--navy);
}

.wagokoro-contact-form .wpcf7-acceptance {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--ivory);
}

.brand-message {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  color: var(--navy);
  font-family: var(--jp);
  font-size: 18px;
  line-height: 1.9;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .18);
}

.route-list > div {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
  background: var(--navy);
}

.route-list b {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.route-list b::after {
  content: " min";
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-list span {
  margin-top: 6px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
}

.route-note {
  margin-top: 28px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  text-align: center;
}

.provisional-note,
.excluded {
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
  color: var(--muted);
  font-size: 12px;
}

.comfort-list p {
  position: relative;
  margin: 0;
  padding: 18px 10px 18px 34px;
  border-top: 1px solid var(--line);
}

.comfort-list p:last-child {
  border-bottom: 1px solid var(--line);
}

.comfort-list p::before {
  position: absolute;
  top: 18px;
  left: 5px;
  color: var(--gold);
  content: "—";
}

.price-subtitle {
  margin: 0 0 8px;
  font-size: 17px;
}

.booking-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 48px;
}

.cta-facts {
  justify-content: center;
  margin: 38px auto 30px;
}

.cta-actions {
  justify-content: center;
}

/* Keep the family-story gallery visually consistent at every screen size. */
.photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.photo-grid figure:nth-child(2) {
  margin-bottom: 0;
}

.photo-grid img,
.photo-grid figure:nth-child(2) img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 800px) {
  .inner-main {
    padding-top: 72px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .route-list,
  .booking-flow {
    grid-template-columns: 1fr 1fr;
  }

  .photo-grid figure,
  .photo-grid figure:last-child {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .wagokoro-contact-form form {
    grid-template-columns: 1fr;
  }

  .archive-hero {
    padding: 124px 0 58px;
  }

  .archive-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .archive-hero-image,
  .archive-hero-image img {
    min-height: 0;
    height: clamp(220px, 58vw, 340px);
  }

  .content-card-grid {
    grid-template-columns: 1fr;
  }

  .news-list-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news-list-item .content-excerpt {
    grid-column: auto;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .photo-grid figure,
  .photo-grid figure:last-child {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .photo-grid img {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .route-list,
  .booking-flow {
    grid-template-columns: 1fr;
  }

  .route-list > div {
    min-height: 95px;
  }

  .hero-placeholder span,
  .hero-scroll {
    display: none;
  }

  .hero-facts {
    justify-content: space-between;
    gap: 8px;
  }

  .hero-facts span {
    min-width: 0;
    padding-left: 9px;
  }

  .hero-facts strong {
    font-size: 22px;
  }

  .hero-facts small {
    font-size: 8px;
    letter-spacing: 0;
  }
}

@media (max-width: 600px) {
  .hero {
    display: block;
    min-height: 0;
    padding-top: clamp(290px, 80vw, 340px);
    background: var(--navy);
  }

  .hero-media,
  .hero-overlay {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: clamp(290px, 80vw, 340px);
  }

  .hero-placeholder,
  .hero-placeholder.second,
  .hero-placeholder.third {
    background-position: right center !important;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(6, 19, 30, .15), rgba(6, 19, 30, .08) 65%, var(--navy));
  }

  .hero-content {
    padding-top: 44px;
    padding-bottom: 58px;
  }

  .hero-scroll {
    display: none;
  }
}
