.btn-primary {
    font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
    background-color: #002652 !important;
    color: #ffffff !important;
    border-width: 0px !important;
    border-radius: 0px !important;
    letter-spacing: 1px !important;
    text-decoration: none !important; 
    font-size: 13px;
    font-style: normal;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding-top: 12px !important;
    padding-right: 25px !important;
    padding-bottom: 12px !important;
    padding-left: 25px !important;
}

.btn-info {
    font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
    background-color: #002652 !important;
    color: #ffffff !important;
    border-width: 0px !important;
    border-radius: 0px !important;
    letter-spacing: 1px !important;
    text-decoration: none !important; 
    font-size: 13px;
    font-style: normal;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding-top: 12px !important;
    padding-right: 25px !important;
    padding-bottom: 12px !important;
    padding-left: 25px !important;
}

h3.section-title {
    margin: 2em auto;
    font-size: 3em;
    font-weight: 200;
}

h2.text-center.mb-4.agent-profile {
    margin: 3em auto;
    padding-bottom: 1em;
    font-size: 3em;
    font-weight: 200;
}

.agent-header-img.rounded-circle.border {
    margin: auto;
}

/* Social Icons */
i.bi {
  font-size: 1.5em;
}

/* Make staff grid act like the office grid */
.staff-grid {
  	display: flex;
	flex-wrap: wrap;
	justify-content: center;
  	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  	gap: 2rem;
  	margin: 2rem 0;
	align-items: stretch;
    align-content: stretch;
    height: 100% !important;
}

/* Ensure staff images cover their frame like office images do */
.staff-card-image-frame {
  height: 300px;
  width: 100%;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.staff-card-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional: unify look of the contact line */
.staff-card .contact-line {
  margin: .5rem 0 1rem;
}

.staff-card .sep {
  opacity: .65;
}

.office-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}
.staff-card {
  padding: 0;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  width: 300px;
  max-width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-align: center;
}
.staff-card-content {
	padding: 10px 5px;
}
.staff-card img, .office-card img {
  border-radius: 0;
  max-width: 100%;
  height: 300px;
}
.staff-card-image-frame {
  height: 300px;
  width: 100%;
}
.staff-card h3 {
    font-size: 1.25em;
    letter-spacing: 1px;
}

.staff-card h3, .office-card h3 {
  margin: 1rem 0 0.5rem;
}
.button {
  background: #000e35;
  color: #fff;
  font-family: Inter, sans-serif;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.office-card {
  display: flex;
  padding: 0;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 100%;
}

.office-card-image-frame {
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
}

.office-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.office-card-content {
  padding: 1rem;
  flex: 1 1 auto;
}

.office-card-footer {
  background: #000e35;
  padding: 1rem;
  border-top: 1px solid #eee;
  text-align: center;
}

/* Office Listing Section */

div#office-active-listings {
    max-width: 1280px;
    margin: auto;
}

/* Listing Cards */

a.btn.btn-primary.listing {
  padding: 5px !important;
}

.listing.card-footer {
  text-align: center;
  background-color: #002652 !important;
}

.listing-info-box {
  height: 50px;
  justify-content: center;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
}

h5.card-title {
  font-size: 1.5em;
  font-weight: 700;
}

.listing-info-item {
  display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
    line-height: 1.2;
    border-top: 1px solid;
    border-right: 1px solid;
    border-color: #ddd;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    transition: background-color 75ms linear 0s !important;
    overflow: hidden;
}

p.card-text {
  padding-bottom: 0;
}

/* Agent styles */

.agent-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
}

.agent-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 100%;
}

.agent-card-image-frame {
  height: 205px;
  overflow: hidden;
  background: #f0f0f0;
}

.agent-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.agent-card-content {
  padding: 1rem;
  flex: 1 1 auto;
}

.agent-card-footer {
  background: #000e35;
  padding: 1rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.listings-row {
    width: 80%;
    margin: auto;
}

.about-title {
  font-size: 2em;
}

.mb-4.bio {
  padding: 25px 0;
}

.agent-listings {
  padding: 40px 0;
}

h3.address {
    font-size: 1.2rem;
}

.agent-listings .section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
}

.agent-listings .listing-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
  background: #fff;
}

.agent-listings .listing-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.agent-listings .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.agent-listings .card-body {
  padding: 15px;
}

.agent-listings .price {
  font-weight: bold;
}

.agent-listings .listing-info {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  font-size: 0.875rem;
  background-color: #f8f9fa;
  margin: 0;
  list-style: none;
}
section#contact {
    margin-top: 7%;
    margin-bottom: 5%;
}
input.form-control {
    border-radius: 0.125em;
    padding: 1em !important;
}
select#associate-office {
  padding: 1em;
}
.associate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px){
    .col-md-4.text-center.text-md-start.agent-info {
        padding-bottom: 50px;
    }
}
@media (max-width: 980px){
	.associate-grid {
		grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
	}
}
	
.associate-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.associate-photo {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}
.associate-info {
    padding: .75rem .5rem !important;
    text-align: center;
}
.associate-info h4 {
    font-size: 1em;
    font-weight: 600;
    line-height: 1em;
}
.associate-info h5 {
    font-size: .75rem;
    font-weight: 600;
    line-height: 1em;
    letter-spacing: 1px;
    padding-bottom: 0;
}
.associate-cta {
    background: #000e35;
    width: 100%;
    text-align: center;
}
a.btn.profile-cta {
    color: #FFF;
    padding: .75em;
}
.associate-cta.card-footer {
  background: #000e35;
}