/* Mobile enhancements for property section */

/* Improve property actions buttons for mobile */
.property-actions-enhanced {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}

.btn-primary-enhanced {
  background: linear-gradient(135deg, #4fc874 0%, #3ba85c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 200, 116, 0.3);
}

.btn-primary-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 200, 116, 0.4);
}

.btn-secondary-enhanced {
  background: transparent;
  color: #4fc874;
  border: 2px solid #4fc874;
  padding: 10px 14px;
}

.btn-secondary-enhanced:hover {
  background: rgba(79, 200, 116, 0.1);
}

.btn-disabled {
  background: #ddd;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Mobile screen enhancements */
@media (max-width: 768px) {
  .btn-enhanced {
    padding: 12px 14px;
    font-size: 13px;
    min-height: 44px;
  }

  .btn-enhanced span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .property-actions-enhanced {
    gap: 8px;
    width: 100%;
  }

  .btn-enhanced svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  /* Ensure touch-friendly sizes */
  .btn-primary-enhanced,
  .btn-secondary-enhanced {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .btn-enhanced {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 40px;
  }

  .btn-enhanced span {
    display: none;
  }

  .btn-primary-enhanced::before {
    content: "Details";
  }

  .btn-secondary-enhanced::before {
    content: "Chat";
  }

  /* Hide text, show icon only on very small screens */
  .property-actions-enhanced {
    justify-content: space-between;
  }
}

/* Hamburger menu mobile optimization */
.hamburger {
  position: relative;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu enhancements */
.mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu ul li .dropdown-menu {
  position: relative;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 8px;
  padding: 8px 12px;
  border-left: 3px solid #4fc874;
}

.mobile-menu ul li .dropdown-menu li a {
  font-size: 13px;
  padding: 8px 0;
}

/* Dropdown toggle animation */
.dropdown .dropdown-arrow {
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Touch feedback for buttons */
@supports ((-webkit-touch-callout: none)) {
  .btn-enhanced, .hamburger, .mobile-menu a {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
}
