
/* ========================================================
   CROWN LUXURY PROPERTIES - RESPONSIVE MOBILE NAVIGATION
   ======================================================== */

@media (max-width: 1150px) {
  /* 1. Hide Desktop Menu Links & Big Desktop Button */
  [data-framer-name="Menu & Button"],
  .framer-1hbayh3 {
    display: none !important;
  }

  /* 2. Format Nav Bar Content as clean Flex Row */
  [data-framer-name="Nav Bar Content"],
  .framer-1lxkezp {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 58px !important;
    position: relative !important;
  }

  /* 3. Logo Container Vertically Centered & Contained */
  [data-framer-name="Logo Container"],
  .framer-1hu4kro {
    display: flex !important;
    align-items: center !important;
    max-width: 130px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: visible !important;
    margin: 0 !important;
  }

  [data-framer-name="Logo Container"] a,
  [data-framer-name="Logo Container"] .framer-1ubcyyp,
  [data-framer-name="Logo Container"] [data-framer-background-image-wrapper="true"] {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
    position: relative !important;
  }

  [data-framer-name="Logo Container"] img {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
  }

  /* 4. Display Mobile Controls on mobile/tablet */
  .crown-mobile-controls {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
  }
}

@media (min-width: 1151px) {
  .crown-mobile-controls,
  .crown-mobile-drawer {
    display: none !important;
  }
}

/* Mobile Controls Row */
.crown-mobile-controls {
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 100;
}

/* Header Contact Button Pill */
.crown-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  line-height: 1;
}
.crown-mobile-cta:hover,
.crown-mobile-cta:active {
  background: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
}

/* Hamburger Toggle Button */
.crown-mobile-toggle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.crown-mobile-toggle:hover,
.crown-mobile-toggle:active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.crown-hamburger-line {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              background-color 0.25s ease;
  transform-origin: center;
}

/* Hamburger morph to X when active */
.crown-mobile-toggle.is-active {
  background: rgba(255, 255, 255, 0.2);
  border-color: #dfc07b;
}
.crown-mobile-toggle.is-active .line-1 {
  transform: translateY(7.5px) rotate(45deg);
  background-color: #dfc07b;
}
.crown-mobile-toggle.is-active .line-2 {
  opacity: 0;
  transform: scaleX(0);
}
.crown-mobile-toggle.is-active .line-3 {
  transform: translateY(-7.5px) rotate(-45deg);
  background-color: #dfc07b;
}

/* Full-Screen Drawer Overlay */
.crown-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.crown-mobile-drawer.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.crown-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.crown-drawer-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px 36px 24px;
  box-sizing: border-box;
  transform: translateY(-20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.crown-mobile-drawer.is-open .crown-drawer-content {
  transform: translateY(0);
}

/* Drawer Top Bar */
.crown-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.crown-drawer-logo {
  display: block;
  height: 38px;
  max-width: 130px;
}
.crown-drawer-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.crown-drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s;
}
.crown-drawer-close:hover,
.crown-drawer-close:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
.crown-drawer-close svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Navigation List */
.crown-drawer-nav {
  flex: 1;
  padding: 24px 0;
}
.crown-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crown-drawer-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.crown-mobile-drawer.is-open .crown-drawer-item {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.crown-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.crown-drawer-link:hover,
.crown-drawer-link:active {
  background: rgba(255, 255, 255, 0.08);
  color: #dfc07b !important;
  transform: translateX(4px);
}
.crown-drawer-link.is-current {
  background: rgba(223, 192, 123, 0.12);
  color: #dfc07b !important;
  border-left: 3px solid #dfc07b;
}
.crown-drawer-link svg.chevron {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.crown-drawer-link:hover svg.chevron,
.crown-drawer-link:active svg.chevron {
  opacity: 1;
  transform: translateX(3px);
}

/* Drawer Footer */
.crown-drawer-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crown-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #000000 !important;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 24px;
  border-radius: 50px;
  text-decoration: none !important;
  letter-spacing: -0.01em;
  transition: background-color 0.25s, transform 0.25s;
}
.crown-drawer-cta:hover,
.crown-drawer-cta:active {
  background: #e6e6e6;
  transform: translateY(-2px);
}
.crown-drawer-cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.crown-drawer-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25D366 !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}
.crown-drawer-whatsapp:hover,
.crown-drawer-whatsapp:active {
  background: #25D366;
  color: #ffffff !important;
}
.crown-drawer-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.crown-drawer-meta {
  text-align: center;
  padding-top: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}
.crown-drawer-meta p {
  margin: 2px 0;
}
.crown-drawer-meta .tagline {
  color: rgba(223, 192, 123, 0.6);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Completely remove/hide the oversized footer watermark brand logo */
footer [data-framer-name="Brand Logo"],
[data-framer-name="Brand Logo"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
