/* BungalovTR mobile bungalow detail polish. Mobile-only; desktop untouched. */
@media (max-width: 820px) {
  html.btr-mobile-app body.single-bungalov {
    --btr-detail-edge: 12px;
    --btr-detail-radius: 18px;
  }

  html.btr-mobile-app body.single-bungalov .btr-public-gallery-grid {
    gap: 6px !important;
    padding: 0 12px 7px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-tile,
  html.btr-mobile-app body.single-bungalov .btr-gallery-main {
    flex-basis: calc(100vw - 24px) !important;
    width: calc(100vw - 24px) !important;
    height: clamp(340px, 58vh, 455px) !important;
    min-height: 340px !important;
    border-radius: 0 0 20px 20px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button {
    min-height: 36px !important;
    margin-right: 12px !important;
    padding: 0 11px !important;
    border-radius: 11px !important;
    font-size: 10.5px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-single-head.container {
    padding: 15px var(--btr-detail-edge) 10px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-single-kicker {
    margin-bottom: 6px !important;
    padding: 5px 8px !important;
    font-size: 9.5px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-single-head h1 {
    max-width: 96% !important;
    margin-bottom: 6px !important;
    font-size: clamp(24px, 6.6vw, 29px) !important;
    line-height: 1.08 !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-single-location {
    gap: 5px !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-single-layout.container {
    gap: 10px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-summary-card,
  html.btr-mobile-app body.single-bungalov .bungalow-detail-section,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-card,
  html.btr-mobile-app body.single-bungalov .btr-single-area-map,
  html.btr-mobile-app body.single-bungalov .bungalow-reservation-note {
    padding: 15px 14px !important;
    border-radius: var(--btr-detail-radius) !important;
    box-shadow: 0 4px 16px rgba(32,48,37,.032) !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-section-eyebrow {
    margin-bottom: 5px !important;
    font-size: 9px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-summary-card h2,
  html.btr-mobile-app body.single-bungalov .bungalow-detail-section h2 {
    margin-bottom: 8px !important;
    font-size: 18px !important;
    line-height: 1.22 !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-intro,
  html.btr-mobile-app body.single-bungalov .bungalow-entry-content,
  html.btr-mobile-app body.single-bungalov .bungalow-faq p {
    font-size: 12.5px !important;
    line-height: 1.68 !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-entry-content > *:first-child { margin-top: 0 !important; }
  html.btr-mobile-app body.single-bungalov .bungalow-entry-content > *:last-child { margin-bottom: 0 !important; }
  html.btr-mobile-app body.single-bungalov .bungalow-entry-content p { margin-bottom: 12px !important; }
  html.btr-mobile-app body.single-bungalov .bungalow-entry-content h2 { margin-top: 20px !important; }
  html.btr-mobile-app body.single-bungalov .bungalow-entry-content h3 { margin-top: 17px !important; font-size: 16px !important; }

  html.btr-mobile-app body.single-bungalov .bungalow-feature-grid {
    gap: 7px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-feature-item {
    min-height: 47px !important;
    gap: 8px !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
    font-size: 10.5px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-feature-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-top {
    gap: 9px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-identity h2 {
    font-size: 14.5px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-stats {
    margin-top: 11px !important;
    padding: 9px 0 !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-facts {
    margin-top: 10px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-actions,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-socials {
    margin-top: 9px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-button {
    min-height: 43px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-note {
    margin-top: 10px !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-reservation-note {
    gap: 10px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-reservation-note h2 {
    margin: 0 0 4px !important;
    font-size: 15px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-reservation-note p {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-faq summary {
    min-height: 45px !important;
    padding: 9px 0 !important;
    font-size: 11.5px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-discovery-strip {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-discovery-strip .bungalow-section-heading,
  html.btr-mobile-app body.single-bungalov .bungalow-related .section-head {
    text-align: center !important;
    justify-content: center !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-discovery-links {
    gap: 8px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-discovery-links a {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-related {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-related .bungalow-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-related .bungalow-grid > :nth-child(n+3) {
    display: none !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-related .section-head > a {
    display: none !important;
  }
}

@media (max-width: 380px) {
  html.btr-mobile-app body.single-bungalov .btr-gallery-tile,
  html.btr-mobile-app body.single-bungalov .btr-gallery-main {
    height: 330px !important;
    min-height: 330px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-feature-grid {
    gap: 6px !important;
  }
}

/* V38: compact mobile hero + gallery gestures + overlay header. */
@media (max-width: 820px) {
  html.btr-mobile-app body.single-bungalov {
    padding-top: 0 !important;
  }

  /* Use the real mobile header over the hero instead of floating detail controls. */
  html.btr-mobile-app body.single-bungalov .site-header {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1340 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html.btr-mobile-app body.single-bungalov .site-header .header-inner {
    width: calc(100% - 28px) !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 0 !important;
  }

  /* Same centered mobile brand layout as the home page; white over the photo hero. */
  html.btr-mobile-app body.single-bungalov .site-header .brand,
  html.btr-mobile-app body.single-bungalov .site-header .btr-brand {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    font-size: 21px !important;
    font-weight: 650 !important;
    letter-spacing: -.035em !important;
    white-space: nowrap !important;
    z-index: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .site-header .brand-mark,
  html.btr-mobile-app body.single-bungalov .site-header .btr-brand__mark {
    width: 24px !important;
    height: 24px !important;
    color: #fff !important;
  }

  html.btr-mobile-app body.single-bungalov .site-header .mobile-menu-button,
  html.btr-mobile-app body.single-bungalov .site-header .btr-menu-toggle {
    right: 0 !important;
    width: 42px !important;
    height: 42px !important;
    padding: 8px !important;
    border: 1px solid rgba(255,255,255,.38) !important;
    border-radius: 13px !important;
    background: rgba(22,35,27,.28) !important;
    box-shadow: 0 5px 18px rgba(10,20,14,.12) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.08);
    backdrop-filter: blur(10px) saturate(1.08);
  }

  html.btr-mobile-app body.single-bungalov .site-header .mobile-menu-button span,
  html.btr-mobile-app body.single-bungalov .site-header .btr-menu-toggle span {
    background: #fff !important;
  }

  html.btr-mobile-app body.single-bungalov.menu-open .site-header,
  html.btr-mobile-app body.single-bungalov.menu-open .btr-header {
    background: rgba(255,255,255,.98) !important;
  }

  html.btr-mobile-app body.single-bungalov.menu-open .site-header .brand,
  html.btr-mobile-app body.single-bungalov.menu-open .site-header .btr-brand {
    border-color: rgba(36,76,51,.10) !important;
    background: #fff !important;
    color: #214d3b !important;
    box-shadow: none !important;
  }

  html.btr-mobile-app body.single-bungalov.menu-open .site-header .brand-mark,
  html.btr-mobile-app body.single-bungalov.menu-open .site-header .btr-brand__mark {
    color: #2f7d4f !important;
  }

  html.btr-mobile-app body.single-bungalov.menu-open .site-header .mobile-menu-button,
  html.btr-mobile-app body.single-bungalov.menu-open .site-header .btr-menu-toggle {
    border-color: rgba(36,76,51,.10) !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  html.btr-mobile-app body.single-bungalov.menu-open .site-header .mobile-menu-button span,
  html.btr-mobile-app body.single-bungalov.menu-open .site-header .btr-menu-toggle span {
    background: #263a2d !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-mobile-detail-actions {
    display: none !important;
  }

  /* Shorter image hero. */
  html.btr-mobile-app body.single-bungalov .btr-public-gallery-grid {
    padding: 0 10px 7px !important;
    gap: 6px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-tile,
  html.btr-mobile-app body.single-bungalov .btr-gallery-main {
    flex-basis: calc(100vw - 20px) !important;
    width: calc(100vw - 20px) !important;
    height: clamp(295px, 47vh, 365px) !important;
    min-height: 295px !important;
    border-radius: 0 0 18px 18px !important;
  }

  /* Keep the existing real button visible on top of the hero. */
  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button {
    position: absolute !important;
    right: 16px !important;
    bottom: 16px !important;
    z-index: 30 !important;
    display: inline-flex !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    border: 1px solid rgba(255,255,255,.62) !important;
    border-radius: 11px !important;
    background: rgba(24,33,27,.72) !important;
    color: #fff !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.16) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button strong {
    background: rgba(255,255,255,.16) !important;
    color: #fff !important;
  }

  /* Fullscreen gallery: finger swipe only on mobile. */
  html.btr-mobile-app body.single-bungalov .btr-gallery-dialog-inner {
    padding: 52px 12px 28px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-stage {
    width: 100% !important;
    height: calc(100dvh - 86px) !important;
    touch-action: pan-y;
    user-select: none;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-stage img {
    max-width: 100% !important;
    max-height: calc(100dvh - 145px) !important;
    border-radius: 10px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-prev,
  html.btr-mobile-app body.single-bungalov .btr-gallery-next {
    display: none !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-close {
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-stage figcaption {
    padding: 9px 3px 0 !important;
    font-size: 11px !important;
  }

  /* Slightly denser business detail/profile card. */
  html.btr-mobile-app body.single-bungalov .bungalow-profile-card {
    padding: 12px 12px !important;
    border-radius: 15px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-identity h2 {
    font-size: 13.5px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-identity p,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-fact,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-note {
    font-size: 9.5px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-stats {
    margin-top: 8px !important;
    padding: 7px 0 !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-facts,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-actions,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-socials {
    margin-top: 7px !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-button {
    min-height: 38px !important;
    border-radius: 10px !important;
    font-size: 10.5px !important;
  }
}

@media (max-width: 380px) {
  html.btr-mobile-app body.single-bungalov .btr-gallery-tile,
  html.btr-mobile-app body.single-bungalov .btr-gallery-main {
    height: 285px !important;
    min-height: 285px !important;
  }
}

/* V40: detail header brand must stay white on mobile hero.
   Do not depend on the optional html.btr-mobile-app runtime class. */
@media (max-width: 820px) {
  body.single-bungalov .site-header .brand,
  body.single-bungalov .site-header .btr-brand,
  body.single-bungalov .site-header .brand > span:not(.brand-mark):not(.btr-brand__mark),
  body.single-bungalov .site-header .btr-brand > span:not(.brand-mark):not(.btr-brand__mark) {
    color: #fff !important;
  }

  body.single-bungalov .site-header .brand-mark,
  body.single-bungalov .site-header .btr-brand__mark,
  body.single-bungalov .site-header .brand-mark svg,
  body.single-bungalov .site-header .btr-brand__mark svg {
    color: #fff !important;
    stroke: #fff !important;
  }

  body.single-bungalov .site-header .brand-mark svg *,
  body.single-bungalov .site-header .btr-brand__mark svg * {
    stroke: #fff !important;
  }
}

/* V41: detail page header must be identical to the mobile home header.
   White app bar, centered green brand, standard menu button. */
@media (max-width: 820px) {
  body.single-bungalov .site-header,
  html.btr-mobile-app body.single-bungalov .site-header,
  body.single-bungalov .btr-header,
  html.btr-mobile-app body.single-bungalov .btr-header {
    display: block !important;
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    height: 58px !important;
    z-index: 1340 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(48,76,56,.08) !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
    backdrop-filter: blur(18px) saturate(1.15) !important;
  }

  body.single-bungalov.admin-bar .site-header,
  html.btr-mobile-app body.single-bungalov.admin-bar .site-header {
    top: 46px !important;
  }

  body.single-bungalov .site-header .header-inner,
  html.btr-mobile-app body.single-bungalov .site-header .header-inner {
    position: relative !important;
    width: calc(100% - 28px) !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 0 !important;
  }

  body.single-bungalov .site-header .brand,
  body.single-bungalov .site-header .btr-brand,
  html.btr-mobile-app body.single-bungalov .site-header .brand,
  html.btr-mobile-app body.single-bungalov .site-header .btr-brand {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #2d5136 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    font-size: 21px !important;
    font-weight: 650 !important;
    letter-spacing: -.035em !important;
    white-space: nowrap !important;
    z-index: 2 !important;
  }

  body.single-bungalov .site-header .brand > span:not(.brand-mark):not(.btr-brand__mark),
  body.single-bungalov .site-header .btr-brand > span:not(.brand-mark):not(.btr-brand__mark) {
    color: #2d5136 !important;
  }

  body.single-bungalov .site-header .brand-mark,
  body.single-bungalov .site-header .btr-brand__mark,
  body.single-bungalov .site-header .brand-mark svg,
  body.single-bungalov .site-header .btr-brand__mark svg,
  html.btr-mobile-app body.single-bungalov .site-header .brand-mark,
  html.btr-mobile-app body.single-bungalov .site-header .btr-brand__mark {
    width: 24px !important;
    height: 24px !important;
    color: #2f7d4f !important;
    stroke: currentColor !important;
  }

  body.single-bungalov .site-header .brand-mark svg *,
  body.single-bungalov .site-header .btr-brand__mark svg * {
    stroke: currentColor !important;
  }

  body.single-bungalov .site-header .mobile-menu-button,
  body.single-bungalov .site-header .btr-menu-toggle,
  html.btr-mobile-app body.single-bungalov .site-header .mobile-menu-button,
  html.btr-mobile-app body.single-bungalov .site-header .btr-menu-toggle {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid rgba(48,76,56,.10) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 5px 16px rgba(31,48,36,.045) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    z-index: 3 !important;
  }

  body.single-bungalov .site-header .mobile-menu-button span,
  body.single-bungalov .site-header .btr-menu-toggle span,
  html.btr-mobile-app body.single-bungalov .site-header .mobile-menu-button span,
  html.btr-mobile-app body.single-bungalov .site-header .btr-menu-toggle span {
    width: 19px !important;
    height: 1.5px !important;
    margin: 2.5px 0 !important;
    border-radius: 999px !important;
    background: #35573d !important;
  }

  /* Detail gallery now starts below the normal app header, just like home content. */
  body.single-bungalov .btr-public-gallery-grid,
  html.btr-mobile-app body.single-bungalov .btr-public-gallery-grid {
    margin-top: 0 !important;
  }
}


/* V200: mobile detail gallery - desktop-style photo mosaic, adapted for narrow screens. */
@media (max-width: 820px) {
  html.btr-mobile-app body.single-bungalov .btr-public-gallery {
    position: relative !important;
    margin-bottom: 18px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-public-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-template-rows: clamp(220px, 62vw, 280px) clamp(78px, 24vw, 102px) !important;
    gap: 4px !important;
    width: auto !important;
    margin: 0 10px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: #e9e9e5 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-tile,
  html.btr-mobile-app body.single-bungalov .btr-gallery-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: none !important;
    flex-basis: auto !important;
    border-radius: 0 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-main {
    grid-column: 1 / 13 !important;
    grid-row: 1 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-5 .btr-gallery-tile:nth-child(2) {
    grid-column: 1 / 4 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-5 .btr-gallery-tile:nth-child(3) {
    grid-column: 4 / 7 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-5 .btr-gallery-tile:nth-child(4) {
    grid-column: 7 / 10 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-5 .btr-gallery-tile:nth-child(5) {
    grid-column: 10 / 13 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-4 .btr-gallery-tile:nth-child(2) {
    grid-column: 1 / 5 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-4 .btr-gallery-tile:nth-child(3) {
    grid-column: 5 / 9 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-4 .btr-gallery-tile:nth-child(4) {
    grid-column: 9 / 13 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-3 .btr-gallery-tile:nth-child(2) {
    grid-column: 1 / 7 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-3 .btr-gallery-tile:nth-child(3) {
    grid-column: 7 / 13 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-2 .btr-gallery-tile:nth-child(2) {
    grid-column: 1 / 13 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-1 {
    grid-template-rows: clamp(285px, 78vw, 360px) !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-1 .btr-gallery-main {
    grid-column: 1 / 13 !important;
    grid-row: 1 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button {
    right: 18px !important;
    bottom: 12px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    gap: 6px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button strong {
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    font-size: 10px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-more {
    gap: 4px !important;
    font-size: 10px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-more strong {
    font-size: 10px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-more-icon {
    font-size: 15px !important;
  }
}

/* V201: keep all five preview tiles visible in the mobile mosaic.
   Overrides the legacy <=720px rule that hid tiles from the 4th item onward. */
@media (max-width: 820px) {
  html.btr-mobile-app body.single-bungalov .btr-public-gallery-grid .btr-gallery-tile {
    display: block !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-5 .btr-gallery-tile:nth-child(2) {
    grid-column: 1 / 4 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-5 .btr-gallery-tile:nth-child(3) {
    grid-column: 4 / 7 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-5 .btr-gallery-tile:nth-child(4) {
    grid-column: 7 / 10 !important;
    grid-row: 2 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-count-5 .btr-gallery-tile:nth-child(5) {
    grid-column: 10 / 13 !important;
    grid-row: 2 !important;
  }
}

/* V202: compact mobile gallery CTA so it covers only one preview tile. */
@media (max-width: 820px) {
  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button {
    right: 8px !important;
    bottom: 8px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    gap: 4px !important;
    border-radius: 10px !important;
    font-size: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button::after {
    content: "Tümü";
    order: 2;
    font-size: 11px !important;
    font-weight: 700;
    line-height: 1 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button > span {
    order: 1;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button > strong {
    order: 3;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    font-size: 9px !important;
    line-height: 18px !important;
  }
}

/* V203: use a real short mobile label instead of hiding the desktop text node. */
@media (max-width: 820px) {
  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button {
    font-size: 11px !important;
    max-width: 88px !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button::after {
    content: none !important;
    display: none !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-gallery-all-button .btr-gallery-all-label {
    display: inline !important;
    order: 2;
    font-size: 11px !important;
    font-weight: 700;
    line-height: 1 !important;
  }
}

/* V204 - mobile business contact actions: Ara + WhatsApp equal row. */
@media (max-width: 820px) {
  html.btr-mobile-app body.single-bungalov .bungalow-profile-actions.btr-mobile-contact-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: stretch !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-actions.btr-mobile-contact-actions > .bungalow-profile-button {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-actions.btr-mobile-contact-actions > .btr-mobile-contact-route,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-actions.btr-mobile-contact-actions > .btr-share-trigger {
    grid-column: 1 / -1 !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-mobile-contact-whatsapp {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-mobile-contact-whatsapp:hover,
  html.btr-mobile-app body.single-bungalov .btr-mobile-contact-whatsapp:focus-visible {
    background: #1fb85a !important;
    border-color: #1fb85a !important;
    color: #fff !important;
  }

  html.btr-mobile-app body.single-bungalov .btr-mobile-contact-whatsapp svg {
    width: 15px !important;
    height: 15px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-socials .btr-mobile-hide-whatsapp-social {
    display: none !important;
  }
}

/* V225 - mobile profile card must use the full content width. */
@media (max-width: 820px) {
  html.btr-mobile-app body.single-bungalov .bungalow-single-layout.container,
  body.single-bungalov .bungalow-single-layout.container {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-main-column,
  body.single-bungalov .bungalow-main-column {
    min-width: 0 !important;
    width: 100% !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-card,
  body.single-bungalov .bungalow-profile-card {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    justify-self: stretch !important;
  }

  html.btr-mobile-app body.single-bungalov .bungalow-profile-top,
  body.single-bungalov .bungalow-profile-top,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-facts,
  body.single-bungalov .bungalow-profile-facts,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-actions,
  body.single-bungalov .bungalow-profile-actions,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-socials,
  body.single-bungalov .bungalow-profile-socials,
  html.btr-mobile-app body.single-bungalov .bungalow-profile-note,
  body.single-bungalov .bungalow-profile-note {
    box-sizing: border-box !important;
  }
}
