/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

b {
  font-weight: 600;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

p {
	line-height: 1.5;
	max-width: 65ch;
	margin-bottom: 0.5em;
	/* font-size: 1.1rem; */
}

/*
---------------------------------------------------
Fixes to the Lightgallery photo and video viewer
This is shared by all templates
---------------------------------------------------
*/

#lg-gallery .lg-slide .object {
  transition-duration: 0.3s;
}

#lg-gallery .video {
  height: 100%;
  left: 0;
  padding-bottom: 100px;
  position: absolute;
  top: 0;
  width: 100%;
}

#lg-gallery video {
  max-width: 100%;
}

/* always display captions above the thumbnails */
.lg-sub-html {
  bottom: 100px;
}


/* The hero image */
.hero-image {
  /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../media/large/IMG_20170722_195532.jpg");

  /* Set a specific height */
  height: 50%;
  min-height: 400px;

  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin-bottom: 10px;
}

/* Place text in the middle of the image */
.hero-text {
  font-size: 1.8em;
  text-align: center;
  position: absolute;
  bottom: 20px;
  right: 20px;
  /* transform: translate(-50%, -50%); */
  color: white;
}

.split-container {
  padding: 10px;
  display: flex;
  flex-wrap: wrap; /* Gör layouten responsiv */
  width: 100%;
  min-height: 400px;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-section, .info-section {
  flex: 1; /* Delar bredden 50/50 */
  min-width: 300px; /* Brytpunkt: staplas om skärmen är smalare än 600px totalt */
}

.map-section iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

.info-section {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.info-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  align-self: flex-start;
}

.fb-button {
  display: inline-block;
  background-color: #1877F2; /* Facebooks blå färg */
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.fb-button:hover {
  background-color: #145dbf;
}

/* Ny kod */

.property-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Kartorna sida vid sida */
.maps-row {
  display: flex;
  flex-wrap: wrap; /* Gör det responsivt */
  gap: 15px;
}

.map-wrapper {
  flex: 1;
  min-width: 300px; /* Brytpunkt för mobil */
  height: 400px;
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.map-wrapper iframe, .map-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* Små etiketter uppe i hörnen på kartorna */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.click-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 4px;
}

/* Faktarutan */
.fact-box {
  background: #f9f9f9;
  color: black;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #eee;
  
  h2 {
	  /* text-align: center; */
	  margin-bottom: 30px;
	  font-weight: 900;
  } 
}

/* .fact-box > h2 { */
	/* font-color: yellow; */
/* } */

.fact-grid {
  display: flex;
  flex-direction: column;
  /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
  gap: 20px;
  margin-top: 15px;
  
  .fact-item {
	  
	  strong {
		  font-weight: 600;
	  }
	  
	  h3 {
		  font-weight: 900;
		  line-height: 2;
	  }
  }
}

.fb-link {
  color: #1877F2;
  font-weight: bold;
  text-decoration: none;
}

.fb-link:hover {
  text-decoration: underline;
}

.sold {
  color: #ff0000;
}
