/* =========================================
   00. GOSAATH RENTALS THEME
   ========================================= */
.rentals-theme {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --dark: #1E293B;       
    --secondary: #64748B;  
    --bg-light: #F8FAFC;   
    --white: #FFFFFF;
    background-color: var(--bg-light);
    color: var(--dark);
    margin: 0;
    padding-top: 80px; 
}

.rental-view { display: none; }

/* =========================================
   01. HERO & SEARCH
   ========================================= */
.rental-hero { background: linear-gradient(135deg, var(--white) 0%, #F1F5F9 100%); padding: 80px 20px; text-align: center; border-bottom: 1px solid #E2E8F0; }
.rental-hero h1 { font-size: 42px; font-weight: 800; color: var(--dark); margin: 0 0 15px 0; }
.rental-hero p { font-size: 16px; color: var(--secondary); max-width: 600px; margin: 0 auto 40px auto; }
.rental-search-box { background: var(--white); padding: 15px 25px; border-radius: 50px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 700px; margin: 0 auto; border: 1px solid #E2E8F0; }
.search-field { display: flex; flex-direction: column; text-align: left; flex: 1; position: relative; }
.search-field label { font-size: 12px; font-weight: 800; color: var(--primary); text-transform: uppercase; margin-bottom: 5px; margin-left: 15px; }
.search-field input { padding: 15px 20px; border: 1px solid transparent; border-radius: 50px; outline: none; font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600; background: #F1F5F9; color: var(--dark); width: 100%; box-sizing: border-box; transition: 0.3s; }
.search-field input:focus { background: var(--white); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1); }
.rental-search-btn { background: var(--primary); color: var(--white); border: none; padding: 18px 35px; border-radius: 50px; font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.3s; height: 100%; margin-top: 15px; box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3); flex-shrink: 0; }
.rental-search-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.suggestions-dropdown { position: absolute; top: 100%; left: 0; width: 100%; z-index: 1000; background: white; border: 1px solid #E2E8F0; border-radius: 12px; max-height: 250px; overflow-y: auto; display: none; padding: 0; margin: 5px 0 0 0; list-style: none; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

/* =========================================
   02. CATEGORIES
   ========================================= */
.rental-container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; font-weight: 800; margin: 0 0 10px 0; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.cat-card { background: var(--white); padding: 30px; border-radius: 20px; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.03); border: 1px solid #E2E8F0; transition: 0.3s; cursor: pointer; }
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: #CBD5E1; }
.cat-icon { width: 70px; height: 70px; background: #F3E8FF; color: var(--primary); font-size: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 20px auto; transition: 0.3s; }
.cat-card:hover .cat-icon { background: var(--primary); color: white; transform: scale(1.1); }
.cat-card h3 { margin: 0 0 10px 0; font-size: 20px; font-weight: 800; }

/* =========================================
   03. HOST REGISTRATION FORM 
   ========================================= */
.host-form-container { max-width: 800px; margin: 40px auto; background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #E2E8F0; }
.form-section-title { font-size: 18px; color: var(--primary); font-weight: 800; border-bottom: 2px dashed #E2E8F0; padding-bottom: 10px; margin-top: 30px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.input-group { display: flex; flex-direction: column; }
.input-group label { font-size: 12px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; text-transform: uppercase; }
.input-group input, .input-group select { padding: 15px; border-radius: 12px; border: 1px solid #CBD5E1; outline: none; font-family: 'Poppins'; font-size: 14px; background: #F8FAFC; transition: 0.3s; }
.input-group input:focus, .input-group select:focus { border-color: var(--primary); background: white; }
.btn-upload { background: #F1F5F9; color: var(--dark); border: 1px dashed #CBD5E1; padding: 15px; width: 100%; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-upload:hover { border-color: var(--primary); color: var(--primary); background: #F3E8FF; }
.photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 15px; }
.photo-preview-box { width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid #E2E8F0; }
.photo-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.docs-upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.doc-upload-box { background: #F8FAFC; border: 2px dashed #CBD5E1; border-radius: 12px; padding: 20px 10px; text-align: center; cursor: pointer; position: relative; overflow: hidden; transition: 0.2s; }
.doc-upload-box:hover { border-color: var(--primary); background: #F3E8FF; }
.doc-upload-box i { font-size: 24px; color: var(--secondary); margin-bottom: 10px; display: block; transition: 0.2s; }
.doc-upload-box:hover i { color: var(--primary); }
.doc-upload-box span { font-size: 12px; font-weight: 700; color: var(--dark); }
.doc-upload-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.btn-submit-host { background: #10B981; color: white; border: none; padding: 20px; width: 100%; border-radius: 50px; font-size: 18px; font-weight: 800; cursor: pointer; margin-top: 40px; box-shadow: 0 10px 20px rgba(16,185,129,0.3); transition: 0.3s; }
.btn-submit-host:hover { background: #059669; transform: translateY(-3px); }

/* =========================================
   04. RESULTS & VEHICLE CARDS
   ========================================= */
.search-results-header { background: white; padding: 40px 20px; text-align: center; border-bottom: 1px solid #E2E8F0; box-shadow: 0 4px 6px rgba(0,0,0,0.02); position: relative; }
.search-results-header h1 { margin: 0; font-size: 32px; font-weight: 800; color: var(--dark); }
.btn-back-link { position: absolute; top: 20px; left: 20px; background: transparent; border: none; color: var(--secondary); font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Poppins', sans-serif; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-back-link:hover { color: var(--primary); transform: translateX(-3px); }
.results-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; min-height: 50vh; }
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.vehicle-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 1px solid #E2E8F0; transition: 0.3s; display: flex; flex-direction: column; position: relative;}
.vehicle-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15); border-color: var(--primary); }
.v-image { width: 100%; height: 200px; background: #F1F5F9; object-fit: cover; }
.v-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.v-title { margin: 0 0 5px 0; font-size: 20px; font-weight: 800; color: var(--dark); }
.v-type { font-size: 12px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: #F3E8FF; padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 15px; align-self: flex-start; }
.v-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px dashed #E2E8F0; padding-top: 15px; }
.v-price { font-size: 24px; font-weight: 800; color: var(--dark); line-height: 1; }
.v-price span { font-size: 12px; color: var(--secondary); font-weight: 600; }
.btn-book { background: var(--primary); color: white; border: none; padding: 12px 25px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-book:hover { background: #6D28D9; }
.btn-edit-ad { background: #F1F5F9; color: var(--dark); border: 1px solid #CBD5E1; padding: 10px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; position: absolute; top:15px; right:15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-edit-ad:hover { background: white; color: var(--primary); }

.empty-state { text-align: center; padding: 60px 20px; background: white; border-radius: 20px; border: 1px dashed #CBD5E1; }
.empty-state h2 { color: var(--dark); margin: 0 0 10px 0; font-weight: 800; }
.btn-back { background: var(--primary); color: white; border: none; padding: 15px 30px; border-radius: 50px; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.3s; margin-top: 20px; }

/* =========================================
   05. VEHICLE DETAILS
   ========================================= */
.detail-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-gallery img { width: 100%; height: 250px; object-fit: cover; border-radius: 16px; border: 1px solid #E2E8F0; }
.detail-gallery img:first-child { grid-column: span 2; height: 400px; }
.detail-info-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #E2E8F0; height: fit-content; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 25px 0; padding: 20px 0; border-top: 1px dashed #E2E8F0; border-bottom: 1px dashed #E2E8F0; }
.price-box { text-align: center; background: #F8FAFC; padding: 15px 10px; border-radius: 12px; }
.price-box span { font-size: 11px; font-weight: 700; color: var(--secondary); text-transform: uppercase; }
.price-box h3 { margin: 5px 0 0 0; font-size: 20px; color: var(--primary); font-weight: 800; }
.owner-box { background: #F3E8FF; padding: 20px; border-radius: 16px; border: 1px solid #E9D5FF; margin-bottom: 25px; }
.detail-actions { display: flex; gap: 15px; }
.btn-action { flex: 1; padding: 15px; border-radius: 50px; border: none; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-call { background: #F1F5F9; color: var(--dark); border: 1px solid #CBD5E1; }
.btn-chat { background: var(--primary); color: white; box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3); }

/* =========================================
   06. CHAT UI
   ========================================= */
.inbox-container { max-width: 800px; margin: 40px auto; background: white; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #E2E8F0; }
.inbox-item { display: flex; align-items: center; gap: 15px; padding: 20px; border-bottom: 1px solid #F1F5F9; cursor: pointer; transition: 0.2s; }
.inbox-item:hover { background: #F8FAFC; }
.inbox-pic { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #E2E8F0; }

.chat-header { background: var(--primary); padding: 15px 20px; color: white; display: flex; align-items: center; gap: 15px; box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2); z-index: 10; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; background: #F8FAFC; }
.chat-bubble { max-width: 75%; padding: 12px 18px; border-radius: 18px; font-size: 14px; line-height: 1.5; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.chat-bubble.sent { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble.received { background: white; color: var(--dark); border: 1px solid #E2E8F0; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-time { font-size: 10px; opacity: 0.8; margin-top: 5px; text-align: right; display: block; }
.chat-footer { background: white; padding: 15px 20px; display: flex; gap: 10px; align-items: center; border-top: 1px solid #E2E8F0; }
.chat-footer input { flex: 1; padding: 15px 20px; border-radius: 50px; border: 1px solid #CBD5E1; outline: none; font-size: 14px; font-family: 'Poppins', sans-serif; background: #F1F5F9; transition: 0.3s;}
.chat-footer input:focus { background: white; border-color: var(--primary); }
.chat-footer button { background: var(--primary); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);}

/* =========================================
   07. BOTTOM NAVIGATION
   ========================================= */
.rentals-bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08); display: flex; justify-content: space-around;
    align-items: center; padding: 10px 0 15px 0; z-index: 9000; border-top: 1px solid #E2E8F0;
}
.rentals-bottom-nav .nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: #94A3B8; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s; width: 60px;
}
.rentals-bottom-nav .nav-item.active { color: var(--primary); }
.rentals-bottom-nav .nav-item i { font-size: 22px; transition: 0.2s; }
.rentals-bottom-nav .nav-item.active i { transform: translateY(-2px); }
.rentals-bottom-nav .nav-sell { position: relative; top: -20px; color: var(--dark); }
.sell-btn {
    width: 55px; height: 55px; border-radius: 50%; background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: 0 10px 20px rgba(124,58,237,0.3); border: 5px solid #F8FAFC; transition: 0.3s;
}

@media screen and (max-width: 768px) {
    .rental-hero { padding: 40px 15px; }
    .rental-search-box { flex-direction: column; border-radius: 20px; padding: 20px; }
    .search-field { width: 100%; }
    .rental-search-btn { width: 100%; margin-top: 10px; border-radius: 12px; }
    .host-form-container { padding: 20px; margin: 20px 15px; }
    .btn-back-link { position: static; display: inline-block; margin-bottom: 15px; }
    .detail-container { grid-template-columns: 1fr; gap: 20px; padding: 20px; margin: 0; }
    
    /* 🟢 Fix Mobile Header Buttons */
    .nav-actions .btn-header { display: inline-flex !important; padding: 8px 12px; font-size: 12px; }
}
