/* Guilin guide dashboard, within the site's shared navigation and footer. */
[data-guilin-dashboard] {
  --gl-ink: #111347;
  --gl-blue: #0067ed;
  --gl-deep: #003bb7;
  --gl-soft: #e8f3ff;
  --gl-line: #d7e5f2;
  --gl-panel: #f6f9fc;
  background: #fff;
  color: var(--gl-ink);
}

[data-guilin-dashboard] [hidden] { display: none !important; }

[data-guilin-dashboard] :is(.gl-hero, .gl-layout, .gl-bottom, .gl-credits) {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(12px, 1.04vw, 15px);
  line-height: 1.3;
}

[data-guilin-dashboard] .gl-wrap {
  width: min(1550px, 100% - clamp(24px, 3.2vw, 48px));
  margin-inline: auto;
}

[data-guilin-dashboard] .gl-hero {
  background-color: #e8f3ff;
  background-image: linear-gradient(90deg, #e8f3ff 0%, #f3fafff5 24%, #eef8ffcf 42%, #eef8ff18 69%, transparent 84%), var(--gl-hero-image);
  background-size: cover;
  background-position: center, right 55%;
  min-height: clamp(170px, 16.5vw, 252px);
  display: flex;
  align-items: center;
  padding-block: 8px 14px;
}

[data-guilin-dashboard] .gl-hero .crumb {
  color: var(--gl-ink);
  font-size: .92em;
  font-weight: 600;
  margin: 0 0 4px;
}

[data-guilin-dashboard] .gl-hero .crumb a { color: inherit; }

[data-guilin-dashboard] .gl-hero h1 {
  color: var(--gl-ink);
  font-family: inherit;
  font-size: clamp(34px, 3.65vw, 58px);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1;
  max-width: none;
  margin: 0;
}

.gl-hero .gl-subtitle {
  font-size: clamp(14px, 1.62vw, 24px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 4px 0 10px;
  color: var(--gl-ink);
}

.gl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 0 0 11px;
  list-style: none;
}

.gl-pills li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid #d1e4fa;
  border-radius: 7px;
  background: #ffffffed;
  color: var(--gl-ink);
  box-shadow: 0 1px 2px #12205211;
  font-size: .84em;
  font-weight: 700;
}

.gl-pills a { color: inherit; }

.gl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
}

.gl-hero-note {
  color: #0739c3;
  font: italic 700 1.12em/1.05 Georgia, serif;
  transform: rotate(-7deg);
  text-align: center;
  border-bottom: 2px solid #1955e3;
  border-radius: 30%;
  margin: 0 0 0 6px;
  padding: 0 5px 4px;
}

[data-guilin-dashboard] .gl-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .34em;
  min-height: 2.5em;
  padding: .42em 1.45em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gl-blue);
  color: white;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  line-height: 1.13;
  cursor: pointer;
}

[data-guilin-dashboard] .gl-button:hover { background: var(--gl-deep); color: white; }
[data-guilin-dashboard] .gl-button.gl-outline { color: var(--gl-deep); background: #f6fbff; border-color: #70aaff; }
[data-guilin-dashboard] .gl-button.gl-outline:hover { background: #e1efff; }
[data-guilin-dashboard] .gl-button.gl-soft { width: 100%; border-radius: 8px; color: var(--gl-deep); background: #cfe4ff; }
[data-guilin-dashboard] .gl-button.gl-soft:hover { background: #bddbff; }
[data-guilin-dashboard] .gl-button[aria-pressed="true"] { color: #073c2c; background: #d9f7e8; border-color: #11915f; }
[data-guilin-dashboard] :is(.gl-layout, .gl-hero, .gl-bottom, .gl-credits) :focus-visible { outline: 2px solid #063dac; outline-offset: 2px; }

.gl-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(226px, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
  align-items: start;
  padding-top: 6px;
}

.gl-main, .gl-sidebar { min-width: 0; }
.gl-sidebar { display: grid; gap: 8px; padding-top: 2px; }
.gl-section { margin-bottom: clamp(7px, .85vw, 14px); }
[data-guilin-dashboard] :is(.gl-section, .gl-sidebar section, .gl-layout h2, .gl-credits)[id] { scroll-margin-top: 85px; }

main[data-guilin-dashboard] :is(.gl-main, .gl-sidebar) h2 {
  display: flex;
  align-items: center;
  gap: .37em;
  margin: 0 0 4px;
  color: var(--gl-ink);
  font-family: inherit;
  font-size: 1.48em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.042em;
}

main[data-guilin-dashboard] .gl-sidebar h2 { font-size: 1.35em; margin-bottom: 6px; }
[data-guilin-dashboard] .gl-main h2 small { font-size: .67em; font-weight: 550; letter-spacing: -.018em; }
main[data-guilin-dashboard] :is(.gl-main, .gl-sidebar) h3 { margin: 0; color: var(--gl-ink); font-family: inherit; font-size: 1.02em; line-height: 1.13; font-weight: 800; letter-spacing: -.025em; }
[data-guilin-dashboard] .gl-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: middle; }
.gl-layout :is(h2, h3, .gl-fields, .gl-fact-grid) svg, .gl-pills svg { color: var(--gl-blue); }

.gl-card {
  background: linear-gradient(140deg, #fff, var(--gl-panel) 72%);
  border: 1px solid var(--gl-line);
  border-radius: 10px;
  box-shadow: 0 1px 2px #1b406413;
  min-width: 0;
}

.gl-warning, .gl-table-note, .gl-plan-notes p {
  display: flex;
  align-items: center;
  gap: .45em;
  border-radius: 8px;
  font-size: .87em;
  margin: 4px 0 0;
  padding: .25em .58em;
  background: var(--gl-soft);
}

.gl-warning {
  justify-content: center;
  text-align: center;
  color: #a61915;
  background: #ffede8;
  border: 1px solid #ffc9bc;
}

.gl-fact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 5px;
}

.gl-fact-grid > div {
  display: flex;
  align-items: flex-start;
  gap: .45em;
  line-height: 1.14;
  font-size: .86em;
  background: #f5faff;
  border: 1px solid #e1edf7;
  border-radius: 8px;
  padding: .52em .45em;
}

.gl-fact-grid strong { display: block; margin-bottom: .15em; }
.gl-base-grid, .gl-days, .gl-four, .gl-seasons { display: grid; gap: clamp(6px, 1vw, 14px); }
.gl-base-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.45vw, 20px); }
.gl-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gl-four, .gl-seasons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gl-photo-card { overflow: hidden; display: flex; flex-direction: column; }
.gl-photo-card > img { display: block; width: 100%; object-fit: cover; }
.gl-base > img { height: clamp(83px, 8.2vw, 125px); object-position: center 53%; }
.gl-outing > img { height: clamp(56px, 6.2vw, 93px); object-position: center 53%; }
.gl-stay > img { height: clamp(42px, 4.1vw, 63px); }

main[data-guilin-dashboard] .gl-base h3 {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: .26em;
  margin: -1.42em 0 2px .6em;
  padding: .31em .45em .16em;
  border-radius: 9px 9px 0 0;
  background: white;
  position: relative;
  font-size: 1.43em;
  letter-spacing: -.04em;
}

[data-guilin-dashboard] :is(.gl-outing, .gl-stay) h3 { padding: .32em .58em .12em; }
.gl-fields { margin: 0; padding: 0; }
.gl-fields > div { position: relative; margin: .24em 0; padding-left: 2em; }
.gl-fields svg { position: absolute; left: 0; top: 0; }
.gl-fields :is(dt, dd) { display: inline; margin: 0; }
.gl-fields dt { font-weight: 800; }
.gl-fields dt::after { content: ": "; }
.gl-base .gl-fields { margin: 0 .95em .38em; }
.gl-outing .gl-fields { font-size: .87em; line-height: 1.13; margin: 0 .65em .4em; }
.gl-outing .gl-fields > div { padding-left: 1.55em; }
.gl-photo-card .gl-button { align-self: center; margin: auto .4em .4em; text-align: center; }
.gl-base .gl-button { width: min(94%, 245px); }
.gl-outing .gl-button, .gl-stay .gl-button { font-size: .85em; min-height: 2.15em; padding: .25em .72em; }
.gl-days .gl-card { padding: .45em .58em; }
.gl-days h3 { display: flex; align-items: center; gap: .35em; }
@media (min-width: 591px) {
  .gl-days .gl-card { position: relative; }
  .gl-days .gl-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(50% - 3px);
    right: calc(clamp(6px, 1vw, 14px) * -.67);
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--gl-blue);
    border-right: 2px solid var(--gl-blue);
    transform: rotate(45deg);
  }
}
.gl-checks { list-style: none; padding: 0; margin: .3em 0 0; font-size: .9em; }
.gl-checks > li { display: flex; gap: .42em; margin-block: .1em; }
.gl-checks > li::before { content: "✓"; color: #087538; font-weight: 900; flex: 0 0 auto; }
.gl-stay .gl-checks { font-size: .79em; line-height: 1.16; margin: .17em .65em .55em; }
.gl-plan-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.gl-plan-notes svg, .gl-table-note svg { color: var(--gl-blue); }

.gl-table-wrap { border-radius: 9px; overflow: auto; border: 1px solid var(--gl-line); }
.gl-table-wrap table { width: 100%; min-width: 565px; border-collapse: collapse; font-size: .81em; line-height: 1.15; text-align: left; }
.gl-table-wrap :is(th, td) { border-right: 1px solid #dce8f4; padding: .38em .54em; }
.gl-table-wrap thead { background: #e8f0fb; }
.gl-table-wrap tbody tr { border-top: 1px solid #dce8f4; }
.gl-table-wrap tbody tr:nth-child(odd) { background: #f6f9fc; }
.gl-table-wrap tbody th { width: 14%; }
.gl-table-wrap tbody th svg { margin-right: .25em; color: var(--gl-blue); }

.gl-seasons .gl-card { display: flex; align-items: center; gap: .5em; padding: .5em; }
.gl-seasons .gl-card > svg { font-size: 1.5em; }
.gl-season-flower { color: #d72389; }
.gl-season-sun { color: #b16b00; }
.gl-season-leaf { color: #bd4700; }
.gl-season-snow { color: #0067c4; }
.gl-seasons p { color: var(--gl-ink); margin: .18em 0 0; font-size: .82em; }

.gl-sidebar .gl-card { padding: .62em .75em; background: linear-gradient(140deg, #fcfdff, #f2f7fb); }
.gl-sidebar .gl-card p { margin: 0 0 .55em; }
.gl-sidebar .gl-fields > div { padding-left: 2.05em; margin: .37em 0; }
.gl-sidebar .gl-review { background: #e7f2fd; box-shadow: none; display: flex; gap: .5em; }
.gl-sidebar .gl-review svg { color: var(--gl-blue); }
.gl-sidebar .gl-review p { margin: 0; font-size: .89em; }
.gl-sidebar .gl-report h2 svg { color: #ca5800; }
.gl-return, .gl-source-list, .gl-next { margin: 0; padding: 0; list-style: none; }
.gl-return label { display: flex; align-items: flex-start; gap: .6em; line-height: 1.2; padding: .12em 0; }
main[data-guilin-dashboard] .gl-return input { appearance: auto; accent-color: var(--gl-blue); margin: .12em 0 0; width: 1em; height: 1em; flex: 0 0 auto; }
.gl-source-list a, .gl-next a { display: flex; justify-content: space-between; gap: .45em; color: var(--gl-deep); text-decoration: none; font-weight: 650; padding: .17em 0; }
.gl-source-list a:hover, .gl-next a:hover { text-decoration: underline; }
.gl-source-list li { display: list-item; list-style: disc; margin-left: 1.05em; color: var(--gl-blue); }
.gl-next li + li { border-top: 1px solid #e2ebf6; }
.gl-utilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gl-utilities button { display: flex; align-items: center; justify-content: center; gap: .35em; border-radius: 8px; border: 1px solid var(--gl-line); background: #f9fbfe; color: var(--gl-ink); font: inherit; font-weight: 750; padding: .5em .15em; cursor: pointer; }
.gl-utilities button:hover { background: var(--gl-soft); }
.gl-status { overflow-wrap: anywhere; margin: 0; font-size: .89em; }
.gl-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; }

.gl-disclosure { margin-top: 5px; font-size: .91em; }
.gl-disclosure summary { color: var(--gl-deep); font-weight: 700; cursor: pointer; width: fit-content; }
.gl-disclosure form { display: flex; align-items: end; flex-wrap: wrap; gap: .5em; padding: .5em; margin-top: .35em; background: var(--gl-panel); border: 1px solid var(--gl-line); border-radius: 8px; }
.gl-disclosure label { display: grid; gap: .17em; }
.gl-disclosure input { display: block; max-width: 11em; padding: .26em .4em; border: 1px solid #9fbbd8; border-radius: 5px; color: var(--gl-ink); background: white; }
.gl-disclosure output { padding: .26em .4em; font-weight: 800; }
.gl-credits { padding-block: 0 10px; }
.gl-credits p { margin: .3em 0; }

.gl-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  background: linear-gradient(90deg, transparent 1%, #ecf7ff60 8%, #ecf7ff 16%, #dbeeff 100%),
    var(--gl-hero-image) left center / 20% auto no-repeat, #ecf7ff;
  border-radius: 10px;
  padding: .6em .7em .6em clamp(60px, 11vw, 160px);
}

.gl-bottom strong { color: var(--gl-ink); font-size: 1.27em; letter-spacing: -.035em; }

@media (max-width: 1060px) {
  .gl-table-wrap table { min-width: 535px; }
  .gl-sidebar .gl-card { padding: .55em .6em; }
}

@media (max-width: 850px) {
  .gl-layout { grid-template-columns: minmax(0, 1fr); }
  .gl-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; }
  .gl-sidebar .gl-status:not(:empty) { grid-column: 1 / -1; }
  .gl-seasons .gl-card { padding: .5em .6em; }
}

@media (max-width: 590px) {
  [data-guilin-dashboard] :is(.gl-hero, .gl-layout, .gl-bottom, .gl-credits) { font-size: 13px; }
  [data-guilin-dashboard] .gl-hero { min-height: 240px; background-position: center, 66% center; background-image: linear-gradient(90deg, #eff8fff8 10%, #eff8ffe5 48%, #eff8ff6b), var(--gl-hero-image); }
  [data-guilin-dashboard] .gl-hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .gl-hero-note { display: none; }
  [data-guilin-dashboard] .gl-button { min-height: 34px; padding-inline: .8em; }
  .gl-fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gl-base-grid, .gl-days, .gl-sidebar { grid-template-columns: minmax(0, 1fr); }
  .gl-plan-notes { grid-template-columns: minmax(0, 1fr); }
  .gl-four, .gl-seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gl-outing > img { height: 75px; }
  .gl-stay > img { height: 60px; }
  .gl-utilities button { min-height: 39px; }
  .gl-return label { min-height: 28px; }
  .gl-bottom { background: #e5f2ff; padding: .6em .7em; }
}

@media print {
  [data-guilin-dashboard] :is(.us-header, .us-footer, .nav, .site-footer, .gl-hero-actions, button, .gl-bottom, .gl-credits) { display: none !important; }
  .gl-sidebar > :not(#before-you-go) { display: none !important; }
  [data-guilin-dashboard] .gl-hero { background: none; min-height: 0; }
  .gl-layout { display: block; }
  .gl-section { break-inside: avoid; }
}
