/* === GRUNDINSTÄLLNINGAR === */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f6f8;
    color: #333;
}

/* === HEADER === */
header {
    background-color: #fff;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* === LOGGA === */
header a img {
    height: 85px; /* justera höjd efter behov */
    width: auto;
    vertical-align: middle;
    padding-top: 20px;
}

/* === NAVIGATION === */
nav a, nav .nav-link, nav .nav-btn {
    color: #1c1c1c;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

nav a:hover, nav .nav-btn:hover {
    background-color: rgba(0, 255, 128, 0.15);
    color: #2d8b48;
}

/* === HERO-SEKTION (gemensam bas) === */
.hero,
.login-hero,
.signup-hero,
.contact-hero,
.about-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    height: 280px;
}

/* Specifika färger/bakgrunder */
.hero {
    padding: 160px 20px 120px;
    background: url('../static/hero.jpg') center/cover no-repeat;
}
.login-hero {
    background: url('../static/login-hero.jpg') center/cover no-repeat;
}
.signup-hero { background-color: #2d8b48; }
.contact-hero { background-color: #2d8b48; }
.about-hero { background-color: #2d8b48; }

.hero h2, .hero p, .hero .buttons {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* === KNAPPAR === */
.btn {
    background-color: #ffffff;
    color: #2d8b48;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: #e2e8f0;
}

/* === FUNKTIONS-SEKTION (features) === */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    background-color: white;
}

.feature {
    width: 280px;
    text-align: center;
}

.feature img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.feature h3 {
    color: #2d8b48;
    margin-bottom: 10px;
}

/* === FORMULÄR-GENERELLT (login, kontakt, signup) === */
form {
    max-width: 400px;
    margin: 60px auto;
    background: white;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

textarea {
    resize: vertical;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

form button {
    background-color: #2d8b48;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

form button:hover {
    background-color: #2d8b48;
}

/* === KORT-SEKTIONER (login, signup, kontakt, om) === */
.login-card,
.signup-card,
.contact-card,
.about-card {
    background: white;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.login-card:hover,
.signup-card:hover,
.contact-card:hover,
.about-card:hover {
    transform: translateY(-3px);
}

/* === TEXTSEKTIONER (t.ex. Om oss) === */
.about-section,
.signup-form-section,
.contact-form-section,
.login-form-section {
    background-color: #f5f6f8;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

/* === INFO-SEKTIONER MED TEXT OCH BILD === */
.info-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 80px;
    padding: 100px 10%;
    max-width: 1300px;
    margin: 0 auto;
    background-color: #ffffff;
}
.info-section:nth-of-type(even) {
    background-color: #f7f8fa;
}
.info-section .text { flex: 1; max-width: 500px; }
.info-section .text h3 { color: #2d8b48; font-size: 30px; margin-bottom: 15px; }
.info-section .text p { color: #444; font-size: 18px; line-height: 1.6; }

.info-section .image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    transform: translateX(-60px);
}
.info-section .image img {
    width: 100%;
    max-width: 480px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.info-section .image img:hover {
    transform: scale(1.04);
}



/* === RESPONSIV DESIGN === */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        text-align: center;
    }

    header a img { height: 50px; margin-bottom: 10px; }

    nav a { margin: 10px; display: inline-block; }

    .hero { padding: 100px 20px; }
    .hero h2 { font-size: 32px; }

    .features { flex-direction: column; align-items: center; }

    .info-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .info-section .image {
        justify-content: center;
        transform: none;
    }

    .info-section .image img {
        max-width: 90%;
    }
}


/* === ------------------------------------------------------------------------------------- === */

/* === GRID FÖR BOSTADSKORT === */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* === INDIVIDUELLA KORT === */
.property-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.property-card h3 {
    color: #004aad;
    margin: 15px 0 5px;
}

.property-card p {
    color: #444;
    font-size: 16px;
    margin-bottom: 15px;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* === KNAPP === */
.property-card .btn {
    margin-bottom: 20px;
}

/* === RESPONSIVT === */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

.google-login {
    text-align: center;
    margin-top: 20px;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.google-btn img {
    height: 18px;
    margin-right: 8px;
}

.google-btn:hover {
    background-color: #f2f2f2;
    border-color: #aaa;
}

.google-btn {
    display: inline-block;
    background-color: white;
    color: #444;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.google-btn:hover {
    background-color: #f7f7f7;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


.footer {
  background-color: #2d8b48;
  color: #ccc;
  padding: 60px 20px 30px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-col p {
  line-height: 1.6;
  font-size: 14px;
  color: #c4c2c2;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

/* === Nedre delen === */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #e0e0e0;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: #e0e0e0;
}

.footer-bottom span {
  color: #eee;
  font-weight: 500;
}

/* === HERO SECTION === */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90vh;
  background: linear-gradient(135deg, #73ff9b 0%, #2d8b48 100%);
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 700px;
}

.hero h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* === BUTTONS === */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn.primary {
  background-color: #2d8b48;
  color: #fff;
}

.btn.primary:hover {
  background-color: #1c572d;
}

.btn.secondary {
  background-color: #f2f2f2;
  color: #333;
}

.btn.secondary:hover {
  background-color: #ddd;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
