/*
	Theme Name: eka child theme 
	Theme URI: https://www.vishmax.com/eka/
	Author: Vishmax
	Author URI: https://www.vishmax.com
	Description: Default child theme for eka websites, make sure that 'eka.css' is already loaded.
	Version: 3.0.0
	
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Overriding base styles  - Header, Logo, Nav & Footer
# Overriding base styles  - Badges
# Index Search
# Inner pages
# Property Listings Layout & Styling
# Property Listings Layout & Styling : for 50% : 50% view
# Form - Postings
# Single view of posts
# jQuery FlexSlider Styles
# Settings - Disabled

/*--------------------------------------------------------------
# Overriding base styles  - Header, Logo, Nav & Footer
--------------------------------------------------------------*/
/* ------------------------------
    header, Logo, Nav 
------------------------------ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  border-bottom: none;
}
header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

header.scrolled nav a {
  color: #333;
}

.logo {
  transition: opacity 0.3s ease;
}

.eka-site-logo {
  width: 350px;
  height: 60px;
  display: flex;
  align-items: center;
}

.menu-toggle .bar {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: #ccc; /* default before click */
  border-radius: 2px;
  transition: background-color 0.3s ease;
  /* right: 10px; /* pushes it 10px away from the right edge */
}

/* Positioning bars */
.menu-toggle .bar:nth-child(1) {
  top: 0;
}
.menu-toggle .bar:nth-child(2) {
  top: 10px;
}
.menu-toggle .bar:nth-child(3) {
  top: 20px;
}

/* When menu is open */
.menu-toggle.active .bar {
  background-color: black;
}

/* ------------------------------
    Desktop Styles (=769px)
------------------------------ */
@media (min-width: 769px) {
  .eka-nav-list {
    flex-direction: row;
	font-size: 0.92rem;
	text-transform: uppercase;
  }

  .eka-nav-list a {
    color: #fff;
  }

  .eka-nav-list a:hover {
    color: #eee;
  }

  .eka-nav-list .fa {
   color: #eee;
  }
  .eka-nav-list a:hover .fa {
   color: #ccc;
  }

}

/* ------------------------------
    Footer
------------------------------ */
.eka-footer-section-block01 {
  flex: 3 1 35%; /* Slightly larger than the rest */
  margin: 5px;
  box-sizing: border-box;
}
.eka-footer-section-block02,
.eka-footer-section-block03,
.eka-footer-section-block04 {
  flex: 1 1 10%;
  margin: 10px;
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Overriding base styles  - Badges
--------------------------------------------------------------*/
/* Yellow Badge */
.eka-badge-yellow {
  background-color: #fce786;
  color: #000;
  font-size: 11px;
  font-weight: 300;
  padding: 2px 8px;
  border-radius: 2px;
  position: relative; /* Enables top positioning */
  top: 0;
  display: inline-block;
  line-height: 1.4;
}

/* Blue Mist Badge */
.eka-badge-blue-mist {
  background-color: #4e79c2;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 3px;
  display: inline-block;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .eka-badge-blue-mist {
    padding: 10px 20px;
  }

  .eka-badge-blue-mist .fa-phone {
    color: #fff;
  }
}

/*--------------------------------------------------------------
# Index Search
--------------------------------------------------------------*/
/* Wrapper Container */
.eka-wrapper-header-search {
  padding: 160px 20px 60px 20px;
  text-align: center;
  background : url(../images/header.jpg) #517fba;
  background-size : cover; /* Avoid moving BG from zoom in/zoom out */
}

/* Headline */
.eka-wrapper-header-search .headline h1.white {
  color: #fff;
  padding: 15px 30px;
  display: inline-block;
  border-radius: 6px;
  font-size: 32px;
  margin-bottom: 30px;
}

/* Search Form Container */
.search-form-holder {
  margin: 0 auto;
  max-width: 700px;
  padding: 20px;
}

/* Clearfix Utility */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Radio Button Group */
.radio-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 15px;
}

.radio-options label {
  font-size: 16px;
  color: #fff;
  cursor: pointer;
}

.radio-options input[type="radio"] {
  margin-right: 5px;
}

/* Search Form Layout */
#searchform {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Search Bar Container */
.search-bar {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 700px;
}

/* Wider Search Input */
.keysearch {
  flex: 1;
  min-width: 300px;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

/* Submit Button */
.go {
  padding: 12px 25px;
  font-size: 16px;
  background-color: #387ed1;
  color: #fff;
  border: 1px solid #387ed1;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.go:hover {
  background-color: #0b57d0;
}

/* Popular Keywords */
.popular-search-words.grey {
  margin-top: 30px;
  font-size: 15px;
  color: #eee;
}

.popular-search-words.grey b {
  color: #eee;
}

/* Responsive Design */
@media (max-width: 600px) {
  #searchform {
    flex-direction: column;
  }

  .search-bar {
    flex-direction: column;
    width: 100%;
  }

  .keysearch,
  .go {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
    border-right: 1px solid #ccc;
  }

  .go {
    border-color: #2c3e50;
  }
}

/*--------------------------------------------------------------
# Inner pages
--------------------------------------------------------------*/
/* Wrapper Container */
.eka-wrapper-header-inner {
  padding: 40px 20px 20px 20px;
  text-align: center;
  background : url(../images/header.jpg) #517fba;
  background-size : cover; /* Avoid moving BG from zoom in/zoom out */
}

/* ------------------------------
    Section Header & Description - Left Aligned
------------------------------ */
.eka-section-heading {
  padding-top: 60px;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  text-align: left;         /* Align text to the left */
  margin-left: 20px;        /* Add left margin */
  margin-bottom: 10px;
}

.eka-section-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  text-align: left;
  margin-left: 20px;
  margin-bottom: 20px;
}

/* Premium badge styling */
.eka-badge-yellow-mist {
  background-color: #fce786;
  color: #333;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 300;
  display: inline-block;
  margin-left: 6px;
  text-transform:uppercase;
  font-size: 14px;
}

/* ------------------------------
   Divider Styling
------------------------------ */
.full {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 20px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.eka-listing-contents-head-divider {
  width: 80px;
  height: 2px;
  background-color: #1ac8d7;
  border-radius: 2px;
}

/*--------------------------------------------------------------
# Property Listings Layout & Styling
--------------------------------------------------------------*/
/* Grid container: responsive layout */
.eka-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 20px;
  box-sizing: border-box;
}

/* ------------------------------
   Listing Card Container
------------------------------ */
.listing-contents-holder {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border:1px solid #eee;
}

/* Hover effect: lift and deepen shadow */
.listing-contents-holder:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* ------------------------------
   Thumbnail Image Preview on Hover
------------------------------ */
.listing-contents-holder img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.3s ease;
}

.listing-contents-holder img.visible {
  opacity: 1;
  transform: translateY(0);
}

.listing-contents-holder:hover img {
  transform: scale(1.05);
  filter: brightness(90%);
}

/* ------------------------------
   Inner Content Styling
------------------------------ */
.listing-contents {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

/* Text content block */
.listing-contents ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.listing-contents ul li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* Title styling */
.bolder {
  font-size: 18px;
  font-weight: 600;
  color: #444;
}

.listing-contents ul li b {
  font-size: 15px;
}

/* Divider line */
.listing-contents-divider {
  border-top: 1px solid #eee;
  margin: 10px 0;
}

/* ------------------------------
   Bottom Section: Badges & Link
------------------------------ */
.listing-contents-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Badge styles */
.eka-badge-yellow-classic,
.eka-badge-blue {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 300;
  text-transform: uppercase;
}

.eka-badge-yellow-classic {
  background-color: #fce786;
  color: #000;
}

.eka-badge-blue {
  background-color: #6768e9;
  color: #fff;
}

/* View more link */
.view-more a {
  color: #387ed1;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.view-more a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .listing-contents-bottom {
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
  }

  .view-more {
    margin-left: auto;
  }
}

/*--------------------------------------------------------------
# Property Listings Layout & Styling : for 50% : 50% view
--------------------------------------------------------------*/
.eka-container-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1400px; /* Wider layout */
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
}

.half {
  flex: 1 1 48%;
}

@media (max-width: 768px) {
  .half {
    flex: 1 1 100%;
  }
}

/* Post list layout */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Individual post row */
.post-row {
  display: flex;
  align-items: center;
  padding: 10px;
  /*border: 1px solid #eee;*/
  border-bottom:1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

/* Thumbnail */
.post-thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  margin-right: 15px;
  border-radius: 4px;
  overflow: hidden;
}

/* Thumbnail image default state (hidden) */
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When image becomes visible */
.post-thumb img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Post info */
.post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 6px;
  color: #000;
  text-transform: capitalize;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #222;
}

.post-id {
  color: #0b5cab;
  font-size: 0.95rem;
}

/* Badges */
.badge {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
}

.badge-yellow {
  background-color: #feedb2;
}

.badge-blue {
  background-color: #f2f8fe;
}

/* Content and link */
.post-content {
  font-size: 0.85rem;
  color: #222;
  margin-bottom: 6px;
}

.view-more {
  font-size: 0.9rem;
  color: #0077cc;
  text-decoration: none;
  display: block;
  width: fit-content;
  margin-left: auto;
}

.view-more:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .eka-container-layout {
    background-color: #f5f7fa;
  }
  
  .post-row {
    flex-direction: row;
    align-items: center;
	border-bottom: none;
    border: 1px solid #ddd;
  }

  .post-row:nth-child(even) {
    background-color: #fff; /* Light */
  }

  .post-row:nth-child(odd) {
    background-color: #fff; /* Light */
  }

  .post-thumb {
    margin-right: 15px;
    margin-bottom: 0;
  }

  .post-title {
    font-size: 0.95rem;
  }

  .post-content {
    font-size: 0.8rem;
  }
}

/*--------------------------------------------------------------
# Form - Postings
--------------------------------------------------------------*/
.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  background-color: #f5f7fa;
  min-height: 100vh;
}

.form-container {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow : 0 8px 24px rgb(149, 157, 165, 0.2);
  width: 100%;
  max-width: 800px;
}

.form-container h1 {
  padding: 25px 0;
  text-align: center;
  font-size: 30px;
  color: #333;
}

/* ------------------------------
  Form Elements
------------------------------ */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-wrapper input,
.form-wrapper select,
.form-wrapper textarea {
  width: 100%;
  padding: 12px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px;
  font-weight: 500;
  color: #6b6b6b;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-wrapper input:focus,
.form-wrapper select:focus,
.form-wrapper textarea:focus {
  border-color: #387ed1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

/* ------------------------------
  Radio Button Groups
------------------------------ */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.radio-group label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
  gap: 6px;
}

input[type="radio"] {
  accent-color: #387ed1;
  margin: 0;
}

/* ------------------------------
  Error Messages
------------------------------ */
.error {
  color: red;
  font-style: italic;
  font-size: 14px;
}

input.error {
  border-color: red;
}

/* ------------------------------
 Custom File Upload
------------------------------ */
input[type="file"] {
  display: none;
}

.custom-file-upload {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  color: #2064b3;
  background-color: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.16);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  font-weight: 500;
  margin-bottom: 20px;
}

/* ------------------------------
 Image Previews
------------------------------ */
#multiple-files-wraper {
	display: none;
	float: left;
	width: 100%;
	height: auto;
	margin: 50px 0 20px 0;
}

.preview-featured,
.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.preview-featured {
  display: none;
  width:100%;
}

.preview-featured img,
.preview-container img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* ------------------------------
 Grouped Layouts
------------------------------ */
.form-full {
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

.form-half {
  width: 48%;
  float: left;
  margin-right: 4%;
}

.form-third {
  width: 48%;
  float: right;
}

.form-fourth {
  width: 25%;
  float: left;
  margin-right: 5%;
}

.alignleft {
  float: left;
}

.alignright {
  float: right;
}

.top-padding {
  padding-top: 20px;
}

/* Clear floats */
.form-full::after,
.form-half::after,
.form-third::after,
.form-fourth::after {
  content: "";
  display: table;
  clear: both;
}

/* ------------------------------
 Submit Button
------------------------------ */
.button-wrapper {
  display: flex;
  justify-content: center; /* Centers content horizontally */
  align-items: center;
  margin: 30px auto; /* Adds vertical spacing and centers the wrapper itself */
  width: auto; /* Shrinks to fit content */
  max-width: 200px; /* Optional: controls max size */
  clear: both;
  flex-wrap: wrap;
}

input[type="submit"],
input[type="button"],
input[type="reset"] {
  cursor: pointer;
  padding: 12px 24px;
  color: #fff;
  font-weight: 700;
  border: 1px solid transparent;
  background-color: #387ed1;
  border-radius: 4px;
  transition: background 0.3s ease;
  min-width: 150px;
  text-align: center;
}

input[type="submit"]:hover {
  background-color: #0b57d0;
}

/* ------------------------------
 Miscellaneous
------------------------------ */
.required {
  color: red;
}

.grey {
  color: #777;
}

.ash {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

#req-field-desc {
  font-size: 14px;
  margin-top: 10px;
}

/* ------------------------------
 Responsive Design
------------------------------ */
@media (max-width: 768px) {
  .form-half,
  .form-third,
  .form-fourth {
    width: 100%;
    float: none;
    margin-right: 0;
  }

  .form-container {
    padding: 20px;
  }

  input,
  select,
  textarea {
    font-size: 15px;
    padding: 10px 16px;
  }

  input[type="submit"] {
    font-size: 15px;
    padding: 10px 20px;
  }
}

/*--------------------------------------------------------------
# Single view of posts
--------------------------------------------------------------*/
/* Container Styling */
.singleview-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0; /* Remove vertical padding */
  background-color: #fdfdfd;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  box-sizing: border-box;
}

/* Heading */
.singleview-container h1 {
  font-size: 2.25rem; /* Responsive font size */
  margin-bottom: 25px;
  text-align: center;
  color: #2c3e50;
  text-transform: capitalize;
}

/* Property Details List */
.singleview-container ul {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}

.singleview-container ul li {
  font-size: 1.125rem;
  line-height: 2;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.singleview-container ul li b,
.singleview-container ul li strong {
  color: #555;
  padding-right: 10px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .singleview-container {
    padding: 20px;
  }

  .singleview-container h1 {
    font-size: 1.75rem;
  }

  .singleview-container ul li {
    font-size: 1rem;
    line-height: 1.8;
  }
}

@media (max-width: 480px) {
  .singleview-container {
    padding: 15px;
    margin: 20px auto;
  }

  .singleview-container h1 {
    font-size: 1.5rem;
  }

  .singleview-container ul li {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/*--------------------------------------------------------------
# jQuery FlexSlider Styles
--------------------------------------------------------------*/
/* Optional inner wrapper for spacing */
.slider-wrapper {
  padding: 0;
  margin: auto;
  width: 95%;
}

/* Slider Section */
.slider {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

/* Main Slider */
#slider.flexslider {
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

#slider .slides li  {
  border: none;
}

/* Main Slide Image */
#slider .slides li img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Thumbnail Slider */
#carousel.flexslider {
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
#carousel.flexslider li {
  border: none;
}

/* FlexSlider overrides */
.flexslider {
  background: none;
  border: none;
  box-shadow: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .slider {
    flex-direction: column;
  }

  #slider.flexslider,
  #carousel.flexslider {
    height: auto;
  }

  #slider .slides li img {
    height: auto;
    max-height: 60vh;
  }
}

/*--------------------------------------------------------------
# Settings - Disabled
--------------------------------------------------------------*/
.settings-disabled {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fff;
  color: #000;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.settings-disabled strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
