@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 210 20% 98%;
    --foreground: 215 25% 15%;

    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 15%;

    --primary: 213 55% 20%;
    --primary-foreground: 0 0% 100%;

    --secondary: 210 30% 95%;
    --secondary-foreground: 213 55% 20%;

    --muted: 210 20% 96%;
    --muted-foreground: 215 15% 50%;

    --accent: 38 70% 55%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214 20% 90%;
    --input: 214 20% 90%;
    --ring: 213 55% 20%;

    --radius: 0.5rem;

    /* Custom tokens */
    --navy: 213 55% 20%;
    --navy-light: 213 40% 30%;
    --gold: 38 70% 55%;
    --gold-light: 38 60% 65%;
    --sea-blue: 200 70% 50%;
    --sea-blue-light: 200 60% 60%;
    --warm-white: 40 30% 97%;
    --warm-gray: 220 10% 60%;

    --font-display: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --shadow-card: 0 4px 20px -4px hsl(213 55% 20% / 0.08);
    --shadow-elevated: 0 12px 40px -8px hsl(213 55% 20% / 0.12);
    --shadow-hero: 0 20px 60px -12px hsl(213 55% 20% / 0.25);

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 215 25% 10%;
    --foreground: 210 20% 95%;
    --card: 215 25% 13%;
    --card-foreground: 210 20% 95%;
    --popover: 215 25% 13%;
    --popover-foreground: 210 20% 95%;
    --primary: 38 70% 55%;
    --primary-foreground: 215 25% 10%;
    --secondary: 215 20% 18%;
    --secondary-foreground: 210 20% 95%;
    --muted: 215 20% 18%;
    --muted-foreground: 215 15% 60%;
    --accent: 38 70% 55%;
    --accent-foreground: 215 25% 10%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 215 20% 20%;
    --input: 215 20% 20%;
    --ring: 38 70% 55%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground font-body antialiased;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
  }
}

@layer components {
  .nav-link {
    @apply text-sm font-medium text-primary/80 hover:text-primary transition-colors duration-200 relative;
  }

  .nav-link::after {
    content: '';
    @apply absolute bottom-0 left-0 w-0 h-0.5 bg-accent transition-all duration-300;
  }

  .nav-link:hover::after {
    @apply w-full;
  }

  .search-toggle {
    @apply px-6 py-3 text-sm font-semibold rounded-full transition-all duration-300 cursor-pointer;
  }

  .search-toggle-active {
    @apply bg-primary text-primary-foreground shadow-lg;
  }

  .search-toggle-inactive {
    @apply bg-transparent text-primary/60 hover:text-primary;
  }

  .category-card {
    @apply flex flex-col items-center gap-3 p-6 rounded-xl bg-card border border-border/50 
           hover:border-accent/40 hover:shadow-lg transition-all duration-300 cursor-pointer;
  }

  .property-card {
    @apply bg-card rounded-xl overflow-hidden border border-border/50 
           hover:shadow-xl transition-all duration-500;
  }

  .section-title {
    @apply text-3xl md:text-4xl font-bold text-primary tracking-tight;
    font-family: var(--font-display);
  }

  .cta-button {
    @apply bg-accent text-accent-foreground px-8 py-3 rounded-lg font-semibold 
           hover:brightness-110 transition-all duration-300 shadow-md hover:shadow-lg;
  }

  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
}
