/* ===== Variables ===== */
:root {
  --teal: #082958;
  --teal-dark: #082958;
  --teal-light: #082958;
  --saffron: #ff9933;
  --green: #138808;
  --navy: #082958;
  --white: #ffffff;
  --off-white: #f7f9fb;
  --gray-100: #eef2f6;
  --gray-200: #d8e0e8;
  --gray-600: #5a6a7a;
  --gray-800: #2d3748;
  --shadow-sm: 0 2px 8px rgba(12, 60, 126, 0.08);
  --shadow-md: 0 8px 30px rgba(12, 60, 126, 0.12);
  --shadow-lg: 0 20px 60px rgba(12, 60, 126, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --ticker-height: 28px;
  --logo-size: 96px;
  --logo-hang: 0;
  --nav-pad-y: 0px;
  --nav-height: 118px;
  --header-total: calc(var(--ticker-height) + var(--nav-height));
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-total); width: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { width: 100%; max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(1140px, 92vw); margin: 0 auto; }

/* ===== Sky Layer ===== */
.sky-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bird {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.06;
  animation: flyAcross linear infinite;
}
.bird-1 { top: 12%; animation-duration: 28s; animation-delay: 0s; }
.bird-2 { top: 28%; animation-duration: 35s; animation-delay: -8s; font-size: 1rem; }
.bird-3 { top: 55%; animation-duration: 22s; animation-delay: -14s; font-size: 0.9rem; }
.bird-4 { top: 72%; animation-duration: 40s; animation-delay: -20s; }
.bird-5 { top: 88%; animation-duration: 30s; animation-delay: -5s; font-size: 1.4rem; }

@keyframes flyAcross {
  0% { left: -5%; transform: translateY(0) scaleX(1); }
  25% { transform: translateY(-20px) scaleX(1); }
  50% { transform: translateY(10px) scaleX(1); }
  75% { transform: translateY(-15px) scaleX(1); }
  100% { left: 105%; transform: translateY(0) scaleX(1); }
}

/* ===== Header ===== */
.top-ticker {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  height: var(--ticker-height);
  display: flex;
  align-items: center;
}
.ticker-wrap {
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-content {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-content span {
  flex-shrink: 0;
  padding: 0 48px 0 0;
  line-height: var(--ticker-height);
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ticker-content span::before {
  content: '★';
  margin-right: 14px;
  color: var(--saffron);
  font-size: 0.65rem;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-content { animation: none; }
  .ticker-wrap { overflow-x: auto; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #082958;
  transition: box-shadow var(--transition);
  padding: 0;
  overflow: hidden;
  height: var(--header-total);
}
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
/* Let the fixed mobile drawer escape the header clip when open */
body.nav-open .header {
  overflow: visible;
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 28px;
  padding: 0;
  height: var(--nav-height);
  min-height: var(--nav-height);
  max-height: var(--nav-height);
  overflow: visible;
  box-sizing: border-box;
  position: relative;
}
.header.scrolled .nav {
  padding: 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  position: relative;
  width: auto;
  height: var(--nav-height);
  flex-shrink: 0;
  z-index: 5;
  grid-column: 1;
  justify-self: start;
  align-self: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
.nav-brand-text {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.nav-logo-wrap {
  position: relative;
  left: auto;
  bottom: auto;
  width: var(--logo-size);
  height: var(--logo-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
  margin: 0;
  flex-shrink: 0;
  isolation: isolate;
}
.nav-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 0;
  flex-shrink: 0;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.nav-drawer {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.nav-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  align-self: center;
  flex-shrink: 0;
  height: 100%;
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 16px;
  list-style: none;
  height: 100%;
  margin: 0;
}
.nav-menu-contact { display: none; }
.nav-drawer-brand { display: none; }
.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: width var(--transition), left var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 60%; left: 20%; }

.nav-admin-btn {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(12, 60, 126, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.nav-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(12, 60, 126, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(12, 60, 126, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-accent {
  background: linear-gradient(135deg, var(--saffron), #e88a2a);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 153, 51, 0.35);
  white-space: nowrap;
}
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-outline-dark {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-dark:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-full { width: 100%; justify-content: center; border: none; font-family: var(--font-sans); }

/* ===== Slider ===== */
.slider-section {
  padding-top: var(--header-total);
  background: var(--white);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  height: min(520px, 75vh);
  overflow: hidden;
  border-radius: 0;
}
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 58% 42%;
  width: 100%;
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.slide-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-width: 0;
  width: 100%;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.slide.active .slide-image img { transform: scale(1); }

.slide-panel {
  background: #3371a3;
  color: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.slide-panel.panel-alt,
.slide-panel.panel-green {
  background: #3371a3;
}

.slide-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-bottom: 12px;
}
.slide-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.slide-text {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.9;
  margin-bottom: 28px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.slide-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--saffron);
  color: var(--gray-800);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  background: #ffaa44;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--teal-dark);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, transform 0.3s ease;
}
.slider-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: 20px; right: auto; }
.slider-next { right: 20px; left: auto; }

/* Desktop: keep both arrows on the image side */
@media (min-width: 993px) {
  .slider-next {
    left: calc(58% - 64px);
    right: auto;
  }
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 29%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.dot.active,
.dot:hover {
  background: var(--white);
  transform: scale(1.15);
}

/* ===== Page Sections ===== */
.page-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.home-page .page-section {
  padding: 44px 0 52px;
}
.home-page .home-contact {
  padding-top: 36px;
  padding-bottom: 48px;
}
.home-page .section-head {
  margin-bottom: 28px;
}
.home-page .home-section-split {
  margin-bottom: 28px;
}
.home-page .home-contact-header {
  margin-bottom: 24px;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-light);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--teal-dark);
  font-weight: 700;
}
.section-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  margin: 14px auto 0;
  border-radius: 2px;
}

/* Inner pages */
.inner-page main {
  padding-top: var(--header-total);
}

/* 12-column grid */
.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.col-12 { grid-column: span 12; }
.col-11 { grid-column: span 11; }
.col-10 { grid-column: span 10; }
.col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-1 { grid-column: span 1; }

/* About */
.about-section { background: var(--white); }
.about-page-section {
  background: var(--white);
  padding-top: 36px;
  padding-bottom: 56px;
}
.about-page-row {
  margin-top: 0;
}
.about-page-content {
  border-left: 3px solid #0c3c7e;
  padding: 0 0 0 28px;
  max-width: 100%;
}
.about-page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0c3c7e;
}
.about-page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/about-banner.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}
.about-page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 48px;
}
.about-page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 480px;
  margin-bottom: 0;
}
.about-page-head .section-label {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}
.about-page-head .section-title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 40, 100, 0.35);
  margin: 0;
}
.about-page-head .section-line {
  margin: 14px 0 0;
  align-self: flex-start;
  background: linear-gradient(90deg, #ff9933, #fff, #138808);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.about-page-content p {
  color: #444;
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 18px;
  text-align: left;
}
.about-page-content p:last-child { margin-bottom: 0; }
.about-page-content strong {
  color: #222;
  font-weight: 700;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.about-badge img {
  width: 48px;
  height: 58px;
  object-fit: contain;
  object-position: center top;
  border-radius: 6px;
  flex-shrink: 0;
}
.about-badge span { font-size: 0.8rem; font-weight: 600; color: var(--teal-dark); }
.about-content p {
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.8;
  text-align: justify;
}
.about-content strong { color: var(--teal-dark); }
.about-highlight {
  font-size: 1.05rem;
  color: var(--teal) !important;
  margin-bottom: 24px !important;
}
.about-highlight em { font-style: normal; color: var(--saffron); font-weight: 600; }
.about-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}
.about-actions .btn {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
}

/* Race Results */
.results-section { background: var(--off-white); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.result-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}
.result-card:hover::before { transform: scaleX(1); }
.result-card.featured {
  background: linear-gradient(160deg, var(--teal-dark), var(--teal));
  color: var(--white);
  border-color: transparent;
}
.result-card.featured .result-year { color: var(--saffron); }
.result-card.featured .result-year-icon {
  background: rgba(255, 153, 51, 0.18);
  color: var(--saffron);
  border-color: rgba(255, 153, 51, 0.35);
}
.result-card.featured h3 { color: var(--white); }
.result-card.featured p { color: rgba(255,255,255,0.85); }
.result-card.featured .result-link { color: var(--saffron); }
.result-card.featured .result-link-icon {
  background: rgba(255, 153, 51, 0.18);
  color: var(--saffron);
}
.result-year {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 8px;
}
.result-year-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(12, 60, 126, 0.08);
  color: var(--teal);
  border: 1px solid rgba(12, 60, 126, 0.12);
  flex-shrink: 0;
}
.result-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.result-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.65;
}
.result-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal);
  transition: gap 0.25s ease;
}
.result-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(12, 60, 126, 0.1);
  color: var(--teal);
  transition: transform 0.25s ease, background 0.25s ease;
}
.result-card:hover .result-link { gap: 14px; }
.result-card:hover .result-link-icon { transform: translateX(3px); }

/* Race results page */
.results-page-section {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(12, 60, 126, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 40% at 90% 100%, rgba(255, 153, 51, 0.08), transparent 50%),
    var(--off-white);
  padding-top: 32px;
  padding-bottom: 56px;
}
.results-page-section .breeders-page-top {
  margin-bottom: 24px;
}
.results-page-head {
  text-align: center;
  margin-bottom: 20px;
}
.results-page-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.7;
}
.results-tools {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr);
  gap: 16px;
  align-items: end;
  max-width: 720px;
  margin: 0 auto 36px;
}
.results-tool {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.results-tool-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.results-select,
.results-search-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.results-select {
  padding: 0 40px 0 14px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%),
    linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.results-search-wrap {
  position: relative;
}
.results-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
  pointer-events: none;
}
.results-search-input {
  padding: 0 14px 0 42px;
}
.results-select:focus,
.results-search-input:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(12, 60, 126, 0.12);
}
.results-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.results-carousel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
  container-name: results-carousel;
}
.results-carousel-arrow {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--teal);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.results-carousel-arrow:hover:not(:disabled) {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.results-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}
.results-grid-years {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 24px;
  margin-bottom: 0;
  will-change: transform;
}
.results-grid-years .result-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100cqw - 48px) / 3);
  width: calc((100cqw - 48px) / 3);
  max-width: calc((100cqw - 48px) / 3);
  min-height: 260px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.results-grid-years .result-card .result-year {
  display: block;
  font-size: 2.6rem;
  margin-bottom: 10px;
}
.results-grid-years .result-card .result-year-icon {
  display: none;
}
.results-grid-years .result-card.is-filtered-out {
  display: none !important;
}
.result-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--saffron);
  color: #1a1a1a;
  padding: 5px 10px;
  border-radius: 6px;
  z-index: 1;
}
.results-grid-years .result-link {
  margin-top: auto;
}
.results-list-years {
  display: none;
}
.result-row {
  display: none;
}
.results-pagination {
  margin-top: 28px;
}
.results-empty {
  text-align: center;
  color: var(--gray-600);
  font-size: 1rem;
  padding: 24px 0 8px;
}
.result-detail-section {
  background: var(--off-white);
  padding-top: 28px;
  padding-bottom: 48px;
}
.result-detail-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(240px, 340px);
  align-items: end;
  gap: 12px 20px;
  margin-bottom: 28px;
}
.result-detail-heading {
  text-align: left;
  min-width: 0;
}
.result-detail-heading .section-label {
  margin-bottom: 6px;
}
.result-detail-heading .section-title {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
}
.result-detail-heading .section-line {
  margin: 10px 0 0;
}
.result-detail-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.result-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal);
  background: var(--white);
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.result-back::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.result-back:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 60, 126, 0.25);
}
.result-detail-bar p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}
.result-detail-search {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}
.result-detail-search .results-search-wrap { width: 100%; }
.result-detail-top .result-detail-search {
  justify-self: end;
}
.race-event-card.is-filtered-out { display: none; }
.race-events-empty {
  text-align: center;
  color: var(--gray-600);
  font-size: 1rem;
  padding: 16px 0 8px;
}

/* Year race event cards */
.race-event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.race-event-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(12, 60, 126, 0.08);
  border: 1px solid rgba(12, 60, 126, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.race-event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(12, 60, 126, 0.14);
}
.race-event-media {
  position: relative;
  overflow: hidden;
}
.race-event-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.race-event-card:hover .race-event-media img {
  transform: scale(1.06);
}
.race-event-media .place-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  margin: 0;
  color: #fff;
  background: rgba(255, 153, 51, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.race-event-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.race-event-body time {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0c3c7e;
  margin-bottom: 8px;
}
.race-event-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--teal-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.race-event-body .place-meta {
  margin-bottom: 14px;
}
.race-event-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
}
.race-event-card:hover .race-event-link { color: var(--saffron); }

/* Full race detail - gallery cards + zoom */
.race-full-section {
  background: var(--white);
  padding-top: 28px;
  padding-bottom: 48px;
}
.race-full-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 20px;
}
.race-full-heading {
  text-align: center;
  min-width: 0;
  grid-column: 2;
}
.race-full-heading .section-label {
  margin-bottom: 6px;
}
.race-full-heading .section-title {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}
.race-full-heading .section-line {
  margin: 10px auto 0;
}
.race-full-top .result-back {
  justify-self: start;
  grid-column: 1;
}
.race-full-top-spacer {
  grid-column: 3;
  justify-self: end;
  width: 1px;
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}
.race-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px 0 32px;
}
.race-photo-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  appearance: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.race-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.race-photo-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}
.race-photo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.race-photo-card:hover .race-photo-card-media img {
  transform: scale(1.06);
}
.race-photo-view {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(12, 60, 126, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.race-photo-card:hover .race-photo-view {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.race-photo-card-body {
  padding: 12px 14px 14px;
}
.race-photo-card-body h3 {
  font-size: 0.95rem;
  color: var(--teal-dark);
  margin: 0 0 4px;
}
.race-photo-card-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.race-zoom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 16, 32, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.race-zoom-lightbox[hidden] { display: none; }
.race-zoom-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.race-zoom-close:hover { opacity: 1; }
.race-zoom-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  z-index: 2;
}
.race-zoom-tool {
  min-width: 44px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 14px;
}
.race-zoom-tool:hover { background: rgba(255, 153, 51, 0.9); color: #1a1a1a; }
.race-zoom-stage {
  width: min(92vw, 980px);
  height: min(72vh, 620px);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.race-zoom-stage img {
  max-width: none;
  transform-origin: center center;
  transition: transform 0.2s ease;
  border-radius: 8px;
  cursor: grab;
  user-select: none;
}
.race-zoom-caption {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 14px;
  font-size: 0.95rem;
  text-align: center;
}

.race-full-article {
  max-width: 100%;
  min-width: 0;
  padding: 8px 0 20px;
  overflow-x: hidden;
}
.race-full-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.race-full-header time {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0c3c7e;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.race-full-header .place-badge {
  margin: 0;
  flex-shrink: 0;
  color: #fff;
  background: #0c3c7e;
}
.race-full-header .place-meta {
  font-size: 0.95rem;
  margin: 0;
  color: var(--gray-600);
  white-space: nowrap;
  flex-shrink: 0;
}
.race-full-header > *:not(:first-child) {
  padding-left: 14px;
  border-left: 1px solid var(--gray-200);
}
.race-full-body {
  margin: 0 0 36px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.race-report-box {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 251, 0.95));
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.race-para-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: none;
}
.race-para-block + .race-para-block {
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}
.race-para-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--teal-dark);
  margin: 0 0 12px;
  padding-bottom: 0;
  line-height: 1.3;
  border-bottom: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.race-para-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.race-para {
  color: var(--gray-800);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0;
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
  width: 100%;
}
.race-full-body p {
  color: var(--gray-800);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 12px;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.race-full-body p:last-child { margin-bottom: 0; }
.race-full-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}
.race-fact {
  background: var(--off-white);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
}
.race-fact span {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.race-fact strong {
  color: var(--teal-dark);
  font-size: 0.95rem;
}

.result-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.result-detail-card {
  background: var(--white);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(12, 60, 126, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.result-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.result-detail-card.featured-place {
  background: linear-gradient(160deg, var(--teal-dark), var(--teal));
  color: var(--white);
  border: none;
}
.result-detail-card.featured-place .place-meta,
.result-detail-card.featured-place p { color: rgba(255,255,255,0.88); }
.result-detail-card.featured-place h3 { color: var(--white); }
.place-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saffron);
  background: rgba(255, 153, 51, 0.15);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.result-detail-card.featured-place .place-badge {
  background: rgba(255, 153, 51, 0.25);
  color: var(--saffron);
}
.result-detail-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--teal-dark);
  margin-bottom: 6px;
}
.place-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 10px;
}
.result-detail-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}
.result-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
/* Breeders */
.breeders-section { background: var(--white); }
.breeders-text p {
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.8;
  text-align: justify;
}
.pedigree-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.pedigree-tags .tag {
  padding: 8px 16px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-dark);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.pedigree-tags .tag:hover {
  transform: translateY(-2px);
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.breeders-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.breeder-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease;
}
.breeder-item:hover { transform: translateY(-4px) scale(1.02); }
.breeder-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.breeder-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(8, 58, 124, 0.85));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Breeders listing page */
.breeders-page-section {
  background: var(--off-white);
  padding-top: 20px;
  padding-bottom: 48px;
}
.breeders-page-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  text-align: center;
}
.breeders-page-heading {
  text-align: center;
  min-width: 0;
  width: 100%;
  max-width: 720px;
}
.breeders-page-heading .section-label {
  margin-bottom: 4px;
}
.breeders-page-heading .section-title {
  margin: 0;
  line-height: 1.15;
}
.breeders-page-heading .section-line {
  margin: 8px auto 0;
}
.breeders-page-intro {
  text-align: center;
  max-width: 640px;
  margin: 10px auto 0;
  font-size: 0.95rem;
}
.breeders-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 820px;
  min-width: 0;
  box-sizing: border-box;
}
.results-filters,
.gallery-filters,
.sales-filters {
  max-width: 720px;
}
.breeders-filter-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
  line-height: 1;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.breeders-select,
.breeders-input,
.breeders-search-btn {
  height: 42px;
  box-sizing: border-box;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  margin: 0;
}
.breeders-select,
.breeders-input {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  padding: 0 32px 0 12px;
}
.breeders-select {
  min-width: 110px;
  max-width: 140px;
  appearance: none;
  background-color: var(--white);
  background-image:
    linear-gradient(45deg, transparent 50%, #888 50%),
    linear-gradient(135deg, #888 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.breeders-select-blood {
  min-width: 180px;
  max-width: 240px;
  flex: 1 1 200px;
}
.breeders-input {
  min-width: 110px;
  max-width: 140px;
  flex: 0 1 120px;
  padding-right: 12px;
}
.results-filters .breeders-input,
.sales-filters .breeders-input,
.gallery-filters .breeders-input {
  min-width: 160px;
  max-width: 280px;
  flex: 1 1 200px;
}
.breeders-select:focus,
.breeders-input:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(12, 60, 126, 0.12);
}
.breeders-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(12, 60, 126, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.breeders-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(12, 60, 126, 0.35);
}
.breeders-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.breeder-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(12, 60, 126, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.breeder-card:hover,
.breeder-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 14px 32px rgba(12, 60, 126, 0.18);
  outline: none;
}
.breeder-card:active {
  transform: translateY(-2px);
  border-color: var(--teal-dark);
  box-shadow: 0 8px 20px rgba(12, 60, 126, 0.16);
}
.breeder-card-media {
  position: relative;
  background: #eef2f6;
  overflow: hidden;
}
.breeder-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.breeder-card:hover .breeder-card-media img,
.breeder-card:focus-visible .breeder-card-media img {
  transform: scale(1.06);
}
.breeder-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(12, 60, 126, 0.88);
  backdrop-filter: blur(4px);
}
.breeder-card-badge.is-hen { background: rgba(19, 136, 8, 0.88); }
.breeder-card-badge.is-cock { background: rgba(12, 60, 126, 0.88); }
.breeder-card-view {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  transform: translate(-50%, -40%);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.breeder-card:hover .breeder-card-view,
.breeder-card:focus-visible .breeder-card-view {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.breeder-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #e8eef5;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.breeder-card-name {
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.25s ease;
}
.breeder-card:hover .breeder-card-name {
  color: var(--teal);
}
.breeder-card-ring {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 600;
}
.breeder-card-meta {
  color: var(--gray-600);
  font-size: 0.8rem;
}
.breeders-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}
.breeders-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  background: #fff;
  color: var(--teal-dark);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.breeders-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}
.breeders-page-btn.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 60, 126, 0.28);
}
.breeders-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Bird detail */
.bird-detail-section {
  background: var(--off-white);
  padding-top: 28px;
  padding-bottom: 48px;
}
.bird-detail-section .result-detail-bar {
  margin-bottom: 12px;
}
.bird-info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.bird-info-header {
  background: var(--teal);
  color: #fff;
  text-align: center;
  padding: 14px 16px;
}
.bird-info-header h1 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}
.bird-info-sub {
  margin: 4px 0 0;
  font-size: 0.88rem;
  opacity: 0.9;
}
.bird-media-layout {
  display: grid;
  grid-template-columns: minmax(120px, 0.95fr) minmax(220px, 2.1fr) minmax(120px, 0.95fr);
  grid-template-rows: minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
  padding: 14px;
  align-items: stretch;
}
.bird-slot {
  min-width: 0;
  min-height: 0;
}
.bird-slot-hero {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.bird-slot-eye { grid-column: 1; grid-row: 1; }
.bird-slot-wing { grid-column: 1; grid-row: 2; }
.bird-slot-father { grid-column: 3; grid-row: 1; }
.bird-slot-mother { grid-column: 3; grid-row: 2; }
.bird-slot .bird-media-box,
.bird-slot .bird-parent-card {
  height: 100%;
}
.bird-media-layout .bird-media-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bird-media-layout .bird-media-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.bird-media-layout .bird-slot-eye .bird-media-frame,
.bird-media-layout .bird-slot-wing .bird-media-frame,
.bird-media-layout .bird-parent-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bird-media-layout .bird-parent-card-media {
  flex: 1;
  min-height: 150px;
}
.bird-media-box-hero {
  height: 100%;
}
.bird-media-frame-hero {
  min-height: 340px;
  height: 100%;
}
.bird-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  align-items: stretch;
}
.bird-media-box,
.bird-other-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bird-media-grid .bird-media-frame {
  flex: 1;
  aspect-ratio: 1;
  min-height: 180px;
}
.bird-media-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.bird-media-layout .bird-media-label {
  margin-bottom: 4px;
}
.bird-media-frame {
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f7fa;
  aspect-ratio: 1;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
button.bird-media-zoomable {
  cursor: zoom-in;
}
button.bird-media-zoomable:hover,
button.bird-media-zoomable:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 60, 126, 0.15);
  outline: none;
}
.bird-media-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  top: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
button.bird-media-zoomable:hover .bird-media-zoom-hint,
button.bird-media-zoomable:focus-visible .bird-media-zoom-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
button.bird-media-zoomable::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 58, 124, 0.18);
  opacity: 0;
  transition: opacity 0.25s ease;
}
button.bird-media-zoomable:hover::after,
button.bird-media-zoomable:focus-visible::after {
  opacity: 1;
}
.bird-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bird-media-hero {
  aspect-ratio: 4 / 5;
  height: 100%;
  min-height: 320px;
}
.bird-media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9aa6b2;
  font-size: 0.78rem;
  padding: 12px;
  text-align: center;
}
.bird-section-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.bird-section-head {
  background: #e8eef5;
  color: var(--teal-dark);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid #d5deea;
}
.bird-parents-grid,
.bird-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
  align-items: start;
}
.bird-parent-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.bird-parent-card-media {
  aspect-ratio: 4 / 3;
  min-height: 180px;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #f4f7fa;
}
.bird-parent-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.bird-parent-card:hover .bird-parent-card-media,
.bird-parent-card:focus-visible .bird-parent-card-media,
.bird-parent-card.is-active .bird-parent-card-media {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 60, 126, 0.15);
  outline: none;
}
.bird-parent-card:hover .bird-parent-card-media img,
.bird-parent-card.is-active .bird-parent-card-media img {
  transform: scale(1.04);
}
.bird-parent-card .bird-media-zoom-hint {
  opacity: 0;
}
.bird-parent-card:hover .bird-media-zoom-hint,
.bird-parent-card:focus-visible .bird-media-zoom-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.bird-parent-detail {
  margin-bottom: 18px;
}
.bird-parent-detail[hidden] { display: none !important; }
.bird-parent-detail .bird-info-header h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.bird-parent-detail-body {
  padding: 18px;
}
.bird-parent-detail-media {
  max-width: 420px;
  margin-bottom: 16px;
}
.bird-parent-detail-photo {
  aspect-ratio: 4 / 3;
  min-height: 220px;
}
.bird-parent-detail .bird-facts {
  padding: 0 0 16px;
  border-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bird-parent-detail-info .bird-other-text {
  max-height: none;
  min-height: 80px;
}
.bird-parents-grid .bird-media-frame,
.bird-extra-grid .bird-media-frame {
  aspect-ratio: 4 / 3;
  min-height: 180px;
}
.bird-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  overflow: hidden;
  background: #0a2540;
}
.bird-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.bird-other-box {
  display: flex;
  flex-direction: column;
}
.bird-other-text {
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  flex: 1;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
  background: #fafbfc;
  scrollbar-width: thin;
}
.bird-other-text p {
  margin: 0 0 10px;
}
.bird-other-text p:last-child {
  margin-bottom: 0;
}
.bird-other-cat {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--gray-800);
}
.bird-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 24px;
  padding: 16px 18px 20px;
  border-top: 1px solid var(--gray-100);
  background: #fafbfc;
}
.bird-fact {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.5;
}
.bird-fact strong { color: var(--teal-dark); }
.bird-pedigree-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #e8eef5;
  border: 1px solid #d5deea;
  border-radius: 10px;
  padding: 14px 18px;
  text-align: center;
}
.bird-pedigree-bar h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--teal-dark);
  width: 100%;
}
.bird-pdf-viewer {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bird-pdf-viewer[hidden] { display: none !important; }
.bird-pdf-viewer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #e8eef5;
  border-bottom: 1px solid #d5deea;
}
.bird-pdf-viewer-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--teal-dark);
}
.bird-pdf-frame {
  display: block;
  width: 100%;
  height: min(80vh, 820px);
  border: 0;
  background: #f4f7fa;
}

/* Pedigree / Achievements modal (legacy unused) */
.bird-doc-modal[hidden] { display: none !important; }
.bird-doc-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.bird-doc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 30, 60, 0.55);
}
.bird-doc-panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.bird-doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--off-white);
  position: sticky;
  top: 0;
}
.bird-doc-toolbar h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--teal-dark);
}
.bird-doc-toolbar-actions {
  display: flex;
  gap: 8px;
}
.bird-doc-body { padding: 20px 22px 28px; }
.bird-doc-sheet h2 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-family: var(--font-serif);
}
.bird-doc-meta {
  color: var(--gray-600);
  margin: 0 0 18px;
  font-size: 0.92rem;
}
.bird-doc-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--gray-800);
  line-height: 1.7;
}
.bird-doc-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.bird-pedigree-tree {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  background: #f7fafc;
}
.bird-pedigree-self {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--gray-200);
}
.bird-pedigree-parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bird-pedigree-node {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px;
}
.bird-pedigree-role {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 4px;
  font-weight: 700;
}

@media print {
  body > *:not(.bird-doc-modal),
  .whatsapp-button,
  .call-button,
  .no-print,
  .bird-doc-backdrop {
    display: none !important;
  }
  .bird-doc-modal {
    position: static;
    display: block !important;
    padding: 0;
  }
  .bird-doc-panel {
    box-shadow: none;
    max-height: none;
    width: 100%;
  }
}

/* What's Special */
.special-section { background: var(--off-white); }
.special-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.special-content { grid-column: span 6; }
.special-video { grid-column: span 6; }
.special-content p {
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.8;
  text-align: justify;
}
.special-content p:last-child { margin-bottom: 0; }
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--navy);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.special-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.special-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.special-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.special-icon { font-size: 2rem; margin-bottom: 12px; }
.special-item h3 {
  font-family: var(--font-serif);
  color: var(--teal-dark);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.special-item p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.65; }
.special-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: var(--radius-lg);
  color: var(--white);
}
.special-visit p {
  opacity: 0.92;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}
.special-visit .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Gallery */
.gallery-section { background: var(--white); }
.gallery-head { margin-bottom: 40px; }
.gallery-head .section-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: 0.01em;
}
.gallery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.gallery-more {
  text-align: center;
  margin-top: 36px;
}

/* Gallery page */
.gallery-page-section {
  background: linear-gradient(180deg, #f7f9fb 0%, #fff 40%);
  padding-top: 32px;
  padding-bottom: 56px;
}
.gallery-page-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.7;
}
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.gallery-page-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(12, 60, 126, 0.08);
  border: 1px solid rgba(12, 60, 126, 0.08);
  display: flex;
  flex-direction: column;
  color: inherit;
  cursor: default;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(12, 60, 126, 0.12);
}
.gallery-page-card-media {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-page-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-page-card:hover .gallery-page-card-media img {
  transform: scale(1.05);
}
.gallery-page-card-media::after {
  content: 'Click to zoom';
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(12, 60, 126, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-page-card:hover .gallery-page-card-media::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.gallery-page-card-body {
  padding: 18px 20px 22px;
  flex: 1;
}
.gallery-page-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0c3c7e;
  background: rgba(12, 60, 126, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.gallery-page-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.gallery-page-card-body p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}
.gallery-page-card.is-filtered-out {
  display: none !important;
}
.gallery-pagination {
  margin-top: 32px;
}

/* ===== Sales listing ===== */
.sales-page-section {
  background: var(--off-white);
  padding-top: 32px;
  padding-bottom: 56px;
}
.sales-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.sale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 22px;
  align-items: center;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 251, 0.92)),
    radial-gradient(ellipse at 100% 0%, rgba(12, 60, 126, 0.06), transparent 55%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: inherit;
}
.sale-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(12, 60, 126, 0.35);
}
.sale-row[hidden],
.sale-row.is-filtered-out {
  display: none !important;
}
.sale-row-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.sale-row-top {
  min-width: 0;
}
.sale-row-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sale-row-id {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.sale-row-specs {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.45;
}
.sale-row-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.sale-row-price {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.sale-row-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.sale-row-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.4;
}
.sale-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sale-status--sold {
  background: #fde8e8;
  color: #b42318;
}
.sale-status--available {
  background: #e8f6ee;
  color: #067647;
}
.sale-row-body {
  min-width: 0;
  font-size: 0.92rem;
  color: var(--gray-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.sale-row-body p { margin: 0 0 8px; }
.sale-row-body p:last-child { margin-bottom: 0; }
.sale-row-body strong { color: var(--teal-dark); font-weight: 700; }
.sale-row-media {
  width: 200px;
  height: 160px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.sale-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sales-pagination { margin-top: 28px; }

/* ===== Sale detail ===== */
.sale-detail-section {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(12, 60, 126, 0.08), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(255, 153, 51, 0.08), transparent 40%),
    var(--off-white);
  padding-top: 28px;
  padding-bottom: 48px;
}
.sale-detail-section .result-detail-bar {
  margin-bottom: 12px;
}
.sale-detail-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}
.sale-detail-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 360px;
  background:
    linear-gradient(145deg, #0c3c7e 0%, #082958 55%, #061f42 100%);
  box-shadow: var(--shadow-lg);
}
.sale-detail-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 58, 124, 0.35));
  pointer-events: none;
}
.sale-detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}
.sale-detail-hero-panel {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.sale-detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 8px 0 6px;
}
.sale-detail-title-row h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.sale-detail-price {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 16px;
}
.sale-detail-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
}
.sale-detail-facts li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
}
.sale-detail-facts li span {
  color: var(--gray-600);
}
.sale-detail-facts li strong {
  color: var(--gray-800);
  font-weight: 600;
}
.sale-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.sale-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.sale-detail-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.sale-detail-card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--teal-dark);
  margin: 0 0 12px;
}
.sale-detail-card > p,
.sale-pedigree-block p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.95rem;
}
.sale-pedigree-block + .sale-pedigree-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.sale-pedigree-block h3 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.sale-gallery-card { margin-bottom: 20px; }
.sale-gallery-intro {
  margin: -4px 0 16px;
  color: var(--gray-600);
  font-size: 0.9rem;
}
.sale-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sale-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-100);
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
}
.sale-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.sale-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.sale-gallery-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(8, 58, 124, 0.88);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sale-enquiry {
  margin-top: 8px;
}
.sale-enquiry-inner {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.sale-enquiry-inner h2 {
  font-family: var(--font-serif);
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.sale-enquiry-inner p {
  margin: 0 0 18px;
  opacity: 0.92;
  max-width: 52ch;
}
.sale-enquiry-inner .sale-detail-actions {
  justify-content: center;
  margin-top: 0;
}
.sale-enquiry-inner .btn-outline-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.sale-enquiry-inner .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.12);
}
.sale-enquiry-inner .btn-primary {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: none;
}
.sale-enquiry-inner .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Gallery detail page (unused) */
.gallery-detail-section {
  background: #f5f7fa;
  padding-top: 28px;
  padding-bottom: 60px;
}
.gallery-detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
  align-items: start;
}
.gallery-detail-main {
  min-width: 0;
}
.gd-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0a2540;
  aspect-ratio: 16 / 10;
  box-shadow: 0 10px 30px rgba(12, 60, 126, 0.12);
}
.gd-slider-track {
  width: 100%;
  height: 100%;
}
.gd-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.gd-slide.active { opacity: 1; }
.gd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gd-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0c3c7e;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.25s ease, color 0.25s ease;
}
.gd-slider-btn:hover {
  background: #0c3c7e;
  color: #fff;
}
.gd-slider-prev { left: 14px; }
.gd-slider-next { right: 14px; }
.gd-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.gd-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.gd-dot.active { background: #0c3c7e; box-shadow: 0 0 0 2px #fff; }

.gd-about {
  margin-top: 28px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 6px 20px rgba(12, 60, 126, 0.06);
}
.gd-about-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}
.gd-about-title svg { color: #0c3c7e; flex-shrink: 0; }
.gd-about-body {
  color: #555;
  line-height: 1.75;
  font-size: 0.98rem;
}
.gd-about-block {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8eef5;
}
.gd-about-block:last-child {
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: none;
}
.gd-about-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0c3c7e;
  margin: 0 0 10px;
}
.gd-about-block p {
  margin: 0 0 12px;
  color: #555;
  line-height: 1.75;
}
.gd-about-block p:last-child { margin-bottom: 0; }
.gd-about-bullets {
  list-style: none;
  margin: 8px 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.gd-about-bullets li {
  position: relative;
  padding: 10px 12px 10px 34px;
  background: #f7faff;
  border: 1px solid #e3ebf5;
  border-radius: 8px;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.45;
}
.gd-about-bullets li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0c3c7e;
}
.gd-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(12, 60, 126, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
}
.gd-highlight-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0c3c7e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.gd-highlight p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.55;
  padding-top: 3px;
}

.gallery-detail-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: calc(var(--header-total) + 16px);
}
.gd-enquiry {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6ebf2;
  box-shadow: 0 8px 24px rgba(12, 60, 126, 0.08);
}
.gd-enquiry-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #0c3c7e;
  color: #fff;
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}
.gd-enquiry-head svg { flex-shrink: 0; margin-top: 1px; }
.gd-enquiry-head span {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.gd-enquiry-form {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gd-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 6px;
}
.gd-field label span { color: #e53935; }
.gd-field input,
.gd-field textarea {
  width: 100%;
  border: 1px solid #cfd6de;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.92rem;
  color: #222;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.gd-field input:focus,
.gd-field textarea:focus {
  outline: none;
  border-color: #0c3c7e;
  box-shadow: 0 0 0 3px rgba(12, 60, 126, 0.15);
}
.gd-field textarea { resize: vertical; min-height: 96px; }
.gd-enquiry-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #0c3c7e;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.gd-enquiry-btn:hover {
  background: #082958;
  transform: translateY(-1px);
}
.gd-enquiry-form .form-success {
  margin: 0;
  font-size: 0.85rem;
  color: #138808;
}

.gd-related {
  background: #fff;
  border-radius: 12px;
  padding: 18px 14px 12px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 8px 24px rgba(12, 60, 126, 0.06);
}
.gd-related-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 14px 4px;
}
.gd-related-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: #0c3c7e;
}
.gd-related-list {
  display: flex;
  flex-direction: column;
}
.gd-related-item {
  display: grid;
  grid-template-columns: 56px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 10px 6px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
}
.gd-related-item:hover { background: rgba(12, 60, 126, 0.06); }
.gd-related-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.gd-related-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gd-related-info strong {
  font-size: 0.9rem;
  color: #1a1a1a;
  line-height: 1.3;
}
.gd-related-info span {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gd-related-arrow {
  color: #0c3c7e;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

/* Tips blog pages */
body.inner-page {
  max-width: 100%;
}
.tip-detail-section {
  background: var(--off-white);
  overflow: visible;
  width: 100%;
  max-width: 100%;
  padding-top: 28px;
  padding-bottom: 48px;
}
.tip-detail-section .result-detail-bar {
  margin-bottom: 12px;
}
.tip-detail-section .container {
  width: min(1280px, 94vw);
  max-width: none;
  overflow: visible;
  box-sizing: border-box;
}
body.inner-page:has(.tip-detail-layout) {
  overflow-x: visible;
}
body.inner-page:has(.tip-detail-layout) main {
  overflow: visible;
}
.tips-page-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  text-align: center;
}
.tips-page-section {
  padding-top: 20px;
  padding-bottom: 48px;
}
.tips-page-heading {
  text-align: center;
  min-width: 0;
  width: 100%;
  max-width: 720px;
}
.tips-page-heading .section-label {
  margin-bottom: 6px;
}
.tips-page-heading .section-title {
  margin-bottom: 0;
}
.tips-page-heading .section-line {
  margin: 10px auto 0;
}
.tips-page-intro {
  text-align: center;
  max-width: 640px;
  margin: 10px auto 0;
  font-size: 0.98rem;
}
.tips-tools {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}
.tips-search-row {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.tips-search-row .results-tool-label {
  flex-shrink: 0;
  margin: 0;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}
.tips-search-row .results-search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 380px;
}
.tips-grid { margin-bottom: 12px; }
.tip-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
.tip-detail-main {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.tip-detail-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(560px, 70vh);
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 18px;
  display: block;
  background: #eef2f6;
}
.tip-detail-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--teal-dark);
  margin: 8px 0 18px;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}
.tip-detail-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 28px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.tip-detail-body .race-para-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.tip-detail-body .race-para,
.tip-detail-body .race-para-heading {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.tip-detail-side {
  min-width: 0;
  width: 100%;
  max-width: 360px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-total) + 16px);
  z-index: 3;
}
.tip-detail-side-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - var(--header-total) - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.tip-detail-side .gd-related,
.tip-detail-side .gd-enquiry {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.tip-detail-side .gd-enquiry {
  overflow: hidden;
}
.tip-detail-side .gd-enquiry-form {
  gap: 12px;
  padding: 14px 14px 16px;
}
.tip-detail-side .gd-field textarea {
  min-height: 72px;
}
.tip-detail-side .gd-related-item {
  grid-template-columns: 52px minmax(0, 1fr) 16px;
  max-width: 100%;
}

/* Blog / Tips */
.blog-section { background: var(--off-white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.blog-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.blog-tile-image {
  display: block;
  overflow: hidden;
}
.blog-tile-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-tile:hover .blog-tile-image img { transform: scale(1.05); }
.blog-tile-body { padding: 22px 24px 26px; }
.blog-tile-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 12px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(12, 60, 126, 0.08);
  border: 1px solid rgba(12, 60, 126, 0.12);
}
.blog-tile-date::before {
  content: '';
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.blog-tile-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-tile-title a {
  transition: color 0.25s ease;
}
.blog-tile-title a:hover { color: var(--teal); }
.blog-tile-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 16px;
}
.blog-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--saffron);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 153, 51, 0.12);
  border: 1px solid rgba(255, 153, 51, 0.22);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.blog-tile-link::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.blog-tile-link:hover {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-1px);
}
.blog-tile:hover .blog-tile-link {
  color: var(--white);
  background: var(--saffron);
  border-color: var(--saffron);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox p {
  color: var(--white);
  margin-top: 16px;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.lightbox-close:hover { opacity: 1; }

/* Contact */
.contact-section { background: var(--off-white); }
.contact-page-section {
  background: var(--white);
  padding-top: 28px;
  padding-bottom: 0;
}
.contact-page-head {
  text-align: left;
  margin-bottom: 28px;
}
.contact-heading {
  color: #0c3c7e;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.contact-page-head .section-line { display: none; }

.contact-top-row {
  align-items: stretch;
  margin-bottom: 0;
  column-gap: 24px;
  row-gap: 28px;
  --contact-card-height: 158px;
}
.contact-flag-col,
.contact-address-col,
.contact-map-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: stretch;
  align-self: stretch;
  height: var(--contact-card-height);
  min-height: var(--contact-card-height);
}
.contact-flag,
.contact-address-block,
.contact-map {
  width: 100%;
  height: var(--contact-card-height);
  min-height: var(--contact-card-height);
  max-height: var(--contact-card-height);
  flex: 1 1 auto;
  aspect-ratio: auto;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}
.contact-flag,
.contact-map {
  overflow: hidden;
}
.contact-address-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 12px;
  overflow: hidden;
}
.contact-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.contact-map {
  padding: 0;
  border-width: 2px;
  box-shadow: var(--shadow-md);
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
}
.contact-flag img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border: 0;
  box-shadow: none;
}
.contact-loft-name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0c3c7e;
  margin: 0 0 3px;
  line-height: 1.2;
  text-transform: uppercase;
}
.contact-address-text {
  font-size: 0.74rem;
  color: var(--gray-800);
  line-height: 1.3;
  margin-bottom: 4px;
}
.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.contact-channels li {
  margin: 0;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  line-height: 1.25;
  color: var(--gray-800);
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
}
.contact-channel span:not(.contact-icon) {
  flex: 1;
  min-width: 0;
}
.contact-channel:hover {
  color: #0c3c7e;
  transform: translateX(4px);
}
.contact-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.contact-page-section .contact-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}
.contact-icon-phone { background: #0c3c7e; }
.contact-icon-wa { background: #25d366; }
.contact-icon-mail { background: #0c3c7e; }

.contact-map-col {
  min-width: 0;
  align-items: stretch;
}
.contact-map iframe {
  display: block;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.mail-us-wrap {
  background: #eef2f6;
  padding: 28px 0 48px;
  margin-top: 16px;
}
.contact-page-section .mail-us-wrap {
  margin-top: 12px;
  padding-top: 24px;
}
.mail-us {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #d8dee6;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(12, 60, 126, 0.1);
  padding: 32px 40px 36px;
}
.mail-us-title {
  text-align: center;
  color: #0c3c7e;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.mail-us-form .form-group { margin-bottom: 16px; }
.mail-us-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.mail-us-form-row .form-group {
  margin-bottom: 0;
  min-width: 0;
}
.mail-us-form input,
.mail-us-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #c5ccd4;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.mail-us-form input:focus,
.mail-us-form textarea:focus {
  outline: none;
  border-color: #0c3c7e;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}
.mail-us-form textarea { resize: vertical; min-height: 140px; }
.mail-us-btn {
  display: block;
  margin: 10px auto 0;
  min-width: 100px;
  padding: 10px 28px;
  background: #0c3c7e;
  border: none;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mail-us-btn:hover {
  background: #005f8a;
  transform: translateY(-1px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--gray-800);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(26, 138, 158, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  margin-top: 14px;
  padding: 12px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal);
}
.info-card h3 {
  font-family: var(--font-serif);
  color: var(--teal-dark);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.info-card p, .info-card li {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
}
.info-card ul li { margin-bottom: 6px; }
.info-card a { color: var(--teal); font-weight: 500; }
.info-card a:hover { color: var(--saffron); }
.map-card { text-align: center; border-left-color: var(--saffron); }
.info-logo {
  width: 160px;
  height: auto;
  margin: 0 auto 12px;
  object-fit: contain;
  display: block;
  background: var(--white);
  border-radius: 14px;
  padding: 10px 12px 12px;
  box-sizing: border-box;
}

/* ===== Footer ===== */
.footer { position: relative; z-index: 1; }
.footer-top {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 32px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.15fr 1.25fr;
  gap: 28px;
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.footer-col:first-child {
  display: flex;
  flex-direction: column;
  align-content: start;
}
.footer-logo-wrap {
  display: none;
}
.footer-logo {
  display: none;
}
.footer-col:first-child h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.footer-col:first-child .footer-address {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
}
.footer-col:first-child .footer-address::before {
  content: "Madipakkam, Chennai - 91";
  display: block;
  margin: 0 0 2px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}
.footer-address { font-size: 0.9rem; line-height: 1.55; opacity: 0.8; }
.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--white);
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}
.footer-links,
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col h4 + .footer-links,
.footer-col h4 + .footer-contact {
  margin-top: 0;
}
.footer-links li {
  margin-bottom: 0;
  line-height: 1.55;
}
.footer-links a {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.55;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.footer-links a:hover { opacity: 1; color: var(--saffron); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer-contact svg { flex-shrink: 0; opacity: 0.6; margin-top: 2px; }
.footer-contact a {
  transition: color 0.3s ease, opacity 0.3s ease;
}
.footer-contact a:hover { color: var(--saffron); opacity: 1; }
.footer-col h4 + .footer-address { margin-top: 0; }
.footer-tagline { font-size: 0.9rem; opacity: 0.75; line-height: 1.7; margin-bottom: 16px; }
.footer-flags { display: flex; height: 4px; border-radius: 2px; overflow: hidden; max-width: 120px; }
.flag-stripe { flex: 1; }
.flag-stripe.saffron { background: var(--saffron); }
.flag-stripe.white { background: var(--white); }
.flag-stripe.green { background: var(--green); }
.footer-map {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.footer-map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 120px;
  min-height: 120px;
  border: 0;
  border-radius: 7px;
}
.footer-col-map {
  min-width: 0;
}
.footer-col-map h4 {
  margin-bottom: 8px;
}

.footer-bottom {
  background: #061525;
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ===== Scroll Animations ===== */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-stagger > * {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal { transform: translateY(40px); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-stagger > * { transform: translateY(30px); }

.reveal.visible, .reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(11) { transition-delay: 0.55s; }
.reveal-stagger.visible > *:nth-child(12) { transition-delay: 0.6s; }

.reveal-up.visible { transition-delay: var(--delay, 0s); }

/* ===== Home Page Layouts ===== */
.section-head--left {
  text-align: left;
  margin-bottom: 0;
}
.section-head--left .section-line {
  margin-left: 0;
  margin-right: auto;
}
.section-intro {
  max-width: 520px;
  margin-top: 16px;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.75;
}

/* Stats strip */
.home-stats {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: linear-gradient(135deg, var(--teal-dark) 0%, #0a3570 100%);
  padding: 0;
  border-bottom: 3px solid var(--saffron);
}
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.home-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background 0.3s ease;
}
.home-stat:last-child { border-right: none; }
.home-stat:hover { background: rgba(255, 255, 255, 0.05); }
.home-stat-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 153, 51, 0.15);
  border-radius: 12px;
}
.home-stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.home-stat-body strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.home-stat-body span {
  font-size: 0.78rem;
  opacity: 0.75;
  line-height: 1.4;
}

/* About — editorial split */
.home-about {
  background:
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(12, 60, 126, 0.04), transparent 60%),
    var(--white);
}
.home-section-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.about-pullquote {
  max-width: 340px;
  margin: 0;
  padding: 20px 24px;
  border-left: 4px solid var(--saffron);
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.08), rgba(12, 60, 126, 0.04));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-pullquote p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--teal-dark);
  line-height: 1.6;
  margin: 0;
}
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}
.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.about-pillar-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.85;
}
.about-pillar strong {
  display: block;
  font-size: 0.92rem;
  color: var(--teal-dark);
  margin-bottom: 2px;
}
.about-pillar span {
  font-size: 0.82rem;
  color: var(--gray-600);
}

/* Results — dark achievement band */
.home-results {
  position: relative;
  overflow: hidden;
  background: #061e42;
  color: var(--white);
}
.home-results-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(255, 153, 51, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(19, 136, 8, 0.08), transparent 50%);
  pointer-events: none;
}
.home-results .container { position: relative; z-index: 1; }
.home-results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.home-results .section-label { color: var(--saffron); }
.home-results .section-title { color: var(--white); }
.home-results-intro {
  max-width: 400px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.home-results .result-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.home-results .result-card h3 { color: var(--white); }
.home-results .result-card p { color: rgba(255, 255, 255, 0.7); }
.home-results .result-year { color: rgba(255, 255, 255, 0.2); }
.home-results .result-year-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--saffron);
  border-color: rgba(255, 153, 51, 0.25);
}
.home-results .result-link { color: var(--saffron); }
.home-results .result-link-icon {
  background: rgba(255, 153, 51, 0.15);
  color: var(--saffron);
}
.home-results .result-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 153, 51, 0.35);
}
.home-results .result-card.featured {
  background: linear-gradient(160deg, rgba(255, 153, 51, 0.25), rgba(255, 153, 51, 0.08));
  border-color: rgba(255, 153, 51, 0.3);
}
.home-results .gallery-more .btn-primary {
  background: var(--saffron);
  color: var(--gray-800);
}
.home-results .gallery-more .btn-primary:hover {
  background: #ffaa44;
  box-shadow: 0 8px 30px rgba(255, 153, 51, 0.35);
}
.home-results-slider-nav {
  display: none;
}
.home-results-slider-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.home-results-slider-btn:hover:not(:disabled) {
  background: rgba(255, 153, 51, 0.25);
  border-color: rgba(255, 153, 51, 0.45);
}
.home-results-slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.home-results-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.home-results-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}
.home-results-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--saffron);
}

/* Breeders — showcase split */
.home-breeders {
  background:
    linear-gradient(180deg, var(--off-white) 0%, var(--white) 30%);
}
.breeders-home-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.breeders-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}
.breeders-showcase img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.breeders-showcase-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--teal-dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.breeders-showcase-badge span {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
}
.breeders-showcase-badge small {
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 4px;
  display: block;
}
.breeders-home-content p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px;
  text-align: justify;
}
.breeders-home-note {
  font-size: 0.9rem;
  padding: 14px 18px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
  margin-top: 8px !important;
}

/* Special — feature cards band */
.home-special {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(12, 60, 126, 0.05), transparent 60%),
    var(--off-white);
}
.home-special .special-cards { margin-bottom: 48px; }
.home-special .special-item {
  border: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.home-special .special-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--saffron));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.home-special .special-item:hover::before { transform: scaleX(1); }
.special-visit-text {
  flex: 1 1 auto;
  min-width: 0;
}
.special-visit-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--saffron);
  margin-bottom: 6px;
}

/* Gallery — coverflow carousel */
.home-gallery {
  background: var(--white);
  padding-bottom: 72px;
}
.home-gallery-header {
  margin-bottom: 12px;
}
.home-gallery .gallery-head {
  text-align: center;
  margin-bottom: 0;
}
.home-gallery .gallery-head .section-line {
  margin-left: auto;
  margin-right: auto;
}
.home-gallery-link {
  display: inline-flex;
}
.home-gallery-cta {
  text-align: center;
  margin-top: 28px;
}
.gallery-head .section-intro {
  margin-top: 10px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
  text-align: center;
}

.gallery-coverflow {
  max-width: 100%;
  margin: 0 auto;
}
.gallery-coverflow-stage {
  position: relative;
  height: clamp(340px, 42vw, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  transform-style: preserve-3d;
  overflow: hidden;
  touch-action: pan-y;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(12, 60, 126, 0.05), transparent 72%);
  border-radius: var(--radius-lg);
}
.gallery-coverflow-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(200px, 26vw, 280px);
  height: clamp(280px, 38vw, 380px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
  box-shadow: 0 10px 36px rgba(12, 60, 126, 0.14);
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.55s ease,
    box-shadow 0.55s ease,
    filter 0.55s ease;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.gallery-coverflow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}
.gallery-coverflow-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 16px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.gallery-coverflow-card.is-active {
  box-shadow: 0 28px 64px rgba(12, 60, 126, 0.28);
  filter: brightness(1);
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: -1px;
}
.gallery-coverflow-card.is-active .gallery-coverflow-label {
  opacity: 1;
  transform: translateY(0);
}
.gallery-coverflow-card.is-active::after {
  content: 'Click to zoom';
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  background: rgba(12, 60, 126, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
}
.gallery-coverflow-card:not(.is-active) {
  filter: brightness(0.88);
}
.gallery-coverflow-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.gallery-coverflow-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.gallery-coverflow-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-dark);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.gallery-coverflow-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(12, 60, 126, 0.04);
  transform: scale(1.06);
}
.gallery-coverflow-btn:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-coverflow-card {
    transition: opacity 0.3s ease;
  }
}

/* Blog — equal trio cards */
.home-blog {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 45% at 100% 0%, rgba(12, 60, 126, 0.05), transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(255, 153, 51, 0.05), transparent 50%),
    linear-gradient(180deg, var(--off-white) 0%, #eef2f6 100%);
}
.blog-grid--trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.blog-grid--trio .blog-tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(8, 41, 88, 0.08);
  box-shadow: 0 10px 28px rgba(8, 41, 88, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.blog-grid--trio .blog-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(8, 41, 88, 0.12);
  border-color: rgba(255, 153, 51, 0.28);
}
.blog-grid--trio .blog-tile-image {
  position: relative;
  display: block;
  overflow: hidden;
}
.blog-grid--trio .blog-tile-image img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-grid--trio .blog-tile:hover .blog-tile-image img {
  transform: scale(1.07);
}
.blog-tile-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(8, 41, 88, 0.82);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(8, 41, 88, 0.2);
}
.blog-grid--trio .blog-tile:nth-child(2) .blog-tile-badge {
  background: rgba(255, 153, 51, 0.92);
  color: #1a1208;
}
.blog-grid--trio .blog-tile:nth-child(3) .blog-tile-badge {
  background: rgba(8, 41, 88, 0.82);
}
.blog-grid--trio .blog-tile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
}
.blog-grid--trio .blog-tile-desc {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}
.blog-grid--trio .blog-tile-title {
  font-size: 1.15rem;
  min-height: 2.7em;
}
.blog-grid--trio .blog-tile-link {
  align-self: flex-start;
  margin-top: auto;
}
.blog-grid--trio .blog-tile:nth-child(1) { animation: blogCardIn 0.55s ease both; animation-delay: 0.05s; }
.blog-grid--trio .blog-tile:nth-child(2) { animation: blogCardIn 0.55s ease both; animation-delay: 0.15s; }
.blog-grid--trio .blog-tile:nth-child(3) { animation: blogCardIn 0.55s ease both; animation-delay: 0.25s; }
@keyframes blogCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .blog-grid--trio .blog-tile { animation: none; }
}

/* Contact — dark navy with motion */
.home-contact {
  position: relative;
  overflow: hidden;
  background: #0a2141;
  color: #fff;
  padding-top: 40px;
  padding-bottom: 56px;
}
.home-contact .home-contact-header {
  margin-bottom: 28px;
}
.home-contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.home-contact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: contactOrbFloat 12s ease-in-out infinite;
}
.home-contact-orb--1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.45), transparent 70%);
  animation-delay: 0s;
}
.home-contact-orb--2 {
  width: 280px;
  height: 280px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(56, 140, 200, 0.4), transparent 70%);
  animation-delay: -4s;
  animation-duration: 14s;
}
.home-contact-orb--3 {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 45%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  animation-delay: -7s;
  animation-duration: 10s;
}
.home-contact-shine {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 48%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 52%,
    transparent 60%
  );
  animation: contactShineSweep 9s ease-in-out infinite;
}
@keyframes contactOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -22px) scale(1.06); }
  66% { transform: translate(-14px, 16px) scale(0.96); }
}
@keyframes contactShineSweep {
  0%, 100% { transform: translateX(-12%) rotate(0deg); opacity: 0.4; }
  50% { transform: translateX(12%) rotate(2deg); opacity: 0.85; }
}
.home-contact .container { position: relative; z-index: 1; }
.home-contact-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.home-contact .section-label {
  color: var(--saffron);
}
.home-contact .section-title {
  color: #fff;
}
.home-contact .section-line {
  background: linear-gradient(90deg, var(--saffron), rgba(255, 255, 255, 0.35));
}
.home-contact-intro {
  max-width: 380px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.home-contact .contact-grid {
  align-items: stretch;
  gap: 28px;
}
.home-contact .contact-form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: contactPanelIn 0.7s ease both;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.home-contact .contact-form .form-group:has(textarea) {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.home-contact .contact-form textarea {
  flex: 1 1 auto;
  min-height: 120px;
  height: 100%;
}
.home-contact .form-group label {
  color: rgba(255, 255, 255, 0.9);
}
.home-contact .form-group input,
.home-contact .form-group textarea {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
  color: var(--gray-800);
}
.home-contact .form-group input::placeholder,
.home-contact .form-group textarea::placeholder {
  color: var(--gray-500);
}
.home-contact .form-group input:focus,
.home-contact .form-group textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.28);
}
.home-contact-submit {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-contact-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: contactBtnShine 3.5s ease-in-out infinite;
}
.home-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 153, 51, 0.35);
}
@keyframes contactBtnShine {
  0%, 60%, 100% { transform: translateX(-120%); }
  75% { transform: translateX(120%); }
}
.home-contact .form-success {
  color: #b8f0c8;
}
.home-contact .contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.home-contact .info-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid rgba(255, 153, 51, 0.7);
  color: #fff;
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  animation: contactPanelIn 0.7s ease both;
}
.home-contact .info-card:nth-child(1) { animation-delay: 0.1s; }
.home-contact .info-card:nth-child(2) { animation-delay: 0.22s; }
.home-contact .info-card:nth-child(3) { animation-delay: 0.34s; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.home-contact .info-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-left-color: var(--saffron);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
.home-contact .info-card h3 {
  color: #fff;
}
.home-contact .info-card p,
.home-contact .info-card li {
  color: rgba(255, 255, 255, 0.82);
}
.home-contact .info-card a {
  color: #fff;
}
.home-contact .info-card a:hover {
  color: var(--saffron);
}
.info-card--highlight {
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.22), rgba(255, 255, 255, 0.08));
  color: var(--white);
  border-left-color: var(--saffron);
}
.info-card--highlight h3 { color: var(--white); }
.info-card--highlight p { color: rgba(255, 255, 255, 0.88); }
.home-contact .contact-channel:hover {
  color: var(--saffron);
}
.home-contact .contact-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.3s ease, transform 0.3s ease;
}
.home-contact .contact-channel:hover .contact-icon {
  background: var(--saffron);
  color: #1a1208;
  transform: scale(1.08);
}
.home-contact .map-card {
  text-align: center;
}
.home-contact .info-logo {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s ease;
}
.home-contact .map-card:hover .info-logo {
  transform: scale(1.05) rotate(-2deg);
}
.contact-channels-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-channels-list .contact-channel {
  font-size: 0.92rem;
}
.contact-channels-list .contact-icon {
  width: 32px;
  height: 32px;
}
@keyframes contactPanelIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .home-contact-orb,
  .home-contact-shine,
  .home-contact-submit::after,
  .home-contact .contact-form,
  .home-contact .info-card {
    animation: none;
  }
}

/* Home slider polish */
.home-page .slider {
  height: min(560px, 78vh);
}
.home-page .slide-panel {
  padding: 52px 48px;
  position: relative;
}
.home-page .slide-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--saffron), var(--green));
}
.home-page .slide-btn {
  border-radius: 50px;
  letter-spacing: 0.03em;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  html:has(.contact-page-section) {
    overflow-x: hidden;
  }
  .special-visit {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 28px 24px 26px;
    border-radius: 20px;
  }
  .special-visit-text {
    width: 100%;
    max-width: 420px;
  }
  .special-visit-label {
    margin-bottom: 8px;
  }
  .special-visit p {
    font-size: 0.92rem;
    line-height: 1.65;
  }
  .special-visit .btn {
    width: auto;
    min-width: 200px;
    max-width: 100%;
    margin-top: 4px;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 28px;
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.35);
  }
  .slide {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-rows: unset;
  }
  .slide-image {
    flex: 0 0 50%;
    width: 100%;
    height: auto;
    min-height: 220px;
  }
  .slide-panel {
    flex: 1 1 auto;
    width: 100%;
    padding: 32px 24px;
  }
  .slider { height: min(640px, 90vh); }
  .slider-arrow {
    top: 25%;
    transform: translateY(-50%);
  }
  .slider-arrow:hover {
    transform: translateY(-50%) scale(1.08);
  }
  .slider-prev { left: 12px; right: auto; }
  .slider-next { right: 12px; left: auto; }
  .slider-dots {
    left: 50%;
    bottom: auto;
    top: calc(50% - 28px);
    transform: translateX(-50%);
  }
  .about-grid { grid-template-columns: 1fr; }
  .about-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .about-actions .btn {
    flex: 1 1 0;
    padding: 11px 10px;
    font-size: 0.78rem;
  }
  .col-md-12 { grid-column: span 12; }
  .col-md-6 { grid-column: span 6; }
  .about-page-content { padding-left: 18px; }
  .about-page-section {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .breeders-page-section {
    padding-top: 16px;
    padding-bottom: 36px;
  }
  .bird-detail-section {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .result-detail-section {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .tip-detail-section {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .race-full-section {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .bird-detail-section .result-detail-bar,
  .tip-detail-section .result-detail-bar {
    margin-bottom: 10px;
  }
  .sale-detail-section {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .sale-detail-section .result-detail-bar {
    margin-bottom: 10px;
  }
  .results-page-section,
  .gallery-page-section,
  .sales-page-section,
  .tips-page-section {
    padding-top: 16px;
    padding-bottom: 40px;
  }
  .about-page-hero {
    min-height: 220px;
  }
  .about-page-hero-bg {
    background-position: 38% center;
  }
  .about-page-hero-inner {
    padding: 44px 0 36px;
  }
  .results-grid:not(#homeResultsTrack) { grid-template-columns: 1fr; }
  .results-grid-years { grid-template-columns: repeat(2, 1fr); }
  .results-carousel-wrap { gap: 10px; }
  .results-carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .results-tools {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .result-detail-grid { grid-template-columns: 1fr; }
  .race-event-grid { grid-template-columns: 1fr; }
  .race-full-facts { grid-template-columns: 1fr 1fr; }
  .special-grid { grid-template-columns: 1fr; gap: 28px; }
  .special-content,
  .special-video { grid-column: span 1; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid--trio { grid-template-columns: 1fr 1fr; }
  .blog-grid--trio .blog-tile:nth-child(3) { grid-column: 1 / -1; max-width: 420px; justify-self: center; width: 100%; }
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-stat:nth-child(2) { border-right: none; }
  .home-stat:nth-child(1),
  .home-stat:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .home-section-split { flex-direction: column; align-items: flex-start; }
  .about-pullquote { max-width: 100%; }
  .home-results-header,
  .home-contact-header { flex-direction: column; align-items: flex-start; }
  .breeders-home-layout { grid-template-columns: 1fr; gap: 36px; }
  .gallery-coverflow-stage { height: clamp(320px, 55vw, 400px); }
  .gallery-coverflow-card {
    width: clamp(200px, 34vw, 260px);
    height: clamp(290px, 48vw, 370px);
  }
  .result-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .race-event-grid { grid-template-columns: repeat(2, 1fr); }
  .race-full-facts { grid-template-columns: repeat(2, 1fr); }
  .race-photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .special-cards { grid-template-columns: repeat(2, 1fr); }
  .breeders-gallery { grid-template-columns: repeat(2, 1fr); }
  .breeders-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bird-media-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bird-slot-hero {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .bird-slot-eye { grid-column: 1; grid-row: auto; }
  .bird-slot-wing { grid-column: 2; grid-row: auto; }
  .bird-slot-father { grid-column: 1; grid-row: auto; }
  .bird-slot-mother { grid-column: 2; grid-row: auto; }
  .bird-media-frame-hero { min-height: 280px; }
  .bird-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bird-media-grid .bird-media-frame { min-height: 160px; }
  .bird-parents-grid,
  .bird-extra-grid { grid-template-columns: 1fr 1fr; }
  .bird-facts { grid-template-columns: 1fr 1fr; }
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-detail-layout { grid-template-columns: 1fr; }
  .gallery-detail-side { position: static; }
  .tip-detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .tip-detail-side {
    position: static;
    max-width: 100%;
    top: auto;
  }
  .tip-detail-side-inner {
    max-height: none;
    overflow: visible;
  }
  .tip-detail-main { padding: 20px; }
  .tip-detail-section .container { width: min(1140px, 94vw); }
  .tips-page-top {
    gap: 14px;
    margin-bottom: 16px;
  }
  .tips-tools {
    max-width: 100%;
  }
  .tips-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tips-search-row .results-search-wrap {
    max-width: none;
  }
  .breeders-page-section {
    padding-top: 16px;
    padding-bottom: 36px;
  }
  .breeders-page-top {
    gap: 14px;
    margin-bottom: 16px;
  }
  .breeders-filters {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
  }
  .breeders-select,
  .breeders-select-blood,
  .breeders-input,
  .results-filters .breeders-input,
  .sales-filters .breeders-input,
  .gallery-filters .breeders-input {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
  }
  .breeders-search-btn {
    width: 100%;
  }
  .results-filters,
  .gallery-filters,
  .sales-filters {
    max-width: 100%;
  }
  .result-detail-top {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
  }
  .race-full-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }
  .race-full-top .result-back {
    justify-self: start;
    grid-column: 1;
  }
  .race-full-heading {
    grid-column: 1;
  }
  .race-full-top-spacer {
    display: none;
  }
  .result-detail-top .result-back {
    justify-self: start;
  }
  .result-detail-top .result-detail-search {
    justify-self: stretch;
    max-width: none;
  }
  .sale-row {
    grid-template-columns: 1fr 160px;
    gap: 16px;
    align-items: center;
  }
  .sale-row-media {
    width: 160px;
    height: 130px;
  }
  .sale-detail-hero {
    grid-template-columns: 1fr;
  }
  .sale-detail-hero-media,
  .sale-detail-hero-media img {
    min-height: 280px;
  }
  .sale-detail-grid {
    grid-template-columns: 1fr;
  }
  .sale-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sale-detail-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .sale-detail-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    padding: 11px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: 0;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .home-contact .contact-form {
    height: auto;
  }
  .home-contact .contact-form .form-group:has(textarea) {
    flex: none;
  }
  .home-contact .contact-form textarea {
    flex: none;
    height: auto;
    min-height: 120px;
  }
  .home-contact .contact-info {
    height: auto;
  }
  .home-contact .info-card:nth-child(3) {
    flex: none;
  }
  .contact-top-row { gap: 12px; row-gap: 12px; }
  .contact-top-row {
    --contact-card-height: auto;
  }
  .contact-page-section {
    --contact-mobile-gutter: 16px;
    padding-top: 16px;
    padding-bottom: 0;
    padding-left: var(--contact-mobile-gutter);
    padding-right: var(--contact-mobile-gutter);
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .contact-page-section > .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .contact-page-section .contact-top-row.row {
    gap: 12px;
    row-gap: 12px;
    column-gap: 0;
    margin: 0;
  }
  .contact-flag-col,
  .contact-address-col,
  .contact-map-col {
    grid-column: span 12;
    height: auto;
    min-height: 0;
    width: 100%;
    margin: 0;
  }
  .contact-flag,
  .contact-address-block,
  .contact-map {
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
  }
  .contact-flag-col {
    justify-content: stretch;
  }
  .contact-flag {
    text-align: center;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 220 / 147;
    min-height: 0;
    height: auto;
    max-height: none;
    line-height: 0;
  }
  .contact-address-block {
    min-height: auto;
    height: auto;
    max-height: none;
    justify-content: flex-start;
    padding: 14px 16px;
  }
  .contact-flag img {
    margin: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    vertical-align: top;
  }
  .contact-map {
    min-height: 220px;
    height: 220px;
    max-height: none;
    border-bottom: 0;
    padding: 0;
  }
  .contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    margin: 0;
    border: 0;
  }
  .contact-page-section .mail-us-wrap {
    margin-top: 12px;
    margin-left: calc(-1 * var(--contact-mobile-gutter, 16px));
    margin-right: calc(-1 * var(--contact-mobile-gutter, 16px));
    width: calc(100% + 2 * var(--contact-mobile-gutter, 16px));
    max-width: none;
    padding-top: 20px;
    padding-bottom: 32px;
    padding-left: var(--contact-mobile-gutter, 16px);
    padding-right: var(--contact-mobile-gutter, 16px);
    background: #eef2f6;
    box-sizing: border-box;
  }
  .contact-page-section .mail-us-wrap > .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 24px;
  }
  .footer-col:first-child {
    grid-column: 1 / -1;
  }
  .footer-col-map {
    grid-column: 1 / -1;
  }
  .footer-map,
  .footer-map iframe {
    min-height: 130px;
    height: 130px;
  }
}

@media (max-width: 1100px) {
  :root {
    --logo-size: 84px;
    --logo-hang: 0;
    --nav-height: 102px;
  }
  .nav-brand-text { display: none; }
  .nav-link {
    padding: 8px 9px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
  .nav-menu {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .row > [class*="col-"] { grid-column: span 12; }
  .header .nav.container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 12px;
    padding: 0;
    height: var(--nav-height);
    min-height: var(--nav-height);
    max-height: var(--nav-height);
    overflow: visible;
  }
  :root {
    --logo-size: 72px;
    --logo-hang: 0;
    --nav-height: 88px;
  }
  .nav-logo-wrap {
    border-radius: 50%;
  }
  .nav-brand-text { display: inline; font-size: 1.1rem; }
  .nav-drawer {
    grid-column: auto;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 86vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 20px 24px;
    gap: 0;
    transform: translateX(105%);
    transition: transform var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    z-index: 1002;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    --drawer-pad-x: 16px;
  }
  .nav-drawer.open { transform: translateX(0); }
  .nav-drawer-brand {
    display: flex;
    justify-content: center;
    padding: 0 var(--drawer-pad-x) 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }
  .nav-drawer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-align: center;
  }
  .nav-drawer-logo-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
  }
  .nav-drawer-logo-wrap img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    border-radius: 0;
    transform: translateZ(0);
  }
  .nav-drawer-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .nav-actions { gap: 10px; position: relative; z-index: 1003; }
  .nav-toggle { display: flex; position: relative; z-index: 1003; }
  .nav-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
    width: 100%;
    padding: 0;
  }
  .nav-menu li {
    width: 100%;
    flex: 0 0 auto;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 13px var(--drawer-pad-x);
    font-size: 0.8rem;
    white-space: normal;
    border-left: 3px solid transparent;
  }
  .nav-link::after { display: none; }
  .nav-link.active {
    color: var(--white);
    border-left-color: var(--saffron);
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-menu-contact {
    display: block;
    margin-top: auto;
    padding-top: 4px;
    flex-shrink: 0;
    width: 100%;
  }
  .nav-menu-divider {
    height: 2px;
    width: 72px;
    background: linear-gradient(90deg, var(--saffron), rgba(255, 153, 51, 0.3));
    margin: 4px var(--drawer-pad-x) 16px;
    border-radius: 2px;
  }
  .nav-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px var(--drawer-pad-x);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    line-height: 1.5;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
  }
  .nav-contact-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
  }
  .nav-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--saffron);
  }
  .nav-contact-address { cursor: default; }
  .nav-contact-address:hover { background: transparent; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .home-results .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  .home-results-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 0 8px;
    overflow: hidden;
  }
  .home-results-slider .results-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px;
    margin-bottom: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .home-results-slider .results-grid::-webkit-scrollbar {
    display: none;
  }
  .home-results-slider .result-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    border-radius: var(--radius-lg);
    min-height: 280px;
    transform: none;
    padding: 32px 24px;
    box-sizing: border-box;
  }
  .home-results-slider .result-card:hover {
    transform: none;
  }
  .home-results-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px 0 0;
  }
  .results-page-section .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  .results-carousel-wrap {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 0 44px;
    box-sizing: border-box;
    gap: 0;
  }
  .results-carousel {
    overflow: hidden;
    width: 100%;
  }
  .results-carousel .results-grid-years {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px;
    margin-bottom: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .results-carousel .results-grid-years::-webkit-scrollbar {
    display: none;
  }
  .results-carousel .results-grid-years .result-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 280px;
    box-sizing: border-box;
    margin: 0;
  }
  .results-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: var(--shadow-md);
  }
  .results-carousel-prev { left: 0; }
  .results-carousel-next { right: 0; }
  .results-carousel-arrow:hover:not(:disabled) {
    transform: translateY(-50%);
  }
  .page-section { padding: 56px 0; }
  .home-page .page-section { padding: 36px 0 44px; }
  body.inner-page:has(.contact-page-section) {
    overflow-x: hidden;
  }
  body.inner-page:has(.contact-page-section) main {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  body.inner-page .contact-page-section {
    --contact-mobile-gutter: 16px;
    padding-top: 12px;
    padding-left: var(--contact-mobile-gutter);
    padding-right: var(--contact-mobile-gutter);
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  body.inner-page .contact-page-section > .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body.inner-page .contact-page-section .mail-us-wrap {
    width: calc(100% + 2 * var(--contact-mobile-gutter, 16px));
    max-width: none;
    margin-top: 12px;
    margin-left: calc(-1 * var(--contact-mobile-gutter, 16px));
    margin-right: calc(-1 * var(--contact-mobile-gutter, 16px));
    padding-left: var(--contact-mobile-gutter, 16px);
    padding-right: var(--contact-mobile-gutter, 16px);
    background: #eef2f6;
    box-sizing: border-box;
  }
  body.inner-page .contact-page-section .mail-us-wrap > .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body.inner-page .contact-page-section .contact-top-row.row {
    gap: 12px;
    row-gap: 12px;
    column-gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  body.inner-page .contact-page-section .contact-flag,
  body.inner-page .contact-page-section .contact-address-block,
  body.inner-page .contact-page-section .contact-map {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    overflow: hidden;
  }
  body.inner-page .contact-page-section .contact-map iframe {
    width: 100%;
    max-width: 100%;
  }
  .about-page-section {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .breeders-page-section {
    padding-top: 16px;
    padding-bottom: 32px;
  }
  .bird-detail-section {
    padding-top: 20px;
    padding-bottom: 36px;
  }
  .result-detail-section {
    padding-top: 16px;
    padding-bottom: 36px;
  }
  .tip-detail-section {
    padding-top: 16px;
    padding-bottom: 36px;
  }
  .race-full-section {
    padding-top: 16px;
    padding-bottom: 36px;
  }
  .bird-detail-section .result-detail-bar,
  .tip-detail-section .result-detail-bar {
    margin-bottom: 10px;
  }
  .sale-detail-section {
    padding-top: 16px;
    padding-bottom: 36px;
  }
  .sale-detail-section .result-detail-bar {
    margin-bottom: 10px;
  }
  .results-page-section,
  .gallery-page-section,
  .sales-page-section {
    padding-top: 20px;
    padding-bottom: 36px;
  }
  .tips-page-section {
    padding-top: 12px;
    padding-bottom: 36px;
  }
  .special-visit {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 24px 20px 22px;
    border-radius: 18px;
  }
  .special-visit-text {
    width: 100%;
  }
  .special-visit .btn {
    width: auto;
    min-width: 180px;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    border-radius: 999px;
    padding: 12px 24px;
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.35);
  }
  .slider-section {
    padding-top: calc(var(--header-total) - 4px);
    width: 100%;
    max-width: 100vw;
  }
  .slider {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: min(620px, 92vh);
  }
  .slide-image {
    flex: 0 0 42%;
    min-height: 200px;
  }
  .slide-image img {
    transform: none;
  }
  .slide.active .slide-image img {
    transform: none;
  }
  .slide-panel {
    padding: 24px 20px;
  }
  .slide-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
  .slide-text {
    font-size: 0.88rem;
    margin-bottom: 18px;
  }
  .slide-btn {
    padding: 11px 22px;
    font-size: 0.85rem;
  }
  .slider-dots {
    top: calc(42% - 24px);
    gap: 8px;
  }
  .dot {
    width: 10px;
    height: 10px;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    top: 21%;
    transform: translateY(-50%);
  }
  .slider-arrow:hover {
    transform: translateY(-50%) scale(1.08);
  }
  .slider-prev { left: 12px; right: auto; }
  .slider-next { right: 12px; left: auto; }
  .gallery-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-coverflow-stage {
    height: clamp(340px, 78vw, 420px);
    margin: 0 -4vw;
    border-radius: 0;
  }
  .gallery-coverflow-card {
    width: clamp(200px, 62vw, 280px);
    height: clamp(280px, 78vw, 380px);
    border-radius: 20px;
  }
  .gallery-coverflow-label {
    font-size: 1rem;
    padding: 52px 18px 20px;
  }
  .gallery-coverflow-nav { margin-top: 24px; }
  .gallery-coverflow-btn { width: 44px; height: 44px; }
  .home-stats-grid { grid-template-columns: 1fr; }
  .home-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .home-stat:last-child { border-bottom: none; }
  .gallery-page-grid { grid-template-columns: 1fr; gap: 20px; }
  .gd-about { padding: 22px 18px; }
  .gd-slider { aspect-ratio: 4 / 3; }
  .race-event-grid { grid-template-columns: 1fr; }
  .race-full-facts { grid-template-columns: 1fr; }
  .race-report-box {
    padding: 16px 16px 14px;
  }
  .race-photo-gallery { grid-template-columns: 1fr; }
  .tip-detail-image {
    height: auto;
    max-height: min(420px, 60vh);
  }
  .tip-detail-main { padding: 16px; }
  .tip-detail-section .container { width: min(100%, 96vw); }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid--trio { grid-template-columns: 1fr; }
  .blog-grid--trio .blog-tile:nth-child(3) { grid-column: auto; max-width: none; }
  .breeders-card-grid { grid-template-columns: 1fr; }
  .sale-gallery { grid-template-columns: 1fr; }
  .sale-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sale-row-media {
    width: 100%;
    height: 200px;
  }
  .bird-media-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bird-slot-hero,
  .bird-slot-eye,
  .bird-slot-wing,
  .bird-slot-father,
  .bird-slot-mother {
    grid-column: 1;
    grid-row: auto;
  }
  .bird-media-frame-hero { min-height: 240px; }
  .bird-media-grid { grid-template-columns: 1fr; }
  .bird-media-grid .bird-media-frame { min-height: 200px; aspect-ratio: 16 / 10; }
  .bird-parents-grid,
  .bird-extra-grid { grid-template-columns: 1fr; }
  .bird-facts { grid-template-columns: 1fr; }
  .bird-pedigree-bar { justify-content: center; align-items: center; }
  .bird-pedigree-parents { grid-template-columns: 1fr; }
  .special-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mail-us-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .contact-map {
    min-height: 158px;
    height: auto;
    max-height: none;
  }
  .contact-map iframe {
    height: 100%;
    min-height: 0;
  }
  .results-carousel-wrap { margin-bottom: 24px; }
  .results-carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .contact-page-section .mail-us-wrap {
    margin-top: 12px;
    margin-left: calc(-1 * var(--contact-mobile-gutter, 16px));
    margin-right: calc(-1 * var(--contact-mobile-gutter, 16px));
    width: calc(100% + 2 * var(--contact-mobile-gutter, 16px));
    max-width: none;
    padding-top: 16px;
    padding-bottom: 32px;
    padding-left: var(--contact-mobile-gutter, 16px);
    padding-right: var(--contact-mobile-gutter, 16px);
    background: #eef2f6;
  }
  .contact-page-section .mail-us-wrap > .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  .mail-us-wrap { padding: 24px 0 40px; margin-top: 20px; }
  .mail-us { padding: 24px 18px 28px; }
  .contact-form { padding: 24px; }
  .footer-top { padding: 28px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-map,
  .footer-map iframe {
    min-height: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .mail-us-form-row {
    grid-template-columns: 1fr;
  }
  .gallery-coverflow-stage {
    height: clamp(340px, 88vw, 400px);
    margin: 0 -2vw;
  }
  .gallery-coverflow-card {
    width: clamp(210px, 68vw, 280px);
    height: clamp(290px, 84vw, 380px);
  }
  .about-actions .btn {
    padding: 10px 8px;
    font-size: 0.72rem;
  }
  .slider { height: min(580px, 94vh); }
  .slide-image { flex: 0 0 38%; min-height: 180px; }
  .slide-panel { padding: 20px 16px; }
  .slide-title { font-size: 1.3rem; }
  .slider-dots { top: calc(38% - 20px); }
  .slider-arrow { width: 32px; height: 32px; font-size: 0.9rem; top: 19%; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .sale-detail-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .sale-detail-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.74rem;
    white-space: nowrap;
    min-width: 0;
  }
}
