<?xml version="1.0" encoding="UTF-8"?>
  <tileset version="1.10" tiledversion="1.11.0" name="grass" tilewidth="48" tileheight="48" tilecount="441" columns="21">
    <image source="grass.png" width="1024" height="1024"/>

    <!-- GRASS TERRAIN - Auto-tiling definition -->
    <terraintypes>
      <terrain name="Grass" tile="10"/>
      <terrain name="Dirt Path" tile="52"/>
    </terraintypes>

    <!-- GRASS TERRAIN (Basic 3x3 pattern) -->
    <!-- Row 1 -->
    <tile id="0" terrain=",,,0">
      <properties>
        <property name="type" value="grass_topleft"/>
      </properties>
    </tile>
    <tile id="1" terrain=",,0,0">
      <properties>
        <property name="type" value="grass_top"/>
      </properties>
    </tile>
    <tile id="2" terrain=",,0,">
      <properties>
        <property name="type" value="grass_topright"/>
      </properties>
    </tile>

    <!-- Row 2 (skipping to next row in 21-column layout) -->
    <tile id="21" terrain=",0,,0">
      <properties>
        <property name="type" value="grass_left"/>
      </properties>
    </tile>
    <tile id="22" terrain="0,0,0,0">
      <properties>
        <property name="type" value="grass_center"/>
      </properties>
    </tile>
    <tile id="23" terrain="0,,,0">
      <properties>
        <property name="type" value="grass_right"/>
      </properties>
    </tile>

    <!-- Row 3 -->
    <tile id="42" terrain=",0,,">
      <properties>
        <property name="type" value="grass_bottomleft"/>
      </properties>
    </tile>
    <tile id="43" terrain="0,0,,">
      <properties>
        <property name="type" value="grass_bottom"/>
      </properties>
    </tile>
    <tile id="44" terrain="0,,,">
      <properties>
        <property name="type" value="grass_bottomright"/>
      </properties>
    </tile>

    <!-- DIRT PATH TERRAIN (if exists in tileset) -->
    <!-- Row 3 starting from column 10 (adjust based on actual layout) -->
    <tile id="10" terrain=",,,1">
      <properties>
        <property name="type" value="dirt_topleft"/>
      </properties>
    </tile>
    <tile id="11" terrain=",,1,1">
      <properties>
        <property name="type" value="dirt_top"/>
      </properties>
    </tile>
    <tile id="12" terrain=",,1,">
      <properties>
        <property name="type" value="dirt_topright"/>
      </properties>
    </tile>

    <tile id="31" terrain=",1,,1">
      <properties>
        <property name="type" value="dirt_left"/>
      </properties>
    </tile>
    <tile id="32" terrain="1,1,1,1">
      <properties>
        <property name="type" value="dirt_center"/>
      </properties>
    </tile>
    <tile id="33" terrain="1,,,1">
      <properties>
        <property name="type" value="dirt_right"/>
      </properties>
    </tile>

    <tile id="52" terrain=",1,,">
      <properties>
        <property name="type" value="dirt_bottomleft"/>
      </properties>
    </tile>
    <tile id="53" terrain="1,1,,">
      <properties>
        <property name="type" value="dirt_bottom"/>
      </properties>
    </tile>
    <tile id="54" terrain="1,,,">
      <properties>
        <property name="type" value="dirt_bottomright"/>
      </properties>
    </tile>

    <!-- Add variation tiles for visual interest -->
    <tile id="24">
      <properties>
        <property name="type" value="grass_flowers_yellow"/>
      </properties>
    </tile>
    <tile id="25">
      <properties>
        <property name="type" value="grass_flowers_pink"/>
      </properties>
    </tile>
    <tile id="26">
      <properties>
        <property name="type" value="grass_flowers_white"/>
      </properties>
    </tile>
  </tileset>
