/*
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);
}

/* ----------------------------------------
   🏗️ 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: wrap;
  gap: 30px;
}

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

/* ----------------------------------------
   📱 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;
  }
}
