/*
Theme Name: JapanGer Child
Template: generatepress
Version: 1.0
*/

/* ----------------------------------------
   🎨 GLOBAL VARIABLES
   ---------------------------------------- */
:root {
  --primary-color: #f3f4f7; /* Background color for light sections */
  --secondary-color: #1d0515; /* Main text color */
  --accent-color: #d70000; /* Highlight color (links, accents) */
  --light-gray: #1d05158e; /* Subtle text / secondary gray */
  --hover-color: #d70000c9;
}

/* ----------------------------------------
   🧱 BASE STYLES
   ---------------------------------------- */
body {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Add horizontal padding on small screens */
@media (max-width: 480px) {
  body {
    margin: 0 20px;
  }
}

/* Global link styles */
a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  color: var(--accent-color);
}
/* Apply accent color to all submit buttons */
input[type="submit"],
button[type="submit"] {
    background-color: var(--accent-color);
    color: #fff; /* text color */
	font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px; /* optional, matches card style */
    cursor: pointer;
    transition: background-color 0.3s ease;
	width:100%;
}

/* Hover state */
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--hover-color);
}



/* ----------------------------------------
   🏗️ HEADER & PAGE STRUCTURE
   ---------------------------------------- */
header .inside-header {
  padding: 25px 0;
}

.inside-header {
  padding: 20px 10px;
}

.content-area .site-main {
  margin: 0;
}

.page .inside-article,
.single .inside-article {
  padding: 0 !important;
  margin: 0 !important;
}

/* ----------------------------------------
   🏘️ LISTING GRID (HOME / ARCHIVE)
   ---------------------------------------- */

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.listings-section {
  padding: 10px 0 75px 0;
}

/* Grid container for property listings */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Individual property card */
.listing-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover lift + shadow effect */
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Prevent nested <a> elements from interfering */
.listing-card h3 a {
  pointer-events: none;
}

/* Property thumbnail */
.listing-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Listing title */
.listing-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 20px 16px 6px;
}

/* Listing metadata container */
.listing-meta {
  padding-bottom: 20px;
}

/* Rent amount styling */
.listing-rent {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 16px;
}

.rent-period {
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* Apartment type + size */
.listing-details {
  margin: 4px 16px;
  font-size: 0.95rem;
  color: #555;
  font-weight: 400;
}

.listing-details span {
  margin-right: 10px;
}

/* Nearest station info */
.listing-station {
  font-size: 0.95rem;
  font-weight: 400;
  margin: 6px 16px 0;
  color: var(--accent-color);
}

.view-more-container {
  text-align: center;
  margin-top: 2rem;
}

.view-more-button {
  display: inline-block;
  background-color: var(--accent-color);

  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.view-more-button:hover {
  background-color: var(--hover-color);
  color: #fff;
}

/* ----------------------------------------
   🖼️ SWIPER (IMAGE SLIDER)
   ---------------------------------------- */
.property-swiper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}

.property-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swiper navigation arrows */
.swiper-button-next,
.swiper-button-prev {
  color: white;
}

.property-swiper .swiper-button-prev::after,
.property-swiper .swiper-button-next::after {
  font-size: 22px;
}

/* Swiper pagination dots */
.swiper-pagination-bullet {
  background: white;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* ----------------------------------------
   🏠 SINGLE PROPERTY PAGE
   ---------------------------------------- */

/* Gallery layout grid */
.property-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}

/* Featured image spans larger area */
.property-gallery .gallery-item.featured {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

/* ---- Rounded Corners for the Whole Gallery ---- */
.property-gallery .gallery-grid {
  border-radius: 12px; /* Rounded corners for the whole grid */
  overflow: hidden; /* Ensure images respect border radius */
}

/* Gallery image styling */
.property-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Property Content Card */
.property-content {
  margin-top: 32px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.property-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.property-city {
  font-size: 14px;
  margin-bottom: 4px;
}

.property-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.property-station {
  font-size: 15px;
  color: #666;
  margin-bottom: 14px;
}

.property-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 30px;
}

.property-layout {
  align-items: center;
}

.area-info-wrapper {
  display: flex;
  gap: 30px; /* space between columns */
  margin-top: 30px;
  flex-wrap: wrap; /* allows stacking on smaller screens */
}

.area-info-wrapper .area-card {
  flex: 1 1 0; /* flex-grow: 1, flex-shrink: 1, flex-basis: 0 */
  min-width: 300px; /* optional: prevents cards from getting too narrow */
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}

.area-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;

  width: 48%; /* Desktop: 2 columns */
  box-sizing: border-box;
}

.area-card h2 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.commute-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.commute-list li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .area-card {
    width: 100%; /* Stack cards on smaller screens */
  }
}

/* ---------------------------
Property Submission Form Styling
--------------------------- */
.property-form-wrapper {
  max-width: 50%;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--primary-color);
  border-radius: 12px;
}

.property-form-wrapper h2 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.property-form-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.property-form-wrapper input[type="text"],
.property-form-wrapper input[type="email"],
.property-form-wrapper input[type="file"],
.property-form-wrapper select,
.property-form-wrapper textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

.property-form-wrapper input:focus,
.property-form-wrapper select:focus,
.property-form-wrapper textarea:focus,
.apartment-request-form input:focus,
.apartment-request-form select:focus,
.apartment-request-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
}




/* Success message */
.success-message {
  color: green;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .property-form-wrapper {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .property-form-wrapper {
    max-width: 90%;
    padding: 20px;
  }
}

/* ----------------------------------------
    Apartment Search Request Form
   ---------------------------------------- */

/* Apartment Search Request Form */
.apartment-request-form-wrapper {
  max-width: 50%;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--primary-color);
  border-radius: 12px;
}

.apartment-request-form-wrapper h2 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.apartment-request-form-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.apartment-request-form-wrapper input[type="text"],
.apartment-request-form-wrapper input[type="email"],
.apartment-request-form-wrapper select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

.apartment-request-form-wrapper input:focus,
.apartment-request-form-wrapper select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 5px var(--accent-color);
}

.apartment-request-form-wrapper input[type="submit"] {
  width: 100%;
  padding: 12px 0;
  background-color: var(--accent-color);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
	margin: 10px 0;
}



.apartment-request-form-wrapper input[type="submit"]:hover {
  background-color: var(--hover-color);
}

.success-message {
  color: green;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .apartment-request-form-wrapper {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .apartment-request-form-wrapper {
    max-width: 90%;
    padding: 20px;
  }
}

/* ----------------------------------------
   📱 RESPONSIVE DESIGN BREAKPOINTS
   ---------------------------------------- */

/* ✅ Large screens → 4-column gallery */
@media (max-width: 1200px) {
  .property-gallery .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
  }

  .property-gallery .gallery-item.featured {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }
}

/* ✅ Tablets → 2-column gallery */
@media (max-width: 768px) {
  .property-gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .property-gallery .gallery-item.featured {
    grid-column: 1 / span 2;
    grid-row: auto;
  }
}

/* ✅ Mobile → single-column gallery */
@media (max-width: 480px) {
  .property-gallery .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .property-gallery .gallery-item.featured {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ✅ Responsive listing grid adjustments */
@media (max-width: 1400px) {
  .listing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
}



/* --------------------------------------------------
   📱 Mobile Carousel for Gallery
   -------------------------------------------------- */
@media (max-width: 768px) {
  
  /* Turn grid into horizontal scroll */
  .gallery-grid.mobile-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 10px;
  }

  /* Make each image behave like a slide */
  .gallery-grid.mobile-carousel .gallery-item {
    flex: 0 0 80%;
    height: 250px;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
  }

  /* Maintain image sizing */
  .gallery-grid.mobile-carousel .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Remove featured (2x2 grid) behavior on mobile */
  .gallery-grid.mobile-carousel .gallery-item.featured {
    grid-column: unset !important;
    grid-row: unset !important;
    flex: 0 0 80%;
  }
}

