html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:'Montserrat', sans-serif;
	line-height: 1.5;
	overflow-x: hidden;
}

.no-scroll {
    overflow: hidden;
}
p{
	letter-spacing: 0.03em;

}
h1,h2 {
	color:#c40d2e;
	font-weight:normal;
	letter-spacing: 0.03em;
}

h3, h4 {
	color:#3f3c3c;
	font-weight:normal;
	letter-spacing: 0.03em;
}

#top-bar, #menu-bar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: top 0.5s ease-in-out;
	padding: 10px 0;
}

#top-bar {
    background-color: black;
    color: #c7c7c7;
    top: 0px;
    height: 25px;
    padding-top: 20px;
	display:none
}

#menu-bar {
    background-color: white;
    color: black;
    border-bottom: 1px solid #ddd;
	box-shadow: 2px 2px 9px 0px #2f2c2c;
	top: 0px;
}

.hidden {
    top: -110px !important;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1300px;
    margin: auto;
}

.contact-info {
    font-size: 1.1rem;
}

.language-select {
    font-size: 14px;
    cursor: pointer;
}

.kereso {
	margin: 0 auto;
    text-align: center;
}

.kereso input[type="text"] {
	padding: 10px;
	width: 60%;
	border: 1px solid #eeeeee;
	font-size: 16px;
}

.kereso button {
	padding: 10px 20px;
	border: none;
	background-color: #c40d2e;
	color: white;
	font-size: 16px;
	cursor: pointer;
}

.kereso button:hover,
.work-button:hover,
#distance-form button:hover,
button[type="submit"]:hover {
	background-color: #910922;
}

.search-results {
	font-size: 18px;
    color: #333;
    max-width: 1300px;
    padding: 50px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
	width: 77px;
    height: 77px;
    background: white;
    border-radius: 50%;
    border: 3px solid #c40d2e;
    box-shadow: 4px 3px 7px 3px #030303;
}

.logo img {
	height: 77px;
    width: 77px;
    margin-left: 0px;
    border-radius: 50%;
}

.ezermester-text {
    font-size: 26px;
    margin-left: 30px;
	display:none
}

.nav-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-menu ul li a {
    color: black;
    text-decoration: none;
    font-size: 16px;
}

.search-icon img {
    height: 40px;
    cursor: pointer;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    background-color: #0078D4;
    height: 3px;
    margin: 4px;
    width: 25px;
}

.section-heading-text {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: left;
    color: #c40d2e;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-header {
	display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid lightgray;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 2px 2px 9px 0px #2f2c2c;
}

.mobile-menu-header img {
    max-height: 48px;
}

.close-menu {
	color: #0078d4;
	border: none;
	font-size: 40px;
	cursor: pointer;
	background:white;
}

.mobile-menu h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.mobile-menu input[type="text"] {
    width: 90%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
}

.mobile-menu-links {
    list-style: none;
    padding-left: 30px;
    margin: 0;
	margin-top:20px
}

.mobile-menu-links li {
    margin-bottom: 20px;
}

.mobile-menu-links li a {
    font-size: 18px;
    color: black;
    text-decoration: none;
}

.mobile-menu-links li:hover a,
.nav-menu ul li:hover a,
.footer-middle .footer-links a:hover,
.footer-bottom a:hover {
    color: #cd242e;
    position: relative;
    display: inline-block;
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}
.menu-social a{

}

.menu-social a img{
	width: 50px;
}

.menu-social a img, .menu-contact p {
	margin-left:30px;
}
.menu-social a img, .footer-social a img {
    transition: transform 0.5s ease-in-out;
}

.menu-social a:hover img, .footer-social a:hover img {
    transform: rotate(360deg);
}

.menu-head-text {
	font-size: 2em;
}

section:not(#top-bar):not(#menu-bar):not(#fej-section) {
    padding: 20px;
    background-color: white;
    margin: 0 auto;
    max-width: 1300px;
}

#start-section{
	width:90%;
	margin-top:100px !important;
}

#fej-section {
	padding-top:0px;
	width: 100% !important;
}

#fej-text-section {
    text-align: left;
}

#footer-section {
    background-color: #000;
    color: #c7c7c7;
	margin-top:20px;
	font-size:16px
}

.fej-title {
	font-size: 4.4rem !important;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
	padding-top: 30px;
	text-transform:uppercase
}

.fej-title::before {
    position: absolute;
    top: -20px;
    font-size: 4.4rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.05);
    z-index: -1;
    white-space: nowrap;
    transform: translateX(+10px);
	text-align:center
}

.fej-image-container {
    width: 100%;
   /* max-width: 1300px;*/
    height: 600px;
    overflow: hidden;
    margin-top: 20px;
}

.fej-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-container {
    margin: 0 auto;
}

.section-heading-h1 {
	font-size: 2em;
    margin: 0px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
}

.index .section-heading-h1 {
    position: absolute;
    margin: 0 auto;
    left: calc(50%);
    transform: translateX(-50%);
	color:white;
}

.section-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.work-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
}

.work-card {
    background-color: white;
    overflow: hidden;
    margin-bottom: 20px;
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.full-width-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
}

.work-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
	margin-top:15px;
}

.work-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.work-title {
    font-size: 25px;
	margin-bottom:0px;
}

.work-description, .work-content p {
    font-size: 16px;
    color: #555;
	margin-top:0px;
}

.work-button {
    background-color: #c40d2e;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    align-self: flex-end;
    margin-top: auto;
}

.jobs-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.jobs-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-bottom: 1px solid #eeeeee;
}

.jobs-image {
    width: 500px;
    object-fit: cover;
}

.jobs-content {
    display: flex;
    flex-direction: column;
}

.jobs-title {
    font-size: 25px;
    margin-bottom: 10px;
	margin-top: 0;
}

.jobs-description {
    font-size: 16px;
    color: #555;
	text-align:left
}

.pay-heading {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: left;
	text-transform:uppercase
}

.pay-sample {
    padding: 20px;
    margin-bottom: 20px;
}

.pay-sample p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.pay-rates {
	list-style: none;
    padding: 0;
    margin: 10px 30px;
}

.pay-rates li {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.pay-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.pay-details {
    margin-top: 20px;
    margin-left: 50px;
}

.pay-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pay-details li {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    position: relative;
    padding-left: 30px;
}

.pay-details li strong {
    font-size: 18px;
    color: #333;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
}

.calculator-heading {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: left;
	text-transform:uppercase
}

.calculator-container {
    padding: 20px;
    margin-bottom: 20px;
	border: 1px solid #eeeeee;
}

#distance-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

#distance-form label {
    font-size: 16px;
    margin-bottom: 5px;
    color: #555;
}

#distance-form input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

#distance-form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #c40d2e;
    color: white;
    border: none;
    cursor: pointer;
	width:200px;
	border-radius:unset
}

#distance-result {
    font-size: 18px;
    color: #333;
    margin-top: 10px;
}

#maps-section h1 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: left;
	text-transform:uppercase
}

#map {
    width: 100%;
    height: 500px;
    border: 1px solid #eeeeee;
}

.references-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
}

.reference-card {
    background-color: white;
    overflow: hidden;
    margin-bottom: 20px;
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    display: flex;
    flex-direction: column;
    border: 1px solid #eeeeee;
}

.reference-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.reference-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.reference-text {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

.reference-author {
    font-size: 13px;
    color: #333;
    text-align: right;
    margin-top: auto;
}

.form-container {
    max-width: 1300px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border: 1px solid #eeeeee;
}

.section-heading {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
    color: #000;
}

/* Navigációs section stílusai */
#ingatlan-nav-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-item {
    background-color: #c40d2e;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.nav-item:hover {
    background-color: #910922;
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-item {
        width: 90%;
        text-align: center;
    }
}

.property-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.property-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
	padding:20px
}

.property-image {
    width: 40%;
    height: auto;
}

.property-content p {
    font-size: 16px;
    color: #333;
    flex: 1;
    margin: 0;
    align-self: flex-start;
	text-align:justify
}

@media (max-width: 768px) {
    .property-content {
        flex-direction: column;
        text-align: center;
    }

    .property-image {
        width: 100%;
        margin-bottom: 20px;
    }

	.fej-title::before {
		font-size: 2.4rem;
		top: -0px;
	}
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #eeeeee;
    box-sizing: border-box;
}

.form-group a {
	color:blue;
	cursor:pointer
}
button[type="submit"] {
    padding: 10px 20px;
    border: none;
    background-color: #c40d2e;
    color: white;
    cursor: pointer;
	border-radius:unset
}

#image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#image-preview .image-thumb {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#image-preview .image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#image-preview .image-thumb .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-top {
    background-color: #000;
    padding: 20px 0;
}

.footer-top .footer-contact {
    width: 100%;
}

.footer-top .footer-contact h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #c7c7c7;
}

.footer-middle {
    background-color: #333;
    padding: 20px 0;
}

.footer-middle .footer-links,
.footer-middle .footer-social {
    display: flex;
    gap: 15px;
}

.footer-middle .footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.footer-middle .footer-social a img {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    background-color: #000;
    padding: 10px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 12px;
    color: #fff;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.footer-middle .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    width: 77px;
    height: 77px;
    background: white;
    border-radius: 50%;
    border: 3px solid #c40d2e;
    box-shadow: 4px 3px 7px 3px #030303;
}

.footer-logo img {
	margin-top: -1px;
	height: 77px;
    width: 77px;
    border-radius: 50%;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex: 2;
    justify-content: center;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

@media (max-width: 1000px) {
    .reference-card {
        flex: 1 1 calc(33.3% - 20px);
        max-width: calc(33.3% - 20px);
    }

}

@media (max-width: 480px) {
    .reference-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {

	section:not(#top-bar):not(#menu-bar):not(#fej-section) {
		padding: 10px;
		background-color: white;
		margin: 0 auto;
	}

    .container {
        justify-content: space-evenly;
        position: relative;
    }

	.fej-title {
		font-size: 2.4rem !important;
	}
    .menu-icon {
        display: flex;
        order: 3;
    }

	.contact-info {
		font-size: 14px;
	}

	.search-icon,
	.footer-logo {
		display:none
	}
    .nav-menu ul {
        display: none;
        flex-direction: column;
    }

    .nav-menu ul.active {
        display: block;
    }

    .logo {
		order: 1;
        margin-left: -20px;
    }

    .ezermester-text {
        display: block;
        order: 2;
    }

    .search-icon {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

	.work-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .jobs-item {
        flex-direction: column;
        align-items: center;
    }

    .jobs-image {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .jobs-content {
        text-align: left;
    }
	.reference-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

	.fej-image-container {
		height: 300px;
	}

	.footer-social {
		justify-content: center;
		margin-top:20px
	}
}


/* A modál láthatatlan alapértelmezettként */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* A modál tartalma */
.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
}

/* Bezáró gomb stílusa */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.talalat {
    border: 1px solid #f0ebeb;
    margin-top: 10px;
    padding: 20px;
    padding-bottom: 60px; /* Extra padding az alsó gombnak */
    position: relative;
	text-align:justify;
	hyphens: auto; /* Automatikus elválasztás */
    word-wrap: break-word;
}

.talalat button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #c40d2e;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.talalat button:hover {
    background-color: #910922;
}
