﻿/* ============================================================
   BMpro - CSS GLOBAL (FULL MOBILE FRIENDLY)
   Digunakan oleh: SEMUA HALAMAN (index, search, detail, dll)
   ============================================================ */

/* ============================================================
   RESET & ROOT
   ============================================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #c41e3a;
    --light: #ecf0f1;
    --dark: #1a252f;
    --gray: #7f8c8d;
    --shadow: 0 4px 12px rgba(0,0,0,0.15);
    --home-bg: #f4f6f9;
    --home-surface: #ffffff;
    --home-blue: #2563eb;
    --home-blue-soft: rgba(37, 99, 235, 0.1);
    --mobile-max: 430px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
  }
  
  /* ============================================================
     MOBILE FIRST - BASE
     ============================================================ */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  body {
    font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
    background: #f4f6f9;
    color: #2c3e50;
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
    max-width: 100vw;
    min-height: 100dvh;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
  }
  
  /* ============================================================
     MOBILE SHELL - Container utama SEMUA HALAMAN
     ============================================================ */
     .mobile-shell {
      width: 100%;
      max-width: 430px;
      margin: 0 auto;
      min-height: 100dvh;
      background: #f4f6f9;
      position: relative;
      overflow-x: hidden;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
  
  /* Desktop frame */
  @media (min-width: 431px) {
    body {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      background: #0f172a;
    }
    .mobile-shell {
      box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 64px rgba(0,0,0,0.45);
      min-height: 100dvh;
    }
  }
  
  /* ============================================================
     TOUCH FEEDBACK - SEMUA elemen interaktif
     ============================================================ */
  button:active,
  a:active,
  .nav-item:active,
  .back-btn:active,
  .share-btn:active,
  .btn-call:active,
  .btn-wa:active,
  .btn-booking:active,
  .filter-tab:active,
  .property-card:active,
  .hamburger-btn:active,
  .close-modal:active,
  .btn-edit:active,
  .btn-delete:active,
  .btn-save:active,
  .btn-reset:active,
  .btn-apply:active {
    transform: scale(0.97);
    opacity: 0.85;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }
  
  /* ============================================================
     BOTTOM NAVIGATION - FIXED (SEMUA HALAMAN)
     ============================================================ */
  .home-fixed-nav {
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100vw - 16px), calc(var(--mobile-max) - 16px));
    bottom: max(6px, env(safe-area-inset-bottom, 0px));
    margin: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    padding: 5px 10px;
    z-index: 3000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
  }
  
  .home-fixed-nav .nav-item {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    font-size: 0.52rem;
    font-weight: 500;
    gap: 1px;
    padding: 3px 9px;
    margin: 0 2px;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
  }
  
  .home-fixed-nav .nav-item.active {
    color: var(--home-blue);
    background: var(--home-blue-soft);
  }
  
  .home-fixed-nav .nav-item i {
    font-size: 0.95rem;
    margin-bottom: 1px;
    line-height: 1;
  }
  
  .home-fixed-nav .nav-item span {
    line-height: 1.1;
    letter-spacing: 0.01em;
  }
  
  /* ============================================================
     HEADER
     ============================================================ */
  .mobile-header {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 280px;
    max-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.55)), 
                url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=800&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  
  .header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(44,62,80,0.6) 0%, rgba(52,152,219,0.3) 100%);
  }
  
  .hamburger-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .hamburger-btn i {
    font-size: 22px;
    color: var(--primary);
  }
  
  .header-content {
    position: absolute;
    bottom: 28px;
    left: 0; right: 0;
    padding: 0 20px;
    color: white;
    z-index: 5;
  }
  
  .header-content .badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  
  .header-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  }
  
  .header-content p {
    font-size: 0.85rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  /* ============================================================
     SIDEBAR MENU
     ============================================================ */
  .menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .sidebar-menu {
    position: fixed;
    top: 0;
    width: min(300px, 85%);
    max-width: 300px;
    height: 100%;
    height: 100dvh;
    left: -100%;
    right: auto;
    z-index: 2000;
    background: var(--home-surface);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  
  .sidebar-menu.active {
    left: 0;
  }
  
  .sidebar-header {
    padding: 20px 16px 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
  }
  
  .sidebar-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  
  .sidebar-logo {
    width: 45px;
    height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
  }
  
  .sidebar-logo img {
    width: 70%;
    height: 70%;
    object-fit: cover;
  }
  
  .sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
  }
  
  .sidebar-header p {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-left: 60px;
  }
  
  .sidebar-nav {
    padding: 8px 0;
  }
  
  .menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
  }
  
  .menu-item:active {
    background: var(--home-bg);
  }
  
  .menu-item i {
    width: 22px;
    color: var(--secondary);
    font-size: 1rem;
  }
  
  .sidebar-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    font-size: 0.65rem;
    color: var(--gray);
    text-align: center;
  }
  
  /* ============================================================
     SEARCH BAR
     ============================================================ */
  .search-section {
    padding: 12px 12px 6px;
    margin-top: -18px;
    position: relative;
    z-index: 10;
  }
  
  .search-box {
    background: white;
    border-radius: 30px;
    padding: 2px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.04);
    min-width: 0;
  }
  
  .search-box i {
    color: var(--gray);
    font-size: 0.8rem;
    margin-left: 8px;
    margin-right: 2px;
    flex-shrink: 0;
  }
  
  .search-box input {
    flex: 1;
    border: none;
    padding: 8px 2px;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    background: transparent;
    min-width: 0;
  }
  
  .search-box input::placeholder {
    color: #bdc3c7;
    font-size: 0.7rem;
  }
  
  .search-box button {
    background: var(--secondary);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.65rem;
    cursor: pointer;
    white-space: nowrap;
    margin: 1px;
    flex-shrink: 0;
  }
  
  .search-box .filter-btn-inside {
    background: transparent;
    color: var(--gray);
    border: none;
    padding: 6px 8px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    margin: 1px;
    flex-shrink: 0;
  }
  
  .search-box .filter-btn-inside i {
    font-size: 0.8rem;
    margin: 0;
    color: var(--gray);
  }
  
  /* ============================================================
     SECTION CONTAINER
     ============================================================ */
  .section-container {
    padding: 18px 14px;
    overflow: hidden;
    max-width: 100%;
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
  }
  
  .section-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .section-header h4 i {
    color: var(--accent);
    font-size: 1rem;
  }
  
  .section-header a {
    color: var(--secondary);
    font-size: 0.75rem;
    text-decoration: none;
  }
  
  /* ============================================================
     PROPERTY CARDS
     ============================================================ */
  .property-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  .property-card:active {
    transform: scale(0.98);
  }
  
  .card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
  }
  
  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
  }
  
  .tab-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
  }
  
  .favorite-page {
    min-height: 100vh;
    background: #f8f9fa;
  }
  
  .favorite-header {
    background: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .favorite-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .favorite-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .card-content {
    padding: 14px;
  }
  
  .property-price {
    font-size: 1.10rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
    line-height: 1.2;
  }
  
  .property-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .property-viewers {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    margin-bottom: 6px;
  }
  
  .property-viewers i {
    color: var(--secondary);
    font-size: 11px;
  }
  
  .property-address {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray);
    font-size: 0.7rem;
    margin-bottom: 10px;
  }
  
  .property-address i {
    color: var(--secondary);
    font-size: 0.65rem;
  }
  
  .property-features {
    display: flex;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
  }
  
  .feature {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #666;
  }
  
  .feature i {
    color: var(--secondary);
    font-size: 0.8rem;
  }
  
  /* ============================================================
     CAROUSEL / SLIDER
     ============================================================ */
  .featured-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 8px;
    padding: 4px 0 8px 0;
  }
  
  .carousel-container {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
  }
  
  .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 8px 4px 12px 4px;
  }
  
  .carousel-slide .property-card {
    margin: 0;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: none;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .carousel-slide .property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  }
  
  .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 4px;
  }
  
  .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s;
    cursor: pointer;
  }
  
  .carousel-dot.active {
    width: 20px;
    border-radius: 10px;
    background: var(--secondary);
  }
  
  .carousel-arrow {
    position: absolute;
    top: 0;
    bottom: 55%;
    height: 26px;
    width: 26px;
    margin: auto 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: background 0.2s ease;
  }
  
  .carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.85);
  }
  
  .carousel-arrow.prev { left: 6px; }
  .carousel-arrow.next { right: 6px; }
  
  .carousel-arrow i {
    font-size: 0.7rem;
    color: rgba(44, 62, 80, 0.7);
    transition: color 0.2s ease;
  }
  
  .carousel-arrow:hover i {
    color: rgba(44, 62, 80, 1);
  }
  
  /* ============================================================
     GALERI GRID
     ============================================================ */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .gallery-item .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: white;
    padding: 8px 6px 6px;
    font-size: 0.65rem;
    font-weight: 500;
  }
  
  /* ============================================================
     FILTER SHEET (search.html)
     ============================================================ */
  .filter-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: min(100%, var(--mobile-max));
    background: var(--home-surface);
    border-radius: 24px 24px 0 0;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 30px rgba(15, 23, 42, 0.15);
    z-index: 4000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 75vh;
    overflow-y: auto;
  }
  
  .filter-sheet.active {
    transform: translateX(-50%) translateY(0);
  }
  
  .filter-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  .filter-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .filter-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .filter-sheet-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
  }
  
  .filter-sheet-header h4 i {
    margin-right: 8px;
    color: var(--secondary);
  }
  
  .filter-sheet-header .close-filter {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home-bg);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--primary);
    border: none;
  }
  
  .filter-group {
    margin-bottom: 18px;
  }
  
  .filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--primary);
  }
  
  .filter-group select,
  .filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    background: white;
    appearance: none;
    -webkit-appearance: none;
  }
  
  .filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475669' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
  }
  
  .range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .range-inputs input {
    flex: 1;
  }
  
  .range-inputs span {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.85rem;
  }
  
  .filter-sheet-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 4px;
  }
  
  .btn-reset {
    flex: 1;
    background: var(--home-bg);
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
  }
  
  .btn-apply {
    flex: 1;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  }
  
  /* ============================================================
     DETAIL PAGE (detail.html)
     ============================================================ */
  .detail-main-image {
    width: 100%;
    height: 280px;
    position: relative;
  }
  
  .detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .image-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
  }
  
  .detail-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .detail-thumbnails::-webkit-scrollbar {
    display: none;
  }
  
  .thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
  }
  
  .thumbnail.active {
    border-color: var(--secondary);
  }
  
  .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .detail-info {
    background: white;
    padding: 20px 16px;
    margin-top: 8px;
  }
  
  .detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
  }
  
  .detail-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .detail-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 16px;
  }
  
  .detail-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
  }
  
  .detail-feature i {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 4px;
  }
  
  .detail-feature .value {
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .detail-feature .label {
    font-size: 0.6rem;
    color: var(--gray);
  }

  .youtube-wrapper {
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }

  .youtube-wrapper iframe {
    width: 100%;
    height: 220px;
    display: block;
    border: none;
  }
  
  .detail-description {
    background: white;
    padding: 20px 16px;
    margin-top: 8px;
  }
  
  .detail-description h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  
  .detail-description p {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-line;
    word-wrap: break-word;
  }
  
  .detail-specs {
    background: white;
    padding: 20px 16px;
    margin-top: 8px;
  }
  
  .spec-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .spec-label {
    width: 120px;
    color: var(--gray);
    font-size: 0.8rem;
  }
  
  .spec-value {
    flex: 1;
    font-weight: 500;
    font-size: 0.85rem;
  }
  
  .detail-contact {
    background: white;
    padding: 20px 16px;
    margin-top: 8px;
    margin-bottom: 20px;
  }
  
  .detail-contact h3 {
    margin-bottom: 12px;
  }
  
  .contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
  }
  
  .btn-wa {
    flex: 1;
    background: #25D366;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
  }
  
  .btn-call {
    flex: 1;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
  }

  .btn-booking {
    width: 100%;
    margin-top: 12px;
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
  }
  
  .share-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
  }
  
  .share-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  
  .share-btn i {
    font-size: 1rem;
  }
  
  
  /* ============================================================
     LOADING & EMPTY STATE
     ============================================================ */
  .loading {
    text-align: center;
    padding: 40px 16px;
    color: var(--gray);
  }
  
  .loading i {
    font-size: 1.8rem;
    color: var(--secondary);
    animation: spin 1s linear infinite;
    display: block;
    margin-bottom: 10px;
  }
  
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  .empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
  }
  
  .empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 12px;
    display: block;
  }
  
  .empty-state p {
    color: var(--gray);
    font-size: 0.85rem;
  }
  
  /* ============================================================
     RESPONSIVE BREAKPOINTS
     ============================================================ */
  
  /* Layar sangat kecil (<430px) */
  @media (max-width: 430px) {
    body {
      font-size: 13px;
    }
    
    .mobile-shell {
      padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
    
    .home-fixed-nav {
      width: calc(100vw - 16px);
      padding: 4px 8px;
    }
    
    .home-fixed-nav .nav-item {
      font-size: 0.48rem;
      min-height: 36px;
      padding: 2px 6px;
    }
    
    .home-fixed-nav .nav-item i {
      font-size: 0.85rem;
    }
    
    .header-content h1 {
      font-size: 1.4rem;
    }
    
    .detail-price {
      font-size: 1.2rem;
    }
    
    .property-price {
      font-size: 0.95rem;
    }
    
    .detail-features {
      gap: 10px;
    }
    
    .filter-sheet {
      padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    }
  }
  
  /* Layar sangat kecil (<360px) */
  @media (max-width: 360px) {
    .home-fixed-nav .nav-item span {
      font-size: 0.4rem;
    }
    
    .home-fixed-nav .nav-item i {
      font-size: 0.75rem;
    }
    
    .home-fixed-nav .nav-item {
      font-size: 0.42rem;
      min-height: 32px;
      padding: 2px 4px;
    }
    
    .property-features {
      flex-wrap: wrap;
      gap: 6px;
    }
    
    .detail-features {
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
    }
    
    .contact-buttons {
      flex-direction: column;
    }
  }
  
  /* Tablet (480px - 768px) */
  @media (min-width: 481px) and (max-width: 768px) {
    .header-content h1 { 
      font-size: 2rem; 
    }
    .property-title { 
      font-size: 1rem; 
    }
    .property-price { 
      font-size: 1.35rem; 
    }
    .property-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
    }
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Desktop (768px - 1024px) */
  @media (min-width: 769px) and (max-width: 1024px) {
    .property-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    .gallery-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* Desktop besar (>1024px) */
  @media (min-width: 1025px) {
    .property-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }
    .gallery-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  /* ============================================================
     MODAL (Untuk listing.html edit modal)
     ============================================================ */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    height: 100vh;
    width: 100vw;
  }
  
  .modal-content {
    background: white;
    border-radius: 24px;
    max-width: 550px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    z-index: 10000;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
  }
  
  .close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
  }
  
  .modal-form-group {
    margin-bottom: 15px;
  }
  
  .modal-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
  }
  
  .modal-form-group input,
  .modal-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
  }
  
  .image-upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
  }
  
  .image-preview-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  
  .preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
  }
  
  .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
    padding: 2px;
    color: white;
  }
  
  .preview-label.old {
    background: var(--secondary);
  }
  
  .preview-label.new {
    background: #27ae60;
  }
  
  .section-divider {
    font-weight: 700;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    color: var(--primary);
  }
  
  .btn-save {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
  }
  
  .btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  /* ============================================================
     TOAST NOTIFICATION
     ============================================================ */
  .toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    z-index: 200;
    display: none;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
  }
  
  /* ============================================================
     SCROLLBAR HIDE (Mobile)
     ============================================================ */
  ::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }

  .register-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 20px;
}

.register-header {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 20px;
}

.register-header h1 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.register-header p {
  color: var(--gray);
  font-size: 0.75rem;
}

.register-form {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: block;
}

.register-form.hidden {
  display: none;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary);
}

.btn-register {
  width: 100%;
  padding: 10px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Poppins', sans-serif;
  margin-top: 4px;
}

.btn-register:active {
  background: #2980b9;
}

.btn-login {
  width: 100%;
  padding: 10px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Poppins', sans-serif;
  margin-top: 4px;
}

.btn-login:active {
  background: #219a52;
}

.toggle-link {
  text-align: center;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--gray);
}

.toggle-link a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.success-message {
  display: none;
  text-align: center;
  padding: 30px;
}

.success-message i {
  font-size: 3rem;
  color: #27ae60;
  margin-bottom: 12px;
}

.success-message h2 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.success-message p {
  color: var(--gray);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.btn-back {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.8rem;
}


/* ============================================================
     REGISTER PAGE
     ============================================================ */ 
     .register-page {
      min-height: 100vh;
      background: #f8f9fa;
      padding: 20px;
    }
    
    .register-header {
      text-align: center;
      margin-bottom: 20px;
      margin-top: 20px;
    }
    
    .register-header h1 {
      font-size: 1.2rem;
      color: var(--primary);
      margin-bottom: 6px;
    }
    
    .register-header p {
      color: var(--gray);
      font-size: 0.75rem;
    }
    
    .register-form {
      background: white;
      padding: 20px;
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.06);
      display: block;
    }
    
    .register-form.hidden {
      display: none;
    }
    
    .form-group {
      margin-bottom: 16px;
    }
    
    .form-group label {
      display: block;
      font-size: 0.75rem;
      font-weight: 500;
      margin-bottom: 6px;
      color: var(--primary);
    }
    
    .form-group input {
      width: 100%;
      padding: 10px 14px;
      border: 2px solid #e0e0e0;
      border-radius: 10px;
      font-family: 'Poppins', sans-serif;
      font-size: 0.8rem;
      transition: border-color 0.2s;
    }
    
    .form-group input:focus {
      outline: none;
      border-color: var(--secondary);
    }
    
    .btn-register {
      width: 100%;
      padding: 10px;
      background: var(--secondary);
      color: white;
      border: none;
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      transition: background 0.2s;
      font-family: 'Poppins', sans-serif;
      margin-top: 4px;
    }
    
    .btn-register:active {
      background: #2980b9;
    }
    
    .btn-login {
      width: 100%;
      padding: 10px;
      background: #27ae60;
      color: white;
      border: none;
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      transition: background 0.2s;
      font-family: 'Poppins', sans-serif;
      margin-top: 4px;
    }
    
    .btn-login:active {
      background: #219a52;
    }
    
    .toggle-link {
      text-align: center;
      margin-top: 14px;
      font-size: 0.75rem;
      color: var(--gray);
    }
    
    .toggle-link a {
      color: var(--secondary);
      text-decoration: none;
      font-weight: 500;
      cursor: pointer;
    }
    
    .success-message {
      display: none;
      text-align: center;
      padding: 30px;
    }
    
    .success-message i {
      font-size: 3rem;
      color: #27ae60;
      margin-bottom: 12px;
    }
    
    .success-message h2 {
      color: var(--primary);
      font-size: 1.1rem;
      margin-bottom: 6px;
    }
    
    .success-message p {
      color: var(--gray);
      font-size: 0.8rem;
      margin-bottom: 16px;
    }
    
    .btn-back {
      display: inline-block;
      padding: 10px 20px;
      background: var(--primary);
      color: white;
      text-decoration: none;
      border-radius: 10px;
      font-weight: 500;
      font-size: 0.8rem;
    }


    /* ============================================================
   NOTIF DETAIL PAGE - Tambahan untuk notif_detail.html
   ============================================================ */

.detail-page { padding-bottom: 20px; }

.detail-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 100;
}

.back-btn {
  color: var(--primary);
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f0f0;
  text-decoration: none;
}

.detail-header h2 { font-size: 1rem; font-weight: 600; flex: 1; }

.loading { text-align: center; padding: 60px 20px; }
.loading i { font-size: 2rem; color: var(--secondary, #3498db); margin-bottom: 12px; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3rem; color: #ccc; margin-bottom: 16px; }

.detail-main-image { position: relative; width: 100%; height: 320px; background: #f0f0f0; }
.detail-main-image img { width: 100%; height: 100%; object-fit: cover; }

.image-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); color: white; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; }

.detail-thumbnails { display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: white; border-bottom: 1px solid #eee; }
.thumbnail { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.7; }
.thumbnail.active { border-color: var(--secondary, #3498db); opacity: 1; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { padding: 20px; background: white; }
.detail-price { font-size: 1.6rem; font-weight: 700; color: var(--secondary, #3498db); margin-bottom: 8px; }
.detail-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; color: #2c3e50; }
.detail-location { font-size: 0.8rem; color: #7f8c8d; margin-bottom: 16px; }
.detail-location i { margin-right: 6px; }

.detail-features { display: flex; gap: 20px; padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.detail-feature { text-align: center; flex: 1; }
.detail-feature i { font-size: 1.3rem; color: var(--secondary, #3498db); margin-bottom: 5px; }
.detail-feature .value { font-weight: 700; font-size: 1rem; }
.detail-feature .label { font-size: 0.7rem; color: #7f8c8d; }

.detail-description { padding: 20px; background: white; margin-top: 10px; }
.detail-description h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; color: #2c3e50; }
.detail-description p { font-size: 0.8rem; color: #555; line-height: 1.5; }

.detail-specs { padding: 20px; background: white; margin-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.spec-item { display: flex; justify-content: space-between; font-size: 0.8rem; }
.spec-label { color: #7f8c8d; }
.spec-value { font-weight: 500; color: #2c3e50; }

.detail-contact { padding: 20px; background: white; margin-top: 10px; margin-bottom: 80px; }
.contact-buttons { display: flex; gap: 12px; }

.btn-call, .btn-wa { 
  flex: 1; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: 12px; 
  border-radius: 40px; 
  text-decoration: none; 
  font-weight: 500; 
  font-size: 0.85rem; 
}
.btn-call { background: #2c3e50; color: white; }
.btn-wa { background: #25D366; color: white; }

/* Modern action buttons on the property detail page. */
.detail-contact .share-btn,
.detail-contact .btn-call,
.detail-contact .btn-wa,
.detail-contact .btn-booking {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.detail-contact .share-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

.detail-contact .share-btn i {
  color: #dc2626;
}

.detail-contact .btn-call {
  background: #0f172a;
}

.detail-contact .btn-wa {
  background: #16a34a;
}

.detail-contact .btn-booking {
  background: #2563eb;
}

.detail-contact .share-btn:hover,
.detail-contact .btn-call:hover,
.detail-contact .btn-wa:hover,
.detail-contact .btn-booking:hover {
  filter: brightness(1.04);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

.detail-viewer {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
  margin-bottom: 10px;
}

.posted-date {
  padding: 10px 16px 6px;
  font-size: 11px;
  color: #777;
  font-weight: 500;
}

.youtube-preview {
  padding: 14px 16px 4px;
  background: #fff;
}

.youtube-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.youtube-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   PROFIL
   ============================================================ */

.profile-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding-top: 20px;
}

.profile-header {
  background: white;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.profile-header h2 {
  font-size: 1rem;
  font-weight: 600;
}

.profile-content {
  padding: 16px;
}

.profile-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.profile-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.profile-phone {
  color: var(--gray);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.profile-info {
  background: white;
  border-radius: 16px;
  padding: 14px;
  margin-top: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.profile-info .spec-item {
  padding: 8px 0;
}

.profile-info .spec-label {
  font-size: 0.75rem;
}

.profile-info .spec-value {
  font-size: 0.8rem;
}

.btn-logout {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 16px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-logout:active {
  background: #c0392b;
}

.switch {
position: relative;
display: inline-block;
width: 48px;
height: 26px;
}

.switch input {
opacity: 0;
width: 0;
height: 0;
}

.slider {
position: absolute;
cursor: pointer;
inset: 0;
background-color: #ccc;
transition: .3s;
border-radius: 34px;
}

.slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .3s;
border-radius: 50%;
}

input:checked + .slider {
background-color: #25D366;
}

input:checked + .slider:before {
transform: translateX(22px);
}