/* NYALA Mobile Bottom Action Bar v2.0 — Stage D1 */

.nyala-bar-v20,
.nyala-bar-v20__modal {
  display: none;
}

@media (max-width: 767px) {

  /* Hide old floating buttons, preserve their JS listeners. */
  html body .nyala-experience-search__mobile-trigger,
  html body .nyala-activity-search__mobile-trigger,
  html body.single-experience .nyala-experience-search__mobile-trigger,
  html body.single-experience .nyala-investment-v3__trigger {
    display: none !important;
  }

  html body {
    padding-bottom: calc(
      94px + env(safe-area-inset-bottom, 0px)
    ) !important;
  }

  .nyala-bar-v20 {
    display: grid !important;
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;

    grid-template-columns: repeat(3, minmax(0, 1fr));
    z-index: 10005;
    box-sizing: border-box;

    padding:
      9px 12px
      max(10px, env(safe-area-inset-bottom, 0px));

    gap: 8px;

    background: linear-gradient(
      145deg,
      #24364a,
      #17212b 65%,
      #101820
    );

    border-top: 1px solid rgba(243, 205, 86, .35);
    box-shadow: 0 -10px 25px rgba(9, 18, 28, .23);
  }

  .nyala-bar-v20--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nyala-bar-v20__action {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    min-height: 62px;
    min-width: 0;
    padding: 3px 2px;
    margin: 0;

    border: 0;
    background: transparent;
    color: #fff !important;
    text-decoration: none !important;

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;
    box-shadow: none !important;
  }

  .nyala-bar-v20__action[disabled] {
    opacity: .4;
    cursor: not-allowed;
  }

  .nyala-bar-v20__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 38px;
    border-radius: 12px;

    color: #f3cd56;
    background: rgba(255,255,255,.085);
    border: 1px solid rgba(243,205,86,.25);
  }

  .nyala-bar-v20__icon svg {
    display: block;
    width: 21px;
    height: 21px;
  }

  .nyala-bar-v20__label {
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
  }

  .nyala-bar-v20__action:focus-visible {
    outline: 2px solid #f3cd56;
    outline-offset: 2px;
    border-radius: 12px;
  }

  .nyala-bar-v20__action:active .nyala-bar-v20__icon {
    background: rgba(221,64,58,.3);
  }

  html.nyala-bar-v20-open,
  body.nyala-bar-v20-open {
    overflow: hidden !important;
  }

  /* Native Consultation Modal */

  .nyala-bar-v20__modal:not([hidden]) {
    display: flex !important;
    position: fixed !important;
    inset: 0;

    justify-content: center;
    align-items: center;

    z-index: 100500;
    box-sizing: border-box;
    padding: 18px;
  }

  .nyala-bar-v20__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,18,30,.72);
  }

  .nyala-bar-v20__panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100dvh - 36px);

    overflow-y: auto;
    padding: 24px 20px;
    box-sizing: border-box;

    border-radius: 24px;
    border: 1px solid #dfe5eb;

    background: #fff;
    color: #17212b;

    box-shadow: 0 22px 60px rgba(0,0,0,.32);
    -webkit-overflow-scrolling: touch;
  }

  .nyala-bar-v20__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
  }

  .nyala-bar-v20__header span {
    color: #dd403a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
  }

  .nyala-bar-v20__header h2 {
    margin: 7px 0;
    color: #17212b;
    font-size: 25px;
    line-height: 1.2;
  }

  .nyala-bar-v20__header p {
    margin: 0;
    color: #697581;
    font-size: 13px;
    line-height: 1.5;
  }

  .nyala-bar-v20__close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    color: #17212b;
    background: #f0f2f4;
    font-size: 26px;
    cursor: pointer;
  }

  .nyala-bar-v20__form {
    display: grid;
    gap: 12px;
  }

  .nyala-bar-v20__form label {
    display: grid;
    gap: 6px;
    color: #17212b;
    font-size: 13px;
    font-weight: 650;
  }

  .nyala-bar-v20__form input:not([type=checkbox]),
  .nyala-bar-v20__form textarea {
    width: 100%;
    box-sizing: border-box;

    min-height: 42px;
    padding: 10px 11px;

    border: 1px solid #cbd3db;
    border-radius: 10px;

    background: #fff;
    color: #17212b;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
  }

  .nyala-bar-v20__form textarea {
    resize: vertical;
  }

  .nyala-bar-v20__form :focus-visible {
    outline: 2px solid #f3cd56;
    outline-offset: 1px;
  }

  .nyala-bar-v20__form .nyala-bar-v20__consent {
    display: flex;
    align-items: start;
    gap: 9px;

    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
  }

  .nyala-bar-v20__consent input {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #dd403a;
  }

  .nyala-bar-v20__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .nyala-bar-v20__privacy a {
    color: #bb332d;
    font-size: 12px;
  }

  .nyala-bar-v20__status {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
  }

  .nyala-bar-v20__status.is-success {
    color: #14613a;
  }

  .nyala-bar-v20__status.is-error {
    color: #b42318;
  }

  .nyala-bar-v20__submit {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    min-height: 48px;
    padding: 12px 15px;

    border: 0;
    border-radius: 12px;

    background: #dd403a;
    color: #fff;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }

  .nyala-bar-v20__submit[disabled] {
    opacity: .7;
    cursor: default;
  }
}

/* === NYALA DYNAMIC TITLE BOLD V1 === */
@media screen and (max-width: 767px) {
  body.single-experience
  .nyala-investment-v3__panel
  #nyala-investment-v3-title {
    font-weight: 800 !important;
  }
}
/* === END NYALA DYNAMIC TITLE BOLD V1 === */
/* NYALA INVESTMENT POPUP V2.1 */

@media screen and (max-width: 767px) {

  html.nyala-investment-v21-open,
  body.nyala-investment-v21-open,
  html.nyala-booking-v21-open,
  body.nyala-booking-v21-open {
    overflow: hidden !important;
  }

  body.single-experience.nyala-investment-v21-open
  .nyala-bar-v20,
  body.single-experience.nyala-booking-v21-open
  .nyala-bar-v20 {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.single-experience
  .nyala-investment-v3__overlay:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100100 !important;
    background: rgba(8, 18, 30, .74) !important;
  }

  body.single-experience
  .nyala-investment-v3__panel:not([hidden]) {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;

    z-index: 100101 !important;

    display: block !important;
    width: calc(100vw - 32px) !important;
    max-width: 440px !important;
    height: auto !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;

    margin: 0 !important;
    padding: 24px 20px !important;
    box-sizing: border-box !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    border-radius: 22px !important;
    background: #fff !important;
  }

  body.single-experience
  .nyala-investment-v21__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e4e8ed;
  }

  body.single-experience
  .nyala-investment-v21__actions a,
  body.single-experience
  .nyala-investment-v21__actions button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 48px;
    min-width: 0;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    color: #fff !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    cursor: pointer;
  }

  body.single-experience
  .nyala-investment-v21__wa {
    background: #238b50 !important;
  }

  body.single-experience
  .nyala-investment-v21__booking {
    background: #dd403a !important;
  }

  body.single-experience
  [data-nyala-booking-v21]:not([hidden]) {
    z-index: 100500 !important;
  }
}

/* NYALA_CONSULTATION_V24: dropdown styling; other popup styles unchanged. */
.nyala-bar-v20__form select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #17212B;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}
.nyala-bar-v20__form select:focus-visible {
  outline: 2px solid #DD403A;
  outline-offset: 2px;
}
