/* =====================================================================
   i-meteo.cz — Teploty moří
   ===================================================================== */

/* --- Hero header ---------------------------------------------------- */
.sea-hero {
  background: linear-gradient(160deg, #ffffff 0%, #fff7ed 55%, #ffedd5 100%);
  color: #1c1917;
  padding: 3rem 1.5rem;
  text-align: center;
  margin-bottom: 0;
  border-bottom: 1px solid #fed7aa;
}

.sea-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 .6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #1c1917;
}

.sea-hero__lead {
  max-width: 640px;
  margin: 0 auto 1.2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #44403c;
}

.sea-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.4rem;
  font-size: .9rem;
}

.sea-hero__stat {
  background: rgba(234,88,12,.09);
  border: 1px solid rgba(234,88,12,.18);
  border-radius: 20px;
  padding: .3rem .85rem;
  color: #7c2d12;
}

/* --- Mapa ----------------------------------------------------------- */
.sea-map-section {
  background: #f5f7fa;
}

.sea-map-section .studiografix-map-container,
.sea-map-section #studiografix-map {
  border-radius: 0;
  border: none;
}

/* --- Filtr ---------------------------------------------------------- */
.sea-filter-section {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: .8rem 1rem;
}

.sea-filter-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sea-filter-inner form {
  display: flex;
  width: 100%;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

.sea-filter-inner .form-item {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.sea-filter-inner .form-item label {
  display: none;
}

.sea-filter-inner input[type="text"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: .5rem .85rem;
  font-size: .95rem;
}

.sea-filter-inner input[type="text"]:focus {
  outline: none;
  border-color: #1b6ca8;
  box-shadow: 0 0 0 3px rgba(27,108,168,.15);
}

.sea-filter-inner .form-actions {
  margin: 0;
}

#findit {
  background: #1b6ca8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .5rem 1.2rem;
  cursor: pointer;
  font-size: .95rem;
  white-space: nowrap;
  transition: background .2s;
}

#findit:hover {
  background: #0f4c75;
}

.sea-filter-reset {
  display: inline-block;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: .5rem .9rem;
  font-size: .9rem;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}

.sea-filter-reset:hover {
  border-color: #ef4444;
  color: #ef4444;
  text-decoration: none;
}

/* --- Skupiny zemí --------------------------------------------------- */
.sea-country-section {
  padding: 1.5rem 1rem .5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sea-country-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #e5e7eb;
}

/* --- Karty ---------------------------------------------------------- */
.sea-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
}

.sea-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem .9rem .9rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border-top: 4px solid #9ca3af;
  transition: transform .15s, box-shadow .15s;
}

.sea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.sea-card__icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: .35rem;
}

.sea-card__location {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 .4rem;
  line-height: 1.3;
}

.sea-card__temp {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .3rem;
}

.sea-card__date {
  font-size: .72rem;
  color: #9ca3af;
}

/* Teplotní barevné kategorie */
.temp--hot   { border-top-color: #ef4444; }
.temp--hot .sea-card__temp   { color: #dc2626; }

.temp--warm  { border-top-color: #f97316; }
.temp--warm .sea-card__temp  { color: #ea580c; }

.temp--pleasant { border-top-color: #22c55e; }
.temp--pleasant .sea-card__temp { color: #16a34a; }

.temp--cool  { border-top-color: #3b82f6; }
.temp--cool .sea-card__temp  { color: #2563eb; }

.temp--cold  { border-top-color: #8b5cf6; }
.temp--cold .sea-card__temp  { color: #7c3aed; }

/* --- Prázdný stav --------------------------------------------------- */
.sea-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

/* --- SEO info sekce ------------------------------------------------- */
.sea-info-section {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
}

.sea-info-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.sea-info-inner h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.5rem 0 .5rem;
}

.sea-info-inner h2:first-child {
  margin-top: 0;
}

.sea-info-inner p {
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 .9rem;
  font-size: .95rem;
}

.sea-info-inner a {
  color: #1b6ca8;
  text-decoration: underline;
}

/* --- Poslední články ----------------------------------------------- */
.sea-articles-section {
  padding: 2rem 1rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sea-articles-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.2rem;
  color: #1f2937;
}

.sea-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.sea-article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}

.sea-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.sea-article-card__img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  background-color: #e5e7eb;
  display: block;
}

.sea-article-card__img--placeholder {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.sea-article-card__body {
  padding: .75rem .9rem .9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sea-article-card__date {
  font-size: .72rem;
  color: #9ca3af;
  margin-bottom: .3rem;
}

.sea-article-card__title {
  font-size: .9rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Popup na mapě -------------------------------------------------- */
.sea-popup strong {
  font-size: 1rem;
}

.sea-popup small {
  color: #6b7280;
}

/* --- Responzivita --------------------------------------------------- */
@media (max-width: 600px) {
  .sea-hero {
    padding: 1.8rem 1rem 1.5rem;
  }

  .sea-cards {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .5rem;
  }

  .sea-articles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sea-filter-inner form {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .sea-articles-grid {
    grid-template-columns: 1fr;
  }
}
