:root {
    --ios-bg: #f2f2f7;
    --ios-system-blue: #007aff;
    --ios-system-gray: #8e8e93;
    --ios-glass: rgba(255, 255, 255, 0.7);
    --ios-glass-dark: rgba(28, 28, 30, 0.8);
    --ios-blur: blur(20px);
    --ios-radius: 20px;
    --ios-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body.dark-mode {
    --ios-bg: #000000;
    --ios-glass: rgba(28, 28, 30, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--ios-bg);
    transition: background-color 0.4s ease;
}

/* iOS Style Navbar (Floating) */
.navbar {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 72px;
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
    border-radius: 36px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--ios-shadow);
}

body.dark-mode .navbar {
    border: 0.5px solid rgba(255, 255, 255, 0.15);
}

.logo-container {
    padding: 0 24px;
    border-right: 0.5px solid rgba(0, 0, 0, 0.1);
    margin-right: 12px;
    display: flex;
    align-items: center;
}

body.dark-mode .logo-container {
    border-right: 0.5px solid rgba(255, 255, 255, 0.15);
}

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

.nav-btn-ios {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    color: var(--on-surface);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

body.dark-mode .nav-btn-ios {
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn-ios i { font-size: 1.1rem; color: var(--ios-system-blue); }
.nav-btn-ios:hover { background: rgba(0, 122, 255, 0.1); }
.nav-btn-ios.active { background: var(--ios-system-blue); color: #fff; }
.nav-btn-ios.active i { color: #fff; }

.back-btn {
    border: 1px solid var(--ios-system-blue);
    background: transparent;
    color: var(--ios-system-blue);
}

.hamburger-btn-ios {
    display: none;
    background: transparent;
    border: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--ios-system-blue);
    cursor: pointer;
    margin-left: auto;
}

.ios-mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.ios-mobile-menu-content {
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
    width: 90%;
    max-width: 300px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: iosMenuIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iosMenuIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ios-mobile-menu-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.ios-mobile-menu-body { padding: 8px; }

.ios-menu-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--on-surface);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
}
.ios-menu-item:active { background: rgba(0, 122, 255, 0.1); }
.ios-menu-item i { width: 24px; color: var(--ios-system-blue); }

.theme-toggle-ios {
    margin-left: 12px;
}

@media (max-width: 900px) {
    .nav-links-ios { display: none; }
    .hamburger-btn-ios { display: flex; }
    .navbar { 
        top: 12px; left: 12px; right: 12px; height: 64px; 
        padding: 0 12px;
    }
    .logo-container { padding: 0 8px; border: none; }
}

/* iOS Style Modals (Bottom Sheets) */
.modal {
    border-radius: var(--ios-radius) var(--ios-radius) 0 0;
    border: none;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    animation: iosSheetUp 0.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

@keyframes iosSheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-handle {
    width: 36px;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin: 8px auto 0 auto;
}

body.dark-mode .modal-handle {
    background: rgba(255, 255, 255, 0.2);
}

/* Video Player iOS Glass */
.player-overlay {
    background: #000;
}

.player-nav {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Buttons */
.btn-view {
    background: var(--ios-system-blue);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    padding: 8px 16px;
}

/* Map Adjustments */
#map {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

/* Search Bar iOS Style */
.search-input-container {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
}

body.dark-mode .search-input-container {
    background: rgba(255, 255, 255, 0.1);
}

.search-input {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 12px 10px 40px;
}

.search-icon {
    left: 12px;
}
