/* Child theme custom styles */

/* SP: hide SP form, show PC form */
@media (max-width: 767px) {
  .p-property-search-entrance-sp {
    display: none;
  }

  .p-property-search-entrance {
    display: grid;
  }

  .p-property-search-entrance-type {
    display: block;
  }

  .p-property-search-entrance-type-item {
    margin-bottom: 20px;
  }

  .p-property-search-entrance-type-item-title {
    margin: 0 0 10px;
    font-size: 20px;
  }

  .p-property-search-entrance-radio-inner {
    display: block;
  }

  .p-property-search-entrance-radio-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #ffffff;
    margin-bottom: 10px;
  }

  .p-property-search-entrance-radio-button:last-child {
    margin-bottom: 0;
  }

  .p-property-search-entrance-radio-count {
    margin-left: 12px;
    color: #666666;
    font-size: 14px;
  }

  .p-property-search-entrance-section {
    display: block;
    margin-top: 24px;
  }

  .p-property-search-entrance-section-label {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .p-property-search-entrance-submit {
    display: block;
  }

  .p-property-search-entrance-submit-button {
    width: 100%;
    margin: 0 0 12px;
    padding: 1px;
    border-radius: 6px;
	grid-template-columns: 40px 1fr;
	grid-template-rows: 40px;
  }

  .p-property-search-entrance-submit-button:last-child {
    margin-bottom: 0;
  }

  .p-property-search-entrance-sep {
    position: relative;
    height: 18px;
    margin: 10px 0 16px;
    background: none;
    border: 0;
  }

  .p-property-search-entrance-sep::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid #2e64a0;
    transform: translateX(-50%);
  }
}

/* Hide prefecture radio input (auto-checked via JS) */
.js-property-search-entrance-pref {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Hide prefecture section and its separator by checking child input */
.p-property-search-entrance-section:has(.js-property-search-entrance-pref) {
  display: none;
}

.p-property-search-entrance-section:has(.js-property-search-entrance-pref)
  + .p-property-search-entrance-sep {
  display: none;
}

/* Replace transit icon with car icon (realty) */
:root, ::before, ::after{
  --tcd-realty-icon-transit: url('/wp-content/themes/gravity_tcd111_child/assets/images/icon_car.svg');
}
