/* =====================================================
   Ekahi Village Maui — Shared Stylesheet
   Tropical, clean, ad-optimized layout
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  font-size: 17px;
  line-height: 1.75;
  color: #2c2c2c;
  background: #fff;
}

a { color: #1a6fa8; text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  line-height: 1.25;
  color: #1a3a5c;
}

h1 { font-size: 2.4rem; margin-bottom: 0.6em; }
h2 { font-size: 1.8rem; margin-bottom: 0.5em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }

p { margin-bottom: 1.2em; }

ul, ol { padding-left: 1.4em; margin-bottom: 1.2em; }
li { margin-bottom: 0.4em; }

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

.main-content { min-width: 0; }

.sidebar { min-width: 0; }

/* ---- Header / Nav ---- */
.site-header {
  background: linear-gradient(135deg, #0a3d6b 0%, #1a6fa8 60%, #2196c4 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

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

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo .logo-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.site-logo .logo-sub {
  font-size: 0.8rem;
  color: #a8d8f0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: #d4edf9;
  margin-left: 22px;
  font-size: 0.92rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.site-nav a:hover, .site-nav a.active {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid #7ecfe0;
  padding-bottom: 2px;
}

/* ---- Ad Banner (top leaderboard) ---- */
.ad-leaderboard {
  background: #f0f7fc;
  border-top: 1px solid #d0e8f5;
  border-bottom: 1px solid #d0e8f5;
  text-align: center;
  padding: 10px 0;
}

.ad-leaderboard .ad-label {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.ad-slot {
  display: inline-block;
  background: #e8f4fb;
  border: 1px dashed #a8cfe0;
  color: #888;
  font-size: 0.78rem;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* Leaderboard 728×90 */
.ad-slot-728x90 { width: 728px; height: 90px; line-height: 90px; }
/* Rectangle 300×250 */
.ad-slot-300x250 { width: 300px; height: 250px; line-height: 250px; }
/* Medium rectangle 336×280 */
.ad-slot-336x280 { width: 336px; height: 280px; line-height: 280px; }
/* Responsive / in-content */
.ad-slot-responsive { width: 100%; height: 90px; line-height: 90px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    160deg,
    #0a3d6b 0%,
    #1565a8 35%,
    #1e9dc8 65%,
    #4ecdc4 85%,
    #96e6a1 100%
  );
  overflow: hidden;
  padding: 60px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.06)' d='M0,160L60,170.7C120,181,240,203,360,197.3C480,192,600,160,720,138.7C840,117,960,107,1080,122.7C1200,139,1320,181,1380,202.7L1440,224L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a8e6f0;
  margin-bottom: 12px;
}

.hero h1 {
  color: #fff;
  font-size: 3rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 0.4em;
}

.hero-sub {
  color: #d4f0fa;
  font-size: 1.15rem;
  margin-bottom: 1.6em;
}

.btn-primary {
  display: inline-block;
  background: #f5a623;
  color: #1a1a1a;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 15px rgba(245,166,35,0.4);
}

.btn-primary:hover {
  background: #e6951a;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 13px 28px;
  border-radius: 30px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* ---- Section Styles ---- */
.section { padding: 56px 0; }
.section-alt { background: #f7fbfe; }
.section-dark { background: #1a3a5c; color: #d4edf9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #c0ddf0; }

.section-title {
  text-align: center;
  margin-bottom: 2.5em;
}

.section-title h2 { margin-bottom: 0.3em; }

.section-title .subtitle {
  color: #5a8faa;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  margin-top: 1.5em;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(0,0,0,0.09);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a6fa8, #4ecdc4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
}

.card-body { padding: 20px; }
.card-body h3 { color: #1a3a5c; margin-bottom: 0.3em; }
.card-body p { color: #555; font-size: 0.93rem; margin-bottom: 0; }

/* ---- Booking / Affiliate Boxes ---- */
.booking-box {
  background: linear-gradient(135deg, #fff8ed, #fff3e0);
  border: 1px solid #f0c060;
  border-radius: 12px;
  padding: 28px;
  margin: 30px 0;
}

.booking-box h3 {
  color: #b85e00;
  margin-bottom: 0.5em;
}

.booking-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-book:hover { opacity: 0.88; transform: translateY(-2px); text-decoration: none; }

.btn-vrbo    { background: #1c5fa6; color: #fff; }
.btn-booking { background: #003580; color: #fff; }
.btn-expedia { background: #00355f; color: #fff; }
.btn-viator  { background: #59c09b; color: #fff; }
.btn-gyg     { background: #ff5533; color: #fff; }
.btn-airbnb  { background: #ff5a5f; color: #fff; }

/* ---- Highlight / Info Box ---- */
.info-box {
  border-left: 4px solid #1a6fa8;
  background: #f0f8ff;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.info-box.tip { border-color: #2ea84d; background: #f0faf3; }
.info-box.warning { border-color: #e67e22; background: #fdf6ec; }

/* ---- Feature List ---- */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid #edf3f7;
  color: #333;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2ea84d;
  font-weight: 700;
}

/* ---- Two-column text layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ---- Sidebar Widgets ---- */
.widget {
  background: #f7fbfe;
  border: 1px solid #d0e8f5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 28px;
}

.widget h4 {
  color: #1a3a5c;
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c5e0f5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid #e8f2f9;
  font-size: 0.9rem;
}

.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #1a6fa8; }

/* ---- Quick Facts Table ---- */
.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.facts-table tr:nth-child(even) { background: #f0f8ff; }

.facts-table td {
  padding: 9px 12px;
  border: 1px solid #d0e8f5;
  vertical-align: top;
}

.facts-table td:first-child {
  font-weight: 700;
  color: #1a3a5c;
  width: 40%;
  background: #e8f4fc;
}

/* ---- Footer ---- */
.site-footer {
  background: #0e2a44;
  color: #8ab5d0;
  font-size: 0.85rem;
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: #c8e0ef;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-grid a { color: #7ab0cc; }
.footer-grid a:hover { color: #c8e0ef; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid ul li { margin-bottom: 6px; }

.footer-bottom {
  border-top: 1px solid #1c3d5a;
  padding-top: 18px;
  text-align: center;
  color: #557a90;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: #456070;
  margin-top: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: #f0f7fc;
  padding: 10px 0;
  font-size: 0.82rem;
  color: #777;
  border-bottom: 1px solid #ddeef8;
}

.breadcrumb a { color: #1a6fa8; }
.breadcrumb span { margin: 0 6px; }

/* ---- Mobile nav toggle button ---- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 1.3rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.nav-toggle:hover { border-color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .ad-slot-728x90 { width: 100%; max-width: 468px; }
}

@media (max-width: 600px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a3d6b;
    padding: 8px 20px 16px;
    z-index: 999;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    margin-left: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 1rem;
  }

  .site-nav a:last-child { border-bottom: none; }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}
