/* ==========================================================================
   103 Sheyenne Rental — Main Stylesheet
   Color Palette:
     Background:  #faf9f6 (warm white)
     Text:        #2c3e50 (charcoal)
     Accent:      #c0956c (gold/tan)
     CTA:         #5a8a6a (sage green)
     Nav/Deep:    #34495e (deep blue)
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: #faf9f6;
  color: #2c3e50;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Nav (.nav)
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #34495e;
  color: #fff;
  height: 64px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.nav-logo:hover {
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Hero (.hero)
   -------------------------------------------------------------------------- */
.hero {
  min-height: 80vh;
  background: #34495e;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 100px 20px 60px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: #5a8a6a;
  color: #fff;
}

.btn-primary:hover {
  background: #4a7559;
}

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

.btn-secondary:hover {
  background: #fff;
  color: #2c3e50;
}

.btn-outline {
  background: transparent;
  color: #5a8a6a;
  border: 2px solid #5a8a6a;
}

.btn-outline:hover {
  background: #5a8a6a;
  color: #fff;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Sections & Container
   -------------------------------------------------------------------------- */
section {
  padding: 80px 0;
}

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

section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #2c3e50;
}

section h2::after {
  display: block;
  content: "";
  width: 60px;
  height: 3px;
  background: #c0956c;
  margin: 12px auto 0;
}

.section-subtitle {
  text-align: center;
  color: #666;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.property-description {
  max-width: 750px;
  margin: 0 auto 3rem;
  text-align: left;
  color: #444;
  line-height: 1.8;
  font-size: 1.05rem;
}

.property-description p {
  margin-bottom: 1.25rem;
}

.property-description p:last-child {
  margin-bottom: 0;
}

.section-alt {
  background: #f2f0ec;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Gallery (.gallery-grid)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Lightbox (.lightbox)
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  transform: translateY(-50%);
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* --------------------------------------------------------------------------
   Video Section
   -------------------------------------------------------------------------- */
.video-section {
  margin-top: 3rem;
  text-align: center;
}

.video-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.video-section video {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   Features Grid (.features-grid)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-item strong {
  display: block;
  margin-bottom: 4px;
  color: #2c3e50;
}

/* --------------------------------------------------------------------------
   Amenities Grid (.amenities-grid)
   -------------------------------------------------------------------------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.amenity-item {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.amenity-item:hover {
  transform: translateY(-4px);
}

.amenity-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

.amenity-label {
  font-weight: 600;
  color: #2c3e50;
}

/* --------------------------------------------------------------------------
   Callout Box (.callout-box)
   -------------------------------------------------------------------------- */
.callout-box {
  background: #5a8a6a;
  color: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  margin: 3rem 0;
  text-align: center;
}

.callout-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.callout-box p {
  opacity: 0.95;
}

/* --------------------------------------------------------------------------
   House Rules (.house-rules)
   -------------------------------------------------------------------------- */
.house-rules {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid #c0956c;
}

.house-rules ul {
  list-style: none;
  padding: 0;
}

.house-rules li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.house-rules li:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Rate Table (.rate-table)
   -------------------------------------------------------------------------- */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.rate-table th {
  background: #34495e;
  color: #fff;
  padding: 14px 20px;
  text-align: left;
}

.rate-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
}

.rate-table tr:hover td {
  background: #f5f5f0;
}

.rate-table .rate-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #5a8a6a;
}

/* --------------------------------------------------------------------------
   Utilities Badge (.utilities-badge)
   -------------------------------------------------------------------------- */
.utilities-badge {
  display: inline-block;
  background: #5a8a6a;
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  margin: 1rem 0;
}

.utilities-badge::before {
  content: "\2713\00a0";
}

/* --------------------------------------------------------------------------
   Facilities List (.facilities-list)
   -------------------------------------------------------------------------- */
.facilities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 2rem 0;
}

.facility-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #5a8a6a;
}

.facility-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.facility-location {
  color: #666;
}

.facility-drive {
  color: #5a8a6a;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Booking Tabs (.booking-tabs)
   -------------------------------------------------------------------------- */
.booking-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
}

.booking-tabs button {
  flex: 1;
  padding: 14px;
  border: none;
  background: #eee;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
}

.booking-tabs button.active {
  background: #5a8a6a;
  color: #fff;
}

.booking-tabs button:first-child {
  border-radius: 8px 0 0 8px;
}

.booking-tabs button:last-child {
  border-radius: 0 8px 8px 0;
}

/* --------------------------------------------------------------------------
   Calendar (#calendar-container)
   -------------------------------------------------------------------------- */
.calendar {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-header h3 {
  font-size: 1.2rem;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c3e50;
  padding: 4px 12px;
  line-height: 1;
}

.calendar-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #666;
  padding: 8px 0;
}

.calendar-day {
  text-align: center;
  padding: 10px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.calendar-day:hover {
  background: #e8f0eb;
}

.calendar-day.available {
  background: #e8f5e9;
  color: #2c3e50;
}

.calendar-day.booked {
  background: #ffebee;
  color: #c62828;
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day.past {
  color: #ccc;
  cursor: not-allowed;
}

.calendar-day.selected {
  background: #5a8a6a;
  color: #fff;
}

.calendar-day.in-range {
  background: #c8e6c9;
  color: #2c3e50;
}

.calendar-day.today {
  border: 2px solid #c0956c;
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.empty:hover {
  background: transparent;
}

/* --------------------------------------------------------------------------
   Date Selection (#date-selection)
   -------------------------------------------------------------------------- */
#date-selection {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.date-field {
  flex: 1;
  min-width: 200px;
}

.date-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #666;
}

.date-field span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
}

/* --------------------------------------------------------------------------
   Price Breakdown (#price-breakdown)
   -------------------------------------------------------------------------- */
#price-breakdown {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
  margin: 1rem 0;
}

.price-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.price-line:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: #2c3e50;
  padding-top: 12px;
  border-top: 2px solid #eee;
}

.price-line .discount {
  color: #5a8a6a;
}

/* --------------------------------------------------------------------------
   Monthly Booking (#monthly-booking)
   -------------------------------------------------------------------------- */
#monthly-booking select {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  color: #2c3e50;
}

#monthly-price-display {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.monthly-rate {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5a8a6a;
}

.monthly-equivalent {
  color: #666;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Explore Grid (.explore-grid)
   -------------------------------------------------------------------------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.explore-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.explore-card:hover {
  transform: translateY(-4px);
}

.explore-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.explore-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.explore-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Contact (#contact)
   -------------------------------------------------------------------------- */
#contact {
  text-align: center;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.contact-item {
  text-align: center;
}

.contact-item a {
  color: #5a8a6a;
  font-weight: 600;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.social-links {
  margin-top: 2rem;
}

.social-links a {
  display: inline-block;
  margin: 0 12px;
  color: #5a8a6a;
  font-weight: 600;
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

.address {
  color: #666;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Footer (.footer)
   -------------------------------------------------------------------------- */
.footer {
  background: #34495e;
  color: #fff;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.footer-bottom small {
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* ---------- Tablet (max-width: 992px) ---------- */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Mobile (max-width: 768px) ---------- */
@media (max-width: 768px) {
  /* Nav mobile menu */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #34495e;
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  /* Hero */
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Amenities */
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Facilities */
  .facilities-list {
    grid-template-columns: 1fr;
  }

  /* Explore */
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-methods {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Rate table */
  .rate-table th,
  .rate-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .rate-table .rate-amount {
    font-size: 1rem;
  }

  /* Date selection stack */
  #date-selection {
    flex-direction: column;
    gap: 1rem;
  }

  .date-field {
    min-width: unset;
  }

  /* Callout box */
  .callout-box {
    padding: 24px 20px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ---------- Small Mobile (max-width: 480px) ---------- */
@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .booking-tabs {
    flex-direction: column;
  }

  .booking-tabs button:first-child {
    border-radius: 8px 8px 0 0;
  }

  .booking-tabs button:last-child {
    border-radius: 0 0 8px 8px;
  }

  .monthly-rate {
    font-size: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Booking Messages
   -------------------------------------------------------------------------- */
.booking-message {
  padding: 16px 24px;
  border-radius: 8px;
  margin: 0 auto 2rem;
  max-width: 1100px;
  text-align: center;
  font-weight: 500;
}

.booking-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.booking-canceled {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* --------------------------------------------------------------------------
   Monthly Form
   -------------------------------------------------------------------------- */
.monthly-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2c3e50;
}

.monthly-total {
  margin-top: 8px;
  color: #2c3e50;
}

.monthly-utilities {
  margin-top: 8px;
  color: #5a8a6a;
  font-weight: 600;
}

.price-divider {
  border: none;
  border-top: 2px solid #eee;
  margin: 8px 0;
}

.price-error {
  color: #c62828;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

@media (max-width: 480px) {
  .monthly-form {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Calendar title
   -------------------------------------------------------------------------- */
.calendar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
}

.calendar-nav {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c3e50;
  padding: 4px 12px;
  line-height: 1;
}

.calendar-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}
