/* Safari Pages Styles */

/* Main Content */
.safari-main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: #fff;
}

/* Safari Header */
.safari-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/safari-header.jpg');
  color: white;
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.book-now-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.book-now-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #ffd700;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.book-now-btn:hover {
  background-color: #ffed4a;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.booking-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.contact-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #333;
  color: #ffd700;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.safari-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.safari-header .safari-duration {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Safari Itinerary */
.safari-itinerary {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.safari-day {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.safari-day::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    height: 10px;
    width: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.safari-day h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.safari-day p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Safari Highlights */
.safari-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    padding: 2rem 0;
    background: rgba(245,245,245,0.5);
    border-radius: 10px;
}

.safari-highlight {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.safari-highlight:hover {
    transform: translateY(-5px);
}

.safari-highlight h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.safari-highlight p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Safari Map */
.safari-map {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.safari-map img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.safari-map img:hover {
    transform: scale(1.05);
}

/* Safari Pricing */
.safari-pricing {
    background: var(--primary-color);
    color: white;
    padding: 2.5rem;
    border-radius: 10px;
    margin: 3rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.safari-pricing ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.safari-pricing li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.safari-pricing li:last-child {
    border-bottom: none;
}

.safari-pricing h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.safari-pricing h3 {
    color: white;
    margin-bottom: 1rem;
}

.safari-pricing ul {
    list-style: none;
    padding: 0;
}

.safari-pricing li {
    margin-bottom: 0.5rem;
}

/* Safari Booking */
.safari-booking {
    background: var(--section-bg-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.safari-booking h3 {
    margin-bottom: 1.5rem;
}

.safari-booking a {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.safari-booking a:hover {
    background: var(--primary-dark);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .safari-main {
        padding: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .safari-day {
        padding-left: 1rem;
    }
    
    .safari-day h2 {
        font-size: 1.6rem;
    }
    
    .safari-highlights {
        grid-template-columns: 1fr;
    }
}

/* Auto-inserted itinerary photo */
.itinerary-photo {
  width: 100%;
  margin: 0.8rem 0 1.2rem 0;
}
.itinerary-photo img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
  .itinerary-photo img {
    max-height: 220px;
  }
}

/* User-friendly safari page enhancements */
.rwanda-safari-section, .special-safari-section {
  width: 100%;
  max-width: 100%;
  padding-left: 4vw;
  padding-right: 4vw;
  margin-left: 0;
  margin-right: 0;
}

.rwanda-safari-main, .special-safari-main {
  width: 100vw;
  overflow-x: hidden;
}

.rwanda-safari-banner img, .special-safari-banner img {
  width: 100vw;
  height: 42vw;
  min-height: 220px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .rwanda-safari-section, .special-safari-section {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .rwanda-safari-banner img, .special-safari-banner img {
    height: 56vw;
    min-height: 200px;
    max-height: 420px;
  }
}

/* Keep headings readable */
.rwanda-safari-section h1, .rwanda-safari-section h2, .rwanda-safari-section h3,
.special-safari-section h1, .special-safari-section h2, .special-safari-section h3 {
  color: #2f4f3a;
}

.rwanda-safari-section p, .rwanda-safari-section li,
.special-safari-section p, .special-safari-section li {
  color: #3a3a3a;
}

/* Itinerary nav */
.itinerary-nav {
  position: sticky;
  top: 70px;
  background: #fbfbfb;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  margin: 1rem 0 1.2rem 0;
  z-index: 5;
}
.itinerary-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}
.itinerary-nav-list li { margin: 0; }
.itinerary-link {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  text-decoration: none;
  color: #2f4f3a;
  font-size: 0.95rem;
}
.itinerary-link:hover { background: #f2f7f3; }
.itinerary-link.active { background: #e6f0ea; border-color: #cfe3d7; }

/* Improve banner text legibility */
.rwanda-safari-banner .rwanda-safari-banner-text,
.special-safari-banner .special-safari-banner-text {
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* Hero text transparent background */
.rwanda-safari-banner .rwanda-safari-banner-text h1,
.rwanda-safari-banner .rwanda-safari-banner-text p,
.special-safari-banner .special-safari-banner-text h1,
.special-safari-banner .special-safari-banner-text p {
  background: rgba(0,0,0,0.45);
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .rwanda-safari-banner .rwanda-safari-banner-text h1,
  .rwanda-safari-banner .rwanda-safari-banner-text p,
  .special-safari-banner .special-safari-banner-text h1,
  .special-safari-banner .special-safari-banner-text p {
    padding: 0.4rem 0.6rem;
  }
}

/* Content cards inside sections (optional) */
.rwanda-safari-section .card, .special-safari-section .card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Spacing improvements */
.rwanda-safari-section h2, .special-safari-section h2 { margin-top: 1.8rem; }
.rwanda-safari-section p + h2, .special-safari-section p + h2 { margin-top: 2rem; }

@media (max-width: 900px) {
  .itinerary-nav { top: 58px; }
  .itinerary-link { font-size: 0.9rem; padding: 0.4rem 0.6rem; }
}
