/* Shared visual layer for the multilingual Gran Canaria travel guides. */
.guide-content .section {
  position: relative;
  margin-bottom: 42px;
  padding: 46px 40px;
  border: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.guide-content .section:nth-of-type(even) {
  background: linear-gradient(135deg, #fffaf4 0%, #ffffff 68%);
}

.guide-content .section:nth-of-type(odd) {
  background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 68%);
}

.guide-content .section::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  width: 4px;
  height: 48px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(#ff6b35, #f6ad55);
}

.guide-content .section-title {
  color: #c2410c;
  border-color: #ea580c;
  letter-spacing: -0.02em;
}

.guide-content #health .section-title {
  color: #b91c1c !important;
  border-color: #dc2626 !important;
}

.guide-content .subsection + .subsection {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid rgba(30, 41, 59, 0.1);
}

.guide-content a:not(.hero-card):not(.cta-button) {
  color: #c2410c;
  font-weight: 600;
}

.guide-media {
  display: block;
  width: 100%;
  height: 200px;
  flex: 0 0 200px;
  object-fit: cover;
  object-position: center;
  background: #e2e8f0;
}

.image-credit {
  margin: 0 !important;
  padding: 0 12px;
  position: relative;
  z-index: 1;
  height: 0;
  color: white !important;
  font-size: 0.66rem;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  transform: translateY(-1.5rem);
}

.image-credit a {
  color: white !important;
  font-weight: 500 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.beach-card,
.icon-box {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.beach-card:hover,
.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

.beach-card-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.beach-card-content {
  flex: 1;
}

.icon-box {
  padding: 0 0 22px;
  text-align: left;
}

.icon-box .guide-media {
  margin-bottom: 18px;
}

.icon-box h4,
.icon-box p,
.icon-box .icon {
  margin-right: 22px;
  margin-left: 22px;
}

.icon-box .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 2px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: #ea580c;
  background: #fff1e9;
  font-size: 1.15rem;
}

.icon-box h4 { color: #1e293b; }
.icon-box p { color: #475569; }

.info-box {
  position: relative;
  padding: 22px 24px 22px 56px;
  color: #334155;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
}

.info-box::before {
  content: "\f05a";
  position: absolute;
  top: 22px;
  left: 20px;
  color: #2563eb;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.info-box[style*="#fffbeb"] {
  border-color: #fde68a !important;
  border-left-color: #eab308 !important;
  background: #fffbeb !important;
}

.info-box[style*="#fffbeb"]::before {
  content: "\f0eb";
  color: #ca8a04;
}

.guide-content table {
  overflow: hidden;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.guide-content th,
.guide-content td {
  padding: 13px 15px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.guide-content th {
  color: #9a3412;
  background: #fff1e9;
  border-bottom: 2px solid #fdba74;
}

.guide-content tr:last-child td { border-bottom: 0; }
.guide-content tr:nth-child(odd) td { background: #f8fafc; }

@media (hover: hover) {
  .guide-content tr:hover td { background: #fff7ed; }
}

.climate-data-table td.climate-bar {
  position: relative;
  min-width: 76px;
}

.climate-data-table td.climate-bar::after {
  content: "";
  display: block;
  width: calc(var(--bar) * 100%);
  max-width: 100%;
  height: 5px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #fbbf24);
}

.climate-data-table td.sun-bar::after {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.emergency-grid .icon-box {
  border: 2px solid #f87171;
  background: linear-gradient(145deg, #fff1f2, #ffffff) !important;
}

.emergency-grid .icon-box .icon {
  color: #dc2626;
  background: #fee2e2;
}

.emergency-number {
  margin: 8px 22px !important;
  color: #b91c1c;
  font-size: clamp(2rem, 6vw, 3.2rem) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
}

@media (max-width: 640px) {
  .guide-content .section {
    margin-bottom: 28px;
    padding: 32px 18px;
  }

  .guide-content .section::before {
    top: 22px;
    height: 38px;
  }

  .beach-grid,
  .icon-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-media {
    height: 210px;
    flex-basis: 210px;
  }

  .guide-content table.responsive-table,
  .guide-content table.responsive-table tbody,
  .guide-content table.responsive-table tr,
  .guide-content table.responsive-table td {
    display: block;
    width: 100%;
  }

  .guide-content table.responsive-table {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .guide-content table.responsive-table tr:first-child { display: none; }

  .guide-content table.responsive-table tr {
    overflow: hidden;
    margin: 0 0 12px;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
  }

  .guide-content table.responsive-table td {
    display: grid;
    grid-template-columns: minmax(7.25rem, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
    padding: 11px 13px;
    border-bottom: 1px solid #e2e8f0;
    background: transparent !important;
  }

  .guide-content table.responsive-table td:last-child { border-bottom: 0; }

  .guide-content table.responsive-table td::before {
    content: attr(data-label);
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .guide-content .climate-table,
  .guide-content .climate-table table {
    overflow: visible;
    min-width: 0;
  }
}
