/* RentDrive Pro — Main Stylesheet
   Design language: luxury minimal, glassmorphism, rounded UI. */

:root {
	--rdp-primary: #0f766e;
	--rdp-accent: #f59e0b;
	--rdp-bg: #f8fafc;
	--rdp-surface: #ffffff;
	--rdp-text: #0f172a;
	--rdp-text-muted: #64748b;
	--rdp-border: #e2e8f0;
	--rdp-radius-sm: 8px;
	--rdp-radius-md: 16px;
	--rdp-radius-lg: 28px;
	--rdp-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
	--rdp-font-bn: 'Noto Serif Bengali', serif;
	--rdp-font-en: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--rdp-font-bn), var(--rdp-font-en);
	background: var(--rdp-bg);
	color: var(--rdp-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

:lang(en) body { font-family: var(--rdp-font-en); }

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

a { color: inherit; text-decoration: none; }

.rdp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.rdp-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--rdp-border);
}
.rdp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
}
.rdp-menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.rdp-header-actions { display: flex; align-items: center; gap: 12px; }
.rdp-dark-toggle {
	background: none; border: none; font-size: 20px; cursor: pointer;
	width: 40px; height: 40px; border-radius: 50%;
}
.rdp-dark-toggle:hover { background: var(--rdp-bg); }

/* Buttons */
.rdp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 24px; border-radius: 999px; font-weight: 600;
	border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.rdp-btn:hover { transform: translateY(-2px); box-shadow: var(--rdp-shadow); }
.rdp-btn-primary { background: var(--rdp-primary); color: #fff; }
.rdp-btn-accent { background: var(--rdp-accent); color: #1a1a1a; }
.rdp-btn-sm { padding: 8px 16px; font-size: 14px; }
.rdp-btn-block { width: 100%; }

/* Hero */
.rdp-hero {
	padding: 80px 0 60px;
	background: linear-gradient(135deg, rgba(15,118,110,0.08), rgba(245,158,11,0.08));
}
.rdp-hero-title { font-size: clamp(28px, 5vw, 48px); margin: 0 0 12px; font-weight: 700; }
.rdp-hero-subtitle { color: var(--rdp-text-muted); margin: 0 0 32px; font-size: 18px; }

/* Glassmorphism search form */
.rdp-search-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: var(--rdp-radius-lg);
	padding: 28px;
	box-shadow: var(--rdp-shadow);
}
.rdp-search-field { display: flex; flex-direction: column; gap: 6px; }
.rdp-search-field label { font-size: 13px; font-weight: 600; color: var(--rdp-text-muted); }
.rdp-search-field input {
	padding: 12px 14px; border-radius: var(--rdp-radius-sm); border: 1px solid var(--rdp-border);
	font-family: inherit; font-size: 15px; background: #fff;
}

/* Sections */
.rdp-section { padding: 60px 0; }
.rdp-section-title { font-size: 28px; font-weight: 700; margin-bottom: 28px; }

/* Vehicle grid & card */
.rdp-vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.rdp-vehicle-card {
	background: var(--rdp-surface); border-radius: var(--rdp-radius-md);
	overflow: hidden; box-shadow: var(--rdp-shadow); transition: transform .2s ease;
}
.rdp-vehicle-card:hover { transform: translateY(-4px); }
.rdp-vehicle-card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.rdp-vehicle-card-media img { width: 100%; height: 100%; object-fit: cover; }
.rdp-badge {
	position: absolute; top: 12px; insetInlineStart: 12px; left: 12px;
	padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.rdp-badge-success { background: #dcfce7; color: #166534; }
.rdp-vehicle-card-body { padding: 18px; }
.rdp-vehicle-card-title { margin: 0 0 6px; font-size: 18px; }
.rdp-vehicle-card-meta { color: var(--rdp-text-muted); font-size: 14px; margin: 0 0 16px; }
.rdp-vehicle-card-footer { display: flex; align-items: center; justify-content: space-between; }
.rdp-price { font-weight: 700; color: var(--rdp-primary); }
.rdp-price-large { font-size: 24px; font-weight: 700; color: var(--rdp-primary); }

/* Category grid */
.rdp-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.rdp-category-card {
	display: block; text-align: center; padding: 24px 12px;
	background: var(--rdp-surface); border-radius: var(--rdp-radius-md);
	box-shadow: var(--rdp-shadow); font-weight: 600; transition: transform .2s ease;
}
.rdp-category-card:hover { transform: translateY(-3px); }

/* Single vehicle page */
.rdp-vehicle-single-grid {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 40px 20px;
}
.rdp-vehicle-booking-widget {
	grid-column: 2; background: var(--rdp-surface); border-radius: var(--rdp-radius-md);
	padding: 24px; box-shadow: var(--rdp-shadow); align-self: start; position: sticky; top: 100px;
}
.rdp-spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.rdp-spec-table th, .rdp-spec-table td { padding: 8px 0; border-bottom: 1px solid var(--rdp-border); text-align: start; }
.rdp-spec-table th { color: var(--rdp-text-muted); font-weight: 500; width: 40%; }
.rdp-feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rdp-feature-list li::before { content: "✓ "; color: var(--rdp-primary); font-weight: 700; }

@media (max-width: 900px) {
	.rdp-vehicle-single-grid { grid-template-columns: 1fr; }
	.rdp-vehicle-booking-widget { grid-column: 1; position: static; }
}

/* Floating action buttons (WhatsApp / Call) */
.rdp-floating-actions {
	position: fixed; bottom: 90px; right: 20px; z-index: 60;
	display: flex; flex-direction: column; gap: 12px;
}
.rdp-fab {
	width: 52px; height: 52px; border-radius: 50%; display: flex;
	align-items: center; justify-content: center; font-size: 22px;
	box-shadow: var(--rdp-shadow);
}
.rdp-fab-whatsapp { background: #25d366; }
.rdp-fab-call { background: var(--rdp-primary); color: #fff; }

/* Sticky mobile booking bar */
.rdp-sticky-book-bar {
	display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
	padding: 12px 16px; background: var(--rdp-surface); box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
	.rdp-sticky-book-bar { display: block; }
	.rdp-primary-nav { display: none; }
}

/* Booking widget (Phase 3) */
.rdp-booking-form { display: flex; flex-direction: column; gap: 14px; }
.rdp-field { display: flex; flex-direction: column; gap: 6px; }
.rdp-field-inline { flex-direction: row; gap: 20px; }
.rdp-field label { font-size: 13px; font-weight: 600; color: var(--rdp-text-muted); }
.rdp-field input, .rdp-field select {
	padding: 10px 12px; border-radius: var(--rdp-radius-sm); border: 1px solid var(--rdp-border);
	font-family: inherit; font-size: 14px; background: var(--rdp-surface); color: var(--rdp-text);
}
.rdp-inline-msg { font-size: 13px; min-height: 18px; color: var(--rdp-text-muted); }
.rdp-price-breakdown { background: var(--rdp-bg); border-radius: var(--rdp-radius-sm); padding: 12px 16px; }
.rdp-price-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.rdp-price-total { font-weight: 700; border-top: 1px solid var(--rdp-border); margin-top: 6px; padding-top: 8px; }
.rdp-price-discount { color: #16a34a; }

.rdp-bank-instructions {
	white-space: pre-wrap; background: var(--rdp-bg); border-radius: var(--rdp-radius-sm);
	padding: 14px; margin-top: 14px; font-size: 13px;
}

/* Footer */
.rdp-site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 0; margin-top: 60px; }
.rdp-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-bottom: 32px; }
.rdp-footer-bottom { border-top: 1px solid #1e293b; padding: 20px; text-align: center; font-size: 14px; }
.rdp-widget-title { color: #fff; font-size: 16px; }
