/* --- Global Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Property Block Container --- */
.property-block {
  background: #fff;
  margin: 20px auto;
  max-width: 100%;
  padding: 10px;
  border: 3px solid #ddd333;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* --- Property Header Section --- */

/* --- Main Image & Video --- */
.main-image img,
.property-video video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.property-header img {
  max-width: 100%;
  max-height: 450px;
  border-radius: 10px;
  object-fit: contain;

}
.property-header{
  display: flex;
  justify-content: center; /* Horizontal center */
  align-items: center; 
}

.property-video {
  margin-top: 20%;
}

.property-video video {
  max-width: 60%;
}

/* --- Property Details Section --- */
.property-details {
  text-align: center;
  padding: 10px;
}

.property-details h2 {
  margin-top: 0;
}

.property-details > p {
  font-size: 1.3rem;
  max-width: 100%;
  color: #3a0202;
}

/* --- No Video Fallback --- */
.no-video {
  background: #f8f8f8;
  border: 1px dashed #ccc;
  padding: 20px;
  text-align: center;
  color: #888;
  min-height: 350px;
  border-radius: 8px;
}

/* --- Property Image Gallery --- */
.property-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.property-images .img-box,
.img-box {
  width: 20%x;
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.property-images img,
.img-box img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* --- Page Headings --- */
h1 {
  text-align: center;
  font-size: 3rem;
  color: #677412;
}

/* --- Site Header --- */
.site-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
  background-color: #f4f4f4;
  border-bottom: 3px solid #ccc;
  font-size: 2.2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.page-title h1 {
  margin: 0;
  font-size: 58px;
  color: #2c3e50;
  font-weight: bold;
}

.page-title h2 {
  background-color: #2c3e5c;
  margin: 5px 0 0;
  font-size: 72px;
  color: #e60a0a;
  text-align: center;
}
.image-input {
    width: 100%;           /* Wider box */
    height: 200px;
    padding: 8px;           /* Inner spacing */
    font-size: 14px;        /* Larger text */
    border: 2px solid #4CAF50; /* Strong green border */
    border-radius: 5px;     /* Rounded corners */
    outline: none;          /* Remove default focus outline */
    box-sizing: border-box; /* Prevent size overflow */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.image-input:focus {
    border-color: #2E7D32;   /* Darker green when active */
    box-shadow: 0 0 5px rgba(46, 125, 50, 0.5); /* Glow effect */
}
.logo-contacts{
  display: flex;
  text-align: start;
  justify-content: space-between;
}
.contacts{
  font-size: 1.6em;
  display: inline-block;
  justify-content: flex-start;
  align-items: baseline;
}
li{
  background-color: #ff8111;
  display: flex;
  justify-content: space-between;
}
.site-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mid-header img{
  max-height: 200px;
}
.contact-list {
  display: flex;
 /* gap: 20px; /* space between items */
  list-style: none;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  flex-wrap: wrap; /* allows items to wrap if screen is narrow */
  align-items: center;
}


/* --- Logo and Contacts Layout --- */
/* Desktop / default */

/* Tablet */
@media (max-width: 768px) {
  .mid-header {
    height: 60px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .logo-contacts {
    flex-direction: column;       /* stack logo & contacts vertically */
    gap: 15px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .mid-header {
    height: 350px;
    justify-content: center;      /* center logo horizontally */
  }

  .contacts {
    text-align: center;
  }
}
.img-box form {
    margin-top: 5px;
}
.img-box button {
    padding: 5px 8px;
    margin: 2px;
    border: none;
    background: #0077cc;
    color: white;
    cursor: pointer;
}
.img-box button:hover {
    background: #005fa3;
}
.img-box input[type="file"], 
.img-box input[type="text"] {
    display: block;
    margin-top: 4px;
}
.mid-header {
  flex: 1 1 60%;
  text-align: center;
  padding: 10px;
}

.mid-header img {
  max-width: 100%;
  max-height:fit-content;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* --- Contacts List (Right Side) --- */
.contacts {
  flex: 1 1 35%;
  font-size: 1.3rem;
  text-align: right;
}

.contacts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacts li {
  margin-bottom: 2px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
}

.contacts li i {
  color: #0077cc;
  margin-left: 3px;
  min-width: 24px;
  text-align: center;
  font-size: 1.1rem;
}

.contacts strong {
  margin-right: 3px;
  font-weight: 600;
}

.contacts a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contacts a:hover {
  color: #004a8f;
  text-decoration: underline;
}

/* --- Footer Section --- */
.site-footer {
  background-color: #1a1a1a;
  color: #f4f4f4;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

.site-footer h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f4f4f4;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.site-footer ul li {
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.site-footer ul li i {
  font-size: 1.5rem;
  margin-right: 10px;
  color: #f4f4f4;
}

.site-footer ul li a {
  color: #f4f4f4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer ul li a:hover {
  color: #0099cc;
}

.site-footer ul li strong {
  font-weight: bold;
}

.site-footer ul li span {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-footer ul {
    grid-template-columns: 1fr;
  }
}

/* Footer Links Styling */
.site-footer a {
  color: #f4f4f4;
  text-decoration: none;
}

.site-footer a:hover {
  color: #0099cc;
  text-decoration: underline;
}

/* Small adjustments */
.site-footer i {
  color: #0099cc;
}

/* --- Divider --- */
hr {
  height: 4px;
  background: #ddd;
  border: none;
  margin: 20px 0;
}
