/* ============================================================
   Cocotours Cabañas - CSS Principal
   Palette : Turquoise, Sable, Vert tropical, Or
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --ocean:       #0B8FAC;
  --ocean-dark:  #076E87;
  --ocean-light: #E8F6FA;
  --green:       #2E7D4F;
  --green-light: #EAF4EE;
  --sand:        #FAF6EF;
  --sand2:       #F0EAE0;
  --white:       #FFFEF9;
  --gold:        #C4973A;
  --gold-light:  #FBF3E3;
  --text:        #1C1A17;
  --text2:       #5C5649;
  --text3:       #9C9488;
  --danger:      #C0392B;
  --danger-light:#FDEEEC;
  --success:     #1B6B4A;
  --success-light:#E8F5EE;
  --warning:     #B7791F;
  --warning-light:#FEF3C7;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 2px 12px rgba(11,143,172,0.10);
  --shadow-lg:   0 6px 30px rgba(11,143,172,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--sand);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}

a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--ocean-dark); text-decoration: underline; }

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

/* ============================================================
   LAYOUT
   ============================================================ */

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

.container-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--sand2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ocean);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-logo span { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.site-nav a {
  color: var(--text2);
  font-size: 15px;
  font-weight: 400;
  transition: color .2s;
}
.site-nav a:hover { color: var(--ocean); text-decoration: none; }

.lang-switch {
  background: var(--ocean-light);
  color: var(--ocean);
  border: 1px solid var(--ocean);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.lang-switch:hover { background: var(--ocean); color: white; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean) 50%, #0fa3bf 100%);
  color: white;
  padding: 70px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: var(--sand);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 18px;
  opacity: .88;
  margin-bottom: 0;
}

/* ============================================================
   SEARCH BOX
   ============================================================ */

.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  margin: -32px auto 40px;
  position: relative;
  z-index: 10;
  max-width: 860px;
}

.search-box form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

@media (max-width: 720px) {
  .search-box form { grid-template-columns: 1fr 1fr; }
  .search-box .btn-search { grid-column: 1/-1; }
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--sand2);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px var(--ocean-light);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ocean);
  color: white;
}
.btn-primary:hover { background: var(--ocean-dark); color: white; text-decoration: none; }

.btn-search {
  background: var(--gold);
  color: white;
  padding: 12px 28px;
  font-size: 15px;
}
.btn-search:hover { background: #a87d2e; color: white; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--ocean);
  border: 1.5px solid var(--ocean);
}
.btn-outline:hover { background: var(--ocean); color: white; text-decoration: none; }

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover { background: #145239; color: white; text-decoration: none; }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #a32523; color: white; text-decoration: none; }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 17px; }

/* ============================================================
   BUNGALOW CARDS
   ============================================================ */

.bungalows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: 20px 0 60px;
}

.bungalow-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.bungalow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bungalow-card .card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--sand2);
}

.bungalow-card .card-img-placeholder {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, var(--ocean-light), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--ocean);
}

.bungalow-card .card-body {
  padding: 20px;
}

.bungalow-card .card-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.bungalow-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.bungalow-card p {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.amenity-tag {
  background: var(--ocean-light);
  color: var(--ocean-dark);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--sand2);
}

.card-price {
  display: flex;
  flex-direction: column;
}
.card-price .from { font-size: 11px; color: var(--text3); }
.card-price .amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--ocean);
  font-family: 'Playfair Display', serif;
}
.card-price .per-night { font-size: 12px; color: var(--text3); }

/* ============================================================
   STATUT BADGES
   ============================================================ */

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-waiting  { background: var(--warning-light); color: var(--warning); }
.badge-confirmed { background: var(--success-light); color: var(--success); }
.badge-refused  { background: var(--danger-light);  color: var(--danger); }
.badge-cancelled { background: var(--sand2); color: var(--text3); }

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-success { background: var(--success-light); color: var(--success); border-left: 4px solid var(--success); }
.alert-danger   { background: var(--danger-light);  color: var(--danger);  border-left: 4px solid var(--danger); }
.alert-info     { background: var(--ocean-light);   color: var(--ocean-dark); border-left: 4px solid var(--ocean); }
.alert-warning  { background: var(--warning-light); color: var(--warning); border-left: 4px solid var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 40px 20px 24px;
  text-align: center;
  font-size: 14px;
  margin-top: 60px;
}

.site-footer a { color: var(--ocean-light); }

/* ============================================================
   UTILITAIRES
   ============================================================ */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 40px; }
.text-center { text-align: center; }
.text-muted   { color: var(--text2); }
.text-small   { font-size: 13px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2  { gap: 16px; }
.w-100  { width: 100%; }
