/* Journal Ardennes - Custom Styles */

:root {
  --forest: #2D5016;
  --forest-light: #4A7C2F;
  --cream: #F5F0E8;
  --stone: #8B7355;
  --stone-light: #D4C5A9;
  --warm-white: #FDFAF5;
  --charcoal: #2C2C2C;
  --accent: #C4941A;
  --accent-light: #E8B84B;
}

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

body {
  font-family: 'Georgia', serif;
  background: var(--warm-white);
  color: var(--charcoal);
  min-height: 100vh;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, #1a3a0a 0%, #2D5016 40%, #4A7C2F 70%, #6B9E45 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 800px;
}

.hero-logo {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 3rem;
}

/* ===================== GALLERY ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 4px;
}

.gallery-grid .main-photo {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--stone-light);
}

.gallery-item.main-photo {
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ===================== CALENDAR ===================== */
.calendar-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.calendar-header {
  background: var(--forest);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 1rem;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.cal-day:hover:not(.booked):not(.blocked):not(.past):not(.pending) {
  background: var(--cream);
  color: var(--forest);
}

.cal-day.today {
  background: var(--accent-light);
  color: white;
  font-weight: bold;
}

.cal-day.booked {
  background: #fee2e2;
  color: #991b1b;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-day.pending {
  background: #fef3c7;
  color: #b45309;
  cursor: not-allowed;
}

.cal-day.blocked {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.cal-day.selected {
  background: var(--forest);
  color: white;
}

.cal-day.in-range {
  background: rgba(45, 80, 22, 0.15);
  border-radius: 0;
}

.cal-day.past {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-day.available {
  background: rgba(74, 124, 47, 0.1);
  color: var(--forest);
}

.cal-day-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--stone);
  text-align: center;
  padding: 0.5rem 0;
}

/* ===================== CARDS ===================== */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--forest);
}

/* ===================== PRICING ===================== */
.price-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.price-card:hover { transform: translateY(-4px); }

.price-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
}

.price-header {
  padding: 1.5rem;
  text-align: center;
}

.price-header.low { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.price-header.mid { background: linear-gradient(135deg, #fff8e1, #ffecb3); }
.price-header.high { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--charcoal);
}

/* ===================== FORMS ===================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stone);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--stone-light);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.1);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--forest);
  color: white;
}

.btn-primary:hover {
  background: var(--forest-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(45,80,22,0.3);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(196,148,26,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

.btn-outline:hover {
  background: var(--forest);
  color: white;
}

.btn-white {
  background: white;
  color: var(--forest);
}

.btn-white:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* ===================== NAV ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1rem 2rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar.scrolled {
  background: #1a3a0a;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar.scrolled .nav-brand { color: white; }
.navbar.scrolled .nav-link { color: rgba(255,255,255,0.85); }
.navbar.scrolled .nav-link:hover { color: white; }

.nav-brand {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: white;
  text-transform: uppercase;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.nav-link:hover { color: white; }

.nav-links { display: flex; align-items: center; gap: 0.5rem; }

/* ===================== SECTIONS ===================== */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--forest);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--stone);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 3rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem 0 2rem;
  border-radius: 2px;
}

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* ===================== MESSAGES ===================== */
.message-bubble {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  max-width: 80%;
}

.message-bubble.sent {
  background: var(--forest);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message-bubble.received {
  background: var(--cream);
  color: var(--charcoal);
  border-bottom-left-radius: 4px;
}

/* ===================== BADGE ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-completed { background: #dbeafe; color: #1e40af; }

/* ===================== AMENITY GRID ===================== */
.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--cream);
  border-radius: 10px;
  font-size: 0.9rem;
}

.amenity-icon {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  flex-shrink: 0;
}

/* ===================== LANGUAGE SWITCHER ===================== */
.lang-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
}

.lang-btn.active, .lang-btn:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  border-color: rgba(255,255,255,0.6);
}

.navbar.scrolled .lang-btn {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}

.navbar.scrolled .lang-btn.active,
.navbar.scrolled .lang-btn:hover {
  background: white;
  color: #1a3a0a;
  border-color: white;
}

/* ===================== TABS ===================== */
.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--stone);
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--forest);
  color: white;
}

.tab-btn:hover:not(.active) {
  background: var(--cream);
  color: var(--forest);
}

/* ===================== OWNER DASHBOARD ===================== */
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border-left: 4px solid var(--forest);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--forest);
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--charcoal);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  z-index: 9999;
  animation: slideIn 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.toast.success { background: var(--forest); }
.toast.error { background: #dc2626; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===================== SCROLL INDICATOR ===================== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .hero-logo { font-size: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .main-photo { grid-column: 1 / 3; }
  .section { padding: 3rem 1rem; }
  .section-title { font-size: 1.75rem; }
  .price-card.featured { transform: none; }
  .modal { padding: 1.5rem; }
  .nav-links { gap: 0.25rem; }
  .nav-link { font-size: 0.8rem; padding: 0.4rem 0.5rem; }
}

/* ===================== ANIMATIONS ===================== */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--stone-light);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--stone-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone); }


.hidden {
  display: none !important;
}
