/* properties.css - styles for properties.html */
:root {
  --gold: #c9a13b;
  --gold-dark: #a67f22;
  --gold-light: #f3e6c4;
  --white: #ffffff;
  --text-dark: #3a2f14;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.8;
}

header {
  display: flex;
  align-items: center;
  padding: 20px 40px;
  background-color: var(--white);
  border-bottom: 3px solid var(--gold);
}

.logo-img {
  height: 200px;
  width: auto;
  margin-right: 20px;
  flex-shrink: 0;
}

.site-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

.site-subtitle {
  font-size: 14px;
  color: #777;
  margin-top: 2px;
}

.back-link {
  display: inline-block;
  margin-left: auto;
  font-size: 14px;
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: bold;
}

.hero {
  background: linear-gradient(135deg, var(--gold-light), var(--white));
  padding: 60px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 30px;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.hero p {
  font-size: 16px;
  color: var(--text-dark);
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 40px 70px;
}

/* ---- Filter bar ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border: 2px solid var(--gold);
  background-color: var(--white);
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-family: inherit;
}

.filter-btn:hover {
  background-color: var(--gold-light);
}

.filter-btn.active {
  background-color: var(--gold);
  color: var(--white);
}

/* ---- Property grid ---- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.property-card {
  border: 1px solid #e8dfc4;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  box-shadow: 0 6px 18px rgba(201, 161, 59, 0.25);
  transform: translateY(-3px);
}

.property-photo {
  width: 100%;
  height: 200px;
  background-color: var(--gold-light);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 13px;
  position: relative;
}

.status-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: var(--white);
}

.status-available { background-color: #7a9a5c; }
.status-pending    { background-color: var(--gold-dark); }
.status-full       { background-color: #999; }
.status-open       { background-color: #6b8fb0; }
.status-noSpace    { background-color: #b0554f; }

.property-body {
  padding: 18px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-type {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.property-name {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 6px;
}

.property-address {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.property-rent {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-dark);
  margin-top: auto;
}

.property-rent span {
  font-size: 12px;
  font-weight: normal;
  color: #777;
}

.no-results {
  text-align: center;
  color: #999;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(58, 47, 20, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background-color: var(--white);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 6px;
  position: relative;
}

.modal-photo {
  width: 100%;
  height: 600px;
  background-color: var(--gold-light);
  background-size: cover;
  background-position: center;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 28px 0;
  overflow-x: auto;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}

.modal-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background-color: var(--white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
}

.modal-content {
  padding: 26px 28px 32px;
}

.modal-type {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.modal-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
}

.modal-address {
  font-size: 14px;
  color: #777;
  margin-bottom: 16px;
}

.modal-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background-color: var(--gold-light);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.modal-fact-label {
  font-size: 12px;
  color: #777;
}

.modal-fact-value {
  font-size: 14px;
  font-weight: bold;
}

.modal-description {
  font-size: 14px;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-inquire {
  display: inline-block;
  background-color: var(--gold);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.modal-call {
  display: inline-block;
  background-color: var(--white);
  color: var(--gold-dark);
  border: 2px solid var(--gold);
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.modal-call.hidden {
  display: none;
}

footer {
  background-color: var(--gold-dark);
  color: var(--white);
  text-align: center;
  padding: 25px;
  font-size: 13px;
}

footer p {
  margin: 4px 0;
}

.footer-email a {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 600px) {
  header { padding: 16px 20px; }
  .logo-img { height: 120px; }
  .content { padding: 40px 20px 60px; }
  .modal-facts { grid-template-columns: 1fr; }
}
