/*

Theme Name: Hello Elementor Child

Theme URI: https://github.com/elementor/hello-theme/

Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team

Author: Elementor Team

Author URI: https://elementor.com/

Template: hello-elementor

Version: 1.0.1

Text Domain: hello-elementor-child

License: GNU General Public License v3 or later.

License URI: https://www.gnu.org/licenses/gpl-3.0.html

*/

/* Existing styles */
.rv-product-page {

}

.rv-header-image {
    width: 100%;
    height: 400px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.header-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.header-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rv-header-product-image {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    max-width: 300px;
    z-index: 1;
}

.rv-header-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Two-Column Layout */
.rv-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative; /* Needed for sticky positioning */
}

.rv-info-column {
    flex: 6;
    min-width: 0;
}

.rv-booking-column {
    flex: 3;
    min-width: 200px;
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: 20px; /* Distance from top when scrolling */
    align-self: flex-start; /* Keeps it from stretching */
}

/* Info Blocks */
.rv-info-blocks {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px; /* Space before description */
}

.info-block {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.info-icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto 10px;
    border-radius: 50%;
}

.info-label {
    display: block;
    color: #888;
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    color: #000;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Product Details (now in info column) */
.rv-product-details {
    flex: 1;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.rv-city {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}

.product-description {
    margin-bottom: 20px;
}

.enriched-content {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 20px;
}

.enriched-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.enriched-content p {
    margin-bottom: 20px;
}

/* Booking Info */
.rv-booking-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.rv-booking-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.booking-label {
    color: #888;
    font-size: 1rem;
    margin-bottom: 5px;
}

.booking-value {
    color: #000;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.booking-button {
    margin-bottom: 10px;
}

.booking-button .button {
    background-color: #0ea5e9;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    display: block;
}

.booking-notice {
    background-color: #d4edda;
    color: #155724;
    padding: 8px;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 4px;
}

/* Mobile View */
@media (max-width: 768px) {
    .rv-columns {
        flex-direction: column;
    }

    .rv-info-column {
        flex: 1;
        width: 100%;
    }

    .rv-booking-column {
        flex: 1;
        width: 100%;
        margin-top: 20px;
        position: static; /* Disable sticky on mobile */
    }

    .rv-info-blocks {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }

    .info-block {
        min-width: 100px;
        flex: 1;
    }

    .info-value {
        font-size: 1rem;
    }

    .rv-header-product-image {
        max-width: 200px;
        right: 10px;
    }
}

ul {
    list-style: none;
    padding: 0;
}
ul li {
    margin: 10px 0;
}
ul li a {
    text-decoration: none;
    color: #0066cc;
}
ul li a:hover {
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
}

/* Add the following to your theme's style.css or child theme stylesheet */

/* Container styling */
.park-header {
  text-align: center;
  margin-bottom: 2rem;
}

.park-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #2a4d69;
}

.park-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.park-meta p {
  display: inline-block;
  margin: 0.5rem 1rem;
  font-size: 0.9rem;
  background: #f0f4f8;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

.park-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.park-section {
  margin-bottom: 2rem;
}

.park-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.3rem;
}

.park-section p {
  margin: 0.75rem 0;
}

/* Address block */
.park-address {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Contact & External link styling */
.park-contacts h2,
.park-directions h2,
.park-external h2 {
  color: #2a4d69;
}

.park-contacts p,
.park-directions p,
.park-external p {
  margin: 0.5rem 0;
}

.park-contacts a,
.park-external a {
  color: #1e88e5;
  text-decoration: none;
}
.park-external a:hover {
  text-decoration: underline;
}

/* Table styling for hours */
.park-hours table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.park-hours th,
.park-hours td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}

.park-hours th {
  background: #f0f4f8;
}

/* Responsive */
@media (max-width: 600px) {
  .park-meta p {
    display: block;
    margin: 0.5rem 0;
  }
  .park-title {
    font-size: 2rem;
  }
}

/* STATES OVERVIEW */
.states-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.states-overview__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2a4d69;
}

/* grid */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 2rem;
}

/* card */
.state-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* header */
.state-card__header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.state-card__flag {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 0.75rem;
}
.state-card__name {
  font-size: 1.5rem;
  margin: 0;
  color: #1f314a;
}

/* meta */
.state-card__meta p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #555;
}

/* button */
.state-card__button {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #e3f2e1;
  color: #1b5e20;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
.state-card__button:hover {
  background: #c8e6c9;
}

/* responsive tweak */
@media (max-width: 600px) {
  .states-overview__title { font-size: 2rem; }
}

/* STATE ARCHIVE PAGE */
.state-header {
  display: flex;
  align-items: center;
  padding: 2rem 1rem;
  background: #f9fafb;
  border-radius: 8px;
  margin: 1.5rem auto;
  max-width: 1200px;
}
.state-header__flag {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 1rem;
}
.state-header__info .state-header__title {
  font-size: 2.25rem;
  margin: 0;
  color: #1f314a;
}
.state-header__abbr {
  margin: 0.25rem 0 0;
  color: #555;
}

/* Parks grid */
.state-parks-title {
  text-align: center;
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: #2a4d69;
}
.parks-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  max-width: 1200px;
  margin: 0 auto 3rem;
}

/* Park card */
.park-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.park-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.park-card__body {
  flex: 1;
  padding: 1.25rem;
}
.park-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #1f314a;
}
.park-card__established {
  margin: 0 0 0.75rem;
  color: #555;
  font-size: 0.9rem;
}
.park-card__excerpt {
  margin: 0 0 1rem;
  color: #444;
  line-height: 1.5;
}
.park-card__tags {
  margin-bottom: 1rem;
}
.park-card__tag {
  display: inline-block;
  background: #e3f2e1;
  color: #1b5e20;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin: 0 0.3rem 0.3rem 0;
}

/* View Details link */
.park-card__link {
  display: block;
  text-align: center;
  background: #1e88e5;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}
.park-card__link:hover {
  background: #1565c0;
}

/* Responsive */
@media (max-width: 600px) {
  .state-header {
    flex-direction: column;
    text-align: center;
  }
  .state-header__flag {
    margin-bottom: 0.75rem;
  }
}

