/* ===== Dog Hero ===== */
.dog-hero {
  position: relative;
  min-height: 560px;
  background-color: #14232e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.dog-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  z-index: 0;
}

.dog-hero__grad-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 119px;
  background: linear-gradient(to bottom, #121f29, rgba(18, 31, 41, 0));
  z-index: 1;
}

.dog-hero__grad-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 271px;
  background: linear-gradient(to bottom, rgba(20, 35, 46, 0), #14232e);
  z-index: 1;
}

/* ===== Guarantees Bar ===== */
.dog-guarantees__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.dog-guarantees__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #121f29;
  white-space: nowrap;
}

.dog-guarantees__item svg {
  flex-shrink: 0;
}

/* ===== Dog Info Section ===== */
.dog-info {
  background: #14232e;
  padding: 40px 0 80px;
}

.dog-info__inner {
  display: flex;
  gap: 80px;
}

/* Left column */
.dog-info__details {
  width: 58%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dog-info__title-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 40px;
}

.dog-info__name {
  font-family: 'Roboto', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.dog-info__price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dog-info__price {
  font-family: 'Roboto', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.dog-info__sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--bs-success);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.dog-info__sale-badge.sold {
  background: var(--bs-red);
}

/* Stats row */
.dog-info__stats {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 53px;
}

.dog-info__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.dog-info__stat-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.dog-info__stat-value {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: #fff;
  white-space: nowrap;
}

.dog-info__stat-divider {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* Sold info */
.dog-info__sold-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #22303B;
  border-radius: 12px;
  color: #fff;
}

.dog-info__sold-info p:first-child {
  font-weight: 700;
  margin: 0;
}

.dog-info__sold-info p:last-child {
  font-size: 14px;
  opacity: 0.7;
  margin: 0;
}

/* Description + traits */
.dog-info__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dog-info__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #fff;
}

.dog-info__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dog-info__trait {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 12px 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  line-height: 23px;
  color: #fff;
  white-space: nowrap;
}

.dog-info__trait svg {
  flex-shrink: 0;
  fill: none;
}

/* Right column: form wrapper */
.dog-form {
  width: 42%;
  background: #ededed;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.dog-form .nf-form-content {
  padding: 0;
}

.dog-form__title {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  text-align: center;
  width: 100%;
  margin-bottom: 8px;
}

.dog-form__intro {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #444;
  text-align: center;
  margin-bottom: 12px;
}

.dog-form__phone-note {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #444;
  text-align: center;
  margin-top: -10px;
}

.dog-form__phone-note a {
  color: #AF933F;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.dog-form__phone-note a:hover {
  text-decoration: underline;
}

.dog-form .nf-form-content .nf-field-container {
  margin-bottom: 16px;
}

nf-rows-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

nf-rows-wrap .nf-row:nth-child(1) {
  margin-right: 8px;
}

nf-rows-wrap .nf-row:nth-child(2) {
  margin-left: 8px;
}

nf-rows-wrap .nf-row:nth-child(n+3) {
  grid-column: 1 / -1;
}

.dog-form .nf-form-content textarea.ninja-forms-field {
  height: 110px;
}

.dog-form .nf-form-fields-required {
  display: none;
}

.dog-form .nf-form-content .nf-field-container #nf-field-9-wrap .nf-field-element .ninja-forms-field {
  background-color: var(--bs-yellow);
  border-color: var(--bs-yellow);
  color: #fff !important;
  height: 51px;
  border-radius: 6px;
}

.dog-form .nf-form-content .nf-field-container #nf-field-9-wrap .nf-field-element .ninja-forms-field:hover {
  background-color: #ddbb56;
  border-color: #ddbb56;
}

/*.dog-grid-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}*/

.dog-grid-gallery {
  display: grid;
  /* 6 tracks, each image spans 2 → still 3 per row, same width as repeat(3, 1fr) */
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.dog-grid-gallery > * {
  grid-column: span 2;
}

.dog-grid-gallery .ratio .full-img img {
  object-position: 0% 30%;
}
 
/* exactly 2 images → center them in the single row */
.dog-grid-gallery:has(> :nth-child(2):last-child) > :nth-child(1) { grid-column: 2 / span 2; }
.dog-grid-gallery:has(> :nth-child(2):last-child) > :nth-child(2) { grid-column: 4 / span 2; }

/* exactly 4 images → center the orphan on the second row */
.dog-grid-gallery:has(> :nth-child(4):last-child) > :nth-child(4) { grid-column: 3 / span 2; }

.dog-img-gallery {
  margin: 0 !important;
}

.section h2 {
  font-family: Roboto, sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section h3,
.section h4 {
  font-family: Roboto, sans-serif;
  letter-spacing: 1px;
}

.dog-info__details a,
.section.dog-details a {
  color: var(--bs-yellow);
}

.section.dog-gallery {
  background: #EDEDED;
}

.section.dog-gallery .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section.dog-gallery .slick-dots {
  margin-top: 12px;
}

.mobile-visible {
  display: none;
}

/* ===== Mobile ===== */
@media (max-width: 992px) {
  .mobile-visible {
    display: block;
  }

  .section h2 {
    font-size: 26px;
  }

  .mobile-hidden {
    display: none;
  }

  .dog-hero {
    min-height: 460px;
  }

  .dog-info__title-block {
    padding-top: 0;
  }

  .dog-hero__grad-bottom {
    height: 120px;
  }

  .dog-guarantees__list {
    gap: 12px;
  }

  .dog-guarantees__item {
    flex-direction: column;
    white-space: normal;
    text-align: center;
  }

  .dog-info {
    padding: 32px 0 60px;
  }

  .dog-info__inner {
    flex-direction: column;
    gap: 32px;
  }

  .dog-info__details {
    flex: none;
    width: 100%;
    gap: 24px;
  }

  .dog-info__name {
    font-size: 28px;
    line-height: 36px;
  }

  .dog-info__price {
    font-size: 22px;
    line-height: 30px;
  }

  .dog-info__stats {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dog-info__stat-divider {
    display: none;
  }

  .dog-form {
    flex: none;
    width: 100%;
  }
  nf-rows-wrap .nf-row:nth-child(1) {
    margin-right: 0;
  }

  nf-rows-wrap .nf-row:nth-child(2) {
    margin-left: 0;
  }

  nf-rows-wrap {
    grid-template-columns: 1fr;
  }
}
