/*
Theme Name: Astra Child
Template: astra
Version: 2.0
*/

/* =====================================================
   GLOBAL & VARIABLES
===================================================== */
:root {
    --bg-color: #f5f7fa;
    --text-main: #111827;
    --text-muted: #4b5563;
    --primary: #111827;
    --primary-hover: #374151;
    --border: #e5e7eb;
    --card-bg: #ffffff;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
}

h1, h2, h3, h4 { color: var(--text-main); margin-top: 0; line-height: 1.2; }

/* =====================================================
   HEADER & MENU (Kept mostly intact, refined colors)
===================================================== */
.site-header, .ast-primary-header-bar, .ast-main-header-wrap {
    background: var(--primary) !important; border: none !important;
}

#primary-menu, .main-header-menu, .ast-builder-menu {
    display: flex !important; flex-wrap: wrap !important; 
    align-items: center; justify-content: center; gap: 12px !important; 
    list-style: none; margin: 0; padding: 0;
}

#primary-menu a, .main-header-menu a, .ast-builder-menu a {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 18px !important; background: #1f2937 !important; 
    color: #ffffff !important; border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-md) !important; text-decoration: none !important;
    font-size: 15px; font-weight: 600; transition: all 0.3s ease; line-height: 1;
}

#primary-menu a:hover, .main-header-menu a:hover, 
#primary-menu li.current-menu-item > a {
    background: #ffffff !important; color: var(--text-main) !important;
    transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   LAYOUT CONTAINERS
===================================================== */
.property-container {
    width: 90%; max-width: 1200px; margin: 50px auto;
}

.properties-wrapper {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px;
}

/* =====================================================
   PROPERTY CARDS (Grid & List)
===================================================== */
.property-box {
    display: flex; flex-direction: column; background: var(--card-bg);
    border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); transition: all 0.3s ease; position: relative;
}

.property-box:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #d1d5db;
}

.property-box img {
    width: 100%; height: 240px; object-fit: cover; display: block;
}

.property-status {
    position: absolute; top: 15px; right: 15px;
    background: rgba(17, 24, 39, 0.85); color: #fff;
    padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    backdrop-filter: blur(4px);
}

.property-status.published { background: rgba(22, 163, 74, 0.85); }
.property-status.pending { background: rgba(217, 119, 6, 0.85); }

.property-box-content {
    padding: 24px; display: flex; flex-direction: column; flex-grow: 1;
}

.property-box-content h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px 0; }
.property-box-content p { font-size: 15px; color: var(--text-muted); margin: 0 0 8px 0; }
.property-box-content p strong { color: var(--text-main); font-weight: 600; }
.property-box-content .property-btn { margin-top: auto; align-self: flex-start; }

/* My Properties List View */
.my-properties-list .property-box {
    flex-direction: row; align-items: center; height: auto; padding: 15px; gap: 20px; margin-bottom: 20px;
}
.my-properties-list .property-box img {
    width: 200px; height: 150px; border-radius: 12px;
}
.my-properties-list .property-box-content { padding: 0; }

@media (max-width: 768px) {
    .my-properties-list .property-box { flex-direction: column; }
    .my-properties-list .property-box img { width: 100%; height: 200px; }
}

/* =====================================================
   SINGLE PROPERTY
===================================================== */
.single-property-wrapper {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
    background: var(--card-bg); border-radius: var(--radius-lg);
    padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--border);
}

.single-property h1 { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-bottom: 25px; grid-column: 1 / -1; }

.property-details-box {
    background: #f9fafb; padding: 25px; border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.property-details-box p {
    font-size: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px;
}
.property-details-box p:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

@media (max-width: 900px) {
    .single-property-wrapper { grid-template-columns: 1fr; padding: 20px; }
}

/* Slider Controls */
.property-slider-container {
    width: 100%; overflow: hidden; border-radius: var(--radius-md);
    position: relative; box-shadow: var(--shadow-sm);
}
.property-slider-wrapper { display: flex; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }
.property-slide { min-width: 100%; box-sizing: border-box; }
.property-slide img { width: 100%; height: 500px; object-fit: cover; display: block; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.9); border: none; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; font-size: 18px; font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: 0.3s; z-index: 10;
}
.slider-btn:hover { background: var(--primary); color: #fff; }
.slider-prev { left: 15px; }
.slider-next { right: 15px; }

/* =====================================================
   FORMS & BUTTONS
===================================================== */
.property-btn, button {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary); color: #ffffff !important; padding: 12px 24px;
    border: none; border-radius: var(--radius-md); text-decoration: none;
    font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.3s ease;
}

.property-btn:hover, button:hover {
    background: var(--primary-hover); transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(17, 24, 39, 0.2);
}

.property-form {
    background: var(--card-bg); padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); border: 1px solid var(--border); max-width: 800px; margin: 0 auto;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }

.property-form input[type="text"], .property-form input[type="tel"], 
.property-form textarea, .property-form select {
    width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid #d1d5db;
    border-radius: 10px; font-size: 15px; background: #f9fafb; transition: 0.3s ease; font-family: inherit;
}

.property-form input:focus, .property-form textarea:focus {
    outline: none; border-color: var(--primary); background: #ffffff;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.1);
}

/* File Upload Styling */
.file-upload-wrapper {
    border: 2px dashed #d1d5db; padding: 30px; text-align: center;
    border-radius: 10px; background: #f9fafb; cursor: pointer; transition: 0.3s;
}
.file-upload-wrapper:hover { border-color: var(--primary); background: #f3f4f6; }
.file-upload-wrapper input[type="file"] { margin-top: 10px; }

.success-message {
    background: #dcfce7; color: #166534; padding: 16px 20px; max-width: 800px;
    margin: 0 auto 30px auto; border-radius: 12px; font-weight: 600; border: 1px solid #bbf7d0; text-align: center;
}