/*
Theme Name: My Directory Theme
Theme URI: https://yourwebsite.com/
Author: Mr. ALi Akbar
Author URI: https://yourwebsite.com/
Description: A custom directory listing theme for WordPress.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mydirectorytheme
*/




.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.listing-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


/* 🌐 Directory Theme Styles (Blue + White Aesthetic) */

/* General Page Styling */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f8fbff;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Headings */
main h1, h2 {
  color: #1e4b9e;
  text-align: center;
  margin-bottom: 20px;
}

/* 🔹 Submit Listing Form */
.submit-listing form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.submit-listing label {
  display: block;
  font-weight: 600;
  color: #1e4b9e;
  margin-bottom: 6px;
}

.submit-listing input[type="text"],
.submit-listing input[type="url"],
.submit-listing input[type="file"],
.submit-listing textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d5e3ff;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: border-color 0.3s;
}

.submit-listing input:focus,
.submit-listing textarea:focus {
  border-color: #1e4b9e;
  outline: none;
}

.submit-listing input[type="submit"] {
  background-color: #1e4b9e;
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-listing input[type="submit"]:hover {
  background-color: #163d84;
}

/* 🧾 My Listings Table */
.my-listings-table {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.my-listings-table th {
  background-color: #1e4b9e;
  color: #fff;
  text-align: left;
  padding: 12px;
}

.my-listings-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f4ff;
  vertical-align: middle;
}

.my-listings-table tr:hover {
  background-color: #f7faff;
}

.my-listings-table a {
  color: #1e4b9e;
  text-decoration: none;
  font-weight: 600;
}

.my-listings-table a:hover {
  text-decoration: underline;
}

/* 🟢 Success & Error Messages */
.success-msg {
  background: #e6f8ed;
  color: #187943;
  padding: 10px 15px;
  border-left: 4px solid #1e4b9e;
  margin: 15px auto;
  max-width: 600px;
  border-radius: 8px;
}

.error-msg {
  background: #fdeaea;
  color: #b32020;
  padding: 10px 15px;
  border-left: 4px solid #b32020;
  margin: 15px auto;
  max-width: 600px;
  border-radius: 8px;
}

/* 🪪 Login Message */
.my-listings p a {
  color: #1e4b9e;
  font-weight: 600;
}


/* 🌐 Directory Page Layout */
.directory-page {
  padding: 60px 5%;
  background: #f9fbff;
  font-family: 'Poppins', sans-serif;
}

.directory-header {
  text-align: center;
  margin-bottom: 40px;
}

.directory-header h1 {
  font-size: 2.5rem;
  color: #0b3d91;
  margin-bottom: 10px;
}

.directory-header p {
  font-size: 1.1rem;
  color: #555;
}

/* 🧱 Grid Layout */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* 🪄 Listing Card */
.listing-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(11, 61, 145, 0.15);
}

.listing-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.listing-content {
  padding: 20px;
}

.listing-title a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0b3d91;
  text-decoration: none;
}

.listing-title a:hover {
  text-decoration: underline;
}

.listing-address,
.listing-price {
  color: #555;
  font-size: 0.95rem;
  margin: 5px 0;
}

.view-details-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #0b3d91;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.view-details-btn:hover {
  background: #1456c2;
}

.no-listings {
  text-align: center;
  color: #555;
  font-size: 1.1rem;
}






/* Listing Card */
.listing-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: 0.25s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}

.listing-card .listing-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.listing-info {
    padding: 16px;
}

.listing-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
}

.listing-title a {
    color: #000;
    text-decoration: none;
}

.listing-address,
.listing-phone,
.listing-price {
    margin: 4px 0;
    font-size: 14px;
    color: #555;
}
