/* FunIceland Nature guide layout
   Pilot: Asbyrgi, 2026-07-08.
   Scope is intentionally opt-in via .fi-nature-guide inside #left_col. */

#site.subpage section.content .row:has(#left_col .fi-nature-guide) {
  display: flex;
  flex-wrap: wrap;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) > #left_col,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) > .fi-right-sidebar {
  float: none !important;
  width: 100% !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) > #left_col {
  order: 1;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) > .fi-right-sidebar {
  order: 2;
  margin-top: 26px;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper {
  max-width: 860px;
  margin-left: auto !important;
  margin-right: auto !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .page_component.slick {
  max-width: 980px;
  margin: 28px auto 0;
}

.fi-nature-guide {
  display: block;
}

.fi-guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 2px 0 16px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}

.fi-guide-meta .fi-last-updated {
  margin: 0 !important;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.fi-guide-favorite {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.fi-guide-favorite a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d64141;
  font-size: 0;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
}

.fi-guide-favorite a:hover,
.fi-guide-favorite a:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fi-guide-favorite a span {
  color: #1f5e97;
  font-family: "Akagi Pro", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.fi-guide-favorite a::before {
  content: "favorite_border";
  color: #d64141;
  font-family: "Material Icons";
  font-size: 20px;
  line-height: 1;
  text-rendering: optimizeLegibility;
}

.fi-guide-favorite a.added::before {
  content: "favorite";
}

.fi-guide-favorite a:hover span,
.fi-guide-favorite a:focus span {
  color: #164a78;
}

.fi-guide-favorite .material-icons {
  color: #d64141;
  font-size: 20px;
  line-height: 1;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper table {
  width: 100% !important;
  margin: 0 0 22px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fbfdff !important;
  border: 1px solid #d3dee9 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper table td {
  padding: 12px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid #e5edf4 !important;
  color: #4b5563 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  vertical-align: top !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper table tr:last-child td {
  border-bottom: 0 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper table td:first-child {
  width: 32%;
  background: #f1f6fa !important;
  color: #2f5f91 !important;
  font-weight: 700 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-right-sidebar {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-map,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .facts-text-wrapper,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-map {
  margin: 0 0 18px !important;
  overflow: hidden;
  border: 1px solid #d8e6f2;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-map #map {
  min-height: 340px;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .facts-text-wrapper {
  margin: 0 0 28px !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar {
  clear: both;
  margin-top: 34px !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar h2 {
  margin: 0 0 18px !important;
  color: #2f5f91 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar h2 {
  grid-column: 1 / -1;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar .fi-item-box {
  width: 100% !important;
  margin: 0 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .faq {
  margin-top: 20px;
}

@media (max-width: 991px) {
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper {
    max-width: none;
  }

  .fi-guide-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper table,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper table tbody,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper table tr,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper table td {
    display: block !important;
    width: 100% !important;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper table td:first-child {
    padding-bottom: 4px !important;
    border-bottom: 0 !important;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper table td + td {
    padding-top: 4px !important;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-map #map {
    min-height: 280px;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar {
    display: block;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar .fi-item-box {
    margin-bottom: 18px !important;
  }
}

/* Nature guide refinement: wide guide intro, compact top map and facts. */
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-meta,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-panel,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-right-sidebar {
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-meta {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.58;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > p,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > h2,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > h3,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > h4,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ul,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ol {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.fi-nature-top-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 24px;
  align-items: start;
  margin-top: 18px !important;
  margin-bottom: 34px !important;
  padding: 18px;
  background: #fbfdff;
  border: 1px solid #d8e6f2;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(31, 94, 151, 0.08);
}

.fi-nature-top-facts #quick-guide {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  color: #2f5f91 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-facts table {
  margin-bottom: 0 !important;
  background: #fff !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-map .fi-map {
  margin: 0 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-map .fi-map #map {
  min-height: 285px;
}

.fi-nature-map-facts {
  margin: 12px 0 0 !important;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5edf4;
  border-radius: 8px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.fi-nature-map-facts p {
  margin: 0 0 7px !important;
}

.fi-nature-map-facts p:last-child {
  margin-bottom: 0 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) > .fi-right-sidebar:empty {
  display: none;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar {
  max-width: 1180px !important;
}

@media (max-width: 991px) {
  .fi-nature-top-panel {
    grid-template-columns: 1fr;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-map .fi-map #map {
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-meta,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-panel {
    max-width: none;
  }

  .fi-nature-top-panel {
    padding: 14px;
    margin-top: 14px !important;
    margin-bottom: 26px !important;
  }

  .fi-nature-top-facts #quick-guide {
    font-size: 24px !important;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-map .fi-map #map {
    min-height: 240px;
  }
}

/* Nature guide polish pass: align with Tours/Blog guide patterns. */
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-meta {
  padding-top: 14px;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  gap: 8px 12px;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-meta,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-meta .fi-last-updated,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-favorite a span {
  font-size: 13px;
  line-height: 1.3;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text {
  margin-bottom: 16px !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text p {
  max-width: 900px;
  margin: 0 auto !important;
  font-size: 19px !important;
  line-height: 1.55 !important;
  color: #4b5563;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text strong {
  font-size: inherit !important;
  line-height: inherit !important;
}

.fi-nature-top-panel {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 12px !important;
  margin-bottom: 28px !important;
  padding: 14px;
}

.fi-nature-top-facts #quick-guide {
  margin-bottom: 12px !important;
  font-size: 26px !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-facts table td {
  padding: 9px 12px !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-facts table td:first-child {
  width: 26%;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-map .fi-map #map {
  min-height: 245px;
}

.fi-nature-top-facts .fi-nature-map-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 0 !important;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5edf4;
}

.fi-nature-top-facts .fi-nature-map-facts .facts-text {
  display: contents;
}

.fi-nature-top-facts .fi-nature-map-facts p {
  margin: 0 !important;
  padding: 10px 12px;
  border-right: 1px solid #e5edf4;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.35;
}

.fi-nature-top-facts .fi-nature-map-facts p:last-child {
  border-right: 0;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ul,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ol {
  padding-left: 20px !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ul li,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ol li {
  margin-bottom: 6px;
  padding-left: 2px;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper .faq {
  max-width: 900px;
  margin: 18px auto 34px;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper .faq a {
  font-weight: 700;
}

/* Nature guide alignment pass: keep the readable column anchored to the guide frame. */
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text p,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > p,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > h2,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > h3,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > h4,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ul,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ol,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper .faq {
  max-width: 900px;
  margin-left: 0 !important;
  margin-right: auto !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ul,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ol {
  padding-left: 18px !important;
}

@media (max-width: 991px) {
  .fi-nature-top-panel {
    grid-template-columns: 1fr;
  }

  .fi-nature-top-facts .fi-nature-map-facts {
    grid-template-columns: 1fr;
  }

  .fi-nature-top-facts .fi-nature-map-facts p {
    border-right: 0;
    border-bottom: 1px solid #e5edf4;
  }

  .fi-nature-top-facts .fi-nature-map-facts p:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 767px) {
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-meta {
    padding-top: 10px;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text p {
    font-size: 17px !important;
  }

  .fi-nature-top-panel {
    padding: 12px;
  }
}

/* Future guide template pass: align Nature with Blog/Tours guide width and in-flow Jump to. */
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-meta,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-panel,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-jump-box,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-related-pages.sidebar {
  max-width: 1145px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text p,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > p,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > h2,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > h3,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > h4,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ul,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper > ol,
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper .faq {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text {
  margin-bottom: 14px !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text p {
  font-size: 18px !important;
  line-height: 1.55 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 12px !important;
  margin-bottom: 22px !important;
  padding: 14px;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-facts {
  min-width: 0;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-facts #quick-guide {
  margin-bottom: 10px !important;
  font-size: 24px !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-facts table {
  margin-bottom: 0 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-facts table td {
  padding: 9px 12px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-facts table td:first-child {
  width: 24%;
  color: #4b5563 !important;
  font-weight: 700 !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-map {
  display: flex;
  min-width: 0;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-map .fi-map {
  flex: 1 1 auto;
  width: 100% !important;
  min-height: 100%;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-map .fi-map #map {
  height: 100%;
  min-height: 310px;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-jump-box {
  margin-top: 0 !important;
  margin-bottom: 28px !important;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-jump-box .fi-jump-links {
  margin-bottom: 0 !important;
}

/* Shared guide meta pattern: keep wishlist action on the right edge of the guide frame. */
#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-meta {
  gap: 8px 16px;
}

#site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-favorite {
  margin-left: auto;
}

@media (max-width: 991px) {
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-panel {
    grid-template-columns: 1fr;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-map .fi-map #map {
    min-height: 280px;
  }
}

@media (max-width: 767px) {
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-meta,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .blog-text,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .content-wrapper,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-nature-top-panel,
  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-jump-box {
    max-width: none !important;
  }

  #site.subpage section.content .row:has(#left_col .fi-nature-guide) .fi-guide-favorite {
    margin-left: 0;
  }
}
