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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --nav-height: 60px;
    --bottom-nav-height: 70px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.content {
    flex: 1;
    padding-top: var(--nav-height);
    padding-bottom: var(--bottom-nav-height);
    min-height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--primary-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: white;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

/* Page Styles */
.page-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.hero-section:not(.has-image) .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 20px;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.property-logo {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.home-welcome-card {
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.card-content ul li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--background);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    line-height: 1.5;
}

.card-content ul li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 12px;
}

.card-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-content p {
    margin-bottom: 16px !important;
    margin-top: 0 !important;
}

.card-content a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.card-content a:hover {
    text-decoration: underline;
}

.card-content h2,
.card-content h3,
.card-content strong {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-content h2 {
    font-size: 20px;
}

.card-content h3 {
    font-size: 18px;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--background);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.info-text {
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.amenity-item {
    background: var(--background);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--text-primary);
}

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

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--surface);
}

.search-button {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.search-button:hover {
    background: var(--secondary-color);
}

.place-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.place-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--background);
}

.place-info {
    flex: 1;
}

.place-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.place-category {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.place-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.place-distance {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.map-container {
    width: 100%;
    height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
    position: relative;
    margin-bottom: calc(var(--bottom-nav-height) * -1);
}

#map {
    width: 100%;
    height: 100%;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.splash-logo svg {
    width: 40px;
    height: 40px;
    color: white;
}

.splash-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.splash-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
}

.splash-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hide main content initially */
#app.loading {
    visibility: hidden;
}

/* Install Prompt Styles */
.install-prompt {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    left: 20px;
    right: 20px;
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    border: 1px solid var(--border-color);
}

.install-prompt.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.install-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.install-prompt-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-prompt-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

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

.install-prompt-button {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.install-prompt-button.primary {
    background: var(--primary-color);
    color: white;
}

.install-prompt-button.primary:hover {
    background: var(--secondary-color);
}

.install-prompt-button.secondary {
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.install-prompt-button.secondary:hover {
    background: var(--border-color);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

    .amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f172a;
        --surface: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-color: #334155;
    }
}