/* Reset defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
  }
  
/*--------begin header-------*/
header {
    width: 100%;
}

.header-container {
    background-color: #333;
    color: white;
    padding: 10px 60px 10px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
  width: 65px; /* Proportional width: 66 * (130/132) ≈ 65px */
  height: 66px; /* Desired height */
  max-width: none; /* Prevent override */
  max-height: none; /* Prevent override */
  aspect-ratio: 130 / 132; /* Maintain intrinsic aspect ratio */
  object-fit: contain; /* Ensure no cropping */
}

/* contains a <ul> with seven navigation links */
.nav-links {
    font-family: "Roboto Condensed", Tahoma, Geneva, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

.nav-links ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    margin-left: 1rem;
    padding-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links a:hover {
    color: #42af7d;
}

/* contains three <div class="line"> elements, representing the hamburger icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
}

/* Ensure admin pages (using admin-menu.php) don’t show hamburger */
body.admin nav .hamburger {
  display: none !important;
}

/* Ensure nav-menu stays visible on admin pages */
body.admin nav .nav-menu {
  display: flex !important;
  flex-direction: row !important;
}
  
/* Body Styling */
body {
font-family: Quicksand, Tahoma, Verdana, Geneva,  sans-serif;
color: #333333;
font-size: 15px;
line-height: 1.6;
margin: 0 auto;
width: 100%;
padding: 20px;
background-color: #fff;
}

@media (max-width: 768px) {
body {
    padding: 15px;
}
}

main {
width: 90%;
max-width: 1200px;
margin: 2rem auto;
}

h1 { 
  text-align: center; 
  line-height: 1.4; 
  margin-top: 15px; 
  margin-bottom: 15px; 
}

.breadcrumbs {
  text-align: center;
  margin-bottom: 15px;
}

/* State Thumbnail Gallery */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (max-width: 414px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: auto; /* Let aspect-ratio drive height for stability */
    aspect-ratio: 4 / 3; /* Matches your 320x240 landscape thumbs—reserves exact space upfront */
    object-fit: cover;
}

.card .state {
    padding: 1rem;
    font-weight: bold;
}

.card .photo-count {
    padding: 0 1rem 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive layout - reduce width of thumbnails to 120px (legacy rule—consider removing if not needed) */
@media (max-width: 600px) {
    .guide-home > div {
        border: 1px solid rgba(49,163,84, 0.8);
        width: 120px;
        padding: 10px;
        margin: 5px;
        text-align: center;
        font-size: 12px;
    }

    .state {
        font-size: 12px;
        font-weight: normal;
        line-height: 1.2;
        letter-spacing: 0px;
    }
}
 
/*--------begin footer-------*/
footer {
    background-color: #333;
    font-family: "Roboto Condensed", Tahoma, Geneva, sans-serif;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    color: #999;
    padding: 10px 60px 10px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
}

.footer-links div {
    margin-bottom: 20px;
    margin-right: 40px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    display: block;
    padding: 15px 100px 10px 0;
    border-bottom: 1px solid #666;
}

.footer-links a:hover {
    color: #42af7d;
}

.footer-social a {
    padding-left: 10px;
}

.footer-social span {
    margin-right: 10px;
}

.footer-copyright {
    background-color: #222;
    border-top: 1px solid #666;
    height: 40px;
    padding-top: 20px;
}

.footer-copyright span {
    color: #999;
    font-size: 75%;
    padding-left: 60px;
}

.footer-copyright a {
    color: #ccc;
    text-decoration: none;
}

/* Hamburger menu on mobile (front-end only) */
@media (max-width: 768px) {

    main {
      width: 95%;
      margin: 1rem auto;
    }

    .header-container {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .logo img {
      width: 52px; /* Proportional: 53 * (130/132) ≈ 52px */
      height: 53px; /* Matches current min-height */
      aspect-ratio: 130 / 132;
      object-fit: contain;
    }

    .nav-links {
        display: none;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-links ul li {
        margin: 10px 0;
        padding-left: 0;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hamburger {
        display: flex;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links div {
        margin: 10px 0;
        margin-right: 0;
    }

    .footer-links a {
        padding: 10px 0;
        border-bottom: none;
    }

    .footer-social {
        margin-top: 20px;
        text-align: center;
    }

    .footer-copyright span {
        padding-left: 20px;
        font-size: 70%;
    }
}

/* Header/Footer for Phone screens */

@media (max-width: 480px) {

    main {
        width: 98%;
        margin: 0.5rem auto;
    }
      
    .header-container {
        padding: 8px 15px;
    }

    .logo img {
      width: 43px; /* Proportional: 44 * (130/132) ≈ 43px */
      height: 44px; /* Matches current min-height */
      aspect-ratio: 130 / 132;
      object-fit: contain;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hamburger .line {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }

    .footer-social img {
        height: 25px;
    }

    .footer-copyright span {
        font-size: 65%;
    }
}