/*
 Theme Name: Hilversum City Living Child
 Theme URI: https://hilversumcityliving.nl/
 Description: Child theme for Hilversum City Living based as Divi Child Theme
 Author: Renato Lai
 Author URI: http://lai-media.nl
 Template: Divi
 Version: 2.0.1


*/


#floor-nav .et_pb_row {
    display: none;
    width: 100%;
  }
  
  #floor-nav .et_pb_row.et_pb_row_0 {
    display: block;
  }
  #menu-woningtype_subnavmenu li,
  #menu-woningtypen_snelmenu li,
  #floor-nav .nav-item {
    background-color: white !important;
    color: #000;
    font-size: 15px !important;
    border-radius: 30px;
    border: 1px solid #000;
    padding:0.3em 1em !important;
    margin: 0.8em !important;
  }
  #menu-woningtype_subnavmenu li > a,
  #menu-woningtypen_snelmenu li > a{
    padding:0.3em 1em !important;
  }
  #menu-woningtype_subnavmenu li{
    margin: 0.1em !important;
  }

  #floor-nav .nav-item.active {
    background-color: #333  !important;
    color: white;
  }


tr td.optie{background-color: #EBB200;}
tr td.beschikbaar{background-color: #00AD04;}
tr td.verkocht{background-color: #ee4a09cf ;}

table.bouwnummer-table td,
table.bouwnummer-table th{

padding: 1%;
color: #000;
font-size:14px;
}

  /* @media only screen and (max-width: 840px) {
    table.responsive {
    margin-bottom: 0;
    overflow: hidden;
    overflow-x: scroll;
    display: block;
    white-space: nowrap;
    }
  } */


  @media (max-width: 980px) {
    #woningtype_subnav_wrap .et_pb_menu__menu,
    #snelmenu_woningtypen.et_pb_menu .et_pb_menu__menu 
    {
      display: block !important;
    }

    ul#menu-woningtype_subnavmenu li{
      width: 45%;
    }
    ul#menu-woningtype_subnavmenu{
      justify-content: space-between  !important;
    }

    #snelmenu_woningtypen.et_pb_menu .et_mobile_nav_menu,
    #woningtype_subnav_wrap .et_mobile_nav_menu
    {
      display: none !important;
    }
  }


  @media screen and (max-width: 768px) {
    /* table.responsive tbody, table.responsive tr { display: none; } */
    /* table.responsive thead { display: block; cursor: pointer; }
    /* Optional: Style for the clickable header 
    table.responsive thead tr { background-color: #f9f9f9; } */
}




#bouwnummer-table td {
  width: 100px;
}

@media (min-width: 601px){
  #bouwnummer-table{
    border: 1px solid #000;
  }

  #bouwnummer-table thead {
    border: 1px solid #000;
  }

  #bouwnummer-table tr.odd{}
  #bouwnummer-table tr.even{background-color: rgba(145, 172, 66, 0.1);}


}

@media (max-width: 600px) {
  #bouwnummer-table{
    border: 0;
  }
  #bouwnummer-table thead {
    display: none;
  }
  #bouwnummer-table tr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    border-bottom: 1px solid #91ac42;
    padding-bottom: 10px;
    margin-bottom: 35px;
  }
  #bouwnummer-table td:nth-of-type(1):before { content: "Bouwnummer"; }
  #bouwnummer-table td:nth-of-type(2):before { content: "Verdieping"; }
  #bouwnummer-table td:nth-of-type(3):before { content: "Aantal Kamers"; }
  #bouwnummer-table td:nth-of-type(4):before { content: "Oppervlakte"; }
  #bouwnummer-table td:nth-of-type(5):before { content: "Bergingnr/Indexnr"; }
  #bouwnummer-table td:nth-of-type(6):before { content: "Koopsom"; }
  #bouwnummer-table td:nth-of-type(7):before { content: "Orientatie"; }
  #bouwnummer-table td:nth-of-type(8):before { content: "Status"; }

  #bouwnummer-table td:before {
    font-weight: bold;
    float: left;
    margin-right: 10px;
  }
  #bouwnummer-table td {
    display: block;
    width: 100%;
    clear: both;
    border: 0;
    padding: 1%;

  }

}



/*change hamburger icon to x when mobile menu is open*/

#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
	content: '\4d';
}


/*adjust the new toggle element which is added via jQuery*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
	width: 44px;
	height: 100%;
	padding: 0px !important;
	max-height: 44px;
	border: none;
	position: absolute;
	right: 0px;
	top: 0px;
	z-index: 999;
	background-color: transparent;
}


/*some code to keep everyting positioned properly*/

ul.et_mobile_menu>li.menu-item-has-children,
ul.et_mobile_menu>li.page_item_has_children,
ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {
	position: relative;
}


/*remove default background color from menu items that have children*/

.et_mobile_menu .menu-item-has-children>a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children>a {
	background-color: transparent;
}


/*hide the submenu by default*/

ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
	display: none !important;
	visibility: hidden !important;
}


/*show the submenu when toggled open*/

ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
	display: block !important;
	visibility: visible !important;
}


/*adjust the toggle icon position and transparency*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
	text-align: center;
	opacity: 1;
}


/*submenu toggle icon when closed*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
  top: 11px;
  position: relative;
  font-family: "ETModules";
  content: '\33';
  color: #00d263;
  background: #f0f3f6;
  border-radius: 50%;
  padding: 4px 7px 5px 3px;
  font-size: 1.6em;
}


/*submenu toggle icon when open*/

ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after {
	content: '\32';
}


/*add point on top of the menu submenu dropdown*/

.et_pb_menu_0.et_pb_menu .et_mobile_menu:after {
	position: absolute;
	right: 5%;
	margin-left: -20px;
	top: -14px;
	width: 0;
	height: 0;
	content: '';
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-bottom: 20px solid #ffffff;
}


/*adjust the position of the hamburger menu*/

.mobile_menu_bar {
	position: relative;
	display: block;
	bottom: 10px;
	line-height: 0;
  /* top: -3px;
  left: 0; */
}

.mobile_menu_bar::before {
  top: 8px !important;
  left: 0; 
}
/*force the background color and add a rounded border*/

.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
	background-color: #ffffff!important;
	border-radius: 10px;
}



/* Initial transparent menu style */
#main-head {
  background-color: transparent !important;
  transition: background-color 0.3s ease;
}

/* White background style */
#main-head.scrolled {
  background-color: rgba(0,0,0,0.3) !important ;
  margin-top: 0 !important;
}


.inschrijven .populate-acf-repeater-data .gfield_checkbox {
  column-count: 3;
}

@media screen and (max-width: 768px) {
  .inschrijven .populate-acf-repeater-data .gfield_checkbox {
    column-count: 2;
  }
}


.inschrijven .populate-acf-repeater-data .gchoice {
  padding: 5px 0;
}
.inschrijven .populate-acf-repeater-data .gfield_checkbox input[type="checkbox"] {
    width: 25px; /* Adjust the width of the checkboxes */
    height: 25px; /* Adjust the height of the checkboxes */
}


/* Increase font size for the entire Gravity Forms form */
.gform_wrapper {
  font-size: 18px !important; /* Adjust the font size as needed */
}

/* Optionally, increase font size for form labels */
.gform_wrapper .gfield_label,
.gform_wrapper .gsection_title,
.gform_wrapper .gform_title,
.gform_wrapper .gform_description {
  font-size: 20px; /* Adjust the font size for labels, titles, and descriptions */
}

.gform_wrapper h2.gform_title{
  font-size: 30px !important;

}

/* Adjust font size for inputs, textareas, and select fields */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper textarea,
.gform_wrapper select {
  font-size: 18px !important; /* Adjust the font size for form inputs */
}

/* Adjust font size for radio buttons and checkboxes */
.gform_wrapper input[type="radio"] + label,
.gform_wrapper input[type="checkbox"] + label {
  font-size: 18px !important; /* Adjust the font size for radio and checkbox labels */
}

/* Adjust font size for the submit button */
.gform_wrapper .gform_button {
  font-size: 18px !important; /* Adjust the font size for the submit button */
  padding: 15px 32px; /* Adjust padding for larger button */
  border-radius: 8px; /* Rounded corners */
}

/* Hover effect for the button */
.gform_wrapper .gform_button:hover {
  background-color: #45a049; /* Darker green on hover */
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .gform_wrapper {
      font-size: 16px ; /* Adjust font size for smaller screens */
  }

  .gform_wrapper .gform_button {
      width: 100%; /* Full width on smaller screens */
      padding: 15px 0; /* Adjust padding for full-width button */
  }
}



/* Style for the Gravity Forms submit button */
.inschrijven .gform_button {
  background-color: #4CAF50; /* Change the background color */
  border: none; /* Remove border */
  color: white; /* Text color */
  padding: 15px 32px; /* Add padding for bigger button */
  text-align: center; /* Center text */
  text-decoration: none; /* Remove underline */
  display: inline-block; /* Inline-block for proper padding */
  font-size: 16px; /* Increase font size */
  margin: 4px 2px; /* Add some margin */
  cursor: pointer; /* Pointer cursor on hover */
  border-radius: 8px; /* Rounded corners */
}

/* Hover effect for the button */
.gform_button:hover {
  background-color: #45a049; /* Darker green on hover */
}

/* Responsive design adjustments */
@media screen and (max-width: 768px) {
  .gform_button {
      width: 100%; /* Full width on smaller screens */
      padding: 15px 0; /* Adjust padding for full-width button */
      font-size: 18px; /* Slightly larger font size on mobile */
  }
}




/* Style for the woningzoeker pop-up */
#wz_bouwnummer-table {
  width: 100%;
  border-collapse: collapse; /* Ensure table borders collapse for clean layout */
}

#wz_bouwnummer-table tr {
  font-size: 18px;
  text-align: left;
}

#wz_bouwnummer-table td, #wz_bouwnummer-table th {
  padding-top: 8px; /* Adjust the padding as needed */
  padding-bottom: 8px; /* Adjust the padding as needed */
  padding-left: 12px; /* Add some left padding for a cleaner look */
  padding-right: 12px;
}

.wz_popup {
  width: 50vw; 
  /* height: 70vh; */
  background-color: white;
  padding: 20px; /* Padding inside popup */
  position: relative; /* So we can absolutely position the close button */
  border-radius: 12px; /* Optional: smoother look */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.wz_popup .content{
  display: block;
}

.wz_popup td.verkocht,
.wz_popup td.optie,
.wz_popup td.beschikbaar {
  color: #fff;
  padding: 1%;
  border-radius: 12px;
  text-align: center;
}

.wz_button {
  font-size: 19px;
  text-align: center;
  color: #000;
  margin: 20px auto; /* Center button horizontally and add space above */
  display: block;
  padding: 10px;
  border-radius: 21px;
  width: 80%; /* Adjust button width */
  max-width: 300px; /* Ensure button doesn’t grow too big */
  text-decoration: none; /* No underline */
}

.wz_button.primary {
  background-color: green;
  color: #fff;
}

.wz_button.secondary {
  background-color: white;
  border: 1px solid #000;
}

.wz_button:hover{

  opacity: 0.5;
  cursor: pointer;

}
/* Flex container for the buttons */
.button-container {
  display: flex;
  justify-content: space-between; /* Space between the two buttons */
  margin-top: 50px; /* Optional: Adjust margin above the buttons */
}

.button-container a {
  flex: 1; /* Make both buttons take equal space */
  margin: 0 10px; /* Space between the buttons */
}

.wz_popup h2 {
  margin-bottom: 4%;
}

@media screen and (max-width: 768px) {
  .wz_popup {
    width: 100vw;
    height: 100vh;
    display: flex;           /* Enable flexbox */
    flex-direction: column;  /* Stack children vertically */
    justify-content: center; /* Align children vertically in the center */
    align-items: center;     /* Center align horizontally */
    padding: 20px; /* Padding for mobile */
  }

  .wz_popup .content {
    width: 100%;
  }

  #wz_bouwnummer-table {
    width: 100%;
  }

  .wz_popup h2 {
    margin-bottom: 15%;
    text-align: center; /* Center heading on mobile */
  }

  .wz_button {
    width: 100%; /* Button takes full width on mobile */
    max-width: none; /* No max width on mobile */
  }

    /* On mobile, make the buttons stack vertically */
    .button-container {
      flex-direction: column;
      align-items: center;
    }
  
    .button-container a {
      margin-bottom: 10px; /* Space between the buttons on mobile */
      width: 100%;
    }
}

/* Close button styling */
.wz_popup #close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
}

