/*
Theme Name: Mitra Properti
Theme URI: https://mitrakaryaproperti.com
Author: Mitra Karya Properti
Author URI: https://mitrakaryaproperti.com
Description: Tema WordPress modern seperti aplikasi mobile untuk perusahaan properti. Desain clean, elegan, dengan dominasi warna biru putih. Kompatibel dengan WordPress 7.1+ dan PHP 8.5+.
Version: 4.1.0
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mitra-properti
Tags: properti, real-estate, modern, app-like, mobile-first, blue-white, clean-design, php8, wordpress7
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e63d6;
    --primary-dark: #0a3d91;
    --primary-light: #3b82f6;
    --primary-bg: #e8f0fe;
    --accent: #2563eb;
    --white: #ffffff;
    --bg-gray: #f5f7fb;
    --text-dark: #1a202c;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(30, 99, 214, 0.1);
    --shadow-lg: 0 8px 24px rgba(30, 99, 214, 0.15);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Poppins', Roboto, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* ============================================
   APP HEADER
   ============================================ */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-center {
    flex: 1;
    text-align: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    background: var(--bg-gray);
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
    transform: scale(1.05);
}

.icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--white);
}

.app-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-gray);
    font-weight: 500;
}

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================
   HAMBURGER SIDEBAR
   ============================================ */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar-user-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.sidebar-user-info p {
    font-size: 0.8rem;
    opacity: 0.85;
}

.sidebar-nav {
    padding: 16px 0;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-nav a i {
    width: 22px;
    text-align: center;
    color: var(--primary);
    font-size: 1.05rem;
}

.sidebar-nav a:hover {
    background: var(--primary-bg);
    color: var(--primary);
    padding-left: 26px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    margin: 16px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 220px;
    box-shadow: var(--shadow-lg);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 99, 214, 0.92) 0%, rgba(10, 61, 145, 0.88) 100%);
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=800');
    background-size: cover;
    background-position: center right;
    opacity: 0.35;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 28px 24px;
    color: var(--white);
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.hero-title span {
    color: #93c5fd;
}

.hero-desc {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 280px;
}

.hero-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-feature i {
    color: #93c5fd;
    font-size: 0.9rem;
}

/* ============================================
   QUICK MENU
   ============================================ */
.quick-menu {
    padding: 8px 16px 20px;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: var(--white);
    padding: 20px 12px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.quick-menu-item:hover {
    transform: translateY(-3px);
}

.quick-menu-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-bg) 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
}

.quick-menu-item:hover .quick-menu-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.quick-menu-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
}

.quick-menu-sublabel {
    font-size: 0.6rem;
    color: var(--text-light);
    text-align: center;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.section-title i {
    color: var(--primary);
    font-size: 1.2rem;
}

.see-all {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.see-all:hover {
    color: var(--primary-dark);
}

.see-all i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.see-all:hover i {
    transform: translateX(3px);
}

/* ============================================
   PROPERTY CARDS
   ============================================ */
.property-section {
    padding-bottom: 20px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.property-image {
    position: relative;
    height: 130px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #bfdbfe 100%);
    overflow: hidden;
}

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

.property-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 2;
}

.property-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: 2;
    transition: var(--transition);
}

.property-favorite:hover,
.property-favorite.active {
    color: #ef4444;
    background: var(--white);
    transform: scale(1.1);
}

.property-favorite.active i {
    font-weight: 900;
}

.property-location {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-gray);
    z-index: 2;
}

.property-location i {
    color: var(--primary);
    font-size: 0.7rem;
}

.property-body {
    padding: 12px;
}

.property-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-type {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.property-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.property-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--text-gray);
    font-weight: 500;
}

.property-feature i {
    color: var(--primary);
    font-size: 0.7rem;
}

.property-arrow {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    transition: var(--transition);
}

.property-card:hover .property-arrow {
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
}

.property-card {
    position: relative;
}

/* ============================================
   MITRA BANNER
   ============================================ */
.mitra-banner {
    margin: 8px 16px 24px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.mitra-banner-content {
    padding: 24px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mitra-banner-text h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1.3;
}

.mitra-banner-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}

.mitra-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.mitra-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mitra-banner-btn i {
    font-size: 0.75rem;
}

.mitra-banner-visual {
    font-size: 4rem;
    opacity: 0.25;
    display: none;
}

@media (min-width: 480px) {
    .mitra-banner-visual {
        display: block;
    }
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    max-width: 480px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .bottom-nav-inner {
        max-width: 600px;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 6px 4px;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
    transition: var(--transition);
}

.bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    transition: var(--transition);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item:hover i,
.bottom-nav-item.active i {
    transform: translateY(-2px);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 0 0 4px 4px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

@media (min-width: 480px) {
    .toast-container {
        left: auto;
        right: 20px;
        max-width: 320px;
    }
}

.toast {
    background: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slide-up 0.3s ease;
    border-left: 4px solid var(--primary);
    pointer-events: auto;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-icon {
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RIPPLE EFFECT
   ============================================ */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(30, 99, 214, 0.2);
    transform: scale(0);
    animation: ripple-animation 0.5s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   FAVORITE ANIMATION
   ============================================ */
@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.heart-pop {
    animation: heart-pop 0.3s ease;
}

/* ============================================
   WORDPRESS CONTENT STYLES
   ============================================ */
.site-main {
    padding: 20px 0;
}

.content-area {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px;
}

.entry-header {
    margin-bottom: 24px;
}

.entry-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.entry-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: var(--primary-dark);
    margin: 24px 0 12px;
    font-weight: 700;
}

/* ============================================
   FOOTER (Desktop)
   ============================================ */
.site-footer {
    display: none;
}

@media (min-width: 1024px) {
    .site-footer {
        display: block;
        background: var(--primary-dark);
        color: var(--white);
        padding: 40px 0 100px;
        margin-top: 40px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 32px;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .footer-widget h4 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 16px;
        color: var(--white);
    }

    .footer-widget ul li {
        margin-bottom: 10px;
    }

    .footer-widget ul li a {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.85rem;
    }

    .footer-widget ul li a:hover {
        color: var(--white);
    }
}

/* ============================================
   DESKTOP ENHANCEMENTS
   ============================================ */
@media (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }

    .bottom-nav {
        display: none;
    }

    .hero-section {
        max-width: 960px;
        margin: 24px auto;
        min-height: 300px;
    }

    .hero-content {
        padding: 48px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .quick-menu {
        max-width: 960px;
        margin: 0 auto;
    }

    .quick-menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
        padding: 28px 20px;
    }

    .section-header {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 24px 20px;
    }

    .property-section {
        max-width: 960px;
        margin: 0 auto;
    }

    .property-grid {
        padding: 0 24px;
    }

    .mitra-banner {
        max-width: 960px;
        margin: 16px auto 32px;
    }
}

/* ============================================
   WORDPRESS CORE
   ============================================ */
.aligncenter {
    display: block;
    margin: 24px auto;
}

.alignleft {
    float: left;
    margin: 0 24px 24px 0;
}

.alignright {
    float: right;
    margin: 0 0 24px 24px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    margin-top: 8px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Posts Navigation */
.posts-navigation {
    margin: 32px 0;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.nav-links a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
