/* Taniti Island Tourism Website - Simple prototype styles */

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

body {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

a {
  color: #1a5f7a;
}

a:hover {
  color: #0d3d4d;
}

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

/* Header */
header {
  background-color: #fff;
  border-bottom: 2px solid #1a5f7a;
  padding: 1rem;
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  height: 52px;
  width: auto;
  max-width: none;
  display: block;
}

.logo:hover img {
  opacity: 0.85;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-form input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.9rem;
  width: 160px;
}

.search-form button {
  margin-left: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #1a5f7a;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
}

.search-form button:hover {
  background: #0d3d4d;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

nav {
  width: 100%;
  max-width: 1100px;
  margin: 0.75rem auto 0;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

nav a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: #e8f4f8;
  border: 1px solid #1a5f7a;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover,
nav a.active {
  background: #1a5f7a;
  color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0 1rem;
  font-size: 0.85rem;
  color: #666;
}

.breadcrumbs a {
  color: #1a5f7a;
}

/* Main content */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* Hero section */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid #ddd;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: #1a5f7a;
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
}

.hero-image {
  flex: 1;
  min-width: 280px;
}

.carousel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.carousel-slide {
  background: #d4e8ed;
  border: 2px dashed #1a5f7a;
  border-radius: 8px;
  aspect-ratio: 6 / 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a5f7a;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}

.carousel-dot.active {
  background: #1a5f7a;
}

.placeholder-image {
  background: #d4e8ed;
  border: 2px dashed #1a5f7a;
  border-radius: 8px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a5f7a;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

.page-image {
  width: 100%;
  max-width: none;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 1.5rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #1a5f7a;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: #0d3d4d;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #1a5f7a;
  border: 2px solid #1a5f7a;
}

.btn-secondary:hover {
  background: #e8f4f8;
  color: #1a5f7a;
}

/* Section with cards */
.section {
  padding: 2rem 0;
}

.section h2 {
  text-align: center;
  font-size: 1.75rem;
  color: #1a5f7a;
  margin-bottom: 0.5rem;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #555;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  overflow: hidden;
}

.card:has(.card-image) {
  padding: 0 0 1.5rem;
}

.card:has(.card-image) h3,
.card:has(.card-image) p {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.card-image {
  width: 100%;
  max-width: none;
  height: 160px;
  object-fit: cover;
  margin: 0 0 1rem;
  display: block;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: #d4e8ed;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card h3 {
  color: #1a5f7a;
  margin-bottom: 0.75rem;
}

.card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Page content */
.page-content {
  padding: 1.5rem 0 2rem;
}

.page-content h1 {
  font-size: 2rem;
  color: #1a5f7a;
  margin-bottom: 1rem;
}

.page-content h2 {
  font-size: 1.25rem;
  color: #1a5f7a;
  margin: 1.5rem 0 0.75rem;
}

.page-content p,
.page-content li {
  margin-bottom: 0.75rem;
}

.page-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.info-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.info-box h3 {
  color: #1a5f7a;
  margin-bottom: 0.5rem;
}

/* Contact form */
.contact-form {
  max-width: 500px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-item h3 {
  color: #1a5f7a;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-menu h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-menu ul {
  list-style: none;
}

.footer-menu a {
  color: #a8d4e6;
  text-decoration: underline;
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: #fff;
}

.footer-menu li {
  margin-bottom: 0.4rem;
}

.social-media h4 {
  margin-bottom: 0.75rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: #4a6fa5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
}

.social-icon:hover {
  background: #1a5f7a;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #4a6fa5;
  font-size: 0.85rem;
  color: #bdc3c7;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .logo img {
    height: 42px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    text-align: left;
  }

  .search-form input {
    width: 120px;
  }
}
