@import "tailwindcss";

/* Self-hosted fonts via jsDelivr CDN - eliminates Google Fonts dependency */
/* Cormorant Garamond - Latin subset (most common) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond@5.2.11/files/cormorant-garamond-latin-400-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond@5.2.11/files/cormorant-garamond-latin-400-normal.woff') format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond@5.2.11/files/cormorant-garamond-latin-400-italic.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond@5.2.11/files/cormorant-garamond-latin-400-italic.woff') format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond@5.2.11/files/cormorant-garamond-latin-500-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond@5.2.11/files/cormorant-garamond-latin-500-normal.woff') format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond@5.2.11/files/cormorant-garamond-latin-600-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond@5.2.11/files/cormorant-garamond-latin-600-normal.woff') format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Montserrat Variable Font via jsDelivr CDN - Latin subset */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/montserrat@5.2.8/files/montserrat-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/montserrat@5.2.8/files/montserrat-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brisbane Luxury Theme */
@theme {
  /* Luxury palette */
  --color-luxury-navy: #1a2744;
  --color-luxury-gold: #c9a962;
  --color-luxury-cream: #faf8f5;
  --color-luxury-charcoal: #2d2d2d;
  --color-luxury-pearl: #f5f3f0;

  /* Primary colors */
  --color-primary: var(--pwb-primary-color);
  --color-secondary: var(--pwb-secondary-color);
  --color-accent: var(--pwb-accent-color);

  /* Font families */
  --font-family-serif: 'Cormorant Garamond', Georgia, serif;
  --font-family-sans: 'Montserrat', 'Helvetica Neue', sans-serif;

  /* Border radius - sharp edges for luxury feel */
  --radius: 0;
  --radius-none: 0;

  /* Shadows */
  --shadow-elegant: 0 4px 20px rgba(26, 39, 68, 0.08);
  --shadow-hover: 0 8px 30px rgba(26, 39, 68, 0.12);

  /* Letter spacing */
  --tracking-luxury: 0.15em;
  --tracking-wide-luxury: 0.25em;
}

/* ==========================================================================
   Search Layout - Explicit non-nested responsive rules
   These override Tailwind's nested @media syntax for better browser support
   ========================================================================== */
@media (min-width: 1024px) {
  /* Sidebar filters: 1/4 width on large screens (LEFT side) */
  .search-layout .search-sidebar {
    width: 25%;
    /* No order property - sidebar stays LEFT per HTML source order */
  }

  /* Search results: 3/4 width on large screens (RIGHT side) */
  .search-layout .search-results,
  .search-layout .search-results-main {
    width: 75%;
  }

  /* Show filters on large screens */
  .search-layout .search-sidebar .filter-toggle {
    display: none;
  }

  .search-layout .search-sidebar .filter-content {
    display: block !important;
  }
}

/* ==========================================================================
   Team Grid - Explicit non-nested responsive rules
   ========================================================================== */
@media (min-width: 640px) {
  .team-grid-members {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .team-grid-members {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   Contact Page Grid - Explicit non-nested responsive rules
   ========================================================================== */
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   Services/Features Grid - Explicit non-nested responsive rules
   ========================================================================== */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   Search Results View Modes
   Controls layout for grid and list views of property cards
   ========================================================================== */

/* Base property card inner - default to column layout */
.property-item .property-card-inner {
  flex-direction: column;
}

.property-item .property-image {
  width: 100%;
}

.property-item .property-image img {
  height: 12rem;
}

/* List view container */
.search-results-grid.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* List view: horizontal card layout */
.results-list .property-item .property-card-inner {
  flex-direction: row;
}

.results-list .property-item .property-image {
  width: 33.333333%;
  flex-shrink: 0;
}

.results-list .property-item .property-image img {
  height: 100%;
  min-height: 200px;
}

.results-list .property-item .property-details {
  width: 66.666667%;
}

/* Stack list items vertically on mobile */
@media (max-width: 767px) {
  .results-list .property-item .property-card-inner {
    flex-direction: column;
  }

  .results-list .property-item .property-image {
    width: 100%;
  }

  .results-list .property-item .property-image img {
    height: 12rem;
  }

  .results-list .property-item .property-details {
    width: 100%;
  }
}

/* ==========================================================================
   Property Detail Page Layout
   Controls layout for property detail pages on desktop vs mobile
   ========================================================================== */

/* Property detail page wrapper - constrain max width on desktop */
.property-detail-page {
  width: 100%;
}

/* Property detail container - max width constraint */
.property-detail-container {
  width: 100%;
  max-width: 80rem; /* 1280px - matches max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .property-detail-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Property detail two-column layout */
.property-detail-layout {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}

/* Main content column - full width on mobile, 2/3 on desktop */
.property-detail-main {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Sidebar column - full width on mobile, 1/3 on desktop */
.property-detail-sidebar {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .property-detail-main {
    width: 66.666667%; /* 2/3 */
  }

  .property-detail-sidebar {
    width: 33.333333%; /* 1/3 */
    margin-top: 0;
  }
}

/* Map section - full width but constrained container */
.property-detail-map {
  width: 100%;
}

.property-detail-map-inner {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .property-detail-map-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
