/************************************
** Destinations のエリアページの予約検索フォーム「Plan Your Visit to ○○」（2026-10-19）
** エリアページだけで読み込む（inc-area-search.php）。トップの検索フォーム（hero-search.css）とは別。
************************************/
.eas {
  --eas-navy: #1F3A5F;
  --eas-cta: #C8412A;
  --eas-cta-hover: #A8361F;
  --eas-cream: #F7F4EA;
  --eas-line: #CFD6DF;
  --eas-soft: #F4F6F9;
  --eas-text: #1A1D23;
  --eas-sub: #5B6270;
  --eas-error: #B42318;
  margin: 0 0 40px;
  padding: 28px;
  background: var(--eas-cream);
  border: 1px solid #E4DED0;
  border-radius: 18px;
  color: var(--eas-text);
  font-family: var(--et-font-body, system-ui, sans-serif);
  scroll-margin-top: 80px;
}
.eas-head { margin: 0 0 18px; }
.eas .eas-title {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  font: 700 clamp(24px, 3vw, 32px)/1.2 var(--et-font-heading, system-ui, sans-serif);
  letter-spacing: -.01em;
  color: var(--eas-navy);
}
.eas .eas-sub { margin: 0 !important; font-size: 16px; line-height: 1.55; color: var(--eas-sub); }

/* タブ */
.eas-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.eas-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #D9D3C6;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--eas-navy);
  font: 600 15px/1 var(--et-font-heading, system-ui, sans-serif);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.eas-tab:hover { border-color: var(--eas-navy); }
.eas-tab[aria-selected="true"] { background: var(--eas-navy); border-color: var(--eas-navy); color: #FFFFFF; }
.eas-tab:focus-visible { outline: 3px solid var(--eas-navy); outline-offset: 2px; }
.eas svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eas-tab-icon svg { width: 20px; height: 20px; }

/* カード・入力欄 */
.eas-card { background: #FFFFFF; border: 1px solid #E4DED0; border-radius: 14px; padding: 20px; box-shadow: 0 6px 20px rgba(20, 30, 50, .06); }
.eas-panel[hidden] { display: none; }
.eas-fields { display: grid; gap: 12px; align-items: start; }
.eas-card { container-type: inline-size; }
/* 並び方はフォームの幅で決める（2026-10-19：Hotels＝目的地・チェックイン・チェックアウト、Activities＝目的地・種類） */
.eas-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eas-dest, .eas-field-submit { grid-column: 1 / -1; }
.eas-panel-activities .eas-type { grid-column: 1 / -1; }
.eas-field-submit { padding-top: 4px; }
/* 広いとき（1行に並べる） */
@container (min-width: 760px) {
  .eas-panel-hotels .eas-fields     { grid-template-columns: minmax(200px, 1.6fr) repeat(2, minmax(150px, 1fr)) auto; }
  .eas-panel-activities .eas-fields { grid-template-columns: minmax(200px, 1.4fr) minmax(200px, 1.2fr) auto; }
  .eas .eas-field, .eas-panel-activities .eas-type { grid-column: auto; }
  .eas-field-submit { padding-top: 25px; }
}
.eas-field { position: relative; min-width: 0; }
.eas .eas-label { display: block; margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 600; color: var(--eas-sub); }
.eas .eas-input {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--eas-line);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--eas-text);
  font: 500 16px/1.2 var(--et-font-body, system-ui, sans-serif);
}
.eas select.eas-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6270' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}
.eas .eas-input:hover { border-color: #9AA6B5; }
.eas .eas-input:focus { outline: none; border-color: var(--eas-navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, .18); }
.eas .eas-date { padding-right: 8px; }
.eas-field:has(.eas-field-icon) .eas-input { padding-left: 40px; }
.eas-field-icon { position: absolute; left: 12px; top: 41px; width: 20px; height: 20px; color: var(--eas-navy); pointer-events: none; }
.eas-field-icon svg { width: 20px; height: 20px; }

.eas-stepper { display: flex; align-items: center; height: 52px; border: 1px solid var(--eas-line); border-radius: 10px; background: #FFFFFF; overflow: hidden; }
.eas-stepper:focus-within { border-color: var(--eas-navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, .18); }
.eas .eas-stepper .eas-num { height: 50px; border: 0; border-radius: 0; padding: 0; text-align: center; -moz-appearance: textfield; box-shadow: none; }
.eas-stepper .eas-num::-webkit-inner-spin-button, .eas-stepper .eas-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.eas-step { flex: 0 0 44px; height: 50px; border: 0; background: var(--eas-soft); color: var(--eas-navy); font-size: 22px; line-height: 1; cursor: pointer; }
.eas-step:hover:not(:disabled) { background: #E6EBF1; }
.eas-step:disabled { color: #B3BCC7; cursor: default; }
.eas-step:focus-visible { outline: 2px solid var(--eas-navy); outline-offset: -2px; }

.eas-field-submit { padding-top: 25px; }
.eas .eas-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 168px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--eas-cta);
  color: #FFFFFF;
  font: 700 16px/1 var(--et-font-heading, system-ui, sans-serif);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(200, 65, 42, .28);
  transition: background-color .15s ease;
}
.eas .eas-submit:hover { background: var(--eas-cta-hover); }
.eas .eas-submit:focus-visible { outline: 3px solid var(--eas-navy); outline-offset: 2px; }
.eas-submit svg { width: 20px; height: 20px; stroke-width: 2.2; }

.eas .eas-checkout { grid-column: 1 / -1; margin: -2px 0 0 !important; font-size: 14px; color: var(--eas-navy); }
.eas-invalid .eas-input, .eas-invalid .eas-stepper { border-color: var(--eas-error); }
.eas .eas-error { margin: 6px 0 0 !important; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--eas-error); }
.eas .eas-note { margin: 12px 0 0 !important; font-size: 13px; line-height: 1.5; color: var(--eas-sub); }
.eas .eas-note a { color: var(--eas-navy); font-weight: 600; }

/* Local Guide */
.eas-topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.eas-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eas .eas-chip { position: relative; margin: 0; cursor: pointer; }
.eas-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eas-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #D9D3C6;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--eas-navy);
  font: 600 14px/1 var(--et-font-heading, system-ui, sans-serif);
}
.eas-chip:hover span { border-color: var(--eas-navy); }
.eas-chip input:checked + span { background: var(--eas-navy); border-color: var(--eas-navy); color: #FFFFFF; }
.eas-chip input:focus-visible + span { outline: 3px solid var(--eas-navy); outline-offset: 2px; }
.eas-guide-submit { margin-top: 16px; }
.eas .eas-submit-guide { width: auto; }
/* Local Guide は予約ではないので、ボタンは紺（予約の朱と区別する） */
.eas .eas-submit-guide { background: var(--eas-navy); box-shadow: 0 6px 16px rgba(31, 58, 95, .22); }
.eas .eas-submit-guide:hover { background: #162B47; }

/* 本文中：上のフォームへのボタン */
.article .eas-jump { margin: 16px 0 24px; }
.article .eas-jump a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--eas-navy, #1F3A5F);
  border-radius: 10px;
  color: #1F3A5F;
  font-weight: 700;
  text-decoration: none;
}
.article .eas-jump a:hover { background: #1F3A5F; color: #FFFFFF; }
.eas-anchor { display: block; position: relative; top: -80px; visibility: hidden; }

/* Our Recommended Stay */
.eas-stay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 0;
  margin: 24px 0;
  background: #FFFFFF;
  border: 1px solid #E4DED0;
  border-radius: 14px;
  overflow: hidden;
}
.eas-stay-media img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.eas-stay-body { padding: 20px 22px; }
.article .eas-stay p { margin: 0 0 6px; }
.article .eas-stay .eas-stay-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C8412A; }
.article .eas-stay .eas-stay-name { font: 700 21px/1.3 var(--et-font-heading, system-ui, sans-serif); color: #1A1D23; }
.article .eas-stay .eas-stay-area { font-size: 14px; color: #5B6270; }
.article .eas-stay .eas-stay-features { margin: 10px 0 16px; padding-left: 1.2em; font-size: 15px; line-height: 1.6; }
.eas-stay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: #1F3A5F;
  color: #FFFFFF !important;
  font-weight: 700;
  text-decoration: none !important;
}
.eas-stay-btn:hover { background: #162B47; }
.article .eas-stay .eas-stay-note { margin: 10px 0 0; font-size: 13px; color: #5B6270; }

/* 狭いとき（スマートフォン）：縦に1列 */
@container (max-width: 420px) {
  .eas .eas-fields { grid-template-columns: 1fr; gap: 10px; }
  .eas .eas-field { grid-column: 1 / -1; }
}
/* スマートフォン */
@media (max-width: 640px) {
  .eas { padding: 20px 14px; margin-left: 0; margin-right: 0; border-radius: 14px; }
  .eas-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .eas-tab { justify-content: center; padding: 0 10px; font-size: 14px; min-height: 48px; }
  .eas-card { padding: 14px 12px; }
  .eas .eas-submit { height: 56px; font-size: 17px; }
  .eas .eas-submit-guide { width: 100%; }
  .eas .eas-date { padding: 0 8px; font-size: 15px; }
  .eas-stay { grid-template-columns: 1fr; }
  .eas-stay-media img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .article .eas-jump a { width: 100%; justify-content: center; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .eas-tab, .eas-submit { transition: none; }
}

/* 送信中（二重送信の防止） */
.eas .eas-submit:disabled { opacity: .7; cursor: progress; }

/************************************
** 記事の下：Travel Essentials／Explore More in This Area（2026-10-19）
************************************/
.eas-more {
  margin: 40px 0;
  padding: 24px;
  background: var(--eas-cream, #F7F4EA);
  border: 1px solid #E4DED0;
  border-radius: 16px;
  font-family: var(--et-font-body, system-ui, sans-serif);
}
.article .eas-more .eas-more-title {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  font: 700 22px/1.3 var(--et-font-heading, system-ui, sans-serif);
  color: #1F3A5F;
}
.article .eas-more .eas-more-title::before, .article .eas-more .eas-more-title::after { display: none; }
.article .eas-more ul { list-style: none; margin: 0; padding: 0; }
.article .eas-more li { margin: 0; padding: 0; }
.article .eas-more li::before { display: none; }
.eas-more-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.eas-more-list > li { background: #fff; border: 1px solid #E4DED0; border-radius: 12px; padding: 14px 16px; }
.article .eas-more .eas-more-name { margin: 0 0 4px; font-weight: 700; font-size: 16px; color: #1F3A5F; }
.article .eas-more .eas-more-desc { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: #5B6270; }
.article .eas-more .eas-more-links { margin: 0; font-size: 14px; line-height: 1.7; }
.article .eas-more a { color: #1F3A5F; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article .eas-more a:hover { color: #C8412A; }
.eas-explore-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.article .eas-explore-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 52px; padding: 10px 16px; box-sizing: border-box;
  background: #fff; border: 1px solid #E4DED0; border-radius: 12px; text-decoration: none;
}
.article .eas-explore-list a:hover { border-color: #C8412A; }
@media (max-width: 640px) {
  .eas-more { padding: 18px 14px; margin: 32px 0; }
  .eas-more-list, .eas-explore-list { grid-template-columns: 1fr; }
}
