/*
Theme Name: Dubai JBR Luxury Guide
Theme URI: https://dubaijbr.com/
Author: Antigravity AI
Author URI: https://dubaijbr.com/
Description: A premium, luxury travel and lifestyle guide theme for Jumeirah Beach Residence Dubai. Dark navy, gold, and sea-blue glassmorphism layout, fast loading, SEO friendly, featuring AI trip planner and AI concierge chatbot.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dubaijbr
*/

/* --- GLOBAL CUSTOM VARIABLES & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-deep: #050b14;
  --bg-dark: #091220;
  --bg-glass: rgba(9, 18, 32, 0.75);
  --bg-glass-light: rgba(255, 255, 255, 0.05);
  --gold: #c5a880;
  --gold-glow: #e6cfa8;
  --gold-dark: #8e734c;
  --sea-blue: #0f2c59;
  --sea-light: #1e3d59;
  --sand: #e6dfd3;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --border-glass: rgba(197, 168, 128, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  background-color: var(--bg-deep);
  color: var(--text-light);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

p {
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-muted);
}

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

/* Glassmorphism Styles */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}
.glass-card:hover {
  border-color: rgba(197, 168, 128, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(197, 168, 128, 0.1);
}

.glass-nav {
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.4);
  background: linear-gradient(135deg, var(--gold-glow), var(--gold));
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(197, 168, 128, 0.05);
  color: var(--text-light);
  transform: translateY(-2px);
}

.main-wrapper {
  flex-grow: 1;
  padding-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section-padding {
  padding: 80px 0;
}

.text-gold {
  color: var(--gold);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
  text-align: center;
  background: linear-gradient(to right, #ffffff, var(--gold), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* Helper Grids */
.grid {
  display: grid !important;
}
.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}

/* Grid Column definitions */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

/* Responsive Grids */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .section-title { font-size: 2.2rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .section-title { font-size: 2.5rem; }
}

/* Gap Utilities */
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }
.gap-6 { gap: 24px !important; }
.gap-8 { gap: 32px !important; }
.gap-10 { gap: 40px !important; }

/* --- FIXED HEADER --- */
.fixed-header {
  height: 80px;
}
.fixed-header .glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

/* --- SIDE DRAWER --- */
#drawer-overlay {
  transition: opacity 0.3s ease;
}
#drawer-panel {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.translate-x-0 {
  transform: translateX(0) !important;
}
.translate-x-full {
  transform: translateX(100%) !important;
}
.opacity-100 {
  opacity: 1 !important;
}
.opacity-0 {
  opacity: 0 !important;
}
.pointer-events-auto {
  pointer-events: auto !important;
}
.pointer-events-none {
  pointer-events: none !important;
}

/* --- UTILITY CLASSES --- */
.hidden {
  display: none !important;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-8 > * + * { margin-top: 32px; }
.space-y-12 > * + * { margin-top: 48px; }
.max-w-4xl { max-width: 896px; }
.max-w-5xl { max-width: 1024px; }
.max-w-6xl { max-width: 1152px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.border { border: 1px solid var(--border-glass); }
.border-t { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.border-b { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.pb-2 { padding-bottom: 8px; }
.pt-4 { padding-top: 16px; }
.p-3.5 { padding: 14px; }
.p-5 { padding: 20px; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-light { font-weight: 300; }
.font-serif { font-family: var(--font-serif); }

/* --- HERO ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}
.animate-slide-up {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

/* --- CHATBOT UI TRANSITIONS --- */
#chatbot-panel {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.scale-100 {
  transform: scale(1) translate(0) !important;
}
.scale-0 {
  transform: scale(0) !important;
}

/* --- TABLES & ADMIN PANELS --- */
table {
  width: 100%;
}
th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.delete-lead-btn {
  background: none;
  border: none;
  cursor: pointer;
}
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  transition: border-color 0.3s;
}
select:focus, input:focus, textarea:focus {
  border-color: var(--gold) !important;
}
.shrink-0 {
  flex-shrink: 0;
}
.list-disc {
  list-style-type: disc;
}
.list-inside {
  list-style-position: inside;
}
.text-emerald-400 {
  color: #34d399;
}
.bg-emerald-500\/10 {
  background-color: rgba(52, 211, 153, 0.1);
}
.text-rose-500 {
  color: #f43f5e;
}
.hover\:text-rose-400:hover {
  color: #fb7185;
}

