/* ============================================================
   NVHZ 2026 – Globální styly
   Poppins font, krémově žlutá pozadí, zelená + oranžová
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ----------  CSS proměnné  ---------- */
:root {
  --bg:            #FFFBEA;
  --bg-card:       #FFFFFF;
  --green:         #3A7D44;
  --green-dark:    #2d6235;
  --green-light:   #e8f5ea;
  --orange:        #E87722;
  --orange-light:  #fff3e8;
  --text:          #222222;
  --text-muted:    #666666;
  --border:        #e0d9c4;
  --shadow:        0 4px 16px rgba(0,0,0,0.10);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
  --radius:        16px;
  --radius-sm:     10px;
  --nav-height:    72px;
  --font:          'Poppins', sans-serif;
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: var(--nav-height);
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ----------  Page fadein  ---------- */
.page-enter {
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------  Page header  ---------- */
.page-header {
  background: linear-gradient(135deg, var(--green) 0%, #2d6235 100%);
  color: #fff;
  padding: 18px 20px 14px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(58,125,68,0.25);
}
.page-header h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.page-header .header-icon {
  font-size: 1.4rem;
  margin-bottom: 2px;
  display: block;
}

/* ----------  Bottom navigation  ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #fff;
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .58rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 6px 2px;
  transition: color .2s, background .2s;
  position: relative;
}
.bottom-nav a i {
  font-size: 1.25rem;
  transition: transform .2s;
}
.bottom-nav a.active,
.bottom-nav a:active {
  color: var(--green);
}
.bottom-nav a.active i {
  transform: translateY(-2px);
}
.bottom-nav a.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--green);
  border-radius: 0 0 4px 4px;
}
.bottom-nav a:active {
  background: var(--green-light);
}

/* ----------  Tlačítka  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
  border: none;
}
.btn:active { transform: scale(.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(58,125,68,0.35);
}
.btn-primary:active { box-shadow: 0 2px 8px rgba(58,125,68,0.25); }

.btn-secondary {
  background: #fff;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange) 0%, #c95e10 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232,119,34,0.35);
}

.btn-full { width: 100%; }

/* ----------  Karty  ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ----------  Section nadpis  ---------- */
.section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 20px 20px 8px;
}

/* ----------  Kontejner  ---------- */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ----------  Úvodní stránka  ---------- */
.home-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 24px 20px;
  background: var(--bg);
}
.home-logos .logo-livestock {
  width: min(220px, 64vw);
}
.home-logos .logo-cmsch {
  width: min(200px, 58vw);
}

.home-share-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid var(--orange);
  color: var(--orange);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 10;
  transition: background .2s, transform .15s;
}
.home-share-btn:active { transform: scale(.9); background: var(--orange-light); }
.home-fb-link {
  position: absolute;
  top: 66px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  color: #1877f2;
  border: 1px solid #cfe0ff;
  border-radius: 50%;
  padding: 0;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}
.home-fb-link:active {
  transform: scale(.97);
}

.home-hero {
  position: relative;
  padding-top: 4px;
}

.home-tagline {
  text-align: center;
  padding: 4px 20px 16px;
}
.home-tagline h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
}
.home-tagline p {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.home-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 8px 16px 24px;
}
.home-nav-grid .nav-card-full {
  grid-column: 1 / -1;
}

.nav-card {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius);
  border: 1.5px solid var(--green-dark);
  box-shadow: 0 4px 14px rgba(58,125,68,0.28);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, border-color .2s;
  text-decoration: none;
  color: #fff;
}
.nav-card:active {
  transform: scale(.96);
  box-shadow: 0 2px 8px rgba(58,125,68,0.22);
}
.nav-card:hover {
  border-color: var(--green-dark);
  box-shadow: 0 6px 18px rgba(58,125,68,0.34);
}
.nav-card .nav-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  transition: background .2s;
  flex-shrink: 0;
}
.nav-card:hover .nav-card-icon { background: rgba(255,255,255,0.28); color: #fff; }
.nav-card span {
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  line-height: 1.2;
  color: #fff;
}

.home-date-badge {
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3px;
}

/* ----------  Program  ---------- */
.program-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 6px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.program-tabs::-webkit-scrollbar { display: none; }

.program-tab {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.program-tab.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.program-tab-icon { margin-right: 1px; }
.program-tab .hoof-icon {
  font-size: .9rem;
  vertical-align: -1px;
}

.program-day-header {
  padding: 14px 16px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.program-day-header .day-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
}
.program-day-header .day-badge {
  background: var(--green);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.program-location-group {
  padding: 0 16px 8px;
}
.program-location-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--orange-light);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: .78rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .5px;
  border: 1.5px solid #fcd9b8;
  border-bottom: none;
}
.program-location-label i { font-size: .9rem; }
.program-location-label .hoof-icon { font-size: .9rem; }

.program-event {
  background: #fff;
  border: 1.5px solid #e8e0cc;
  border-top: none;
  padding: 10px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background .2s;
}
.program-event:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-bottom: 10px;
}
.program-event.active-event {
  background: #f0fbf1;
  border-color: var(--green);
  border-top: 1.5px solid var(--green);
}
.program-event.upcoming-event {
  background: #fff8f0;
}
.program-event-time {
  min-width: 80px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--orange);
  padding-top: 2px;
  white-space: nowrap;
}
.program-event-title {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.program-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  margin-top: 4px;
}
.badge-active { background: var(--green); color: #fff; }
.badge-upcoming { background: var(--orange); color: #fff; }

/* ----------  Katalog  ---------- */
.katalog-header {
  padding: 20px 16px 12px;
  text-align: center;
}
.katalog-header img {
  margin: 0 auto 10px;
  width: min(260px, 75vw);
}

.animal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 16px 24px;
}
.animal-grid > .animal-card {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}
.animal-card {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius);
  border: 1.5px solid var(--green-dark);
  box-shadow: 0 4px 14px rgba(58,125,68,0.28);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.animal-card:active { transform: scale(.95); }
.animal-card:hover { border-color: var(--green-dark); box-shadow: 0 6px 18px rgba(58,125,68,0.34); }

.animal-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  flex-shrink: 0;
}
.animal-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.hoof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: currentColor;
  line-height: 1;
}
.hoof-icon .hoof-mark {
  width: 6px;
  height: 12px;
  background: currentColor;
  border-radius: 60% 60% 55% 55%;
  display: inline-block;
}
.hoof-icon .hoof-mark:first-child { transform: rotate(-8deg); }
.hoof-icon .hoof-mark:last-child { transform: rotate(8deg); }
.animal-icon-hoofprints {
  gap: 4px;
}
.animal-icon-hoofprints .hoof-mark {
  width: 8px;
  height: 16px;
  background: currentColor;
}
.animal-card span {
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  color: #fff;
}

/* ----------  Mapka  ---------- */
.mapka-wrapper {
  position: fixed;
  inset: 0;
  bottom: var(--nav-height);
  background: #111;
  overflow: hidden;
  touch-action: none;
}
.mapka-img-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
}
.mapka-img-container:active { cursor: grabbing; }
.mapka-img-container img {
  max-width: none;
  transform-origin: 0 0;
  user-select: none;
  pointer-events: none;
}
.mapka-controls {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}
.mapka-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green);
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s;
}
.mapka-btn:active { transform: scale(.9); background: var(--green-light); }

/* ----------  Stánek  ---------- */
.stanek-page {
  min-height: calc(100dvh - var(--nav-height));
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  background: var(--bg);
}
.stanek-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 16px;
  gap: 0;
}
.stanek-cmsch-logo {
  width: min(260px, 75vw);
  margin: 0 auto;
}
a.stanek-link {
  display: block;
  transition: opacity .2s;
}
a.stanek-link:active { opacity: .75; }

.stanek-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.stanek-row img {
  width: min(130px, 40vw);
  object-fit: contain;
  border-radius: 8px;
}

.stanek-prasata-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  width: 100%;
}
.stanek-prasata-wrap img {
  width: min(160px, 48vw);
  object-fit: contain;
}

.stanek-bottom {
  margin-top: auto;
  margin-left: -20px;
  margin-right: -20px;
}
.stanek-bottom img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 220px;
  object-position: top;
}

/* ----------  Foto soutěž  ---------- */
.foto-hero {
  background: linear-gradient(135deg, var(--orange) 0%, #c95e10 100%);
  color: #fff;
  padding: 24px 20px 20px;
  text-align: center;
}
.foto-hero i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
  opacity: .9;
}
.foto-hero h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.foto-hero p  { font-size: .82rem; opacity: .9; line-height: 1.5; }

.foto-rules {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  margin: 16px 16px 0;
  padding: 16px;
}
.foto-rules h3 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.foto-rules ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foto-rules li {
  font-size: .82rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.foto-rules li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.foto-form-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  margin: 14px 16px 24px;
  padding: 20px 16px;
}
.foto-form-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.form-group input[type="email"],
.form-group input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--green);
}
.form-group input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

.foto-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 30px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg);
}
.foto-drop-zone.dragover {
  border-color: var(--green);
  background: var(--green-light);
}
.foto-drop-zone i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}
.foto-drop-zone p {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.foto-drop-zone .drop-hint {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: .7;
}

.foto-preview {
  display: none;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.foto-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}
.foto-preview-meta {
  background: var(--bg);
  padding: 8px 12px;
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.progress-bar-wrap {
  display: none;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #57b768);
  width: 0%;
  transition: width .4s ease;
  border-radius: 3px;
}

.foto-counter {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  padding: 0 16px 10px;
}
.foto-counter span {
  font-weight: 700;
  color: var(--orange);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid #b8e0bc; }
.alert-error   { background: #ffeaea; color: #c0392b; border: 1px solid #f5c6cb; }

/* ----------  Share toast  ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----------  Scrollbar  ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ----------  Katalog dojeneho skotu  ---------- */
.dairy-controls {
  margin: 14px 16px 10px;
  padding: 14px;
  border-radius: var(--radius);
}
.dairy-filter-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dairy-filter-row + .dairy-filter-row {
  margin-top: 12px;
}
.dairy-label {
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}
.dairy-select,
.dairy-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: .92rem;
  color: var(--text);
  background: #fff;
  font-family: var(--font);
  outline: none;
}
.dairy-select:focus,
.dairy-input:focus {
  border-color: var(--green);
}
.dairy-input.dairy-filter-miss {
  border-color: #d95656;
  background: #fff0f0;
}
.dairy-slider-wrap {
  margin-top: 14px;
  padding: 12px 12px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}
.dairy-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.dairy-slider-current {
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1;
}
.dairy-slider {
  width: 100%;
  accent-color: var(--green);
  min-height: 34px;
}

.dairy-status {
  display: none;
  margin: 0 16px 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
}
.dairy-status.show {
  display: block;
}
.dairy-status.info {
  background: #eef6ff;
  border: 1px solid #bfdcff;
  color: #245d93;
}
.dairy-status.ok {
  background: var(--green-light);
  border: 1px solid #b8e0bc;
  color: var(--green-dark);
}
.dairy-status.warning {
  background: #fff5e9;
  border: 1px solid #f5d8b1;
  color: #9a631f;
}
.dairy-status.error {
  background: #ffecec;
  border: 1px solid #f3c3c3;
  color: #b14141;
}

.dairy-card-host {
  padding: 0 16px 22px;
}
.dairy-empty {
  background: #fff;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
}

.dairy-animal-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dairy-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfff9 0%, #f4faef 100%);
}
.dairy-kat-badge {
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  min-width: 62px;
  padding: 7px 10px;
  text-align: center;
  border-radius: 12px;
}
.dairy-cislo {
  font-size: .88rem;
  color: var(--text-muted);
}
.dairy-cislo strong {
  font-size: .98rem;
  color: var(--text);
}
.dairy-info-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid #c5e4c8;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dairy-info-btn:active {
  transform: scale(.95);
}
.dairy-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 14px 14px;
}
.dairy-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: .86rem;
}
.dairy-line strong {
  min-width: 106px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-muted);
}
.dairy-line span {
  color: var(--text);
}

.animal-modal[hidden] {
  display: none;
}
.animal-modal {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.animal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.animal-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 78dvh;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 18px;
  z-index: 1;
}
.animal-modal-dialog h2 {
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 10px;
}
.animal-modal-body {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.45;
  padding-top: 2px;
}
.animal-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.animal-modal-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #f0eadb;
}
.animal-modal-row:last-child {
  border-bottom: none;
}
.animal-modal-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .35px;
}
.animal-modal-value {
  font-size: .9rem;
  color: var(--text);
  word-break: break-word;
}
.animal-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.animal-modal-close:active {
  transform: scale(.95);
}

@media (min-width: 760px) {
  .animal-modal {
    align-items: center;
    padding: 20px;
  }
  .animal-modal-dialog {
    border-radius: var(--radius);
    max-height: min(78dvh, 680px);
  }
}
