/* ====================================
   LORETANOS V2 - Tourism Social Network
   Main Stylesheet with Media Upload Support
   ==================================== */

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

/* CSS Variables */
:root {
    /* Colors */
    --sunset: #FF5A36;
    --sunset-dark: #E04F2F;
    --ocean: #0E7C86;
    --ocean-dark: #0A5C63;
    --paper: #F8F5F2;
    --ink: #1A1A1A;
    --ink-light: #4A4A4A;
    --ink-muted: #888888;
    --white: #FFFFFF;
    --border: #E5E5E5;
    
    /* Fonts */
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-accent: 'Caveat', cursive;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

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

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

.font-accent {
    font-family: var(--font-accent);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--sunset);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--sunset);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 90, 54, 0.3);
}

.btn-primary:hover {
    background-color: var(--sunset-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 54, 0.4);
}

.btn-secondary {
    background-color: var(--ocean);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--ocean-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--ink);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--paper);
    border-color: var(--ink-muted);
}

.btn-ghost {
    background-color: transparent;
    color: var(--ink-light);
}

.btn-ghost:hover {
    color: var(--sunset);
    background-color: rgba(255, 90, 54, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-full);
}

/* Inputs */
.input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background-color: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--sunset);
    box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.1);
}

.input::placeholder {
    color: var(--ink-muted);
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--ink);
}

textarea.input {
    min-height: 120px;
    resize: vertical;
}

select.input {
    cursor: pointer;
}

/* Cards */
.card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 1.5rem;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid rgba(255, 90, 54, 0.2);
}

.avatar-lg {
    width: 100px;
    height: 100px;
}

.avatar-xl {
    width: 128px;
    height: 128px;
    border-width: 4px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background-color: var(--paper);
    color: var(--ink-light);
}

.badge-primary {
    background-color: rgba(255, 90, 54, 0.1);
    color: var(--sunset);
}

.badge-secondary {
    background-color: rgba(14, 124, 134, 0.1);
    color: var(--ocean);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

.nav-logo svg {
    width: 32px;
    height: 32px;
    color: var(--sunset);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--ink-light);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sunset);
    background-color: rgba(255, 90, 54, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Toggle */
.lang-toggle {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--paper);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    border-color: var(--ocean);
    color: var(--ocean);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
}

.nav-mobile-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    color: var(--ink-light);
    transition: all 0.2s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: var(--white);
    background-color: var(--sunset);
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions .btn {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-content .font-accent {
    font-size: 1.5rem;
    opacity: 0.9;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 0.5rem 0;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 1.5rem auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--white);
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header .font-accent {
    color: var(--sunset);
    font-size: 1.25rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background-color: var(--paper);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 90, 54, 0.1);
    color: var(--sunset);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--sunset);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--ink-light);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
}

.auth-image {
    display: none;
    width: 50%;
    position: relative;
}

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

.auth-image-overlay {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    color: var(--white);
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.5), transparent);
}

.auth-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form {
    width: 100%;
    max-width: 400px;
}

.auth-form h1 {
    margin-bottom: 0.5rem;
}

.auth-form .subtitle {
    color: var(--ink-light);
    margin-bottom: 2rem;
}

.auth-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--ink-light);
}

.auth-type-btn.active {
    border-color: var(--sunset);
    background-color: rgba(255, 90, 54, 0.05);
    color: var(--sunset);
}

.auth-type-btn.business.active {
    border-color: var(--ocean);
    background-color: rgba(14, 124, 134, 0.05);
    color: var(--ocean);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ink-muted);
    cursor: pointer;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--ink-light);
}

.auth-footer a {
    color: var(--sunset);
    font-weight: 500;
}

@media (min-width: 1024px) {
    .auth-image {
        display: block;
    }
}

/* Feed Page */
.feed-page {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.feed-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Quick Post Box */
.quick-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.quick-post-btn {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background-color: var(--paper);
    border: none;
    border-radius: var(--radius-full);
    text-align: left;
    color: var(--ink-muted);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quick-post-btn:hover {
    background-color: #f0ede9;
}

/* Post Card */
.post-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.post-user-info {
    flex: 1;
}

.post-user-info h4 {
    font-family: var(--font-body);
    font-size: 1rem;
}

.post-user-info span {
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.post-content {
    padding: 0 1rem 1rem;
}

.post-content p {
    white-space: pre-wrap;
    line-height: 1.6;
}

.post-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--ocean);
}

/* Post Media - Images and Videos */
.post-media {
    padding: 0 1rem 1rem;
}

.post-media img,
.post-media video {
    width: 100%;
    border-radius: var(--radius-lg);
    max-height: 500px;
    object-fit: cover;
}

.post-media video {
    background-color: #000;
}

.post-media-grid {
    display: grid;
    gap: 0.5rem;
}

.post-media-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.post-media-grid.grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.post-media-grid.grid-3 > *:first-child {
    grid-row: span 2;
}

.post-media-grid.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* Mobile Responsive - Post Media */
@media (max-width: 768px) {
    .post-media {
        padding: 0 0.75rem 0.75rem;
    }
    
    .post-media img,
    .post-media video {
        max-height: 280px;
        border-radius: var(--radius-md);
    }
    
    .post-media-grid {
        gap: 0.25rem;
    }
    
    .post-media-grid.grid-2,
    .post-media-grid.grid-3,
    .post-media-grid.grid-4 {
        grid-template-columns: 1fr;
    }
    
    .post-media-grid.grid-3 > *:first-child {
        grid-row: auto;
    }
}

@media (max-width: 480px) {
    .post-media img,
    .post-media video {
        max-height: 220px;
        border-radius: var(--radius-sm);
    }
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--ink-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-action-btn:hover {
    color: var(--sunset);
}

.post-action-btn.liked {
    color: var(--sunset);
}

.post-action-btn.liked svg {
    fill: var(--sunset);
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.file-upload-area:hover {
    border-color: var(--sunset);
    background-color: rgba(255, 90, 54, 0.02);
}

.file-upload-area.dragover {
    border-color: var(--sunset);
    background-color: rgba(255, 90, 54, 0.05);
}

.file-upload-area input[type="file"] {
    display: none;
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--ink-muted);
}

.file-upload-text {
    color: var(--ink-light);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.75rem;
    color: var(--ink-muted);
}

/* Media Preview */
.media-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.media-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--paper);
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.media-preview-remove:hover {
    background-color: var(--sunset);
}

/* Upload Progress */
.upload-progress {
    margin-top: 1rem;
}

.upload-progress-bar {
    height: 4px;
    background-color: var(--paper);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background-color: var(--sunset);
    transition: width 0.3s ease;
}

.upload-progress-text {
    font-size: 0.75rem;
    color: var(--ink-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-family: var(--font-display);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-muted);
    padding: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* Profile Page */
.profile-page {
    padding-top: 5rem;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, rgba(255,90,54,0.2) 0%, rgba(14,124,134,0.1) 100%);
    position: relative;
}

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

.profile-header {
    position: relative;
    padding: 0 2rem 2rem;
    background-color: var(--white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: 2rem;
}

.profile-avatar {
    margin-top: -64px;
    margin-bottom: 1rem;
}

.profile-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.profile-name h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.profile-username {
    color: var(--ink-muted);
}

.profile-bio {
    margin: 1rem 0;
    max-width: 600px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--ink-light);
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

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

.profile-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 0.875rem;
    color: var(--ink-muted);
}

/* Events Page */
.events-page {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.events-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.events-header p {
    color: var(--ink-light);
}

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

.event-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
}

.event-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(255,90,54,0.2) 0%, rgba(14,124,134,0.2) 100%);
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.event-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.event-body {
    padding: 1.25rem;
}

.event-body h3 {
    margin-bottom: 0.5rem;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-body p {
    color: var(--ink-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta-item svg {
    width: 16px;
    height: 16px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.event-attendees {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

/* Directory Page */
.directory-page {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.directory-header {
    text-align: center;
    margin-bottom: 3rem;
}

.directory-header p {
    color: var(--ink-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.directory-search {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.directory-search .input {
    flex: 1;
    padding-left: 3rem;
    border-radius: var(--radius-full);
}

.directory-search-wrapper {
    position: relative;
    flex: 1;
}

.directory-search-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--ink-muted);
}

.directory-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-light);
    transition: all 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--sunset);
    border-color: var(--sunset);
    color: var(--white);
}

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

.business-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.business-card:hover {
    box-shadow: var(--shadow-lg);
}

.business-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(14,124,134,0.2) 0%, rgba(255,90,54,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

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

.business-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: rgba(255,255,255,0.9);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.business-body {
    padding: 1.25rem;
}

.business-body h3 {
    margin-bottom: 0.5rem;
}

.business-body > p {
    color: var(--ink-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.business-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.business-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--ink-muted);
}

.business-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Settings Page */
.settings-page {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.settings-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem;
}

.settings-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
}

.settings-cover {
    height: 120px;
    background: linear-gradient(135deg, rgba(255,90,54,0.2) 0%, rgba(14,124,134,0.1) 100%);
}

.settings-avatar {
    margin: -48px 1.5rem 0;
    position: relative;
}

.settings-form {
    padding: 1.5rem;
}

.travel-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interest-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: none;
    background-color: var(--paper);
    color: var(--ink-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.interest-btn:hover {
    background-color: rgba(255, 90, 54, 0.1);
    color: var(--sunset);
}

.interest-btn.active {
    background-color: var(--sunset);
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--ink);
    color: var(--white);
    padding: 4rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo svg {
    color: var(--sunset);
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--sunset);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.text-sunset { color: var(--sunset); }
.text-ocean { color: var(--ocean); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }

/* Loading Spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--paper);
    border-top-color: var(--sunset);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--ink-light);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--ink-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .feed-page,
    .events-page,
    .directory-page,
    .settings-page,
    .profile-page {
        padding-bottom: 8rem;
    }
    
    .nav-actions .lang-toggle {
        display: inline-flex;
    }
}
