import Image from "next/image";
import { MapPinGradientIcon } from "@/components/icons";

/** Riyadh photo with a centered "Riyadh, Saudi Arabia" pill. */
export function LocationCard({ imageAlt, label }: { imageAlt: string; label: string }) {
  return (
    // Phone (Figma 390): runs into the card's end padding, square on that side, like desktop.
    <div className="relative h-[264px] overflow-hidden rounded-2xl max-md:-me-5 max-md:rounded-e-none max-lg:h-[203px] lg:rounded-e-none">
      <Image src="/images/home/riyadh-cityscape.jpg" alt={imageAlt} fill sizes="(min-width: 1024px) 558px, 100vw" className="object-cover opacity-60" />
      <div className="absolute inset-0 flex items-center justify-center">
        <span className="flex items-center gap-2 rounded-[20px] border border-accent-mint/20 bg-ink/85 px-4 py-2.5 backdrop-blur-[10px]">
          <MapPinGradientIcon className="size-3.5" />
          <span className="font-mono text-xs leading-4 text-white">{label}</span>
        </span>
      </div>
    </div>
  );
}
