/* Hyggedating - Nordic Warmth Design
   Inspired by Danish hygge culture and Scandinavian aesthetics
   ============================================================ */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,400&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ===== CSS Variables ===== */
:root {
    /* Primary palette - Warm coral to peach */
    --color-primary: #e07256;
    --color-primary-dark: #c45a42;
    --color-primary-light: #fce8e3;
    --color-primary-glow: rgba(224, 114, 86, 0.25);

    /* Secondary - Deep nordic blue */
    --color-secondary: #2d4a6f;
    --color-secondary-light: #4a6d94;

    /* Accent - Aurora inspired */
    --color-accent: #7eb8a8;
    --color-accent-light: #d4ebe5;

    /* Warm neutrals */
    --color-cream: #faf8f5;
    --color-sand: #f5f0e8;
    --color-latte: #e8e0d4;

    /* Text */
    --color-text: #2c3e50;
    --color-text-soft: #5a6c7d;
    --color-text-muted: #8fa3b8;

    /* Backgrounds */
    --color-bg: var(--color-cream);
    --color-bg-card: #ffffff;
    --color-bg-elevated: #ffffff;

    /* Borders */
    --color-border: rgba(45, 74, 111, 0.1);
    --color-border-soft: rgba(45, 74, 111, 0.05);

    /* Shadows - warm tinted */
    --shadow-xs: 0 1px 2px rgba(45, 74, 111, 0.04);
    --shadow-sm: 0 2px 8px rgba(45, 74, 111, 0.06);
    --shadow-md: 0 4px 16px rgba(45, 74, 111, 0.08);
    --shadow-lg: 0 8px 32px rgba(45, 74, 111, 0.1);
    --shadow-xl: 0 16px 48px rgba(45, 74, 111, 0.12);
    --shadow-glow: 0 4px 24px var(--color-primary-glow);

    /* Border radius - soft and organic */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;
    --radius-full: 9999px;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    /* Spacing */
    --space-section: 100px;
    --container-max: 1280px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 600ms;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out-expo);
}

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

::selection {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* ===== Layout Utilities ===== */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1;
}

/* ===== Header & Navigation ===== */
.site-header {
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-text);
    transition: transform var(--duration-fast) var(--ease-out-back);
}

.logo:hover {
    color: var(--color-text);
    transform: scale(1.02);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #e89b8c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--color-text-soft);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out-expo);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text);
    background: var(--color-sand);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    transition: transform var(--duration-fast) var(--ease-out-expo);
}

.nav-dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    border: 1px solid var(--color-border-soft);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--color-text-soft);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.dropdown-menu a:hover {
    background: var(--color-sand);
    color: var(--color-text);
    transform: translateX(4px);
}

.dropdown-menu .see-all {
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
    padding-top: 14px;
    color: var(--color-primary);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast);
}

.mobile-menu-toggle:hover {
    background: var(--color-sand);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--duration-fast);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #d4614a 100%);
    color: white;
    box-shadow: var(--shadow-md), 0 4px 16px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 24px var(--color-primary-glow);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-icon {
    padding: 14px;
    min-width: 52px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 600px;
    padding: 80px 24px 120px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-cream);
}

/* Organic blob shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse at center, var(--color-primary-light) 0%, transparent 70%);
    opacity: 0.6;
    animation: blobFloat 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--color-accent-light) 0%, transparent 70%);
    opacity: 0.5;
    animation: blobFloat 25s ease-in-out infinite reverse;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 .highlight {
    display: inline-block;
    position: relative;
    color: var(--color-primary);
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--color-primary-light);
    z-index: -1;
    border-radius: 4px;
    transform: skewX(-3deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-soft);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-search {
    background: var(--color-bg-elevated);
    padding: 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-soft);
}

.search-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    text-align: left;
}

.search-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

.search-field select {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-expo);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235a6c7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
}

.search-field select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-glow);
}

/* Location Hero */
.location-hero {
    background: linear-gradient(180deg, var(--color-sand) 0%, var(--color-cream) 100%);
    padding: 60px 24px 80px;
    position: relative;
}

.location-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at top right, var(--color-accent-light) 0%, transparent 60%);
    opacity: 0.4;
}

.location-hero .hero-content {
    max-width: var(--container-max);
    text-align: left;
}

.location-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.location-meta {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--color-text-muted);
    transition: color var(--duration-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb span:not([aria-current]) {
    opacity: 0.5;
}

/* ===== Sections ===== */
.featured-profiles,
.locations-section,
.profiles-section,
.places-section,
.similar-profiles,
.other-locations {
    padding: var(--space-section) 24px;
}

.featured-profiles {
    background: var(--color-bg);
}

.locations-section {
    background: var(--color-sand);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-soft);
    margin-bottom: 56px;
    font-size: 1.1rem;
}

.section-footer {
    text-align: center;
    margin-top: 56px;
}

/* ===== Profile Cards ===== */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.profiles-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.profile-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out-expo);
    border: 1px solid var(--color-border-soft);
}

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

.profile-card-link {
    display: block;
    color: var(--color-text);
}

.profile-card-link:hover {
    color: var(--color-text);
}

.profile-image {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--color-sand);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.profile-card:hover .profile-image img {
    transform: scale(1.08);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 500;
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-light) 100%);
}

.profile-rating {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--color-text);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.profile-rating::before {
    content: '★';
    color: #f5a623;
}

.profile-info {
    padding: 20px;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.profile-location {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-profession {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    margin-bottom: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-sand);
    color: var(--color-text-soft);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast);
}

.profile-card:hover .tag {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* ===== Location Cards ===== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 24px;
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out-expo);
    text-align: center;
    color: var(--color-text);
    border: 1px solid var(--color-border-soft);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.location-card:hover::before {
    transform: scaleX(1);
}

.location-icon {
    width: 56px;
    height: 56px;
    background: var(--color-sand);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.location-card:hover .location-icon {
    background: var(--color-primary-light);
    transform: scale(1.1);
}

.location-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.location-count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.locations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.location-pill {
    padding: 12px 24px;
    background: var(--color-bg-card);
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-fast) var(--ease-out-expo);
    border: 1px solid var(--color-border-soft);
}

.location-pill:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: transparent;
}

.location-pill .count {
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.location-pill:hover .count {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Places Section ===== */
.places-section {
    background: var(--color-cream);
}

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

.place-card {
    background: var(--color-bg-card);
    padding: 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-soft);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.place-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.place-type {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.place-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.place-description {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.place-address {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.place-address::before {
    content: '📍';
    font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--color-secondary);
    padding: var(--space-section) 24px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(126, 184, 168, 0.2) 0%, transparent 60%);
}

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

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    opacity: 0.85;
    margin-bottom: 36px;
    font-size: 1.1rem;
}

.cta-content .btn-primary {
    background: white;
    color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
}

.cta-content .btn-primary:hover {
    background: var(--color-cream);
    box-shadow: var(--shadow-xl);
}

/* ===== Profile Page ===== */
.profile-page {
    padding: 40px 24px var(--space-section);
    max-width: var(--container-max);
    margin: 0 auto;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    margin-top: 28px;
}

.profile-gallery {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.main-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.profile-placeholder-large {
    width: 100%;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 500;
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-light) 100%);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 28px 0;
}

.profile-header h1 {
    font-size: 2.2rem;
}

.profile-header .profile-location {
    font-size: 1.05rem;
    margin-top: 6px;
}

.profile-rating-large {
    text-align: right;
    background: var(--color-sand);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
}

.profile-rating-large .stars {
    font-size: 1.5rem;
    color: #f5a623;
    font-weight: 600;
}

.profile-rating-large .count {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.profile-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-text);
}

.profile-bio-full {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--color-text);
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.interest-tag {
    padding: 10px 20px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all var(--duration-fast);
}

.interest-tag:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--color-bg-card);
    padding: 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-soft);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item dt {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item dd {
    font-weight: 500;
    text-align: right;
    color: var(--color-text);
}

/* Map */
.profile-map {
    height: 220px;
    border-radius: var(--radius-lg);
    margin-top: 16px;
    z-index: 1;
    overflow: hidden;
}

/* ===== Similar Profiles ===== */
.similar-profiles {
    background: var(--color-sand);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-secondary);
    color: white;
    padding: 72px 24px 32px;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-brand .logo-icon {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-column h4 {
    color: white;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--duration-fast);
    display: inline-block;
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-seo {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.footer-seo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--color-text-muted);
}

.empty-state p {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* ===== 404 Page ===== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.error-content h1 {
    font-size: 8rem;
    color: var(--color-primary-light);
    line-height: 1;
    margin-bottom: 16px;
}

.error-content h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.error-content p {
    color: var(--color-text-soft);
    margin-bottom: 32px;
}

/* ===== SEO Content Sections ===== */
.seo-intro,
.location-intro {
    background: var(--color-bg-card);
    padding: 56px 24px;
    border-bottom: 1px solid var(--color-border-soft);
}

.seo-intro {
    background: var(--color-sand);
}

.seo-intro-content,
.location-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-intro h2,
.location-intro h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--color-text);
    text-align: center;
}

.seo-intro p,
.location-intro p {
    color: var(--color-text-soft);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 16px;
    text-align: center;
}

.seo-intro p:last-of-type,
.location-intro p:last-of-type {
    margin-bottom: 0;
}

.location-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    justify-content: center;
}

.location-stat {
    text-align: center;
}

.location-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-primary);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.location-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Location CTA inline */
.location-cta {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-light) 100%);
    padding: 56px 32px;
    text-align: center;
    border-radius: var(--radius-2xl);
    margin: 56px 0;
}

.location-cta h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--color-text);
}

.location-cta p {
    color: var(--color-text-soft);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* Location SEO text - discreet */
.location-seo-text {
    margin-top: 48px;
    padding: 32px;
    background: var(--color-sand);
    border-radius: var(--radius-xl);
}

.location-seo-text h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--color-text);
}

.location-seo-text p {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Places section compact - at bottom */
.places-section-compact {
    background: var(--color-sand);
    padding: 48px 24px;
    border-top: 1px solid var(--color-border-soft);
}

.section-title-small {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 28px;
    color: var(--color-text);
}

.places-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.place-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
}

.place-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.place-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.place-content strong {
    font-size: 0.95rem;
    color: var(--color-text);
}

.place-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .seo-intro,
    .location-intro {
        padding: 40px 20px;
    }

    .seo-intro h2,
    .location-intro h2 {
        font-size: 1.4rem;
    }

    .seo-intro p,
    .location-intro p {
        font-size: 0.95rem;
        text-align: left;
    }

    .location-stats {
        gap: 24px;
    }

    .location-stat-value {
        font-size: 2rem;
    }

    .location-cta {
        padding: 40px 24px;
        margin: 40px 0;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card,
.location-card,
.place-card {
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) backwards;
}

.profiles-grid .profile-card:nth-child(1) { animation-delay: 0ms; }
.profiles-grid .profile-card:nth-child(2) { animation-delay: 50ms; }
.profiles-grid .profile-card:nth-child(3) { animation-delay: 100ms; }
.profiles-grid .profile-card:nth-child(4) { animation-delay: 150ms; }
.profiles-grid .profile-card:nth-child(5) { animation-delay: 200ms; }
.profiles-grid .profile-card:nth-child(6) { animation-delay: 250ms; }
.profiles-grid .profile-card:nth-child(7) { animation-delay: 300ms; }
.profiles-grid .profile-card:nth-child(8) { animation-delay: 350ms; }

.locations-grid .location-card:nth-child(1) { animation-delay: 0ms; }
.locations-grid .location-card:nth-child(2) { animation-delay: 30ms; }
.locations-grid .location-card:nth-child(3) { animation-delay: 60ms; }
.locations-grid .location-card:nth-child(4) { animation-delay: 90ms; }
.locations-grid .location-card:nth-child(5) { animation-delay: 120ms; }
.locations-grid .location-card:nth-child(6) { animation-delay: 150ms; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    :root {
        --space-section: 80px;
    }

    .profile-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .profile-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-section: 64px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 60px 20px 80px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .location-hero h1 {
        font-size: 1.8rem;
    }

    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .profiles-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .profile-info {
        padding: 14px;
    }

    .profile-name {
        font-size: 1rem;
    }

    .profile-header {
        flex-direction: column;
        gap: 20px;
    }

    .profile-rating-large {
        text-align: left;
        align-self: flex-start;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-tagline {
        margin-left: 0;
    }

    .footer-links {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-search {
        padding: 20px;
    }

    .profiles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .locations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .location-card {
        padding: 24px 16px;
    }

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

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .site-footer,
    .hero-bubbles,
    .cta-section,
    .profile-actions,
    .btn {
        display: none !important;
    }

    body {
        background: white;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }
}
