/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/


/* BADGES */
.site-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 37px;
    padding-bottom: 10px;
    margin: 10px 0 15px;
}

.location-title {
    font-family: Helvetiva, Arial, sans-serif;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
}
/*
.photo-type-badge {
    background: #f0f2f5;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    line-height: 1.4;
    color: #333;
    display: inline-block;
}

*/

.location-excerpt {
    color: gray;
    font-size: 1.2em;
}

html, body {
  background: #fcfcfd !important;
}

.site-header {
  background: #fcfcfd;
}

.photo-type-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.75em;
    background: #F6F7F2;  /* lighter */
    color: #4F5638;       /* neutral, not brand accent */
    border: 1px solid #e6e6e6;
    border-radius: 4px;
}

/* More minimalistic badges*/
.parking-badge, .pt-badge, .photo-char {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 6px 6px 0;
    font-size: 0.8em;
    /*background: #f5f5f5;*/
    background: #EEF0E7;
    color: #C86A2B;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.3;
    transition: all 0.3s ease;
}

/*
.photo-type-badge:hover {
    background: #e9e9e9;
    color: #333;
    border-color: #d5d5d5;
}
*/


/* Breadcrumbs */
.location-glance a {
    text-decoration: none;
    color: #777; /* mid grey */
    transition: color 0.1s ease;
    font-family: Balto Web, Helvetiva, Arial, sans-serif;
    font-weight: bold;
}

/* Breadcrumbs Hover state font-weight: 300 */
.location-glance a:hover {
    color: #000; /* dark grey */
    font-family: Balto Web, Helvetiva, Arial, sans-serif;
    font-weight: bold;
}

/* Style the separator*/
.location-glance .glance-sep {
    color: #777;          /* light grey */
    font-weight: bold;  /* keep it thin */
    opacity: 0.7;         /* subtle, understated */
    padding: 0 4px;       /* tight spacing */
    font-size: 0.9em;     /* slightly smaller than text */
    letter-spacing: -0.5px;
}

body.single-locations_new img.wp-post-image {
    border-radius: 12px; /* adjust to taste */
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}

.image-label {
    color: #777;
    text-align: left;
    font-size: 0.8em;
    display: block;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
}

.section-title {
    color: #333;
    padding-top: 10px;
    font-weight: bold;
}

.sub-header {
    color: #c86a2b;
    font-weight: bold;
    padding-left: 20px;
}

.location-text {
    padding-top: 20px;   
    padding-bottom: 0px;
    padding-left: 37px;
}

.location-text-no-padding {
    padding-top: 0px;   
    padding-bottom: 0px;
}

.badge-title {
    color: #C86A2B;
    font-weight: bold;
    padding-left: 40px;
}

.single-locations_new {
    padding: 0 40px;
    max-width: 1320px;
    margin: 0 auto;
}

.location-overview, .at-a-glance {
    padding-top: 10px;
}

.parking-transport-overview, .terrain-notes {
    padding-bottom: 20px;
    padding-top: 10px;
}





.location-map {
  margin: 20px 0;
}

.location-map-image img {
  width: 85%;
  max-width: 800px;
  margin-left: 20px;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-bottom: 10px;
}

.location-map-link {
  margin-top: 8px;
  font-size: 0.9rem;
}

.map-badge-link {
  display: inline-block;
  margin-left: 20px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #C86A2B;
  border-radius: 999px; /* pill shape */
  text-decoration: none;
  transition: background-color 0.10s ease-in-out;
}

.map-badge-link:hover {
  background-color: #B45F26; /* slightly darker */
  color: #ffffff;
}

.location-text .rail-link{
  font-size: 0.95em;
  color: #666;
}

.location-text .rail-link a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 106, 43, 0.5);

}

.location-text .rail-link a:hover{
  color: #C86A2B;
  border-bottom: 0px solid rgba(200, 106, 43, 0.5);
}

.location-text .rail-link a::after{
  content: "↗";
  font-size: 0.8em;
  margin-left: 3px;
  opacity: 0.6;
  color: #C86A2B;
}




.section-spacer {
    height: 30px;
}














.more-locations-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.more-location-card{ margin:0; }

.more-location-link{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:10px;
  text-decoration:none;
}

.more-location-thumb img{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:8px;
  display:block;
}

.more-location-title{
  font-weight:600;
  line-height:1.2;
}

/* responsive */
@media (max-width: 700px){
  .more-locations-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px){
  .more-locations-grid{ grid-template-columns:1fr; }
}


/* ADDITIONAL IMAGES */
.additional-images{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  text-align: left;
  padding-top: 20px;
  padding-left: 20px;
  padding-bottom: 20px;
}

.additional-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Stack on smaller screens */
@media (max-width: 700px){
  .additional-images{
    grid-template-columns: 1fr;
  }
}

.additional-image figcaption{
  margin-top: 6px;
  font-size: 0.8em;
  color: #777;
  line-height: 1.4;
}






/* ACCOMMODATION */
.accommodation-block{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.accommodation-title{
  margin-bottom: 10px;
}

.accommodation-links{
  margin: 8px 0 0;
  font-size: 0.95em;
  color: #666;
}

.accommodation-place{
  margin-right: 6px;
  color: #444;
  font-weight: 600;
}

.external-utility-link{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 106, 43, 0.5);
}

.external-utility-link:hover{
  color: #C86A2B;
  border-bottom: 0px solid rgba(200, 106, 43, 0.5);
}

.external-utility-link::after{
  content: "↗";
  font-size: 0.8em;
  margin-left: 4px;
  opacity: 0.6;
  color: #C86A2B;
}





/* 16:9 Ratio 
.location-hero,
.additional-image{
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.location-hero img,
.additional-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Remove/override these if you added them */
.location-hero{ overflow: visible; aspect-ratio: auto; }
.additional-image{ overflow: visible; aspect-ratio: auto; }

/* Enforce 16:9 on the image itself */
.location-hero img,
.additional-image img{
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}












.locator-map{
  max-width: 300px;  /* adjust as needed */
  border-radius: 12px;
  overflow: hidden;
}

.locator-map img{
  width: 100%;
  height: auto;
  display: block;
}

.locator-map-gl{
  width: 100%;
  max-width: 340px;     /* adjust: 280–420 is typical */
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
}

.location-map-gl{
  width: 85%;
  max-width: 800px;
  margin-left: 20px;
  margin-bottom: 10px;
  aspect-ratio: 2 / 1;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.map-pin-label{
  background: rgba(255,255,255,0.92);
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1;
  border: 1px solid rgba(0,0,0,0.1);
  white-space: nowrap;
}

.location-map-gl canvas {
  cursor: default !important;
}


@media (max-width: 900px){

  .location-map-gl{
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

}

.location-map-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-badge-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}

.map-badge-link:hover {
  background: #f0f0f0;
}





/* Container  font-size: 0.85rem; */
.w3w {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  cursor: pointer;
  color: #C86A2B;
  padding: 2px 0;
  border-bottom: 1px transparent rgba(200, 106, 43, 0.5);
  transition: border-color 0.2s, color 0.2s;
  border-bottom-color: #C86A2B;
  font-size: 0.9rem;
  font-weight: normal;
  opacity: 1;
}

.w3w:hover {
  color: #C86A2B;
  padding: 2px 0;
  border-bottom: 1px transparent rgba(200, 106, 43, 0.5);
  opacity: 1;
}

/* Icon base */
.w3w-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.w3w:hover .w3w-icon {
  opacity: 1;
}

/* Location pin icon */ 
.pin-icon {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23C86A2B' stroke='%23C86A2B' stroke-width='1.5' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M12 2c-3.3 0-6 2.7-6 6 0 4.4 6 12 6 12s6-7.6 6-12c0-3.3-2.7-6-6-6z'/><circle cx='12' cy='8' r='2.5' fill='white'/></svg>");
}

/* Copy icon */
.copy-icon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='6' y='7' width='11' height='14' rx='2' fill='%23fff' stroke='%23C86A2B' stroke-width='1.5'/><rect x='9' y='4' width='11' height='14' rx='2' fill='%23fff' stroke='%23C86A2B' stroke-width='1.5'/></svg>");
}

/* Tick icon */
.tick-icon {
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23C86A2B' stroke-width='3' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M5 13l4 4L19 7'/></svg>");
  display: none;
}



/* ================================================
   LOCATION MAP COMPONENT
   Add to your main stylesheet.
   Leaflet CSS must also be loaded in the page head:
   <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"/>
   ================================================ */

/* Outer wrapper — controls component width */
.map-component {
  width: 580px;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.13);
}

/* Banner bar across the top */
.map-banner {
  background: #161820;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Location name — left side of banner */
.map-location-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e8e6e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Right side of banner — coords button and map link */
.map-banner-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* Coordinates copy-to-clipboard button */
.coords-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 1px solid #2a2d3a;
  border-radius: 4px;
  padding: 0.22rem 0.5rem;
  cursor: pointer;
  color: #888;
  font-size: 0.7rem;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.coords-btn:hover {
  border-color: #c86a2b;
  color: #c8c6c1;
}

/* "Copied" tooltip — appears below the button on click */
.coords-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #c86a2b;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}

.coords-btn.copied .coords-tooltip {
  opacity: 1;
}

/* Interactive Map & Weather link — right side of banner */
.map-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.73rem;
  color: #c86a2b;
  text-decoration: none;
  border: 1px solid #c86a2b;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.map-link:hover {
  background: #c86a2b;
  color: #fff;
}

/* Leaflet map canvas */
.map-canvas {
  width: 100%;
  height: 280px;
  display: block;
}

/* Hide all Leaflet controls — map is static */
.map-canvas .leaflet-control-container {
  display: none;
}

/* Remove pointer cursor — map is not interactive */
.map-canvas .leaflet-container {
  cursor: default;
}

/* Attribution strip */
.map-attribution {
  background: #0d0f14;
  padding: 0.3rem 0.75rem;
  font-size: 0.65rem;
  color: #555;
}

.map-attribution a {
  color: #555;
  text-decoration: none;
}

.map-attribution a:hover {
  color: #888;
}
