/* Keep premium detail views comfortably readable on desktop and mobile. */
#detail.premium-detail,
#detail.van-oijen-detail {
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 32px));
  max-width: 1120px;
  max-height: 92dvh;
  padding: clamp(20px, 2.5vw, 34px);
}
#detail.van-oijen-detail.premium-detail {
  width: min(1280px, calc(100vw - 32px));
  max-width: 1280px;
}
#detail.premium-detail #detail-content,
#detail.van-oijen-detail #detail-content {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
}
#detail.van-oijen-detail .vo,
#detail.van-oijen-detail .vo-hero,
#detail.van-oijen-detail .vo-cars,
#detail.van-oijen-detail .vo-contact,
#detail.van-oijen-detail .vo-services {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
}
.location-document #detail.location-page.van-oijen-detail {
  width: min(1280px, calc(100vw - 40px));
  max-width: 1280px;
  max-height: none;
  overflow: visible;
}
.location-document #detail.location-page.van-oijen-detail .location-summary .location-actions {
  display: grid;
  /* Keep Van Oijen's primary actions readable even when a phone browser uses
     a desktop-width viewport or the page is zoomed out. Auto-fit used to pack
     five narrow links into one row and split every label into fragments. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.location-document #detail.location-page.van-oijen-detail .location-summary .location-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  flex: none;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
}
.location-document #detail.location-page.purple-studio-detail {
  width: min(1280px, calc(100vw - 40px));
  max-width: 1280px;
}
.location-document #detail.location-page.metropole-detail {
  width: min(1280px, calc(100vw - 40px));
  max-width: 1280px;
}
.location-page#detail { width: calc(100% - 40px); max-width: 1280px; }
.location-page #detail-content { min-width: 0; }
#detail.van-oijen-detail .location-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
#detail.van-oijen-detail .location-actions a {display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:48px;flex:none;text-align:center;white-space:normal;line-height:1.3;overflow-wrap:anywhere;word-break:normal}
#detail.van-oijen-detail .location-actions .street-view-note,#detail.van-oijen-detail .location-actions p {grid-column:1/-1}
/* Android Chrome's "desktop site" mode uses a ~980px CSS viewport. Keep the
   contact actions readable there too, instead of squeezing five labels into
   narrow columns that split words into individual letters. */
@media (max-width: 1024px) {
  .location-document #detail.location-page.van-oijen-detail .location-summary .location-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .location-document #detail.location-page.van-oijen-detail .location-summary .location-actions a {
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }
}
.linked-standplaces { padding: 22px; border-radius: 14px; background: #f5f0e7; }
.linked-standplaces h2 { margin-top: 0; }
.linked-standplaces ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.linked-standplaces a { display: inline-block; padding: 10px 14px; border-radius: 9px; background: white; font-weight: 700; }
@media (max-width: 760px) {
  #detail.premium-detail,
  #detail.van-oijen-detail { width: calc(100vw - 16px); max-width: none; max-height: 94dvh; padding: 18px; }
  #detail.van-oijen-detail.premium-detail { width: calc(100vw - 16px); max-width: none; }
  .location-document #detail.location-page.van-oijen-detail { width: 100%; max-width: none; max-height: none; overflow: visible; }
  .location-document #detail.location-page.van-oijen-detail .location-summary .location-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-document #detail.location-page.purple-studio-detail { width: 100%; max-width: none; }
  .location-document #detail.location-page.metropole-detail { width: 100%; max-width: none; }
  .location-page#detail { width: 100%; max-width: none; }
  #detail.van-oijen-detail .location-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #detail.van-oijen-detail .location-actions a { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 48px; flex: none; padding: 12px 10px; text-align: center; line-height: 1.3; overflow-wrap: normal; word-break: normal; }
  #detail.van-oijen-detail .location-actions .street-view-note,
  #detail.van-oijen-detail .location-actions p { grid-column: 1 / -1; }
  .linked-standplaces { padding: 16px; }
}
