/* Providence House custom styles */

.ph-section-no-top {
  padding-top: 0;
}

.ph-section-no-bottom {
  padding-bottom: 0;
}

.ph-lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 3rem;
}

.ph-organogram .ph-org-group {
  margin-bottom: 48px;
}

.ph-organogram .ph-org-heading {
  text-align: center;
  color: #19191a;
  font-size: 22px;
  margin-bottom: 28px;
  position: relative;
}

.ph-organogram .ph-org-heading:after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: #dfa974;
  margin: 12px auto 0;
}

.ph-organogram .ph-person {
  text-align: center;
  margin-bottom: 28px;
}

.ph-organogram .ph-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: #f0eee9;
  border: 2px solid #dfa974;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #a8a8a8;
  font-size: 36px;
}

.ph-organogram .ph-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph-organogram .ph-person h5 {
  color: #19191a;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

/* Contact map iframe (avoid inline styles for djLint) */
/* Contact map */
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* About page service tiles: dark card for text contrast */
.about-page-services .ap-service-item .api-text {
  left: 20px;
  right: 20px;
  bottom: 24px;
  width: auto;
  padding: 16px 20px;
  background: rgba(25, 25, 26, 0.55);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.about-page-services .ap-service-item .api-text h3 {
  color: #ffffff;
  margin: 0;
}

/* Hero banner: show more of the image on desktop */
.hero-slider .hs-item.set-bg {
  background-position: center center;
}

@media only screen and (max-width: 767px) {
  .hero-slider .hs-item.set-bg {
    background-position: top center;
  }
}

/* Hero text card for contrast over the banner */
.hero-section .hero-text {
  padding: 36px 40px 40px;
  margin-top: 100px;
  background: rgba(25, 25, 26, 0.55);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.hero-section .hero-text h1,
.hero-section .hero-text p {
  color: #ffffff;
}

@media only screen and (max-width: 991px) {
  .hero-section .hero-text {
    margin-top: 40px;
    padding: 28px 24px 30px;
  }
}

/* Facility cards: dark opaque panel for text over images */
.hp-room-items .hp-room-item .hr-text {
  left: 20px;
  right: 20px;
  padding: 24px 22px 28px;
  background: rgba(25, 25, 26, 0.55);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.hp-room-items .hp-room-item:hover .hr-text {
  bottom: 30px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .hp-room-items .hp-room-item:hover .hr-text {
    bottom: 24px;
  }
}

/* Room types gallery */
.ph-room-type {
  margin-bottom: 70px;
  padding-bottom: 70px;
  border-bottom: 1px solid #ebebeb;
}

.ph-room-type:last-of-type {
  border-bottom: none;
  margin-bottom: 40px;
  padding-bottom: 40px;
}

.ph-room-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 280px;
  height: 280px;
}

.ph-room-gallery-main {
  grid-row: 1 / span 2;
  min-height: 280px;
  border-radius: 4px;
}

.ph-room-gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 280px;
}

.ph-room-gallery-thumb {
  min-height: 0;
  border-radius: 4px;
}

.ph-room-info {
  height: 100%;
  padding: 28px 8px 10px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ph-room-type-alt .ph-room-info {
  padding: 28px 28px 10px 8px;
}

.ph-room-tag {
  display: inline-block;
  color: #dfa974;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ph-room-info h3 {
  color: #19191a;
  font-size: 32px;
  margin-bottom: 12px;
}

.ph-room-info h2 {
  color: #dfa974;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 22px;
}

.ph-room-info h2 span {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: #707079;
  margin-left: 6px;
  font-family: "Cabin", sans-serif;
}

.ph-room-info table {
  margin-bottom: 18px;
}

.ph-room-info table tbody tr td {
  font-size: 15px;
  color: #19191a;
  line-height: 32px;
}

.ph-room-info table tbody tr td.r-o {
  width: 110px;
  color: #707079;
}

.ph-room-info p {
  color: #707079;
  line-height: 26px;
  margin-bottom: 20px;
}

.ph-room-units {
  margin-bottom: 28px;
}

.ph-room-units h6 {
  color: #19191a;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.ph-unit-card {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: 10px 14px;
  margin: 0 8px 8px 0;
  font-size: 14px;
  color: #707079;
}

.ph-unit-card strong {
  color: #19191a;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.ph-unit-gender {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}

.ph-unit-m {
  background: rgba(25, 25, 26, 0.08);
  color: #19191a;
}

.ph-unit-f {
  background: rgba(223, 169, 116, 0.2);
  color: #a06b2f;
}

.ph-room-inventory {
  margin-top: 20px;
}

.ph-room-inventory .section-title {
  margin-bottom: 35px;
}

.ph-inventory-table {
  width: 100%;
  margin-bottom: 40px;
  border-collapse: collapse;
  background: #ffffff;
}

.ph-inventory-table thead tr {
  background: #19191a;
  color: #ffffff;
}

.ph-inventory-table th,
.ph-inventory-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid #ebebeb;
  font-size: 15px;
}

.ph-inventory-table th {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ph-inventory-table tbody tr:hover {
  background: #fafafa;
}

.ph-inventory-table td:first-child {
  font-weight: 700;
  color: #19191a;
}

.ph-room-note {
  background: #fafafa;
  border: 1px solid #ebebeb;
  padding: 40px 28px;
  border-radius: 4px;
}

.ph-room-note p {
  color: #707079;
  max-width: 640px;
  margin: 0 auto 24px;
}

@media only screen and (max-width: 991px) {
  .ph-room-gallery,
  .ph-room-gallery-side {
    min-height: 0;
    height: auto;
  }

  .ph-room-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 110px;
    margin-bottom: 24px;
  }

  .ph-room-gallery-main {
    grid-column: 1 / span 2;
    grid-row: 1;
    min-height: 200px;
  }

  .ph-room-gallery-side {
    grid-column: 1 / span 2;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: 110px;
  }

  .ph-room-info,
  .ph-room-type-alt .ph-room-info {
    padding: 10px 0 0;
  }

  .ph-room-info h3 {
    font-size: 26px;
  }

  .ph-room-info h2 {
    font-size: 30px;
  }
}

@media only screen and (max-width: 575px) {
  .ph-room-gallery {
    grid-template-rows: 170px 90px;
  }

  .ph-room-gallery-main {
    min-height: 170px;
  }
}
