/* CSS to hide the honeypot field */
.honeypot-wrapper,
input[name="user[signup_timestamp]"],
.additional-preferences,
.preference-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Add some misdirection */
.additional-preferences {
  display: block;
  visibility: visible;
}
.main-header {
  background: white;
  box-shadow: 0 2px 4px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin-left: -0.5rem; /* Offset body left margin */
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-button {
  padding: 0.5rem 1rem;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
}

.mobile-menu.visible {
  display: flex;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid var(--shadow-color);
  }
}
.forecast-table {
  max-width: min(900px, 100%);
  margin: 1em 0;
}

.forecast-day {
  width: 100%;
  margin-bottom: 1em;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.forecast-day th {
  background: #d7d2d2;
  padding: 0.5em;
  text-align: center;
}

.forecast-day td {
  padding: 0.5em;
  border-top: 1px solid #eee;
}

.forecast-day .detailed-forecast {
  padding: 1em;
  background: #f9f9f9;
  line-height: 1.4;
}

.forecast-day .table-headers th {
  background: #e8e8e8;
  font-size: 0.9em;
  padding: 0.3em;
  border-bottom: 2px solid #ddd;
}

.daytime {
  background: #f6dfb5;
}

.nighttime {
  background: #cbd7fa;
}

.daytime-icon,
.nighttime-icon {
  background: inherit;
}

.daytime-icon td,
.nighttime-icon td {
  text-align: right;
  padding-right: 0.1em;
}

.weather-icon {
  width: 60px;
  height: 60px;
  display: inline-block;
  vertical-align: middle;
}

.forecast-day td:first-child {
  width: 100px;
  font-weight: bold;
}

.gardening-notes {
  width: 400px;
  font-size: 1rem;
  color: #444;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.2em;
}

@media (max-width: 600px) {
  .forecast-day td:first-child {
    width: 80px;
  }
  
  .forecast-day td {
    font-size: 0.9em;
  }
}

@media (max-width: 768px) {
  .gardening-notes {
    width: 170px;
    font-size: 1rem;
  }
}

/* Responsive table styles */
@media screen and (max-width: 768px) {
  .forecast-table {
    max-width: 100%;
  }

  .forecast-day {
    margin-bottom: 2em;
  }

  .forecast-day th,
  .forecast-day td {
    padding: 0.5em 0.3em;
  }

  .gardening-notes {
    width: auto;
    min-width: 120px;
  }

  /* Adjust column widths */
  .forecast-day td:first-child {
    width: 70px;
    font-size: 0.9rem;
  }

  .weather-icon {
    width: 45px;
    height: 45px;
  }
}

/* Very small screens */
@media screen and (max-width: 480px) {
  .forecast-day {
    /* Stack columns on very small screens */
    display: block;
    border: 1px solid #ddd;
    margin-bottom: 1.2em;
  }

  .forecast-day thead {
    display: none; /* Hide original headers */
  }

  .forecast-day tbody {
    display: block;
  }

  .forecast-day tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3em;
    padding: 0.3em;
    border-bottom: 1px solid #eee;
  }

  .forecast-day td {
    display: block;
    border: none;
    padding: 0.3em;
  }

  .weather-icon {
    width: 40px;
    height: 40px;
  }

  .gardening-notes {
    grid-column: 1 / -1;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    margin-top: 0.5em;
  }

  /* Add date as sticky header for each forecast day */
  .forecast-day::before {
    content: attr(data-date);
    display: block;
    background: #d7d2d2;
    padding: 0.5em;
    font-weight: bold;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1;
  }
}

/* High contrast and accessibility improvements */
@media (prefers-contrast: high) {
  .forecast-day {
    border: 2px solid #000;
  }

  .forecast-day th {
    background: #000;
    color: #fff;
  }

  .daytime, .nighttime {
    border: 1px solid #000;
  }

  .gardening-notes {
    border: 1px solid #000;
    background: #fff;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .forecast-day {
    transition: none;
  }
}

.sr-only {
  display: none;
}

.tiny-radar {
  width: min(100%, 200px);
  margin: 0.3rem;
}

.radar-display {
  margin: 1rem 0;
  /* text-align: center; */
}

.radar-image {
  width: min(100%, 600px);
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.radar-caption {
  font-size: 0.8em;
  color: #666;
  margin-top: 0.5rem;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) 60%file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Meyer CSS Reset - URL: http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126  License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	/* font: inherit; */
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

/* Define CSS custom properties */
:root {
  --system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --primary-color: #1274bc;
  --accent-color: #FFD700;
  --success-color: #39FF14;
  --danger-color: lightcoral;
  --background-color: ghostwhite;
  --shadow-color: rgba(0,0,0,0.1);
}

body {
	line-height: 1.4;
  /* padding: 1%; */
  background-color: var(--background-color);
  margin: 0 0 0 0.5rem;
  color: #000;
  font-size: 14px;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* System Fonts with system-ui */

* {
  /* This is what Strava used  */
  box-sizing: border-box; 
  /* # System fonts for everything, see :root  */
  font-family: var(--system-ui); 
}

/* # System fonts variable from CSS tricks, used on * above */
/* https://css-tricks.com/snippets/css/system-font-stack/ */
:root {
  --system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
 /* ----------------- */

/* My Code! */

/* Testing outlines: */
 /* div, section, nav {
  border: 1px;
  border-color: red;
  border-style: solid;
} */

/* # FIX ASAP: for styling the default rails pages */
h1, h2, h3, h4, h5, h6, p, blockquote, pre {
	/* margin: 0.5rem; */
	padding-left: 0.5rem;
  padding-top: 0.3rem;
}

 html {
  font-size: 100%;
  width: 100%;
}

 div {
  display: block;
}

.flash {
  padding: 0.5rem;
  margin-left: -0.5rem;
}

form {
  padding: 0.3rem;
  margin: 0.3rem;
}
label {
  font-size: 1.2rem;
}


textarea {
  width: min(100%, 500px);
  height: calc(80px);
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 0.9rem;
  /* resize: none; */
}

input#garden_title {
  width: min(100%, 500px);
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 1.3rem; 
  resize: none;
}

ul {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 40px;
}

a,a:visited {
  color: var(--primary-color);
  text-decoration: none
}

button, input[type="submit"] {
  background-color: var(--accent-color);
  padding: 1.1rem 2.1rem;
  margin: 0.3rem;
  border-radius: 6px;
  border: 2px solid var(--success-color); /* Sets a border color for the button */
  color: black; /* Sets the text color to black */
  font-size: 14px; /* Adjust font size as needed */
  /* transition: transform 0.5s, opacity 300ms; */
  /* Costly: transition: background-color 1.2s ease-out 0.2s;*/

  /* property name | duration | easing function */
  transition: transform 0.3s ease-in-out;
}

button:hover,
input[type="submit"]:hover {
  transform: scale(1.1);
}

.Logo_Button {
  background-color: transparent;
  border: none;
  box-shadow: none;
  font-weight: 400;
  padding: 0;
  width: 100px;
}

/* Headings & Text */

h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  margin-top: 0
}

h2 {
  font-weight: 600
}

h2,h3 {
  font-size: 22px;
  line-height: 28px
}

h3,h4 {
  font-weight: 400
}

h4 {
  font-size: 20px;
  line-height: 25px
}

h5 {
  font-size: 17px;
  line-height: 22px
}

h5,h6 {
  font-weight: 400
}

h6 {
  font-size: 15px;
  line-height: 20px
}

h2,h3 {
  margin-bottom: 9px;
  margin-top: 18px
}

p {
  margin: 0 0 1.23em
}

.DisclaimerText {
  font-size: 12px;
  margin-top: 12px;
}

/* FrontDoorsPageContainer */

.FrontDoorsPageContainer_body {
  background-color: white;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  height: 100%;
  margin-left: -0.5rem;
}

/* Header_container */

.Header_container {
  display: flex;
  background-color: #ffff;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  justify-content: center;
  position: sticky;
  top: 0;
}

.Header_menu {
  width: 100%;
  max-width: 1728px;
}

.Header_items {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Homepage_container */

.Homepage_container {
  display: flex
}

/* --- DESKTOP --- */

/* Desktop_container */

.Desktop_container {
  display:none;
  background-color: #ffff;
  width: 100%;
  height: 760px;
}

@media(min-width: 992px) {
  .Desktop_container {
      display:flex;
  }
}

.Desktop_middle_col {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  max-width: 343px;
  min-width: 500px;
  padding: 0 28px;
  text-align: center;
}

.Desktop_first_col,.Desktop_third_col {
  cursor: default;
  display: flex;
  height: 100%;
  flex: 1;
}

.Desktop_first_col img, .Desktop_third_col img {
  object-fit: cover;
  width: 100%;
} 

.Desktop_first_col img {
  /* object-position: top right; */
}

.Desktop_third_col img {
  /* object-position: top left; */
}

/* Desktop_Nav_container */

.Desktop_Nav_container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px; 
}

@media(max-width: 992px) {
  .Desktop_Nav_container {
      display:none!important;
  }
}

.Desktop_Nav_LogoAndLinks {
  display: flex;
  align-items: center;
}

.Nav_navLinks {
  list-style: none;
  display: flex;
}

.Nav_navLinks li {
  margin-right: 42px;
}

.Desktop_Nav_Login_btn {
  font-weight: 600;
  padding: 6px 10px;
  min-height: 40px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
}

.Desktop_Nav_navLinks {
  font-weight: 600;
  padding: 6px 10px;
  min-height: 40px;
}

/* --- MOBILE + TABLET --- */

/* Mobile_Tablet_Nav_container */

.Mobile_Tablet_Nav_container {
  display: flex;
  width: 100%;
  height: 66px;
  align-items: center;
  padding: 12px 16px
}

/* Mobile_tablet_container */

.Mobile_tablet_container {
  display: flex;
  flex-direction: column; /* this is key, why was it commented out? */
  width: 100%;
  background-color: #ffff;
}

@media(min-width: 991px) {
  .Mobile_tablet_container,.Mobile_Tablet_Nav_container {
      display:none!important
  }
}
.Mobile_Nav_Left {
  display: flex;
  align-items: center;
}

.Mobile_Nav_Right {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.Mobile_Nav_Right button {
  margin-left: 1.2rem;
}

/* Hero_container */

.Hero_container {
  width: 100%;
  height: 130vw;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  overflow: hidden;
  color: #fff;
  /* transition: all 1s cubic-bezier(0,1.085,.4,1) */
}

.Hero_overlay {
  width: 100%;
  height: 130vw;
  display: flex;
  flex-direction: column;
  position: absolute;
  /* background-image: url(/assets/GeoGardening_background_hydrangea-204281fb7748b5c60e0d8b8f2e7b73a31b1e1aea66bab96bc0829131d7a6d8ae.jpg);
  background-size: cover; */
  margin: 0 auto;
}

.HeroBackgroundImage_picture {
  cursor: default;
  display: flex;
  height: 100%;
  flex: 1 1;
}

.HeroBackgroundImage_picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.Hero_container .Hero_overlay {
  width: 100%;
  height: 130vw;
  display: flex;
  flex-direction: column;
  position: absolute;
  align-items: center;
}

.Hero_container .Hero_overlay h1 {
  display: flex;
  height: 50%;
  align-items: center;
  padding: 4rem 1rem;
}

section.info{
  display: flex;
  flex-direction: column;
  padding: 0 10vw;
  /* text-align: center; */
  margin-top: 10vw;
  margin-bottom: 10vw;
  width: 100%;
}

/* FOOTER */

.Footer_container {
  display: flex;
  /* We only want column when its mobile */
  flex-direction: column; 
  justify-content: space-around;
  align-items: stretch;
  width: 100%;
  /* max-width: 1728px; */
  margin: 0 auto;
  padding: 100px 16px 50px;
  gap: 73px;
  flex: 1 1;
  /* font-size: 0.9rem; */
  background-color: #E6D5B8;
}

.Footer {
  display: flex;
  width: 100%;
  flex: 1 1
}

/* Footer for Desktop */
@media(min-width: 991px) {
  .Footer_container {
      flex-direction: row;
      padding: 68px 65px 90px;
      gap: 0;
  }
}

@media(min-width: 991px) {
  .Footer_links {
    margin-left: 3rem;
  }
}

.Footer_links {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  flex: 2 1;
}

.Footer_links ul, .Footer_links > ul, .Privacy_social ul {
  list-style: none;
  padding: 0;
}

a.Footer_highlight {
  color: #F93D3A;
}

.Footer_links li, .Privacy_social li {
  margin-bottom: 1.2rem;
}

.Footer_links ul {
  margin-bottom: 2rem;
}

.Privacy_social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.9rem;
}

.small_terms {
  font-size: 0.8rem;
  margin: 0;
  padding:0;
}

/* Log In Page */

.Login, .Signup {
  background-image: url(/assets/GeoGardening_background_hydrangea-204281fb7748b5c60e0d8b8f2e7b73a31b1e1aea66bab96bc0829131d7a6d8ae.jpg);
  background-repeat: no-repeat; /* Prevents the background image from repeating */
  background-size: cover; /* Adjusts the size of the background image */
  height: 100vh;
  padding-top: 10vh;
  margin-left: -0.5rem; /* Offset body left margin */
}

.Registration {
  text-align: center;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding-top: 30px; 
  margin-right: auto;
  margin-bottom: 50px;
  margin-left: auto;
  width: min(100%, 450px);
  border-radius: 6px;
  height: fit-content;
}

.Registration form {
  padding: max(1rem, 10px);
}

.devise-links {
  padding: 20px 12px;
  border-top: 2px solid rgba(60,60,60,0.75);
  margin: 20px;
  height: auto;
}

.devise-links a {
  display: block;
  font-size: 1.1rem;
}


div.field {
  margin-bottom: 1rem;
}

/* Devise login & Signup buttons */

.Registration input:not([type="submit"]) {
  padding: 1rem;
  width: 90%;
  height: 2.5rem;
  font-size: 1.2rem;
}

/* Dashboard */

/* My Dash code */

.Dash_header {
  /* make sure header spans correct distance */
  grid-column: 2 / -1;
  grid-row: 1 / 1;
  padding-left: 0.5rem
 }

 /* Desktop Dash sidebar */
 @media(min-width: 768px) {
  .Dash_menu {
    display: none;
  }
  
  .Dash_sidebar {
    display: flex;
    flex-direction: column;
    grid-column: 1 / 2;
    grid-row: 1 / -1;
    padding: 10px;
    background-color: #88a550;
    font-size: 1.2rem;
  }

  .Dash_sidebar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }

  .Dash_side_item {
    display: grid;
    grid-template-columns: 0.3fr 0.7fr;
    padding: 5px;
    align-items: center;
  }
}

/* Mobile Dash sidebar/menu */
@media(max-width: 767px) {
  .Dash_sidebar {
    display: none;
  }
  .Dash_menu {
    background-color: #88a550;
  }

  .menu-title {
    background-color: rgb(163, 162, 162);
  }

  .visible {
    display: block;
  }  
  
}

/*  Dash content for Desktop and Mobile */

.Dash_content {
  background-color: lightgray;
  max-height:auto;
  min-height: 100vh;
}

/* Desktop Dash content */
@media(min-width: 768px) {
  .Dash_content {
    display: grid;
    grid-column: 2 / -1;
    grid-row: 2 / -1;
    grid-template-columns: 1fr 285px;
    grid-template-rows: auto 1fr 1fr; 
  }
}

/* Mobile Dash content */
@media(max-width: 767px) {
  .Dash_content {
    display: flex;
    flex-direction: column;
  }

  .Dash_garden {
    order: -1; /* This moves the garden section above posts */
    margin: 10px;
    width: auto;
    max-width: none;
  }

  .Dash_posts {
    margin-top: 10px;
  }
}  

.Dash_posts {
  display: flex;
  height: fit-content;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
}

.Dash_card {
  background-color: white;
  border-left: 5px;
  border-color: goldenrod;
  border-style: solid;
  border-radius: 6px;
  margin: 10px;
  min-height: 100px; /* Minimum height */
  max-height: 300px; /* Maximum height */
  min-width: 250px; /* Minimum height */
  max-width: 400px; /* Maximum height */
  flex: 1 1 250px; /* Flex-grow, flex-shrink, and min-width */
  padding: 10px; /* Optional padding */
}

@media(min-width: 768px) {
  .Dash_garden {
    display: grid;
    grid-column: 2 / -1;
    grid-row: 1 /2;
    margin: 10px;
    border-radius: 6px;
    padding-left: 16px;
    padding-right: 8px;
    padding-top: 1rem;
    padding-bottom: 2px;
    height: fit-content;
    min-width: 250px;
    max-width: 275px;
  }
}

/* Dash My Gardens for MOBILE */
@media(max-width: 767px) {
  .Dash_garden {
    display: flex;
    flex-direction: column;
  }
}

.Dash_garden {
  background-color: white;
  margin: 10px;
  border-radius: 6px;
  padding-left: 16px;
  padding-right: 8px;
  padding-top: 1rem;
  padding-bottom: 2px;
  height: fit-content;
  min-width: 200px;
}

.Dash_garden h4, .Dash_garden p {
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}

/* Dash My Gardens for MOBILE */
@media(max-width: 767px) {
  .Dash_container {
    display: flex;
    flex-direction: column;
    margin-left: -0.5rem; /* TO offset left padding on body */
  }
}

/* Dash Container for DESKTOP */
@media(min-width: 768px) {
  .Dash_container {
    display: grid;
    grid-template: auto auto / 220px 1fr 1fr 1fr;
    margin-left: -0.5rem /* TO offset left padding on body */
  }
}

.flex {
  display: flex;
}

hr {
  width:90%;
  text-align:center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.cardicon {
  margin-left: 0.69rem;
  margin-right: 0.69rem;
}

.Danger > button {
  background-color: var(--danger-color);
}

button.Logout  {
  background-color: lightblue;
  /* transform: scale(0.9); */
}

/* Tooltip Icon */
.Tooltip {
  color: rgb(210, 229, 234);
  border: solid;
  border-style:solid;
  border-width: 1px;
  border-radius: 100%;
  padding: 0.4em;
  margin: 0.2em;
  width:fit-content;
  height:fit-content;
  font-size: 0.8rem;
  background-color: lightblue;
  opacity: 0.9;
}

.Tooltip:hover {
  color: darkgreen;
  opacity: 1;
  cursor: pointer;
}

/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog */
/*   Open state of the dialog  */
dialog[open] {
  opacity: 1;
  transform: scaleY(1);
  /* Ensure exit is the same as entry */
  transform: translate(30%, -10%);
}

/*   Closed state of the dialog   */
dialog {
  padding:1rem;
  width:45%;
  min-width:190px;
  max-width:600px;
  opacity: 0;
  transform: scaleY(0);
  transform: translate(30%, -90%); 
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out,
    overlay 0.4s ease-out allow-discrete,
    display 0.4s ease-out allow-discrete;
  /* Equivalent to
  transition: all 0.4s allow-discrete; */
}

/*   Before-open state  */
/* Needs to be after the previous dialog[open] rule to take effect,
    as the specificity is the same */
/* MORE: https://developer.mozilla.org/en-US/docs/Web/CSS/@starting-style */
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scaleY(0);
    transform: translate(30%, -90%);
  }
}

/* Transition the :backdrop when the dialog modal is promoted to the top layer */
dialog::backdrop {
  background-color: rgb(0 0 0 / 0%);
  transition:
    display 0.4s allow-discrete,
    overlay 0.4s allow-discrete,
    background-color 0.4s;
  /* Equivalent to
  transition: all 0.4s allow-discrete; */
}

dialog[open]::backdrop {
  background-color: rgb(0 0 0 / 25%);
}

/* This starting-style rule cannot be nested inside the above selector
because the nesting selector cannot represent pseudo-elements. */

@starting-style {
  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0%);
  }
}

/* Place Stuff */

.PlaceBlock {
  width: min(90vw, 600px);
  border-style: groove;
  border-color: #88a550;
  border-width: 1px;
  padding: 0.3rem;
  margin: 0.3rem;
}

/* GOOGLE MAPS stuff: */

input#txtquery {
  width: 280px;
  height: 40px;
}

.map-container {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.map-container iframe {
  display: block;
}

.Results {
  background-color: #f0f7ff;
  border: 2px solid #4a90e2;
  border-radius: 8px;
  margin: 20px 0;
  padding: 15px;
  box-shadow: 0 2px 4px var(--shadow-color);
  animation: highlight 1s ease-in-out;
}

.Results h3 {
  color: #2c5282;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.Results p {
  color: #2d3748;
  line-height: 1.4;
  margin: 8px 0;
}

@keyframes highlight {
  0% { transform: scale(0.98); opacity: 0.5; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* High Contrast Improvements */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000EE;
    --accent-color: #000000;
    --background-color: #FFFFFF;
  }
}
