/**
 * LaMilka Tour 0.6.06
 * Lifestyle & Tattoo migration and focused mobile QA corrections.
 *
 * Scope is intentionally limited to:
 * - the new Lifestyle & Tattoo route family;
 * - Private Tours mobile idea-card copy/image separation;
 * - the identified Rafting, Transfers and Riviera News line breaks;
 * - Samsung Internet color normalization.
 */

/* --------------------------------------------------------------------------
   New Lifestyle & Tattoo hub: exact two-category structure.
   -------------------------------------------------------------------------- */
body.lamilka-lifestyle-tattoo-page .lamilka-aesthetic-hub__category-track {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 816px !important;
}

body.lamilka-lifestyle-tattoo-page .lamilka-aesthetic-hub__category {
  min-width: 0 !important;
}

body.lamilka-lifestyle-tattoo-page .lamilka-aesthetic-hub__category-dots {
  display: none !important;
}

@media (max-width: 767px) {
  body.lamilka-lifestyle-tattoo-page .lamilka-aesthetic-hub__category-track {
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: none !important;
    overflow: visible !important;
    padding: 16px 20px 0 !important;
    scroll-snap-type: none !important;
  }

  body.lamilka-lifestyle-tattoo-page .lamilka-aesthetic-hub__category {
    box-sizing: border-box !important;
    flex: none !important;
    min-height: 0 !important;
    padding: 28px !important;
    scroll-snap-align: none !important;
    width: 100% !important;
  }

  body.lamilka-lifestyle-tattoo-page .lamilka-aesthetic-hub__category p {
    min-height: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Private Tours mobile cards: copy owns its natural height; image starts only
   after the copy. This removes the fixed-aspect-ratio collision seen on some
   Android/Samsung font metrics while preserving the approved iPhone width.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body.lamilka-private-tours-page
  .lamilka-private__ideas
  [data-lamilka-private-ideas] > .lamilka-private__idea-card {
    aspect-ratio: 4 / 5 !important;
    display: grid !important;
    flex: 0 0 82% !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.lamilka-private-tours-page
  .lamilka-private__ideas
  .lamilka-private__idea-card > .lamilka-private__idea-copy {
    box-sizing: border-box !important;
    display: flex !important;
    grid-row: 1 !important;
    height: auto !important;
    min-height: 120px !important;
    overflow: visible !important;
    padding: 14px 14px 13px !important;
    position: relative !important;
    z-index: 2 !important;
  }

  body.lamilka-private-tours-page
  .lamilka-private__ideas
  .lamilka-private__idea-title,
  body.lamilka-private-tours-page
  .lamilka-private__ideas
  .lamilka-private__idea-description {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.lamilka-private-tours-page
  .lamilka-private__ideas
  .lamilka-private__idea-card > img {
    aspect-ratio: auto !important;
    display: block !important;
    grid-row: 2 !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    position: relative !important;
    width: 100% !important;
    z-index: 1 !important;
  }
}

/* --------------------------------------------------------------------------
   Identified phrase/orphan corrections.
   -------------------------------------------------------------------------- */
body.lamilka-transfers-page .lamilka-transfer__benefit--cancellation .lamilka-no-break,
body.lamilka-riviera-news-page .lamilka-riviera-news__cards .lamilka-no-break {
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  body.lamilka-transfers-page .lamilka-transfer__benefit--cancellation > span:last-child {
    font-size: clamp(9.5px, 2.65vw, 12px) !important;
    line-height: 1.28 !important;
    text-wrap: balance !important;
  }

  body.lamilka-riviera-news-page .lamilka-riviera-news__cards p {
    overflow-wrap: normal !important;
    text-wrap: balance !important;
    word-break: normal !important;
  }
}

/* --------------------------------------------------------------------------
   Samsung Internet: establish one deterministic light palette before the
   browser's optional dark-webpage processing can reinterpret colors.
   -------------------------------------------------------------------------- */
html.lamilka-samsung-internet {
  color-scheme: light only !important;
  background: #ffffff !important;
}

html.lamilka-samsung-internet body,
html.lamilka-samsung-internet body * {
  forced-color-adjust: none !important;
}

html.lamilka-samsung-internet body {
  background-color: #ffffff !important;
  color: #0a192f !important;
}

html.lamilka-samsung-internet .lamilka-site-header,
html.lamilka-samsung-internet .lamilka-mobile-panel {
  background-color: #ffffff !important;
  color: #0a192f !important;
}

html.lamilka-samsung-internet body.lamilka-private-tours-page .lamilka-private,
html.lamilka-samsung-internet body.lamilka-riviera-news-page .lamilka-riviera-news,
html.lamilka-samsung-internet body.lamilka-transfers-page .lamilka-transfer {
  background-color: #f8fafc !important;
}

html.lamilka-samsung-internet body.lamilka-service-concierge-page .lamilka-concierge {
  background-color: #f7f2ea !important;
  color: #2a2218 !important;
}

html.lamilka-samsung-internet body.lamilka-aesthetic-page .lamilka-aesthetic-hub {
  background-color: #ffffff !important;
  color: #0a192f !important;
}

html.lamilka-samsung-internet img,
html.lamilka-samsung-internet picture {
  mix-blend-mode: normal !important;
}

html.lamilka-samsung-internet .lamilka-private__mobile a:first-child,
html.lamilka-samsung-internet .lamilka-aesthetic-hub__mobile-cta a:first-child,
html.lamilka-samsung-internet .lamilka-concierge__whatsapp,
html.lamilka-samsung-internet .lamilka-home-trust-panel__cta {
  background-color: #25d366 !important;
  background-image: none !important;
  color: #ffffff !important;
  filter: none !important;
}

html.lamilka-samsung-internet .lamilka-private__mobile a:last-child,
html.lamilka-samsung-internet .lamilka-aesthetic-hub__mobile-cta a:last-child {
  background-color: #0a192f !important;
  background-image: none !important;
  color: #ffffff !important;
  filter: none !important;
}

html.lamilka-samsung-internet .lamilka-concierge__mobile-ask,
html.lamilka-samsung-internet .lamilka-concierge__service-card-cta,
html.lamilka-samsung-internet .lamilka-aesthetic-hub__category > span {
  background-color: #00b4d8 !important;
  background-image: none !important;
  color: #ffffff !important;
  filter: none !important;
}

html.lamilka-samsung-internet body.lamilka-private-tours-page .lamilka-private__hero picture > img,
html.lamilka-samsung-internet body.lamilka-private-tours-page .lamilka-private__idea-card > img,
html.lamilka-samsung-internet body.lamilka-service-concierge-page .lamilka-concierge__hero picture > img,
html.lamilka-samsung-internet body.lamilka-riviera-news-page .lamilka-riviera-news img {
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

html.lamilka-samsung-internet body.lamilka-private-tours-page .lamilka-private__hero::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .30), transparent, rgba(0, 0, 0, .20)) !important;
  filter: none !important;
  opacity: 1 !important;
}

html.lamilka-samsung-internet body.lamilka-service-concierge-page .lamilka-concierge__hero-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .30), rgba(0, 0, 0, .15) 50%, rgba(0, 0, 0, .30)) !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  html.lamilka-samsung-internet body.lamilka-service-concierge-page .lamilka-concierge__hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, .15) 35%, rgba(0, 0, 0, .35)) !important;
  }
}

html.lamilka-samsung-internet input,
html.lamilka-samsung-internet select,
html.lamilka-samsung-internet textarea {
  background-color: #ffffff !important;
  color: #0a192f !important;
  -webkit-text-fill-color: #0a192f !important;
}

/* The former three-card partner row now contains the two approved categories. */
@media (min-width: 768px) {
  body .lamilka-about .lamilka-about__partners > div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 840px !important;
  }
}
