/* PetAdoption.ai Design System
   Original design preserved - warm cream, coral, sage palette
   Fonts: Fraunces (serif) + Inter (sans-serif)
*/

:root {
    --warm-cream: #FBF8F3;
    --warm-white: #FEFDFB;
    --soft-black: #1A1814;
    --warm-gray: #6B6560;
    --light-gray: #E8E4DF;
    --accent-coral: #E07A5F;
    --accent-sage: #81B29A;
    --accent-gold: #F2CC8F;
    --accent-terracotta: #C9705D;
    --shadow-soft: 0 4px 24px rgba(26, 24, 20, 0.06);
    --shadow-medium: 0 8px 40px rgba(26, 24, 20, 0.1);
    --shadow-hover: 0 12px 48px rgba(26, 24, 20, 0.14);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--warm-cream);
    color: var(--soft-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
}

.text-warm-gray { color: var(--warm-gray); }
.text-coral { color: var(--accent-coral); }

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5% 24px;
}

/* Grain Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

#navbar.scrolled {
    background: rgba(251, 248, 243, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--soft-black);
}

.logo img {
    height: 40px;
}

.logo-text {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-text span {
    color: var(--accent-coral);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

/* Hide mobile-only menu items on desktop */
#navbar .nav-links .mobile-menu-divider,
#navbar .nav-links .mobile-menu-account,
#navbar .nav-links .mobile-menu-logout,
#navbar .nav-links .mobile-menu-signin,
#navbar .nav-links .mobile-menu-cta {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--soft-black);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-coral);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-cta {
    background: var(--soft-black);
    color: var(--warm-cream);
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent-coral);
    transform: translateY(-2px);
}

.nav-account {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--soft-black);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 100px;
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
}

.nav-account:hover {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

/* Buttons */
.btn-primary {
    background: var(--soft-black);
    color: var(--warm-cream);
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-coral);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--soft-black);
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid var(--light-gray);
}

.btn-secondary:hover {
    border-color: var(--soft-black);
    background: var(--warm-white);
}

.btn-clear {
    background: transparent;
    color: var(--soft-black);
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid var(--light-gray);
}

.btn-clear:hover {
    border-color: var(--soft-black);
    background: var(--warm-white);
}

.btn-coral {
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-terracotta) 100%);
    color: white;
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-coral:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);
}

.btn-white {
    background: white;
    color: var(--accent-coral);
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: white;
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-outline {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid var(--soft-black);
    border-radius: 100px;
    color: var(--soft-black);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--soft-black);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-coral) 50%, var(--accent-sage) 100%);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-52%) scale(1.02); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--warm-white);
    padding: 8px 16px 8px 8px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--warm-gray);
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-sage);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent-coral);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--warm-gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
    max-width: 280px;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    width: 100%;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--soft-black);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--warm-gray);
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.hero-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.hero-floating-card {
    position: absolute;
    bottom: -30px;
    left: -40px;
    background: var(--warm-white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-sage) 0%, #6B9A84 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.floating-card-text h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.floating-card-text p {
    font-size: 0.85rem;
    color: var(--warm-gray);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.section-header p {
    color: var(--warm-gray);
    margin-top: 8px;
}

.view-all-link {
    color: var(--accent-coral);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.view-all-link:hover {
    gap: 12px;
}

/* Pet Cards - unified styling matching search.html */
.pets-grid,
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.pet-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.pet-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.pet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--accent-coral);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
}

.pet-card-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    color: var(--warm-gray);
}

.pet-card-favorite:hover {
    transform: scale(1.1);
    color: var(--accent-coral);
}

.pet-card-info {
    padding: 16px;
    background: white;
}

.pet-card-info h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--soft-black);
}

.pet-card-breed {
    color: var(--warm-gray);
    font-size: 0.9rem;
    margin: 0 0 8px;
}

.pet-card-details {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-bottom: 12px;
}

.pet-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--accent-sage);
}

.pet-card-location svg {
    flex-shrink: 0;
}

/* Legacy pet card styles - keep for backwards compatibility */
.pet-image-wrapper {
    position: relative;
    overflow: hidden;
}

.pet-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pet-card:hover .pet-image {
    transform: scale(1.05);
}

.pet-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pet-badge.urgent {
    background: var(--accent-coral);
    color: white;
}

.pet-badge.new {
    background: var(--accent-sage);
    color: white;
}

.pet-badge.special {
    background: var(--accent-gold);
    color: var(--soft-black);
}

.pet-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.pet-favorite:hover {
    background: var(--accent-coral);
    color: white;
    transform: scale(1.1);
}

.pet-favorite.favorited {
    background: var(--accent-coral);
    color: white;
}

.pet-info {
    padding: 24px;
}

.pet-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-gender {
    font-size: 0.9rem;
    color: var(--warm-gray);
}

.pet-details {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pet-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--warm-gray);
}

.pet-detail svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.pet-shelter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
}

.shelter-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.shelter-info {
    flex: 1;
}

.shelter-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.shelter-location {
    font-size: 0.8rem;
    color: var(--warm-gray);
}

/* Search Section Styles */
.search-section {
    padding: 6rem 0;
    background: var(--warm-white);
    position: relative;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--light-gray), transparent);
}

.search-header {
    text-align: center;
    margin: 0 auto 60px;
}

.search-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 16px;
}

.search-header p {
    color: var(--warm-gray);
    font-size: 1.1rem;
}

.search-box {
    background: var(--warm-cream);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    max-width: 1000px;
    margin: 0 auto;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--soft-black);
}

.filter-group select,
.filter-group input {
    padding: 16px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--warm-white);
    color: var(--soft-black);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent-coral);
}

.search-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-terracotta) 100%);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);
}

.quick-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.quick-filter {
    padding: 10px 20px;
    background: var(--warm-white);
    border: 2px solid var(--light-gray);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--soft-black);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-filter:hover,
.quick-filter.active {
    border-color: var(--accent-coral);
    background: rgba(224, 122, 95, 0.08);
    color: var(--accent-coral);
}

/* Featured Section */
.featured-section {
    padding: 6rem 0;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--soft-black);
    color: var(--warm-cream);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-coral) 0%, transparent 70%);
    opacity: 0.1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 24px;
}

.about-text h2 em {
    color: var(--accent-coral);
    font-style: italic;
}

.about-text p {
    color: rgba(251, 248, 243, 0.7);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-feature {
    display: flex;
    gap: 16px;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(224, 122, 95, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.about-feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.about-feature p {
    font-size: 0.9rem;
    color: rgba(251, 248, 243, 0.6);
    margin-bottom: 0;
}

.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-image:first-child {
    grid-row: span 2;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: var(--warm-white);
}

.process-header {
    text-align: center;
    margin: 0 auto 80px;
}

.process-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 16px;
}

.process-header p {
    color: var(--warm-gray);
    font-size: 1.1rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--light-gray), var(--accent-coral), var(--accent-sage), var(--light-gray));
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 96px;
    height: 96px;
    background: var(--warm-cream);
    border: 3px solid var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--soft-black);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    border-color: var(--accent-coral);
    background: var(--accent-coral);
    color: white;
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.6;
}

/* Stories Section */
.stories-section {
    padding: 0;
    background: linear-gradient(180deg, var(--warm-cream) 0%, var(--warm-white) 100%);
}

.stories-header {
    text-align: center;
    margin: 0 auto 60px;
}

.stories-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 16px;
}

.stories-carousel {
    margin-bottom: 6rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.story-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.story-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    padding: 28px;
}

.story-quote {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    padding-left: 24px;
}

.story-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 3rem;
    color: var(--accent-coral);
    font-family: 'Fraunces', serif;
    line-height: 1;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--warm-gray);
}

/* Content Section */
.content-section {
    padding-top: 6rem 0;
    background: var(--warm-white);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 24px;
}

.content-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.content-header p {
    color: var(--warm-gray);
    margin-top: 8px;
}

.ecosystem-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    color: var(--warm-gray);
}

.ecosystem-badge strong {
    color: var(--accent-coral);
    font-size: 1rem;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    background: var(--warm-cream);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-soft);
}

.featured-article-image {
    position: relative;
    min-height: 400px;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-coral);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-article-content {
    padding: 48px 48px 48px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.article-category {
    background: rgba(224, 122, 95, 0.1);
    color: var(--accent-coral);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-read-time {
    color: var(--warm-gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.featured-article-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.featured-article-content p {
    color: var(--warm-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.article-topics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.article-topics span,
.article-topics a {
    background: var(--warm-white);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--soft-black);
    border: 1px solid var(--light-gray);
    text-decoration: none;
    transition: all 0.2s;
}

.article-topics a:hover {
    background: var(--accent-coral);
    color: white;
    border-color: var(--accent-coral);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.article-card {
    background: var(--warm-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.article-card-image {
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 24px;
}

.article-card-content .article-category {
    display: inline-block;
    margin-bottom: 12px;
}

.article-card-content h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-content p {
    color: var(--warm-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ecosystem-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-sage);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    background: rgba(129, 178, 154, 0.1);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.ecosystem-link:hover {
    background: rgba(129, 178, 154, 0.2);
    gap: 10px;
}

.ecosystem-link.emergency {
    color: var(--accent-coral);
    background: rgba(224, 122, 95, 0.1);
}

.ecosystem-link.emergency:hover {
    background: rgba(224, 122, 95, 0.2);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-terracotta) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    color: white;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
footer {
    background: var(--soft-black);
    color: var(--warm-cream);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: rgba(251, 248, 243, 0.6);
    margin-top: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-cream);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-coral);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: rgba(251, 248, 243, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--accent-coral);
}

.footer-newsletter h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-newsletter p {
    color: rgba(251, 248, 243, 0.6);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--warm-cream);
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: rgba(251, 248, 243, 0.4);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-coral);
}

.newsletter-form button {
    padding: 14px 24px;
    background: var(--accent-coral);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-terracotta);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(251, 248, 243, 0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-coral);
    text-decoration: none;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(251, 248, 243, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-coral);
}

/* Ecosystem Styles */
.stealth-link {
    color: rgba(224, 122, 95, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 122, 95, 0.35);
    transition: all 0.2s ease;
}

.stealth-link:hover {
    color: var(--accent-coral);
    border-bottom-color: var(--accent-coral);
}

.ecosystem-tip {
    padding: 1.25rem 1.5rem;
    background: rgba(224, 122, 95, 0.04);
    border-left: 3px solid var(--accent-coral);
    border-radius: var(--radius-sm);
    margin: 2rem auto;
    max-width: 800px;
}

.ecosystem-tip h4 {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-coral);
    font-weight: 600;
}

.ecosystem-tip p {
    color: var(--warm-gray);
    font-size: 0.95rem;
    margin: 0;
}

.ecosystem-tip a {
    color: var(--accent-coral);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(224, 122, 95, 0.3);
}

.ecosystem-tip a:hover {
    border-bottom-color: var(--accent-coral);
}

.ecosystem-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid var(--accent-coral);
    color: var(--accent-coral);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.ecosystem-cta:hover {
    background: rgba(224, 122, 95, 0.05);
    transform: translateY(-2px);
}

.ecosystem-banner {
    background: linear-gradient(135deg, var(--soft-black) 0%, #2A2620 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.ecosystem-banner-content h3 {
    color: var(--warm-cream);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.ecosystem-banner-content p {
    color: rgba(251, 248, 243, 0.7);
    font-size: 1rem;
}

.ecosystem-sites {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.ecosystem-site {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ecosystem-site:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.ecosystem-site-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ecosystem-site-info {
    display: flex;
    flex-direction: column;
}

.ecosystem-site-info strong {
    color: var(--warm-cream);
    font-size: 1rem;
}

.ecosystem-site-info span {
    color: rgba(251, 248, 243, 0.6);
    font-size: 0.8rem;
}

/* AI Matching Styles - Pill Toggle */
.search-mode-toggle {
    display: flex;
    background: var(--light-gray);
    border-radius: 100px;
    padding: 4px;
    max-width: 320px;
    margin: 0 auto 24px;
}

.mode-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: var(--warm-gray);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-terracotta));
    color: white;
    box-shadow: 0 2px 8px rgba(224, 122, 95, 0.3);
}

.mode-btn:hover:not(.active) {
    color: var(--soft-black);
}

.ai-match-box {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.ai-match-intro {
    text-align: center;
    margin-bottom: 40px;
}

.ai-match-intro h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-terracotta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-match-intro p {
    color: var(--warm-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.matching-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--soft-black);
    font-size: 15px;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    background: var(--warm-cream);
    color: var(--soft-black);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1);
}

.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.radio-option {
    flex: 1;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    display: block;
    padding: 14px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    background: var(--warm-cream);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.radio-option input[type="radio"]:checked + label {
    border-color: var(--accent-coral);
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.1), rgba(201, 112, 93, 0.1));
    color: var(--accent-coral);
}

.radio-option label:hover {
    border-color: var(--accent-coral);
}

.ai-match-btn {
    width: 100%;
    padding: 20px 40px;
    margin-top: 32px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-terracotta));
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.ai-match-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Page Headers */
.page-header {
    padding: 140px 0 60px;
    background: var(--warm-white);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}

.page-header p {
    color: var(--warm-gray);
    font-size: 1.2rem;
    margin: 0 auto;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--soft-black);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu dropdown */
@media (max-width: 768px) {
    .nav-inner {
        position: relative;
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--warm-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a,
    .nav-links li a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        display: block;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* Hide nav-right on mobile (we add links to nav-links via JS) */
    .nav-right {
        display: none;
    }

    /* Mobile auth links added via JS */
    .mobile-auth-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
        margin-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.1);
        list-style: none;
    }

    .mobile-auth-links a {
        padding: 14px 20px !important;
        text-align: center;
        border-radius: 8px;
        font-weight: 500;
        border-bottom: none !important;
    }

    .mobile-signin {
        background: var(--cream);
        color: var(--soft-black) !important;
        border: 1px solid rgba(0,0,0,0.1);
    }

    .mobile-cta {
        background: var(--soft-black);
        color: white !important;
    }

    /* Mobile menu account items (from unified header) - use #navbar for higher specificity */
    #navbar .nav-links .mobile-menu-divider,
    #navbar .nav-links .mobile-menu-account,
    #navbar .nav-links .mobile-menu-logout,
    #navbar .nav-links .mobile-menu-signin,
    #navbar .nav-links .mobile-menu-cta {
        display: block !important;
        list-style: none;
    }

    #navbar .nav-links .mobile-menu-divider {
        border-top: 1px solid rgba(0,0,0,0.1);
        margin-top: 12px;
        padding-top: 12px;
        height: auto;
    }

    #navbar .nav-links .mobile-menu-account a,
    #navbar .nav-links .mobile-menu-signin a {
        padding: 12px 0 !important;
        display: block;
        font-weight: 500;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    #navbar .nav-links .mobile-menu-logout a {
        padding: 14px 20px !important;
        display: block;
        text-align: center;
        background: #FEF3E2;
        color: var(--accent-coral, #E07A5F) !important;
        border-radius: 8px;
        font-weight: 600;
        margin-top: 12px;
        border-bottom: none !important;
        border: 1px solid var(--accent-coral, #E07A5F);
    }

    #navbar .nav-links .mobile-menu-logout a:hover {
        background: #FDE9CC;
    }

    #navbar .nav-links .mobile-menu-cta a {
        padding: 14px 20px !important;
        display: block;
        text-align: center;
        background: var(--soft-black);
        color: white !important;
        border-radius: 8px;
        font-weight: 600;
        margin-top: 12px;
        border-bottom: none !important;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Hide hero visual elements on mobile per mockup */
    .hero-visual {
        display: none;
    }

    .hero-floating-card {
        display: none;
    }

    .hero-badge {
        display: none;
    }

    .hero-text {
        max-width: 100%;
        order: 1;
    }

    .hero-actions {
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image-grid {
        display: none;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps::before {
        display: none;
    }

    .stories-carousel {
        grid-template-columns: 1fr;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article-content {
        padding: 32px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile header adjustments */
    .nav-links {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo img {
        height: 26px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .container {
        max-width: 95%;
    }

    .ai-match-box {
        border-radius: var(--radius-sm);
        padding: 5%;
        box-shadow: var(--shadow-medium);
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
}

    .search-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ecosystem-banner {
        flex-direction: column;
        text-align: center;
    }

    .ecosystem-sites {
        flex-direction: column;
        width: 100%;
    }

    .ecosystem-site {
        width: 100%;
        justify-content: flex-start;
    }

    .resource-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .search-filters {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ================================
   AI CHATBOT STYLES
================================ */

.ai-chatbot {
    background: var(--warm-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto;
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-terracotta));
    color: white;
}

.chatbot-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-avatar svg {
    stroke: white;
}

.chatbot-info h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: white;
}

.chatbot-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chatbot-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 6px;
}

.chatbot-messages {
    padding: 24px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    background: var(--warm-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.message-content {
    background: var(--warm-cream);
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 80%;
}

.chat-message.user .message-content {
    background: var(--accent-coral);
    color: white;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

.chatbot-input-area {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--light-gray);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chat-options.multi {
    margin-bottom: 16px;
}

.chat-option-btn {
    padding: 10px 16px;
    background: var(--warm-cream);
    border: 2px solid var(--light-gray);
    border-radius: 100px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-option-btn:hover {
    border-color: var(--accent-coral);
    background: white;
}

.chat-option-btn.selected {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
    color: white;
}

.chat-continue-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-coral);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-continue-btn:hover {
    background: var(--accent-terracotta);
}

.chat-text-input {
    display: flex;
    gap: 12px;
}

.chat-text-input input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
}

.chat-text-input input:focus {
    outline: none;
    border-color: var(--accent-coral);
}

.chat-text-input button {
    width: 48px;
    height: 48px;
    background: var(--accent-coral);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-text-input button:hover {
    background: var(--accent-terracotta);
}

.chat-loading {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px;
}

.chat-loading span {
    width: 10px;
    height: 10px;
    background: var(--accent-coral);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.chat-loading span:nth-child(1) { animation-delay: -0.32s; }
.chat-loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chatbot-actions {
    padding: 0 24px 24px;
}

.chat-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.chat-result-card {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: var(--warm-white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.chat-result-card:hover {
    border-color: var(--accent-coral);
    box-shadow: var(--shadow-soft);
}

.chat-result-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.chat-result-info {
    flex: 1;
}

.chat-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-result-header h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    margin: 0;
}

.match-score {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: var(--accent-sage);
    padding: 4px 8px;
    border-radius: 100px;
}

.chat-result-info p {
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin: 0 0 4px;
}

.chat-result-shelter {
    font-size: 0.8rem;
    color: var(--accent-coral);
}

/* Search Results Container */
.search-results-container {
    margin-top: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-header h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--warm-gray);
    padding: 48px;
}

/* Quick Search Form Styles */
#quick-search-form {
    background: var(--warm-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

#quick-search-form .matching-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#quick-search-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {

    .ai-match-preview {
        border-radius: var(--radius-sm);
        padding: 40px 5%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
/*
    .hero-visual {
        display: block;
        max-width: 400px;
        margin: 0;
        order: -1;
    }
*/
    #quick-search-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .chat-result-card {
        flex-direction: column;
    }
    
    .chat-result-card img {
        width: 100%;
        height: 150px;
    }

    /* -- featured section mobile -- */
    
    .featured-section {
        padding: 2rem 0;
        align-items: center;
    }

    /* -- ABOUT section mobile -- */
    
    .about-section {
        padding: 2rem 0;
        align-items: center;
    }

    .about-features  {
        grid-template-columns: 1fr;
    }

/* ========================================
   NEW STYLES - Location Modal, Loading States, AI Match Preview
   ======================================== */

/* Change Location Link */
.section-header p a.change-location-link,
a.change-location-link {
    color: var(--accent-coral) !important;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 8px;
    transition: color 0.2s;
}

.section-header p a.change-location-link:hover,
a.change-location-link:hover {
    color: var(--accent-terracotta) !important;
    text-decoration: underline;
}

/* Location Text Highlight */
.location-text {
    color: var(--accent-coral);
}

/* Location Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: transparent;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: modalIn 0.3s ease-out;
}
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.4rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.location-modal .modal-description {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
    text-align: center;
    padding-right: 40px;
}

.location-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.location-input-wrapper input {
    flex: 1;
    padding: 18px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
}

.location-input-wrapper input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.3);
}

.location-input-wrapper input::placeholder {
    color: #999;
}

/* Update button - coral color */
.btn-update {
    padding: 18px 28px;
    white-space: nowrap;
    background: var(--accent-coral);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-update:hover {
    background: var(--accent-terracotta);
    transform: translateY(-1px);
}

/* Detect location button - no border, white text */
.btn-detect {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    border-radius: 100px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    text-align: center;
}

.btn-detect:hover {
    opacity: 0.8;
}

/* Mobile styles for location modal */
@media (max-width: 600px) {
    .location-modal .modal-description {
        padding-right: 0;
        margin-top: 20px;
    }

    .location-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .btn-update {
        width: 100%;
    }
}

/* Location Autocomplete Suggestions */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 80px;
    background: white;
    border: 2px solid var(--light-gray);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.location-suggestions.active {
    display: block;
}

.location-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.95rem;
    transition: background 0.15s;
}

.location-suggestion-item:last-child {
    border-bottom: none;
}

.location-suggestion-item:hover {
    background: var(--warm-white);
}

.location-suggestion-item .city-name {
    font-weight: 500;
    color: var(--text-dark);
}

.location-suggestion-item .state-name {
    color: var(--warm-gray);
    margin-left: 4px;
}


/* Loading States */
.loading-pets {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--accent-coral);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-pets p {
    color: var(--warm-gray);
}

/* AI Match Preview on Homepage */
.ai-match-preview {
    text-align: center;
    padding: 10% 5%;
}

.ai-preview-icon {
    margin-bottom: 20px;
}

.ai-match-preview h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--soft-black);
}

.ai-match-preview > p {
    color: var(--warm-gray);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ai-benefits {
    list-style: none;
    text-align: left;
    max-width: 320px;
    margin: 0 auto 28px;
}

.ai-benefits li {
    padding: 8px 0;
    color: var(--soft-black);
    font-size: 0.95rem;
}

.btn-large {
    padding: 16px 32px !important;
    font-size: 1.05rem !important;
}

/* Pet Card for Featured Section - matches search.html styling exactly */
#featuredPetsGrid.pets-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
}

#featuredPetsGrid .pet-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

#featuredPetsGrid .pet-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

#featuredPetsGrid .pet-card-image {
    position: relative !important;
    height: 220px !important;
    overflow: hidden !important;
}

#featuredPetsGrid .pet-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#featuredPetsGrid .pet-card-favorite {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    background: white !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: transform 0.2s !important;
    color: #6B6560 !important;
}

#featuredPetsGrid .pet-card-favorite:hover {
    transform: scale(1.1) !important;
    color: #E07A5F !important;
}

#featuredPetsGrid .pet-card-info {
    padding: 16px !important;
    background: white !important;
}

#featuredPetsGrid .pet-card-info h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 0 0 4px !important;
    color: #1A1814 !important;
}

#featuredPetsGrid .pet-card-breed {
    color: #6B6560 !important;
    font-size: 0.9rem !important;
    margin: 0 0 8px !important;
}

#featuredPetsGrid .pet-card-details {
    display: flex !important;
    gap: 12px !important;
    font-size: 0.85rem !important;
    color: #6B6560 !important;
    margin-bottom: 12px !important;
}

#featuredPetsGrid .pet-card-location {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.85rem !important;
    color: #81B29A !important;
}

#featuredPetsGrid .pet-card-location svg {
    flex-shrink: 0 !important;
    stroke: #81B29A !important;
}

/* CSS Variables for common values */
:root {
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --text-dark: var(--soft-black);
    --text-muted: var(--warm-gray);
    --bg-cream: var(--warm-cream);
    --border-light: var(--light-gray);
}

/* ========================================
   MOBILE SEARCH FORM STYLES
   ======================================== */

/* Desktop-only elements hidden on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .desktop-search-form {
        display: none !important;
    }

    .mobile-search-form {
        display: block !important;
    }
}

/* Mobile-only elements hidden on desktop */
@media (min-width: 769px) {
    .mobile-search-form {
        display: none !important;
    }

    .desktop-search-form {
        display: block !important;
    }
}

/* Desktop Search Form - Simplified Style */
.desktop-search-form {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    max-width: 500px;
    margin: 0 auto;
}

.desktop-search-form .form-group {
    margin-bottom: 16px;
}

.desktop-search-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--warm-gray);
    margin-bottom: 8px;
}

.desktop-search-form .form-group input,
.desktop-search-form .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--warm-white);
    color: var(--soft-black);
}

.desktop-search-form .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Mobile Search Form Styling */
.mobile-search-form {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    max-width: 500px;
    margin: 0 auto;
}

.mobile-search-form .form-group {
    margin-bottom: 16px;
}

.mobile-search-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--warm-gray);
    margin-bottom: 8px;
}

.mobile-search-form .form-group input,
.mobile-search-form .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--warm-white);
    color: var(--soft-black);
}

.mobile-search-form .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Add Pet Criteria Button */
.btn-add-criteria {
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: 1px solid var(--light-gray);
    border-radius: 100px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--soft-black);
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.btn-add-criteria:hover {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

/* Search Button Coral Style */
.search-btn-coral {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-terracotta) 100%);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn-coral:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);
}

/* AI Match Hint Text */
.ai-match-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--warm-gray);
    margin-top: 20px;
    line-height: 1.5;
}

.ai-match-link {
    color: var(--accent-coral);
    text-decoration: underline;
    font-weight: 500;
}

.ai-match-link:hover {
    color: var(--accent-terracotta);
}

/* ========================================
   ADDITIONAL PET CRITERIA MODAL
   ======================================== */

.criteria-modal {
    background: var(--warm-cream);
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.criteria-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.criteria-modal .modal-header h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--soft-black);
    margin: 0;
}

.criteria-modal .modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--warm-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.criteria-modal .modal-close:hover {
    color: var(--soft-black);
}

.criteria-modal-content {
    padding-bottom: 16px;
}

.criteria-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--light-gray);
}

.criteria-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.criteria-section h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--soft-black);
    margin-bottom: 12px;
}

.criteria-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.criteria-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--soft-black);
}

.criteria-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--accent-coral);
}

.criteria-search-btn {
    margin-top: 16px;
}

/* ========================================
   SEARCH RESULTS PAGE - SEARCH SUMMARY BAR
   ======================================== */

.search-summary-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.search-summary-info {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-terracotta) 100%);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-summary-text {
    font-size: 1rem;
    font-weight: 500;
}

.search-summary-edit {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.search-summary-edit:hover {
    opacity: 1;
}

.search-summary-filter {
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-terracotta) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.search-summary-filter:hover {
    transform: scale(1.05);
}

/* Search Results Header */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-results-count {
    font-size: 1rem;
    color: var(--soft-black);
}

.search-results-count strong {
    font-weight: 600;
}

.search-results-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--warm-gray);
}

.search-results-sort select {
    padding: 8px 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: white;
    color: var(--accent-coral);
    font-weight: 500;
    cursor: pointer;
}

/* ========================================
   SEARCH RESULTS FILTER MODAL (Mobile)
   ======================================== */

.filter-modal {
    background: var(--warm-cream);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.filter-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.filter-modal .modal-header h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--soft-black);
    margin: 0;
}

.filters-applied {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.filters-applied-label {
    font-size: 0.85rem;
    color: var(--warm-gray);
    width: 100%;
    margin-bottom: 4px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--warm-gray);
    color: white;
    border-radius: 100px;
    font-size: 0.85rem;
}

.filter-tag-remove {
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.clear-all-filters {
    font-size: 0.85rem;
    color: var(--soft-black);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 8px;
    display: block;
}

.update-filters-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-terracotta) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.3s ease;
}

.update-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);
}

/* ========================================
   AI SMART MATCH PROMO SECTION
   ======================================== */

.ai-match-promo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--warm-cream) 0%, #FFF8F6 100%);
}

.ai-match-promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.ai-match-promo-text h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--soft-black);
    margin-bottom: 20px;
    line-height: 1.2;
}

.ai-match-promo-text h2 em {
    font-style: italic;
    color: var(--accent-coral);
}

.ai-match-promo-text > p {
    color: var(--warm-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.ai-match-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.ai-match-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--soft-black);
    font-size: 1rem;
}

.ai-match-benefits li svg {
    color: var(--accent-sage);
    flex-shrink: 0;
}

.btn-ai-match {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-terracotta) 100%);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ai-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);
}

.ai-match-promo-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-match-promo-visual img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .ai-match-promo-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .ai-match-promo-text h2 {
        font-size: 2rem;
    }

    .ai-match-benefits {
        display: inline-block;
        text-align: left;
    }

    .ai-match-promo-visual {
        display: none;
    }
}

@media (max-width: 600px) {
    .ai-match-promo-section {
        padding: 60px 0;
    }

    .ai-match-promo-text h2 {
        font-size: 1.75rem;
    }

    .ai-match-promo-text > p {
        font-size: 1rem;
    }

    .btn-ai-match {
        width: 100%;
        justify-content: center;
    }
}
