/* Global Styles */
:root {
    --primary-color: #000000;
    --bg-color: #fcfcfc;
    --text-main: #111111;
    --text-muted: #888888;
    --border-color: #eeeeee;
    --card-bg: #ffffff;
    --accent: #f0f0f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #e0e0e0; /* Gray background for desktop to simulate mobile frame */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Mobile App Container (limits width on desktop, full on mobile) */
.app-container {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 414px; /* iPhone Max width */
    height: 100vh;
    max-height: 896px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 414px) {
    .app-container {
        height: 100vh;
        max-height: 100vh;
        box-shadow: none;
    }
}

/* Top App Bar */
.app-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    z-index: 10;
}
.status-bar-icons i { margin-left: 5px; font-size: 12px; }

/* Search Bar */
.search-container {
    padding: 0 20px 15px 20px;
}
.search-box {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}
.search-icon { color: var(--text-muted); font-size: 18px; margin-right: 12px; }
.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}
.search-box input::placeholder { color: var(--text-muted); }
.filter-icon { color: var(--text-main); font-size: 18px; margin-left: 12px; cursor: pointer; }

/* Tabs */
.tabs-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 20px 15px 20px;
    scrollbar-width: none; /* Firefox */
}
.tabs-scroll::-webkit-scrollbar { display: none; } /* Chrome */
.tab {
    padding: 8px 16px;
    margin-right: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.tab.active {
    color: var(--text-main);
    border-bottom-color: var(--text-main);
}

/* Main Content Area - Scrollable */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    scrollbar-width: none;
}
.content-area::-webkit-scrollbar { display: none; }

/* Hero Banner */
.hero-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 180px;
    margin-bottom: 25px;
}
.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.banner-content h2 { color: #fff; margin: 0 0 5px 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.banner-content p { color: #eee; margin: 0; font-size: 14px; }

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-main); }
.see-all { color: var(--text-muted); font-size: 16px; text-decoration: none; }

/* Categories Scroll */
.categories-scroll {
    display: flex;
    overflow-x: auto;
    margin-bottom: 30px;
    padding-bottom: 5px;
    scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    min-width: 70px;
}
.cat-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-img i { font-size: 24px; color: var(--text-main); }
.category-item span { font-size: 12px; font-weight: 500; color: var(--text-main); }

/* Places Grid */
.places-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.place-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.04);*/
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.card-img-wrapper {
    position: relative;
    height: 120px;
    width: 100%;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.favorite-btn {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(255,255,255,0.9);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--text-main);
    font-size: 12px;
    cursor: pointer;
}
.card-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.brand { font-size: 10px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; display: block; }
.card-info h4 { margin: 0 0 4px 0; font-size: 14px; font-weight: 600; color: var(--text-main); }
.desc { margin: 0 0 8px 0; font-size: 12px; color: var(--text-muted); flex: 1; line-height: 1.4; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-weight: 700; font-size: 14px; color: var(--text-main); }

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    height: 60px;
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--border-color);
    z-index: 100;
}
.nav-item {
    color: var(--text-muted);
    font-size: 20px;
    text-decoration: none;
    padding: 10px;
}
.nav-item.active {
    color: var(--text-main);
}

/* Home Indicator (iOS Style Bar) */
.home-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 5px;
    background: #000;
    border-radius: 10px;
    z-index: 101;
}

/* Social Feed Styles */
.feed-tabs { justify-content: space-around; border-bottom: 1px solid var(--border-color); padding: 0 0 10px 0; margin-bottom: 0; }
.feed-tabs .tab { margin: 0; padding: 10px; }
.feed-content { padding: 0; background: var(--bg-color); }
.feed-post { background: var(--card-bg); margin-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.post-header { display: flex; align-items: center; padding: 15px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 12px; }
.user-info { flex: 1; }
.user-info h4 { margin: 0 0 2px 0; font-size: 14px; color: var(--text-main); }
.user-info h4 span { color: var(--text-muted); font-weight: 400; }
.user-info .time { font-size: 12px; color: var(--text-muted); }
.more-icon { color: var(--text-muted); }
.post-image { width: 100%; height: auto; max-height: 400px; object-fit: cover; }
.post-actions { display: flex; padding: 12px 15px; font-size: 22px; }
.post-actions i { margin-right: 15px; cursor: pointer; color: var(--text-main); }
.post-actions .save-icon { margin-left: auto; margin-right: 0; }
.post-details { padding: 0 15px 15px 15px; }
.post-text { margin: 0 0 10px 0; font-size: 14px; line-height: 1.4; color: var(--text-main); }
.post-stats { display: flex; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.post-stats span { margin-right: 15px; display: flex; align-items: center; }
.post-stats span i { margin-right: 5px; }
.nav-profile-pic { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--text-main); }

/* Chat Styles */
.chat-header { display: flex; align-items: center; padding: 10px 20px 15px 20px; border-bottom: 1px solid var(--border-color); background: var(--bg-color); z-index: 10; }
.back-btn { color: var(--text-main); font-size: 18px; text-decoration: none; margin-right: 15px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 12px; }
.chat-user-info { flex: 1; }
.chat-user-info h4 { margin: 0; font-size: 16px; color: var(--text-main); }
.chat-user-info span { font-size: 12px; color: var(--text-muted); }
.chat-actions { display: flex; gap: 20px; color: var(--text-main); font-size: 18px; }
.chat-content { padding: 20px; background: var(--bg-color); display: flex; flex-direction: column; overflow-y: auto; height: calc(100vh - 200px); }
.chat-date { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.chat-message { display: flex; margin-bottom: 15px; max-width: 85%; }
.chat-message.received { align-self: flex-start; }
.chat-message.sent { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; margin: 0 10px 0 0; align-self: flex-end; }
.chat-message.sent .msg-avatar { margin: 0 0 0 10px; }
.msg-bubble { padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.chat-message.received .msg-bubble { background: #f1f1f1; color: var(--text-main); border-bottom-left-radius: 4px; }
.chat-message.sent .msg-bubble { background: #000; color: #fff; border-bottom-right-radius: 4px; }
.msg-status { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 5px; padding-right: 15px; }
.chat-input-area { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; align-items: center; padding: 10px 20px; background: var(--bg-color); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--border-color); }
.action-icon { font-size: 20px; color: var(--text-main); padding: 10px; }
.input-wrapper { flex: 1; position: relative; margin: 0 10px; }
.input-wrapper input { width: 100%; padding: 12px 40px 12px 15px; border-radius: 20px; border: 1px solid var(--border-color); background: #f9f9f9; font-size: 15px; box-sizing: border-box; }
.input-wrapper input:focus { outline: none; border-color: #ccc; }
.emoji-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 20px; }

/* Booking Styles */
.map-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.map-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.map-marker { position: absolute; background: #fff; padding: 5px 10px; border-radius: 20px; font-weight: 600; font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.map-marker.active { background: #000; color: #fff; transform: scale(1.1); z-index: 2; }
.booking-search-area { position: absolute; top: 60px; left: 0; right: 0; padding: 0 20px; z-index: 10; }
.booking-search-box { background: #fff; border-radius: 30px; padding: 10px 20px; display: flex; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 15px; }
.booking-search-box .search-text { flex: 1; display: flex; flex-direction: column; margin-left: 15px; }
.booking-search-box .search-text strong { font-size: 14px; color: var(--text-main); }
.booking-search-box .search-text span { font-size: 12px; color: var(--text-muted); }
.edit-icon { color: var(--text-muted); font-size: 14px; }
.booking-filters { display: flex; align-items: center; gap: 10px; }
.filter-btn { background: #fff; padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: 500; box-shadow: 0 2px 10px rgba(0,0,0,0.05); cursor: pointer; }
.filter-btn i { margin-right: 5px; }
.results-count { margin-left: auto; font-size: 12px; color: var(--text-main); font-weight: 600; background: rgba(255,255,255,0.8); padding: 5px 10px; border-radius: 10px; }
.booking-cards-scroll { position: absolute; bottom: 80px; left: 0; right: 0; z-index: 10; display: flex; overflow-x: auto; padding: 0 20px 20px 20px; gap: 15px; scrollbar-width: none; }
.booking-cards-scroll::-webkit-scrollbar { display: none; }
.booking-card { background: #fff; border-radius: 16px; min-width: 85%; box-shadow: 0 5px 20px rgba(0,0,0,0.15); overflow: hidden; }
.b-card-img { height: 160px; position: relative; }
.b-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dots-indicator { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.dot { width: 6px; height: 6px; background: rgba(255,255,255,0.5); border-radius: 50%; }
.dot.active { background: #fff; }
.b-card-info { padding: 15px; }
.b-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.b-title-row h4 { margin: 0; font-size: 16px; color: var(--text-main); }
.rating { font-size: 13px; font-weight: 600; }
.rating i { color: #000; margin-right: 3px; }
.b-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; }
.b-price-row { display: flex; justify-content: space-between; align-items: center; }
.b-price { font-size: 18px; font-weight: 700; color: var(--text-main); }
.b-price span { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.b-select-btn { background: #000; color: #fff; border: none; padding: 8px 20px; border-radius: 20px; font-weight: 600; font-size: 14px; cursor: pointer; }
