/* General styling */
body {
    font-family: Arial, Helvetica, sans-serif;
    /* font-family: 'Georgia', serif; */
    margin: 0 auto;
    padding: 0;
    margin-top: 0px;
    background-color: #666666;
    color: #333;
    overflow-x: hidden;
}

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


/* Header styling */
header {
    background-color: #000;
    margin-bottom: 0px; 
    color: #FFFFFF;
    padding-bottom: 0px; /* having this gets rid of weird gap between header and nav */
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0px;
    text-align: right; 
}

nav ul li {
    display: inline;
    margin-right: 20px;
     
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: bold;
    font-family:Arial, Helvetica, sans-serif; 
    font-size: 12px; 
}

/* Main content styling */
main {
    padding: 20px;
    background-color: #cecebc
}

section h2 {
    font-size: 24px;
    color: #000;
}

/* Footer styling */
footer {
    background-color: #ccc;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}


.tour-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.tour-grid a {
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.tour-grid img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.tour-grid img:hover {
    transform: scale(1.05);
}

.garden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 10px;
    justify-items: center;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  

  .garden-item {
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 150px;  /* ⬅️ Back to thumbnail size */
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
  }
  
  

.garden-item img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #ddd;
}

.garden-item h3 {
    font-size: 20px;
    margin: 10px 0;
    color: #333;
}

.garden-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

section img {
    max-width: calc(100% - 40px); /* Subtract 40px (20px on each side) from total width */
    height: auto;
    display: block;
    margin: 0 auto;
}


.content {
    display: flex;
    justify-content: space-between;
}

.left-column, .right-column {
    width: 48%; /* Adjust the width as needed */
}

.left-column {
    text-align: left;
}

.right-column {
    text-align: right;
}

.subnav {
    width: calc(100% - 20px); 
    text-align: right;
    background-color: #999966; /* Greenish color */
    padding: 5px 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.subnav a {
    color: #333333;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
}

.subnav a:first-child {
    margin-left: 0;
}


/* Byodo-in specific styles */
.container {
    display: flex;
    gap: 20px;
  }
  
  .map-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-bottom: 1rem
  }
  
  .map-container img {
    width: 100%;
    display:block; 
  }
  
  .map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
  }
  
  /* Red clickable circle */
  .map-marker .circle {
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    border: 2px solid red;
    position: relative;
    z-index: 1;
  }
  
  /* Triangle that sits just outside the circle */
  .map-marker .triangle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 14px solid red; /* black for now so you can see */
    z-index: 2;
    transform-origin: center top;
  }
  
  
  
  
  .image-container {
    width: 60%;
  }
  
  .image-container img {
    width: 100%;
    height: auto;
    border: 2px solid #333;
  }
  
  .tabs {
    margin-top: 20px;
  }
  
  .tab-link {
    padding: 10px;
    margin-right: 10px;
    background-color: #999966;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  .tab-link.active {
    background-color: #666633;
  }
  
  .tab-content {
    display: none;
    margin-top: 10px;
    background: #f5f5f5;
    padding: 15px;
  }
  
  .tab-content.active {
    display: block;
  }
  
/* Split layout for map and tabbed content */
.split-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #cecebc;
  }
  
  .left-side {
    flex: 1 1 300px; 
    /*flex-basis: 33%;*/
  }
  
  .right-side {
    flex: 2 1 600px; 
    /*flex-basis: 67%;*/
  }
  
  /* Tabs inside right panel */
  .right-side .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .right-side .tab-content {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
  }

  h2, h3 { /* dotted line */
    border-bottom: 1px dotted #333;
    padding-bottom: 5px;
    margin-bottom: 15px;
  }
  
  /*to make this work more smoothly with smaller screens*/
  @media (max-width: 768px) {
    .split-layout {
      flex-direction: column;
    }
  
    .left-side,
    .right-side {
      max-width: 100%;
      flex: 1 1 100%;
    }
  
    .left-side {
      padding-right: 0; /* removes extra spacing */
      border-right: none; /* optional: remove divider on small screens */
      margin-bottom: 20px; /* optional: add spacing between stacked sections */
    }
  }

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

.modal-overlay {
    display: none; /* hides by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);                   
    justify-content: center;    
    align-items: center;     
    z-index: 9999;
  }
  
  
  
  .modal-content {
    background-color: #fff;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    border-radius: 8px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  
  
  
  .modal-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
  }
  
  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .map-marker:hover .triangle {
    border-top-width: 30px;       /* was 18px — now it's longer */
    border-left-width: 7px;       /* slightly wider base */
    border-right-width: 6px;
    filter: drop-shadow(0 0 3px white); /* slight extra glow */
    transition: all 0.2s ease-out;
  }
  