/* Pacific Palisades contact UI — gold #a68d60 / brown #584E4D */
/* Header icons aligned with Gold Coast Residences pattern */

/* Inquiry CTA box (Gold Coast–style), left of icons */
.pp-inquiry-cta {
  display: none;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  padding: 6px 10px;
  border: 1px solid #a68d60;
  color: #a68d60 !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pp-inquiry-cta:hover,
.pp-inquiry-cta:focus {
  background: #a68d60;
  border-color: #a68d60;
  color: #fff !important;
}

.pp-inquiry-cta--desktop {
  display: none;
}

.pp-inquiry-cta--mobile {
  display: none;
  margin: 18px 0 0;
  width: auto;
  max-width: 100%;
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.12em;
  min-width: 200px;
}

@media (min-width: 992px) {
  .pp-inquiry-cta--desktop {
    display: inline-flex;
  }
}

@media (max-width: 991px) {
  .pp-inquiry-cta--desktop {
    display: none !important;
  }

  .pp-inquiry-cta--mobile {
    display: inline-flex !important;
    padding: 12px 22px;
    font-size: 13px;
    letter-spacing: 0.12em;
    min-width: 200px;
  }
}

/* Contact icons:
 * - desktop: left of search (gold)
 * - mobile: inside hamburger below language (white on dark panel)
 */
.pp-header-contact {
  display: none;
  align-items: center;
  gap: 0;
}

.pp-header-contact--desktop {
  display: none;
  margin-right: 24px;
}

.pp-header-contact--mobile {
  display: none;
  margin: 22px 0 0;
}

/* Match header crowding: switch earlier than the theme's 767px mobile header */
@media (min-width: 992px) {
  .pp-header-contact--desktop {
    display: inline-flex;
  }
}

@media (max-width: 991px) {
  .pp-header-contact--desktop {
    display: none !important;
  }

  .pp-header-contact--mobile {
    display: flex !important;
    width: 100%;
    margin-top: 14px;
  }

  /* Compact hamburger menu so Inquiry box + icons stay visible */
  .site-header .menu-right-section .menu-hamburger-wrap .main-menu .main-menu-content {
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-top: 12vw !important;
    padding-bottom: 8vw !important;
  }

  .site-header .menu-right-section .menu-hamburger-wrap .main-menu .mobile-search-bar {
    margin: 0 0 22px !important;
  }

  .site-header .menu-right-section .menu-hamburger-wrap .main-menu ul li {
    font-size: 20px !important;
    margin-bottom: 1.4vh !important;
  }

  .site-header .menu-right-section .menu-hamburger-wrap .main-menu ul li a {
    font-size: 20px !important;
  }

  .site-header .menu-right-section .menu-hamburger-wrap .main-menu ul li a:after {
    margin-top: 6px !important;
  }

  .site-header .menu-right-section .menu-hamburger-wrap .main-menu .mobile-bottom-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-top: 22px !important;
    flex-shrink: 0;
  }

  .pp-header-contact--mobile .pp-inquiry-cta,
  .mobile-bottom-bar .pp-inquiry-cta--mobile {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.75);
  }

  .mobile-bottom-bar .pp-inquiry-cta--mobile:hover,
  .mobile-bottom-bar .pp-inquiry-cta--mobile:focus {
    background: #fff;
    color: #584e4d !important;
    border-color: #fff;
  }
}

.pp-header-contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 16px;
  text-decoration: none !important;
  opacity: 1;
  transition: opacity 0.2s linear;
  flex: 0 0 24px;
}

.pp-header-contact-item:last-child {
  margin-right: 0;
}

.pp-header-contact-item:hover,
.pp-header-contact-item:focus {
  opacity: 0.7;
}

.pp-header-contact-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  object-position: center;
}

.pp-header-phone .pp-header-contact-icon {
  width: 21px;
  height: 21px;
}

.pp-header-whatsapp .pp-header-contact-icon {
  width: 22px;
  height: 22px;
}

.pp-header-wechat .pp-header-contact-icon {
  width: 24px;
  height: 24px;
}

.pp-header-email .pp-header-contact-icon {
  width: 22px;
  height: 22px;
}

/* Mobile menu icons: light on dark brown panel, below language */
.pp-header-contact--mobile .pp-header-contact-icon {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.pp-header-contact--mobile .pp-header-contact-item {
  margin-right: 18px;
}

.pp-contact-link {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* Theme Customizer sets `.mail { text-decoration: none; }` — keep underline on contact links */
.pp-contact-link.mail,
.page-contact a.pp-contact-link {
  text-decoration: underline !important;
}

.pp-contact-link:hover,
.pp-contact-link:focus {
  opacity: 0.85;
}

/* Floating contact — Chaty-style vertical fan-out */
.pp-float-contact {
  --pp-float-size: 56px;
  --pp-float-gap: 14px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  width: var(--pp-float-size);
  height: var(--pp-float-size);
  font-family: inherit;
}

.pp-float-toggle {
  position: relative;
  z-index: 3;
  width: var(--pp-float-size);
  height: var(--pp-float-size);
  border: 0;
  border-radius: 50%;
  background: #a68d60;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 20px rgba(88, 78, 77, 0.28);
  transition: transform 0.35s ease, background 0.2s linear;
}

.pp-float-toggle:hover {
  background: #94794f;
}

.pp-float-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

.pp-float-toggle-open,
.pp-float-toggle-close {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.pp-float-toggle-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.pp-float-contact.is-open .pp-float-toggle-open {
  opacity: 0;
  transform: rotate(90deg);
}

.pp-float-contact.is-open .pp-float-toggle-close {
  opacity: 1;
  transform: rotate(0deg);
}

.pp-float-channels {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--pp-float-size);
  height: var(--pp-float-size);
  pointer-events: none;
}

.pp-float-channel {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0) scale(0.4);
  transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28), visibility 0.28s;
  pointer-events: none;
  z-index: 2;
}

.pp-float-contact.is-open .pp-float-channel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(calc(var(--pp-i) * -68px)) scale(1);
  transition-delay: calc((var(--pp-i) - 1) * 0.04s);
}

.pp-float-channel-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(73, 104, 126, 0.18);
  background: #a68d60;
  color: #fff;
  transition: transform 0.2s ease;
}

.pp-float-channel:hover .pp-float-channel-btn,
.pp-float-channel:focus .pp-float-channel-btn {
  transform: scale(1.06);
}

.pp-float-channel-btn img,
.pp-float-channel-btn svg {
  width: 26px;
  height: 26px;
  display: block;
}

.pp-float-channel-btn img {
  filter: brightness(0) invert(1);
}

.pp-float-whatsapp .pp-float-channel-btn {
  background: #25d366;
}

.pp-float-wechat .pp-float-channel-btn {
  background: #2dc100;
}

.pp-float-phone .pp-float-channel-btn {
  background: #a68d60;
}

.pp-float-email .pp-float-channel-btn {
  background: #584e4d;
}

.pp-float-form .pp-float-channel-btn {
  background: #9f7b5a;
}

.pp-float-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: #584e4d;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.pp-float-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: #584e4d;
}

.pp-float-channel:hover .pp-float-tooltip,
.pp-float-channel:focus .pp-float-tooltip {
  opacity: 1;
  visibility: visible;
}

.pp-float-toast,
.pp-copy-toast {
  position: absolute;
  right: 0;
  bottom: calc(var(--pp-float-size) + 12px);
  min-width: 160px;
  background: #584e4d;
  color: #fff;
  font-size: 13px;
  padding: 10px 12px;
  white-space: nowrap;
  border-radius: 4px;
  z-index: 5;
}

.pp-copy-toast {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 9999;
}

.pp-float-toast[hidden],
.pp-copy-toast[hidden] {
  display: none !important;
}

@media (max-width: 991px) {
  .pp-header-contact--mobile {
    margin-top: 18px;
  }

  .pp-header-contact--mobile .pp-header-contact-item {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    margin-right: 16px;
  }

  .pp-header-contact--mobile .pp-header-contact-icon,
  .pp-header-contact--mobile .pp-header-phone .pp-header-contact-icon,
  .pp-header-contact--mobile .pp-header-whatsapp .pp-header-contact-icon,
  .pp-header-contact--mobile .pp-header-email .pp-header-contact-icon {
    width: 20px;
    height: 20px;
  }

  .pp-header-contact--mobile .pp-header-wechat .pp-header-contact-icon {
    width: 22px;
    height: 22px;
  }

  .pp-float-contact {
    --pp-float-size: 52px;
    right: 16px;
    bottom: 16px;
  }

  .pp-float-channel {
    width: 50px;
    height: 50px;
  }

  .pp-float-channel-btn {
    width: 50px;
    height: 50px;
  }

  .pp-float-contact.is-open .pp-float-channel {
    transform: translateY(calc(var(--pp-i) * -62px)) scale(1);
  }

  .pp-copy-toast {
    right: 16px;
    bottom: 80px;
  }
}

@media (max-width: 575px) {
  .pp-header-contact--mobile .pp-header-contact-item {
    margin-right: 12px;
  }
}

