/* Ceduna Holiday Accommodation - Ceduna Airport Caravan Park */

:root {
  --blue: #124c81;
  --blue-dark: #0d3a63;
  --white: #ffffff;
  --ink: #1a1a1a;
  --grey-light: #f4f6f8;
  --heading-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --body-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-y: scroll; }

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; }

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

/* Header / nav */

.site-header {
  background: var(--white);
  border-bottom: 1px solid #e2e6ea;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 20px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 10px;
}

.site-title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 700;
}

.site-title a {
  text-decoration: none;
  color: var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--blue);
  border-radius: 4px;
  color: var(--blue);
  font-size: 1.1rem;
  padding: 6px 12px;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  background: var(--blue);
  color: var(--white);
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
}

/* Sections */

section { padding: 48px 0; }

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.section-blue h1, .section-blue h2, .section-blue h3 { color: var(--white); }

.section-white { background: var(--white); color: var(--ink); }

.section-grey { background: var(--grey-light); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--blue);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.center { text-align: center; }

.lede {
  max-width: 780px;
  margin: 0 auto 24px;
  font-size: 1.1rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--blue);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover, .btn:focus {
  background: var(--white);
  color: var(--blue);
}

/* Layout helpers */

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
}

.photo-stack {
  display: grid;
  gap: 16px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .photo-grid { grid-template-columns: 1fr; }
}

.card-img {
  border-radius: 6px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rates table */

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

.rates-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.section-white .rates-list li,
.section-grey .rates-list li {
  border-bottom-color: #dfe4e9;
}

.rates-list .price {
  font-weight: 700;
  white-space: nowrap;
}

/* Amenities list */

.amenities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

@media (max-width: 500px) {
  .amenities-list { grid-template-columns: 1fr; }
}

.amenities-list li {
  padding-left: 22px;
  position: relative;
}

.amenities-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* Home hero */

.hero {
  text-align: center;
}

.hero img {
  margin: 20px auto 0;
  border-radius: 6px;
  width: 600px;
  max-width: 100%;
}

/* Contact / map */

.contact-card {
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  padding: 24px 28px;
}

.contact-card h3 { color: var(--white); }

.contact-card p { margin: 6px 0; }

.contact-card a { color: var(--white); text-decoration: underline; }

.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 66%;
  background: var(--grey-light);
  border-radius: 6px;
  overflow: hidden;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Attraction entries (Local Attractions page) */

.attraction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid #e2e6ea;
}

.attraction:last-child { border-bottom: none; }

.attraction:nth-child(even) .attraction-photo { order: -1; }

@media (max-width: 760px) {
  .attraction { grid-template-columns: 1fr; }
  .attraction:nth-child(even) .attraction-photo { order: 0; }
}

.attraction-photo img {
  border-radius: 6px;
  width: 100%;
  object-fit: cover;
}

/* Footer */

.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 24px 0;
  text-align: center;
}

.site-footer p { margin: 4px 0; font-size: 0.9rem; }

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

/* Accessibility */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--blue);
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}
