/* Siem Reap Angkor Travel — Main stylesheet */
:root {
  --teal: #0F4C5C;
  --teal-dark: #09323D;
  --amber: #E6A23C;
  --amber-light: #FFB84D;
  --sand: #FFF8F0;
  --cream: #FDF6ED;
  --dark: #1A1A1A;
  --gray: #555;
  --light-gray: #F7F7F7;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--sand);
  line-height: 1.6;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 2rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 700px;
  margin: -1rem auto 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}

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

.btn-primary {
  background: var(--amber);
  color: var(--dark);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-light);
  box-shadow: 0 6px 16px rgba(230, 162, 60, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

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

.btn-teal:hover {
  background: var(--teal-dark);
}

/* Header / Nav */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 56px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--amber);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 6rem 1rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,76,92,0.55) 0%, rgba(15,76,92,0.75) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--gray);
  flex: 1;
}

/* Alternating feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.feature:nth-child(even) .feature-text {
  order: 2;
}

.feature img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature h3 {
  font-size: 1.6rem;
  color: var(--teal);
}

/* Booking placeholder */
.booking-placeholder {
  background: var(--light-gray);
  border-left: 5px solid var(--amber);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #DDD;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--amber-light);
  margin-bottom: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.85);
}

.footer-col a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Ad zones */
.ad-zone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.srat-ad-banner {
  display: block;
  max-width: 100%;
}

.srat-ad-banner img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Booking tabs */
.booking-tabs .tab-btn {
  cursor: pointer;
}

.booking-tabs .tab-btn.active,
.events-tabs .tab-btn.active {
  background: var(--amber);
  color: var(--dark);
  border-color: var(--amber);
}

/* Events tabs */
.events-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.events-tabs .tab-btn {
  cursor: pointer;
}

/* Calendar */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-header h3 {
  margin: 0;
  color: var(--teal);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cal-day-label {
  text-align: center;
  font-weight: bold;
  color: var(--teal);
  padding: 0.5rem;
  font-size: 0.85rem;
}

.cal-day {
  min-height: 90px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.5rem;
  background: #fff;
  position: relative;
}

.cal-day.other-month {
  background: #f9f9f9;
  color: #aaa;
}

.cal-day-number {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cal-event-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 3px;
}

.cal-event-title {
  font-size: 0.7rem;
  color: var(--dark);
  background: var(--sand);
  padding: 2px 4px;
  border-radius: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.cal-event-title:hover {
  background: var(--amber-light);
}

#calendar-day-events {
  margin-top: 2rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
    display: none;
  }

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

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature:nth-child(even) .feature-text {
    order: unset;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .section {
    padding: 2.5rem 0;
  }
}

/* Restaurants */
.restaurant-card .card-body {
  gap: 0.25rem;
}

.restaurant-meta {
  color: var(--amber);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.stars {
  letter-spacing: 2px;
  color: var(--amber);
}

.cuisine-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--teal);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.price-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

.price-budget {
  background: #e6f4ea;
  color: #137333;
}

.price-mid {
  background: #fff3e0;
  color: #b45f06;
}

.price-fine {
  background: #fce8e6;
  color: #a50e0e;
}

.restaurant-full p {
  margin-bottom: 0.75rem;
}

.restaurant-full p:last-child {
  margin-bottom: 0;
}

.filter-btn.active {
  background: var(--amber);
  color: var(--dark);
  border-color: var(--amber);
}

/* Event calendar improvements */
.cal-day.has-events {
  cursor: pointer;
  background: #fffaf3;
  border-color: var(--amber);
}

.cal-day.has-events:hover {
  background: var(--amber-light);
}

.cal-event-dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  margin: 0.25rem 0;
}

.cal-day.selected-day {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
}

.calendar-add a {
  font-weight: 600;
}
