/* BungalovTR - Independent share module */

.btr-share-trigger {
  gap: 7px;
  cursor: pointer;
}

.btr-share-trigger__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.btr-share-trigger__icon svg,
.btr-share-option__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bungalow-profile-button-share {
  border: 1px solid #d7e2d4;
  background: #f4f8f2;
  color: #496345;
}

.bungalow-profile-button-share:hover,
.bungalow-profile-button-share:focus-visible {
  background: #eaf2e7;
  border-color: #b8cbb3;
}

.btr-share-dialog[hidden] {
  display: none !important;
}

.btr-share-dialog {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.btr-share-dialog__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(24, 30, 23, .48);
  cursor: default;
}

.btr-share-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid #e3e8e1;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(28, 38, 27, .22);
}

.btr-share-dialog__handle {
  display: none;
}

.btr-share-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.btr-share-dialog__header h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  color: #263523;
}

.btr-share-dialog__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f4ef;
  color: #53624f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.btr-share-dialog__actions {
  display: grid;
  gap: 10px;
}

.btr-share-option {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e0e6de;
  border-radius: 14px;
  background: #fff;
  color: #30402d;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.btr-share-option:hover,
.btr-share-option:focus-visible {
  background: #f6f8f5;
  border-color: #cbd8c7;
}

.btr-share-option__icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 11px;
  background: #eff4ed;
  color: #557050;
}

.btr-share-option--whatsapp .btr-share-option__icon {
  background: #e9f8ec;
  color: #16883c;
}

.btr-share-option.is-copied .btr-share-option__icon {
  background: #eaf5e7;
  color: #3f7137;
}

html.btr-share-open,
body.btr-share-open {
  overflow: hidden !important;
}

@media (max-width: 820px) {
  .bungalow-profile-actions .btr-share-trigger {
    min-height: 42px;
  }

  .btr-share-dialog {
    align-items: flex-end;
    padding: 0;
  }

  .btr-share-dialog__panel {
    width: 100%;
    max-width: none;
    border-radius: 22px 22px 0 0;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .btr-share-dialog__handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 99px;
    background: #d8ded5;
  }

  .btr-share-dialog__header h2 {
    font-size: 19px;
  }
}


/* V232 - desktop gallery action row */
@media (min-width: 821px) {
  .btr-gallery-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #fff;
  }

  .btr-gallery-action-bar__button,
  .btr-gallery-action-bar .btr-share-trigger {
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px;
    margin: 0 !important;
    padding: 9px 14px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .btr-gallery-action-bar .btr-share-trigger {
    border: 1px solid #d5ddd2;
    background: #fff;
    color: #243625;
  }

  .btr-gallery-action-bar + .btr-gallery-dialog {
    margin-top: 0;
  }
}

/* V233 - desktop gallery/content spacing compact */
@media (min-width: 821px) {
  body.single-bungalov .btr-public-gallery.btr-public-gallery--has-actions {
    margin-bottom: 10px !important;
  }

  body.single-bungalov .btr-gallery-action-bar {
    min-height: 50px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  body.single-bungalov .btr-gallery-action-bar ~ .bungalow-single-layout {
    margin-top: 14px !important;
  }
}

/* V234 - desktop gallery/content spacing tighter */
@media (min-width: 821px) {
  body.single-bungalov .btr-public-gallery.btr-public-gallery--has-actions {
    margin-bottom: 4px !important;
  }

  body.single-bungalov .btr-gallery-action-bar {
    min-height: 46px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  body.single-bungalov .btr-gallery-action-bar ~ .bungalow-single-layout {
    margin-top: 6px !important;
  }
}

/* =========================================================
   V236 - Share popup refresh + desktop action colors
   ========================================================= */

/* Cleaner share dialog */
.btr-share-dialog__backdrop {
  background: rgba(25, 35, 27, .38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.btr-share-dialog__panel {
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid #dfe8dc;
  border-radius: 22px;
  background: #fbfdf9;
  box-shadow: 0 22px 60px rgba(28, 43, 30, .20);
}

.btr-share-dialog__header {
  margin-bottom: 4px;
}

.btr-share-dialog__header h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.02em;
  color: #243a29;
}

.btr-share-dialog__subtitle {
  margin: 0 42px 18px 0;
  color: #6b786a;
  font-size: 14px;
  line-height: 1.45;
}

.btr-share-dialog__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf3ea;
  color: #466149;
  transition: background .18s ease, transform .18s ease;
}

.btr-share-dialog__close:hover,
.btr-share-dialog__close:focus-visible {
  background: #e1ebdd;
  transform: rotate(3deg);
}

.btr-share-dialog__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.btr-share-option {
  min-height: 88px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  padding: 13px 14px;
  border-color: #dfe7dc;
  border-radius: 15px;
  background: #fff;
  color: #2b3f2f;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(38, 58, 41, .035);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.btr-share-option:hover,
.btr-share-option:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(38, 58, 41, .08);
}

.btr-share-option__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 9px;
  border-radius: 12px;
}

.btr-share-option--whatsapp {
  background: #f6fcf7;
}
.btr-share-option--whatsapp .btr-share-option__icon {
  background: #ddf5e3;
  color: #16883c;
}
.btr-share-option--whatsapp:hover,
.btr-share-option--whatsapp:focus-visible {
  border-color: #bfe3c8;
  background: #eff9f1;
}

.btr-share-option--facebook {
  background: #f7f9fe;
}
.btr-share-option--facebook .btr-share-option__icon {
  background: #e7edfc;
  color: #315fbe;
}
.btr-share-option--facebook:hover,
.btr-share-option--facebook:focus-visible {
  border-color: #cbd8f4;
  background: #f1f5fd;
}

.btr-share-option--x {
  background: #f8f8f8;
}
.btr-share-option--x .btr-share-option__icon {
  background: #ececec;
  color: #181818;
}
.btr-share-option--x:hover,
.btr-share-option--x:focus-visible {
  border-color: #d4d4d4;
  background: #f2f2f2;
}

.btr-share-option--copy {
  background: #f7faf5;
}
.btr-share-option--copy .btr-share-option__icon {
  background: #eaf2e7;
  color: #52704e;
}
.btr-share-option--copy:hover,
.btr-share-option--copy:focus-visible {
  border-color: #cfddca;
  background: #f1f7ef;
}

.btr-share-social-letter {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}
.btr-share-social-letter--x {
  font-size: 17px;
  font-weight: 700;
}

/* Desktop does not use the OS/native share chooser. */
@media (min-width: 821px) {
  .btr-share-option--native {
    display: none !important;
  }

  /* Gallery action buttons */
  body.single-bungalov .btr-gallery-action-bar a[href*="google.com/maps"],
  body.single-bungalov .btr-gallery-action-bar a[href*="maps.google"],
  body.single-bungalov .btr-gallery-action-bar a[href*="maps.app"] {
    background: #f1f6ee !important;
    border-color: #c8d9c2 !important;
    color: #315b38 !important;
  }

  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger {
    background: #e3efdd !important;
    border-color: #a9c49f !important;
    color: #24522e !important;
  }

  body.single-bungalov .btr-gallery-action-bar a[href*="google.com/maps"]:hover,
  body.single-bungalov .btr-gallery-action-bar a[href*="maps.google"]:hover,
  body.single-bungalov .btr-gallery-action-bar a[href*="maps.app"]:hover {
    background: #e5efe0 !important;
    border-color: #a8c39f !important;
  }

  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger:hover,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger:focus-visible {
    background: #d4e6cc !important;
    border-color: #8eae83 !important;
  }
}

@media (max-width: 820px) {
  .btr-share-dialog__panel {
    width: 100%;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .btr-share-dialog__subtitle {
    margin-bottom: 14px;
  }

  .btr-share-dialog__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btr-share-option {
    min-height: 78px;
  }
}

/* =========================================================
   V237 - compact icon-only share dropdown
   ========================================================= */

/* Legacy modal is no longer part of the active UX. */
.btr-share-dialog {
  display: none !important;
}

.btr-share-drop[hidden] {
  display: none !important;
}

.btr-share-drop {
  position: absolute;
  z-index: 100002;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 7px;
  border: 1px solid #dce6d8;
  border-radius: 13px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 28px rgba(32, 48, 34, .16);
}

.btr-share-drop::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 18px;
  width: 9px;
  height: 9px;
  background: #fff;
  border-top: 1px solid #dce6d8;
  border-left: 1px solid #dce6d8;
  transform: rotate(45deg);
}

.btr-share-drop__item {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.btr-share-drop__item:hover,
.btr-share-drop__item:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 4px 10px rgba(35, 55, 38, .10);
}

.btr-share-drop__item svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btr-share-drop__item--whatsapp {
  background: #eaf8ed;
  color: #13863a;
}

.btr-share-drop__item--facebook {
  background: #edf2fd;
  color: #315fbe;
  font-size: 22px;
  font-weight: 800;
}

.btr-share-drop__item--x {
  background: #f1f1f1;
  color: #171717;
  font-size: 15px;
}

.btr-share-drop__item--copy {
  background: #eef5eb;
  color: #50704c;
}

.btr-share-drop__item--copy.is-copied {
  background: #dcefd8;
  color: #2d6b31;
}

@media (max-width: 820px) {
  .btr-share-drop {
    position: absolute;
    gap: 5px;
    padding: 6px;
  }

  .btr-share-drop__item {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
}

/* =========================================================
   V211 - Desktop gallery actions compact spacing
   Keep mobile untouched. Remove the visual empty white band
   below the gallery and make the two actions secondary/compact.
   ========================================================= */
@media (min-width: 821px) {
  body.single-bungalov .btr-gallery-action-bar {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    margin-top: 2px !important;
    margin-bottom: 4px !important;
    gap: 8px !important;
    background: transparent !important;
  }

  body.single-bungalov .btr-gallery-action-bar__button,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger {
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 12px !important;
    gap: 6px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  body.single-bungalov .btr-gallery-action-bar__button > span[aria-hidden="true"],
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger__icon {
    font-size: 13px !important;
  }

  body.single-bungalov .btr-gallery-action-bar ~ .bungalow-single-layout {
    margin-top: 4px !important;
  }
}

/* =========================================================
   V212 - Desktop gallery/action gap regression fix
   The gallery keeps a global 34px margin-bottom from main.css.
   The action bar is injected immediately after the gallery, so
   that margin created the large empty band seen on desktop.
   Keep mobile untouched.
   ========================================================= */
@media (min-width: 821px) {
  body.single-bungalov .btr-public-gallery {
    margin-bottom: 0 !important;
  }

  body.single-bungalov .btr-gallery-action-bar {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  body.single-bungalov .btr-gallery-action-bar ~ .bungalow-single-layout {
    margin-top: 6px !important;
  }
}

/* =========================================================
   V213 - Desktop gallery actions thinner
   Reduce visual weight of Yol Tarifi / Paylas without touching mobile.
   ========================================================= */
@media (min-width: 821px) {
  body.single-bungalov .btr-gallery-action-bar {
    gap: 7px !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    margin-bottom: 2px !important;
  }

  body.single-bungalov .btr-gallery-action-bar__button,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger {
    min-height: 30px !important;
    height: 30px !important;
    padding: 4px 10px !important;
    gap: 5px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
  }

  body.single-bungalov .btr-gallery-action-bar__button > span[aria-hidden="true"],
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger__icon,
  body.single-bungalov .btr-gallery-action-bar__button svg,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger svg {
    width: 13px !important;
    height: 13px !important;
    font-size: 12px !important;
  }
}

/* =========================================================
   V214 - Desktop gallery actions overlay / top-left
   Move Yol Tarifi + Paylas onto the gallery itself and remove
   the separate action-row / content gap. Mobile is untouched.
   ========================================================= */
@media (min-width: 821px) {
  body.single-bungalov .btr-public-gallery {
    position: relative !important;
    margin-bottom: 0 !important;
  }

  body.single-bungalov .btr-gallery-action-bar {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 7 !important;
    width: auto !important;
    max-width: calc(100% - 28px) !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    background: transparent !important;
  }

  body.single-bungalov .btr-gallery-action-bar__button,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger {
    min-height: 30px !important;
    height: 30px !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    gap: 5px !important;
    border: 1px solid rgba(255,255,255,.78) !important;
    border-radius: 8px !important;
    background: rgba(248,252,247,.90) !important;
    color: #21492d !important;
    box-shadow: 0 2px 8px rgba(20,35,24,.10) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
  }

  body.single-bungalov .btr-gallery-action-bar__button:hover,
  body.single-bungalov .btr-gallery-action-bar__button:focus-visible,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger:hover,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger:focus-visible {
    background: rgba(255,255,255,.98) !important;
    border-color: rgba(255,255,255,.95) !important;
  }

  body.single-bungalov .btr-gallery-action-bar__button > span[aria-hidden="true"],
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger__icon,
  body.single-bungalov .btr-gallery-action-bar__button svg,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger svg {
    width: 13px !important;
    height: 13px !important;
    font-size: 12px !important;
  }

  body.single-bungalov .bungalow-single-layout {
    margin-top: 8px !important;
  }
}

/* V215 - desktop gallery actions: top-right overlay */
@media (min-width: 821px) {
  body.single-bungalov .btr-public-gallery {
    position: relative;
  }

  body.single-bungalov .btr-gallery-action-bar {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 12;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    background: transparent !important;
    pointer-events: none;
  }

  body.single-bungalov .btr-gallery-action-bar > * {
    pointer-events: auto;
  }

  body.single-bungalov .btr-gallery-action-bar__button,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger {
    min-height: 30px !important;
    height: 30px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    background: rgba(250, 253, 249, .94) !important;
    box-shadow: 0 2px 8px rgba(18, 34, 20, .12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  body.single-bungalov .btr-gallery-action-bar__button svg,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger svg {
    width: 13px !important;
    height: 13px !important;
  }

  body.single-bungalov .btr-public-gallery.btr-public-gallery--has-actions {
    margin-bottom: 0 !important;
  }

  body.single-bungalov .btr-gallery-action-bar ~ .bungalow-single-layout {
    margin-top: 0 !important;
  }
}
\n\n/* =========================================================
   V216 - Desktop gallery actions above gallery / top-right
   Keep actions outside the image, directly above the gallery.
   Mobile is untouched.
   ========================================================= */
@media (min-width: 821px) {
  body.single-bungalov .btr-gallery-action-bar {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: 30px !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    background: transparent !important;
    pointer-events: auto !important;
  }

  body.single-bungalov .btr-gallery-action-bar__button,
  body.single-bungalov .btr-gallery-action-bar .btr-share-trigger {
    min-height: 30px !important;
    height: 30px !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.single-bungalov .btr-public-gallery,
  body.single-bungalov .btr-public-gallery.btr-public-gallery--has-actions {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.single-bungalov .btr-public-gallery + .bungalow-single-layout,
  body.single-bungalov .btr-gallery-action-bar ~ .bungalow-single-layout {
    margin-top: 8px !important;
  }
}

/* =========================================================
   V217 - Desktop actions rendered above gallery, top-right.
   Server-rendered markup prevents JS placement/cache regressions.
   ========================================================= */
@media (min-width: 821px) {
  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    display: flex !important;
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    background: transparent !important;
    pointer-events: auto !important;
  }

  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] .btr-gallery-action-bar__button {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 4px 10px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] .btr-gallery-action-bar__route {
    background: #f1f6ee !important;
    border: 1px solid #c8d9c2 !important;
    color: #315b38 !important;
  }

  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] .btr-share-trigger {
    background: #e3efdd !important;
    border: 1px solid #a9c49f !important;
    color: #24522e !important;
  }

  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] .btr-share-trigger__icon,
  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] svg {
    width: 13px !important;
    height: 13px !important;
    flex: 0 0 13px !important;
  }

  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] + .btr-public-gallery {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* The desktop route action now lives above the gallery. Keep phone in card. */
  body.single-bungalov .bungalow-profile-actions > .bungalow-profile-button-secondary {
    display: none !important;
  }
}

@media (max-width: 820px) {
  .btr-gallery-action-bar[data-btr-gallery-actions] {
    display: none !important;
  }
}

/* =========================================================
   V218 - Desktop action row attached to gallery
   Keep Yol Tarifi + Paylas directly above the gallery with
   a compact vertical rhythm. Mobile remains untouched.
   ========================================================= */
@media (min-width: 821px) {
  body.single-bungalov .bungalow-single-head {
    margin-bottom: 8px !important;
  }

  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] {
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] .btr-gallery-action-bar__button {
    min-height: 28px !important;
    height: 28px !important;
    padding: 3px 9px !important;
  }

  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] + .btr-public-gallery {
    margin-top: 0 !important;
  }
}

/* =========================================================
   V219 - Desktop gallery action row alignment fix
   Keep the action row on the exact same horizontal container as
   the gallery. Previous width:100% overrode .container and pushed
   the buttons too far to the right.
   ========================================================= */
@media (min-width: 821px) {
  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] {
    width: min(calc(100% - 56px), var(--max)) !important;
    max-width: var(--max) !important;
    margin: 0 auto 4px !important;
    padding: 0 !important;
    height: 28px !important;
    min-height: 28px !important;
    justify-content: flex-end !important;
  }

  body.single-bungalov .bungalow-single-head {
    margin-bottom: 6px !important;
  }

  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] + .btr-public-gallery {
    margin-top: 0 !important;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  body.single-bungalov .btr-gallery-action-bar[data-btr-gallery-actions] {
    width: min(calc(100% - 36px), var(--max)) !important;
  }
}

/* =========================================================
   V220 - FINAL desktop gallery action placement
   Actions are now rendered INSIDE the gallery section, directly
   above the image grid. This removes container drift and excess
   whitespace without overlaying the photos. Mobile is untouched.
   ========================================================= */
@media (min-width: 821px) {
  body.single-bungalov .bungalow-single-head {
    margin-bottom: 8px !important;
  }

  body.single-bungalov .btr-public-gallery {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 26px !important;
    min-height: 26px !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    background: transparent !important;
    z-index: auto !important;
  }

  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] .btr-gallery-action-bar__button,
  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] .btr-share-trigger {
    width: auto !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 2px 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] .btr-share-trigger__icon,
  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] svg {
    width: 12px !important;
    height: 12px !important;
    flex: 0 0 12px !important;
  }

  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] + .btr-public-gallery-grid {
    margin-top: 0 !important;
  }

  body.single-bungalov .btr-public-gallery + .btr-gallery-dialog + .bungalow-single-layout,
  body.single-bungalov .btr-public-gallery + .bungalow-single-layout {
    margin-top: 8px !important;
  }
}

@media (max-width: 820px) {
  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] {
    display: none !important;
  }
}

/* =========================================================
   V221 - Desktop gallery action polish
   Keep the action row above the gallery, add breathing room,
   and use a quieter neutral treatment so it does not dominate.
   Mobile remains untouched.
   ========================================================= */
@media (min-width: 821px) {
  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] {
    margin-bottom: 10px !important;
  }

  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] .btr-gallery-action-bar__route {
    background: #ffffff !important;
    border: 1px solid #d8e0d5 !important;
    color: #35583b !important;
    box-shadow: 0 1px 2px rgba(26, 46, 31, 0.04) !important;
  }

  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] .btr-share-trigger {
    background: #f7faf6 !important;
    border: 1px solid #d3ddd0 !important;
    color: #315538 !important;
    box-shadow: 0 1px 2px rgba(26, 46, 31, 0.04) !important;
  }

  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] .btr-gallery-action-bar__route:hover,
  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] .btr-gallery-action-bar__route:focus-visible,
  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] .btr-share-trigger:hover,
  body.single-bungalov .btr-public-gallery > .btr-gallery-action-bar[data-btr-gallery-actions] .btr-share-trigger:focus-visible {
    background: #eef4ec !important;
    border-color: #c3d0bf !important;
    color: #244a2d !important;
  }
}
