/*
Theme Name: Cozy Cabins
Theme URI: https://www.pinedalecozycabins.com
Author: Pinedale Cozy Cabins
Description: Custom theme for Pinedale Cozy Cabins - Your Home Away From Home
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: cozy-cabins
*/

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  background: #000;
}

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

a {
  color: #444;
  text-decoration: none;
}

a:hover {
  color: #000;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
  margin-top: 0;
}

h1 {
  font-size: 30px;
  font-weight: 300;
  color: #000;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  font-weight: 400;
  color: #666;
  line-height: 1.3;
}

h3 {
  font-size: 20px;
  font-weight: 400;
  color: #444;
}

h4 {
  font-size: 17px;
  font-weight: 400;
  color: #444;
  line-height: 1.6;
}

p {
  margin-bottom: 1em;
}

hr {
  border: none;
  border-top: 3px solid #ddd;
  margin: 20px 0;
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 1;
}

.col-half {
  width: 50%;
  padding: 0 15px;
}

.col-third {
  width: 33.333%;
  padding: 0 15px;
}

.col-quarter {
  width: 25%;
  padding: 0 15px;
}

/* === HEADER === */
.site-header {
  position: relative;
  z-index: 100;
}

.header-nav-bar {
  background: #e8e9e7;
  padding: 10px 0;
}

.header-nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  width: 132.5px;
  height: 75px;
}

.main-navigation {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation li a {
  display: block;
  padding: 10px 15px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.main-navigation li a:hover,
.main-navigation li.current a {
  background: #fff;
  color: #000;
}

.main-navigation li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 180px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  z-index: 200;
}

.main-navigation li:hover .sub-menu {
  display: block;
}

.main-navigation .sub-menu li a {
  padding: 8px 15px;
  font-size: 13px;
  color: #000;
  border-bottom: 1px solid #eee;
}

.header-contact-bar {
  background: #191919;
  padding: 8px 0;
}

.header-contact-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.social-links {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.8;
  color: #fff;
}

.social-links .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

/* === MOBILE MENU === */
.menu-toggle {
  display: none;
  background: #444;
  color: #fff;
  border: 1px solid #666;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(50, 54, 71, 0.7);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 40px 20px;
}

.hero-logo {
  max-width: 405px;
  margin: 0 auto 30px;
}

.hero-logo img {
  width: 100%;
  margin: 0 auto;
}

/* === BOOKING FORM === */
.booking-form {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.booking-form .form-group {
  text-align: left;
}

.booking-form label {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.booking-form input,
.booking-form select {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  min-width: 160px;
}

.booking-form .btn-search {
  background: #444;
  color: #fff;
  border: none;
  padding: 11px 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  transition: background 0.2s;
}

.booking-form .btn-search:hover {
  background: #222;
}

/* === CONTENT SECTIONS === */
.section {
  padding: 50px 0;
}

.section-light-gray {
  background: #e8e9e7;
}

.section-off-white {
  background: #f4f4f4;
}

.section-white {
  background: #fff;
}

.section h1 {
  text-align: center;
  margin-bottom: 30px;
}

.section h1.section-title {
  font-weight: 600;
  color: #191919;
}

/* === ABOUT SECTION (Homepage) === */
.about-section {
  padding: 50px 0;
  background: #e8e9e7;
}

.about-section h2 {
  text-align: center;
  color: #191919;
  font-weight: 600;
  font-size: 30px;
  margin-bottom: 5px;
}

.about-section h2.subtitle {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
}

.about-section .about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.7;
}

.about-section .signoff {
  text-align: right;
  margin-top: 20px;
}

.about-section .signoff strong {
  display: block;
}

/* === CABIN FEATURES === */
.cabin-features {
  padding: 50px 0;
  background: #f4f4f4;
}

.cabin-features h1 {
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  color: #191919;
}

.feature-card {
  text-align: center;
  margin-bottom: 30px;
}

.feature-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.feature-card h2 {
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  background: #444;
  color: #fff;
  padding: 10px 25px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
  font-family: 'Open Sans', sans-serif;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #222;
  color: #fff;
}

/* === ATTRACTIONS GRID === */
.attractions-section {
  padding: 50px 0;
  background: #fff;
}

.attractions-section h1 {
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  color: #191919;
}

.attraction-card {
  text-align: center;
  margin-bottom: 30px;
}

.attraction-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.attraction-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.attraction-card a {
  color: #444;
  font-weight: 600;
  text-decoration: underline;
}

/* === NEWS & EVENTS === */
.news-events-section {
  padding: 50px 0;
  background: #f4f4f4;
}

.news-column h1,
.events-column h1 {
  text-align: left;
  margin-bottom: 25px;
  font-weight: 600;
  color: #191919;
}

.blog-preview {
  margin-bottom: 25px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.blog-preview img {
  width: 150px;
  height: 112px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.blog-preview h4 {
  margin-bottom: 10px;
  line-height: 1.4;
}

/* === TESTIMONIAL === */
.testimonial {
  padding: 40px 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial blockquote {
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 15px;
  padding: 0 20px;
  border: none;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: #666;
  display: block;
}

/* === MAP SECTION === */
.map-section {
  padding: 50px 0;
  background: #f4f4f4;
}

.map-section h1 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
  color: #191919;
}

.map-embed {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 4px;
}

/* === FOOTER === */
.site-footer {
  background: #000;
  color: #fff;
  padding: 25px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.site-footer a {
  color: #fff;
}

/* === PAGE TEMPLATES === */
.page-content {
  background: #fff;
  padding: 50px 0;
}

.page-content h1.page-title {
  font-weight: 600;
  color: #191919;
  margin-bottom: 30px;
}

.two-column-layout {
  display: flex;
  gap: 40px;
}

.two-column-layout .col-left {
  flex: 1;
}

.two-column-layout .col-right {
  flex: 1;
}

/* === CONTACT FORM === */
.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
}

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

.contact-form .btn {
  margin-top: 10px;
}

/* === FAQ ACCORDION === */
.faq-section {
  margin-top: 40px;
}

.faq-item {
  border: 1px solid #ddd;
  margin-bottom: 5px;
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  background: #f4f4f4;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #e8e9e7;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 15px 20px;
  max-height: 500px;
}

/* === ATTRACTIONS LIST PAGE (3-col grid matching original) === */
.attractions-filter {
  margin-bottom: 25px;
}

.attractions-filter select {
  padding: 6px 12px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.attractions-grid {
  overflow: hidden;
}

.attraction-card-grid {
  float: left;
  width: 33.333%;
  padding: 0 10px;
  margin-bottom: 25px;
  box-sizing: border-box;
}

.attraction-card-grid.middle {
  /* middle card in row */
}

.attraction-card-image a {
  display: block;
}

.attraction-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.attraction-card-placeholder {
  width: 100%;
  height: 200px;
  background: #e8e9e7;
}

.attraction-card-title {
  margin-top: 5px;
}

.attraction-card-title h2 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 5px;
}

.attraction-card-title h2 a {
  color: #000;
  text-decoration: none;
}

.attraction-card-title h2 a:hover {
  text-decoration: underline;
}

.attraction-card-meta {
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

.attraction-card-meta p {
  margin: 0 0 3px;
}

.attraction-card-meta .attraction-type {
  color: #666;
}

.attraction-card-meta .attraction-opening,
.attraction-card-meta .attraction-closing {
  color: #666;
}

.attraction-card-meta a {
  color: #444;
  text-decoration: underline;
}

.attraction-card-meta a:hover {
  color: #000;
}

.clear {
  clear: both;
}

/* Legacy list styles (kept for sub-pages) */
.attraction-list-item {
  display: flex;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid #ddd;
  align-items: flex-start;
}

.attraction-list-item img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.attraction-list-item h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.attraction-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.attraction-meta span {
  margin-right: 15px;
}

/* === ATTRACTION DETAIL === */
.attraction-detail {
  background: #fff;
  padding: 50px 0;
}

.attraction-detail .attraction-info {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.attraction-detail .attraction-info-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #f4f4f4;
  padding: 20px;
  border-radius: 4px;
}

.attraction-detail .attraction-info-sidebar h3 {
  margin-bottom: 15px;
}

.attraction-detail .attraction-info-sidebar p {
  font-size: 14px;
  margin-bottom: 8px;
}

.info-label {
  font-weight: 600;
  color: #444;
}

/* === BLOG === */
.blog-post {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

.blog-post h2 a {
  color: #191919;
}

.blog-post h2 a:hover {
  color: #444;
}

.blog-post-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 15px;
}

.blog-post-content img {
  margin: 20px 0;
  border-radius: 4px;
}

.blog-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.blog-sidebar h3 {
  margin-bottom: 15px;
  font-weight: 600;
}

.blog-sidebar ul {
  list-style: none;
  padding: 0;
}

.blog-sidebar ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.blog-sidebar ul li a {
  font-size: 14px;
}

/* === BOOKING PAGE === */
.booking-page-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.booking-page-form h2 {
  margin-bottom: 25px;
}

.booking-page-form .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.booking-page-form .form-group {
  text-align: left;
}

.booking-page-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.booking-page-form input,
.booking-page-form select {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  min-width: 180px;
}

/* === DIRECTIONS === */
.directions-section h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 22px;
  color: #191919;
  font-weight: 600;
}

.directions-section h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #444;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 999;
  font-size: 20px;
}

.back-to-top.visible {
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .col-third {
    width: 50%;
  }

  .col-quarter {
    width: 50%;
  }

  .two-column-layout {
    flex-direction: column;
  }

  .blog-sidebar {
    width: 100%;
  }

  .attraction-detail .attraction-info {
    flex-direction: column;
  }

  .attraction-detail .attraction-info-sidebar {
    width: 100%;
  }

  .attraction-card-grid {
    width: 50%;
  }
}

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

  .main-navigation {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #e8e9e7;
    z-index: 200;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  .main-navigation.active {
    display: flex;
  }

  .main-navigation li .sub-menu {
    position: static;
    box-shadow: none;
  }

  .col-third,
  .col-quarter,
  .col-half {
    width: 100%;
  }

  .row {
    flex-direction: column;
  }

  .hero-section {
    min-height: 400px;
  }

  .booking-form {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 24px;
  }

  .about-section h2 {
    font-size: 24px;
  }

  .blog-preview {
    flex-direction: column;
  }

  .blog-preview img {
    width: 100%;
    height: 200px;
  }

  .attraction-list-item {
    flex-direction: column;
  }

  .attraction-list-item img {
    width: 100%;
    height: 200px;
  }

  .attraction-card-grid {
    float: none;
    width: 100%;
    padding: 0;
  }
}
